diff options
author | midipix <writeonce@midipix.org> | 2016-10-24 16:41:54 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:50 -0500 |
commit | b183d1ada2b4db899179e1865d4248f8e950a1ca (patch) | |
tree | 26e5b10acfd938ebd3b74c41f40d68d01e8a6a2c | |
parent | 99b875dda2bc51ebc832fb9e380d3bdcc1097c8f (diff) | |
download | mdso-b183d1ada2b4db899179e1865d4248f8e950a1ca.tar.bz2 mdso-b183d1ada2b4db899179e1865d4248f8e950a1ca.tar.xz |
helper api: renamed mdso_create_output() --> mdso_create_asm_source().
-rw-r--r-- | include/mdso/mdso.h | 4 | ||||
-rw-r--r-- | project/common.mk | 2 | ||||
-rw-r--r-- | project/tree.mk | 1 | ||||
-rw-r--r-- | src/helper/mdso_create_asm_source.c (renamed from src/output/mdso_create_output.c) | 2 | ||||
-rw-r--r-- | src/logic/mdso_create_implib_sources.c | 6 |
5 files changed, 9 insertions, 6 deletions
diff --git a/include/mdso/mdso.h b/include/mdso/mdso.h index eba41ad..9efda11 100644 --- a/include/mdso/mdso.h +++ b/include/mdso/mdso.h @@ -107,6 +107,9 @@ mdso_api void mdso_free_unit_ctx (struct mdso_unit_ctx *); mdso_api int mdso_map_input (const struct mdso_driver_ctx *, int fd, const char * path, int prot, struct mdso_input *); mdso_api int mdso_unmap_input (struct mdso_input *); +/* helper api */ +mdso_api FILE*mdso_create_asm_source (const struct mdso_driver_ctx *, const char * asmname); + /* utility api */ mdso_api int mdso_main (int, char **, char **); mdso_api int mdso_create_implib_sources(const struct mdso_driver_ctx *); @@ -117,7 +120,6 @@ mdso_api int mdso_output_error_vector (const struct mdso_driver_ctx *); /* low-level api */ mdso_api uint32_t mdso_crc32_mbstr (const unsigned char * str, size_t * symlen); mdso_api uint64_t mdso_crc64_mbstr (const unsigned char * str, size_t * symlen); -mdso_api FILE * mdso_create_output (const struct mdso_driver_ctx *, const char * asmname); mdso_api int mdso_generate_dsometa (const struct mdso_driver_ctx *, FILE * fout); mdso_api int mdso_generate_symentry(const struct mdso_driver_ctx *, const char * sym, FILE * fout); mdso_api int mdso_generate_symfn (const struct mdso_driver_ctx *, const char * sym, FILE * fout); diff --git a/project/common.mk b/project/common.mk index 260e1a6..f482923 100644 --- a/project/common.mk +++ b/project/common.mk @@ -4,13 +4,13 @@ COMMON_SRCS = \ src/driver/mdso_amain.c \ src/driver/mdso_driver_ctx.c \ src/driver/mdso_unit_ctx.c \ + src/helper/mdso_create_asm_source.c \ src/internal/mdso_errinfo_impl.c \ src/logic/mdso_create_implib_sources.c \ src/logic/mdso_generate_dsometa.c \ src/logic/mdso_generate_symentry.c \ src/logic/mdso_generate_symfn.c \ src/logic/mdso_map_input.c \ - src/output/mdso_create_output.c \ src/output/mdso_output_error.c \ src/output/mdso_output_export_symbols.c \ src/skin/mdso_skin_default.c \ diff --git a/project/tree.mk b/project/tree.mk index 4133dd5..94db455 100644 --- a/project/tree.mk +++ b/project/tree.mk @@ -2,6 +2,7 @@ tree.tag: mkdir -p src mkdir -p src/crc mkdir -p src/driver + mkdir -p src/helper mkdir -p src/internal mkdir -p src/logic mkdir -p src/output diff --git a/src/output/mdso_create_output.c b/src/helper/mdso_create_asm_source.c index 14321b7..0d02c12 100644 --- a/src/output/mdso_create_output.c +++ b/src/helper/mdso_create_asm_source.c @@ -15,7 +15,7 @@ #include "mdso_driver_impl.h" #include "mdso_errinfo_impl.h" -FILE * mdso_create_output( +FILE * mdso_create_asm_source( const struct mdso_driver_ctx * dctx, const char * asmname) { diff --git a/src/logic/mdso_create_implib_sources.c b/src/logic/mdso_create_implib_sources.c index fb12e97..4bc8796 100644 --- a/src/logic/mdso_create_implib_sources.c +++ b/src/logic/mdso_create_implib_sources.c @@ -35,7 +35,7 @@ mdso_api int mdso_create_implib_sources(const struct mdso_driver_ctx * dctx) mdso_init_asmname(asmname,"__%s_dso_meta.s",dctx->cctx->libname); - if (!(fout = mdso_create_output(dctx,asmname))) + if (!(fout = mdso_create_asm_source(dctx,asmname))) return MDSO_NESTED_ERROR(dctx); ret = mdso_generate_dsometa(dctx,fout); @@ -53,7 +53,7 @@ mdso_api int mdso_create_implib_sources(const struct mdso_driver_ctx * dctx) for (sym=uctx->syms; *sym; sym++) { mdso_init_asmname(asmname,"__%s_sym_entry.s",*sym); - if (!(fout = mdso_create_output(dctx,asmname))) + if (!(fout = mdso_create_asm_source(dctx,asmname))) return MDSO_NESTED_ERROR(dctx); ret = mdso_generate_symentry(dctx,*sym,fout); @@ -66,7 +66,7 @@ mdso_api int mdso_create_implib_sources(const struct mdso_driver_ctx * dctx) mdso_init_asmname(asmname,"__%s_sym_fn.s",*sym); - if (!(fout = mdso_create_output(dctx,asmname))) + if (!(fout = mdso_create_asm_source(dctx,asmname))) return MDSO_NESTED_ERROR(dctx); ret = mdso_generate_symfn(dctx,*sym,fout); |