Remove ecore_strings and switch to eina_stringshare.

SVN revision: 36675
This commit is contained in:
Cedric BAIL 2008-10-15 14:45:53 +00:00
parent 1cec65e922
commit 1774413b17
4 changed files with 11 additions and 16 deletions

View File

@ -5,7 +5,7 @@ includedir=@includedir@
Name: ecore
Description: Ecore event abstraction library
Requires:
Requires: eina-0
Version: @VERSION@
Libs: -L${libdir} -lecore
Libs.private: -lm

View File

@ -16,6 +16,7 @@ AM_CPPFLAGS = \
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
@EINA_CFLAGS@ \
@EET_CFLAGS@
bin_PROGRAMS = $(ECORE_CONFIG_PROG)

View File

@ -30,6 +30,8 @@
/* we need this for size_t */
#include <stddef.h>
#include <Eina.h>
/**
* @file Ecore_Data.h
* @brief Contains threading, list, hash, debugging and tree functions.
@ -387,20 +389,13 @@ extern "C" {
EAPI void *ecore_sheap_item(Ecore_Sheap *heap, int i);
typedef struct _ecore_string Ecore_String;
struct _ecore_string {
char *string;
int references;
};
EAPI int ecore_string_init(void);
EAPI void ecore_string_shutdown(void);
EAPI const char *ecore_string_instance(const char *string);
EAPI void ecore_string_release(const char *string);
EAPI void ecore_string_hash_dump_graph(void);
EAPI void ecore_string_hash_dump_stats(void);
#define ecore_string_init eina_stringshare_init
#define ecore_string_shutdown eina_stringshare_shutdown
#define ecore_string_instance eina_stringshare_add
#define ecore_string_release eina_stringshare_del
#define ecore_string_hash_dump_graph (void)0
#define ecore_string_hash_dump_stats (void)0
typedef struct _Ecore_Tree_Node Ecore_Tree_Node;
# define ECORE_TREE_NODE(object) ((Ecore_Tree_Node *)object)

View File

@ -26,7 +26,6 @@ ecore_sheap.c \
ecore_signal.c \
ecore_str.c \
ecore_strbuf.c \
ecore_strings.c \
ecore_time.c \
ecore_timer.c \
ecore_tree.c \