WIN32_LIBS=""
create_shared_lib=""
case "$host_os" in
- mingw|mingw32)
+ mingw|mingw32*|cegcc)
PKG_CHECK_MODULES([EVIL], [evil])
AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
dnl needed for correct definition of EAPI
AC_DEFINE(EFL_EET_BUILD, 1, [Define to mention that eet is built])
- WIN32_LIBS="-lws2_32"
- create_shared_lib="-no-undefined "
- ;;
- cegcc)
- PKG_CHECK_MODULES([EVIL], [evil])
- AC_DEFINE(HAVE_EVIL, 1, [Set to 1 if evil package is installed])
- dnl needed for correct definition of EAPI
- AC_DEFINE(EFL_EET_BUILD, 1, [Define to mention that eet is built])
- WIN32_CFLAGS="-mwin32"
- WIN32_LIBS="-lws2"
+ if test "$host_os" = "cegcc" ; then
+ WIN32_CFLAGS="-mwin32"
+ WIN32_LIBS="-lws2"
+ else
+ WIN32_LIBS="-lws2_32"
+ fi
create_shared_lib="-no-undefined "
;;
esac
int i, num;
char **list;
Eet_File *ef;
-
+
ef = eet_open(file, EET_FILE_MODE_READ);
if (!ef)
{
void *data;
int size = 0;
FILE *f;
-
+
ef = eet_open(file, EET_FILE_MODE_READ);
if (!ef)
{
void *data;
int size = 0;
FILE *f;
-
+
ef = eet_open(file, EET_FILE_MODE_READ);
if (!ef)
{
void *data;
int size = 0;
FILE *f;
-
+
ef = eet_open(file, EET_FILE_MODE_READ_WRITE);
if (!ef)
ef = eet_open(file, EET_FILE_MODE_WRITE);
void *data;
int size = 0;
FILE *f;
-
+
ef = eet_open(file, EET_FILE_MODE_READ_WRITE);
if (!ef)
ef = eet_open(file, EET_FILE_MODE_WRITE);
do_eet_remove(const char *file, const char *key)
{
Eet_File *ef;
-
+
ef = eet_open(file, EET_FILE_MODE_READ_WRITE);
if (!ef)
{
* Return a handle to the shared string dictionary of the Eet file
* @param ef A valid eet file handle.
* @return A handle to the dictionary of the file
- *
+ *
* This function returns a handle to the dictionary of an Eet file whose
* handle is @p ef, if a dictionary exists. NULL is returned otherwise or
* if the file handle is known to be invalid.
*/
EAPI Eet_Dictionary *eet_dictionary_get(Eet_File *ef);
-
+
/**
* Check if a given string comes from a given dictionary
* @param ed A valid dictionary handle
* @param string A valid 0 byte terminated C string
* @return 1 if it is in the dictionary, 0 otherwise
- *
+ *
* This checks the given dictionary to see if the given string is actually
* inside that dictionary (i.e. comes from it) and returns 1 if it does.
* If the dictionary handle is invlide, the string is NULL or the string is
if (eet_test_close((ef->data == (void *)-1) || (ef->data == NULL), ef))
return NULL;
-
+
if (eet_test_close(ef->data_size < sizeof(int) * 3, ef))
return NULL;
eet_close(ef);
break;
}
-
+
return NULL;
}