summaryrefslogtreecommitdiff
path: root/libyasm/symrec.h
diff options
context:
space:
mode:
authorPeter Johnson <peter@tortall.net>2008-06-08 09:06:05 +0000
committerPeter Johnson <peter@tortall.net>2008-06-08 09:06:05 +0000
commit53b2d01a779913ba35c301b7e3080da15a41e8cf (patch)
treee7ff38396a610bf65881ba5206ff1eec3aa14eaa /libyasm/symrec.h
parent3aab66a119b5be2a5163c1de4909f27bdc28a91e (diff)
downloadyasm-53b2d01a779913ba35c301b7e3080da15a41e8cf.tar.gz
Fix #132: Add --prefix and --suffix (aka --postfix) options.
These allow arbitrary prefixes and/or suffixes to be added to externally-visible (GLOBAL, EXTERN, or COMMON) symbol names. svn path=/trunk/yasm/; revision=2109
Diffstat (limited to 'libyasm/symrec.h')
-rw-r--r--libyasm/symrec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libyasm/symrec.h b/libyasm/symrec.h
index 10706d9d..65d47755 100644
--- a/libyasm/symrec.h
+++ b/libyasm/symrec.h
@@ -253,6 +253,14 @@ void yasm_symtab_print(yasm_symtab *symtab, FILE *f, int indent_level);
YASM_LIB_DECL
/*@observer@*/ const char *yasm_symrec_get_name(const yasm_symrec *sym);
+/** Get the externally-visible (global) name of a symbol.
+ * \param sym symbol
+ * \return Externally-visible symbol name (allocated, caller must free).
+ */
+YASM_LIB_DECL
+/*@only@*/ char *yasm_symrec_get_global_name(const yasm_symrec *sym,
+ const yasm_object *object);
+
/** Get the visibility of a symbol.
* \param sym symbol
* \return Symbol visibility.