summaryrefslogtreecommitdiff
path: root/src/Makefile_Eina.am
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-01-11 15:34:15 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-01-17 14:20:55 +0900
commit4550b4cf832b256d6bca49a5e536c2327bbd5e8c (patch)
treefc8a78df24a6b3e108bd80609e13836c9fd106e1 /src/Makefile_Eina.am
parent4f5e64fdea88ba7362d77a6d42ea22cf13d3323f (diff)
eina: Introduce Eina_Slstr for short-lived strings
Built on top of the new 'postponed' free queue, the short-lived strings API allows users to return new strings without caring about freeing them. EFL main loop will do this automatically for them you at a later point in time (at the end of an iteration). The APIs provided will either duplicate (copy) or more generally steal an existing string (char *, stringshare, tmpstr, strbuf), taking ownership of it and controling its lifetime. Those strings can then be safely returned by an API. From a user point of view, those strings must be considered like simple const char *, ie. no need to free() them and their validity is limited to the local scope. There is no function to remove such a string from the freeq. The short lived strings API is not thread-safe: do not send a short-lived object from one thread to another. @feature
Diffstat (limited to 'src/Makefile_Eina.am')
-rw-r--r--src/Makefile_Eina.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Makefile_Eina.am b/src/Makefile_Eina.am
index 56b1959..ae3d94b 100644
--- a/src/Makefile_Eina.am
+++ b/src/Makefile_Eina.am
@@ -103,7 +103,8 @@ lib/eina/eina_inline_safepointer.x \
103lib/eina/eina_slice.h \ 103lib/eina/eina_slice.h \
104lib/eina/eina_inline_slice.x \ 104lib/eina/eina_inline_slice.x \
105lib/eina/eina_inline_modinfo.x \ 105lib/eina/eina_inline_modinfo.x \
106lib/eina/eina_freeq.h 106lib/eina/eina_freeq.h \
107lib/eina/eina_slstr.h
107 108
108 109
109lib_eina_libeina_la_SOURCES = \ 110lib_eina_libeina_la_SOURCES = \
@@ -177,7 +178,8 @@ lib/eina/eina_strbuf_common.h \
177lib/eina/eina_quaternion.c \ 178lib/eina/eina_quaternion.c \
178lib/eina/eina_bezier.c \ 179lib/eina/eina_bezier.c \
179lib/eina/eina_safepointer.c \ 180lib/eina/eina_safepointer.c \
180lib/eina/eina_freeq.c 181lib/eina/eina_freeq.c \
182lib/eina/eina_slstr.c
181 183
182 184
183if HAVE_WIN32 185if HAVE_WIN32
@@ -348,7 +350,8 @@ tests/eina/eina_test_vector.c \
348tests/eina/eina_test_bezier.c \ 350tests/eina/eina_test_bezier.c \
349tests/eina/eina_test_safepointer.c \ 351tests/eina/eina_test_safepointer.c \
350tests/eina/eina_test_slice.c \ 352tests/eina/eina_test_slice.c \
351tests/eina/eina_test_freeq.c 353tests/eina/eina_test_freeq.c \
354tests/eina/eina_test_slstr.c
352 355
353tests_eina_eina_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \ 356tests_eina_eina_suite_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
354-DTESTS_WD=\"`pwd`\" \ 357-DTESTS_WD=\"`pwd`\" \