i forgot about amalgamation. fix declaration too
SVN revision: 51243
This commit is contained in:
parent
333b64f15e
commit
ca4497509e
|
@ -122,6 +122,7 @@ eina_amalgamation.c: $(base_sources) Makefile
|
|||
@echo "#include \"eina_private.h\"" >> eina_amalgamation.c
|
||||
@echo "#include \"eina_safety_checks.h\"" >> eina_amalgamation.c
|
||||
@echo "#include \"Eina.h\"" >> eina_amalgamation.c
|
||||
@echo "#include \"eina_strbuf_common.h\"" >> eina_amalgamation.c
|
||||
@echo "#include \"eina_share_common.h\"" >> eina_amalgamation.c
|
||||
|
||||
@for f in $(base_sources); do \
|
||||
|
|
|
@ -20,6 +20,39 @@
|
|||
* @cond LOCAL
|
||||
*/
|
||||
|
||||
#ifdef _STRBUF_DATA_TYPE
|
||||
# undef _STRBUF_DATA_TYPE
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_CSIZE
|
||||
# undef _STRBUF_CSIZE
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_STRUCT_NAME
|
||||
# undef _STRBUF_STRUCT_NAME
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_STRLEN_FUNC
|
||||
# undef _STRBUF_STRLEN_FUNC
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_STRESCAPE_FUNC
|
||||
# undef _STRBUF_STRESCAPE_FUNC
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_MAGIC
|
||||
# undef _STRBUF_MAGIC
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_MAGIC_STR
|
||||
# undef _STRBUF_MAGIC_STR
|
||||
#endif
|
||||
|
||||
#ifdef _FUNC_EXPAND
|
||||
# undef _FUNC_EXPAND
|
||||
#endif
|
||||
|
||||
|
||||
#define _STRBUF_DATA_TYPE char
|
||||
#define _STRBUF_CSIZE sizeof(_STRBUF_DATA_TYPE)
|
||||
#define _STRBUF_STRUCT_NAME Eina_Strbuf
|
||||
|
|
|
@ -673,6 +673,18 @@ eina_strbuf_common_length_get(const Eina_Strbuf *buf)
|
|||
|
||||
/*FIXME: Implementing them here is a hack! */
|
||||
|
||||
#ifdef _STRBUF_CSIZE
|
||||
# undef _STRBUF_CSIZE
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_MAGIC
|
||||
# undef _STRBUF_MAGIC
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_MAGIC_STR
|
||||
# undef _STRBUF_MAGIC_STR
|
||||
#endif
|
||||
|
||||
#define _STRBUF_CSIZE 1
|
||||
#define _STRBUF_MAGIC EINA_MAGIC_STRBUF
|
||||
#define _STRBUF_MAGIC_STR __STRBUF_STR_MAGIC_STR
|
||||
|
|
|
@ -14,6 +14,38 @@
|
|||
* @cond LOCAL
|
||||
*/
|
||||
|
||||
#ifdef _STRBUF_DATA_TYPE
|
||||
# undef _STRBUF_DATA_TYPE
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_CSIZE
|
||||
# undef _STRBUF_CSIZE
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_STRUCT_NAME
|
||||
# undef _STRBUF_STRUCT_NAME
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_STRLEN_FUNC
|
||||
# undef _STRBUF_STRLEN_FUNC
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_STRESCAPE_FUNC
|
||||
# undef _STRBUF_STRESCAPE_FUNC
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_MAGIC
|
||||
# undef _STRBUF_MAGIC
|
||||
#endif
|
||||
|
||||
#ifdef _STRBUF_MAGIC_STR
|
||||
# undef _STRBUF_MAGIC_STR
|
||||
#endif
|
||||
|
||||
#ifdef _FUNC_EXPAND
|
||||
# undef _FUNC_EXPAND
|
||||
#endif
|
||||
|
||||
#define _STRBUF_DATA_TYPE Eina_Unicode
|
||||
#define _STRBUF_CSIZE sizeof(_STRBUF_DATA_TYPE)
|
||||
#define _STRBUF_STRUCT_NAME Eina_UStrbuf
|
||||
|
|
Loading…
Reference in New Issue