diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/eina/src/lib/eina_ustrbuf.c | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/eina/src/lib/eina_ustrbuf.c')
-rw-r--r-- | libraries/eina/src/lib/eina_ustrbuf.c | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/libraries/eina/src/lib/eina_ustrbuf.c b/libraries/eina/src/lib/eina_ustrbuf.c new file mode 100644 index 0000000..7c1c2db --- /dev/null +++ b/libraries/eina/src/lib/eina_ustrbuf.c | |||
@@ -0,0 +1,74 @@ | |||
1 | #ifdef HAVE_CONFIG_H | ||
2 | # include "config.h" | ||
3 | #endif | ||
4 | |||
5 | #include "eina_strbuf_common.h" | ||
6 | #include "eina_unicode.h" | ||
7 | #include "eina_ustrbuf.h" | ||
8 | |||
9 | /*============================================================================* | ||
10 | * Local * | ||
11 | *============================================================================*/ | ||
12 | |||
13 | /** | ||
14 | * @cond LOCAL | ||
15 | */ | ||
16 | |||
17 | #ifdef _STRBUF_DATA_TYPE | ||
18 | # undef _STRBUF_DATA_TYPE | ||
19 | #endif | ||
20 | |||
21 | #ifdef _STRBUF_CSIZE | ||
22 | # undef _STRBUF_CSIZE | ||
23 | #endif | ||
24 | |||
25 | #ifdef _STRBUF_STRUCT_NAME | ||
26 | # undef _STRBUF_STRUCT_NAME | ||
27 | #endif | ||
28 | |||
29 | #ifdef _STRBUF_STRLEN_FUNC | ||
30 | # undef _STRBUF_STRLEN_FUNC | ||
31 | #endif | ||
32 | |||
33 | #ifdef _STRBUF_STRESCAPE_FUNC | ||
34 | # undef _STRBUF_STRESCAPE_FUNC | ||
35 | #endif | ||
36 | |||
37 | #ifdef _STRBUF_MAGIC | ||
38 | # undef _STRBUF_MAGIC | ||
39 | #endif | ||
40 | |||
41 | #ifdef _STRBUF_MAGIC_STR | ||
42 | # undef _STRBUF_MAGIC_STR | ||
43 | #endif | ||
44 | |||
45 | #ifdef _FUNC_EXPAND | ||
46 | # undef _FUNC_EXPAND | ||
47 | #endif | ||
48 | |||
49 | #define _STRBUF_DATA_TYPE Eina_Unicode | ||
50 | #define _STRBUF_CSIZE sizeof(_STRBUF_DATA_TYPE) | ||
51 | #define _STRBUF_STRUCT_NAME Eina_UStrbuf | ||
52 | #define _STRBUF_STRLEN_FUNC(x) eina_unicode_strlen(x) | ||
53 | #define _STRBUF_STRESCAPE_FUNC(x) eina_unicode_escape(x) | ||
54 | #define _STRBUF_MAGIC EINA_MAGIC_USTRBUF | ||
55 | #define _STRBUF_MAGIC_STR __USTRBUF_MAGIC_STR | ||
56 | static const char __USTRBUF_MAGIC_STR[] = "Eina UStrbuf"; | ||
57 | |||
58 | #define _FUNC_EXPAND(y) eina_ustrbuf_ ## y | ||
59 | |||
60 | /** | ||
61 | * @endcond | ||
62 | */ | ||
63 | |||
64 | |||
65 | /*============================================================================* | ||
66 | * Global * | ||
67 | *============================================================================*/ | ||
68 | |||
69 | |||
70 | /*============================================================================* | ||
71 | * API * | ||
72 | *============================================================================*/ | ||
73 | |||
74 | #include "eina_strbuf_template_c.x" | ||