Remove macro provided by Eina.

SVN revision: 36863
This commit is contained in:
Cedric BAIL 2008-10-20 16:34:59 +00:00
parent e9ddcdd311
commit 02bf306fdd
5 changed files with 9 additions and 34 deletions

View File

@ -17,6 +17,8 @@
#include <limits.h>
#include <dirent.h>
#include <eina_types.h>
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
@ -54,12 +56,6 @@
# endif
#endif
#if HAVE___ATTRIBUTE__
# define __UNUSED__ __attribute__((unused))
#else
# define __UNUSED__
#endif
#ifndef PATH_MAX
# define PATH_MAX 4096
#endif

View File

@ -3,11 +3,7 @@
#include "config.h"
#if HAVE___ATTRIBUTE__
#define __UNUSED__ __attribute__((unused))
#else
#define __UNUSED__
#endif
#include <eina_types.h>
#define IF_FREE(x) do { if (x) free(x); x = NULL; } while (0);
#define NEW(x, c) calloc(c, sizeof(x))

View File

@ -29,10 +29,10 @@
#include <alloca.h>
#endif
#include <Eina.h>
#include <Ecore.h>
#include <Ecore_File.h>
#include <Ecore_Str.h>
#include <eina_stringshare.h>
#include "efreet_xml.h"
#include "efreet_ini.h"
@ -99,16 +99,6 @@
(x) = NULL; \
} while (0)
/**
* @def __UNUSED__
* A flag to mark a function parameter as unused
*/
#if HAVE___ATTRIBUTE__
#define __UNUSED__ __attribute__((unused))
#else
#define __UNUSED__
#endif
#ifndef PATH_MAX
/**
* @def PATH_MAX

View File

@ -35,15 +35,12 @@
#include <stdarg.h>
#include <stdio.h>
#include <setjmp.h>
#include <eina_types.h>
#include "embryo_cc_osdefs.h"
#include "embryo_cc_amx.h"
#if HAVE___ATTRIBUTE__
#define __UNUSED__ __attribute__((unused))
#else
#define __UNUSED__
#endif
/* Note: the "cell" and "ucell" types are defined in AMX.H */
#define PUBLIC_CHAR '@' /* character that defines a function "public" */

View File

@ -30,6 +30,8 @@ extern "C"
void *alloca (size_t);
#endif
#include <eina_types.h>
#include "Embryo.h"
#ifdef __GNUC__
@ -39,12 +41,6 @@ void *alloca (size_t);
# endif
#endif
#if HAVE___ATTRIBUTE__
#define __UNUSED__ __attribute__((unused))
#else
#define __UNUSED__
#endif
typedef enum _Embryo_Opcode Embryo_Opcode;
enum _Embryo_Opcode