]> mj.ucw.cz Git - libucw.git/commitdiff
ABI: Manual tweaks for strtonum.h
authorMartin Mares <mj@ucw.cz>
Fri, 3 Jan 2014 13:01:23 +0000 (14:01 +0100)
committerMartin Mares <mj@ucw.cz>
Fri, 3 Jan 2014 13:01:23 +0000 (14:01 +0100)
Function names are generated by macros, thus hidden to tools/map-symbols.

tools/libucw.api
ucw/strtonum.h

index ef19072f2ef445763a1928aa2f6db7fd8ddfba8d..e85cdad58b72b707bdeca59a1c33e055256002f2 100644 (file)
@@ -448,6 +448,9 @@ str_has_prefix
 str_has_suffix
 str_hier_prefix
 str_hier_suffix
+# ucw/strtonum.h
+str_to_uintmax
+str_to_uns
 # ucw/tbf.h
 tbf_init
 tbf_limit
index 865dda7d3eebdeee91e3ab6dfca04a8c3c0ecbc3..35807de1eae5b08a5dc9a250cee31d4ba888b43f 100644 (file)
 #ifndef _STRTONUM_H
 #define _STRTONUM_H
 
+#ifdef CONFIG_UCW_CLEAN_ABI
+#define str_to_uintmax ucw_str_to_uintmax
+#define str_to_uns ucw_str_to_uns
+#endif
+
 // Set (flags & 0x1f) in the range 1 to 31 to denote the default base of the number
 enum str_to_num_flags {
   STN_SIGNED = 0x20,       // The resulting range is signed