forked from enlightenment/efl
Like the british government I will give privatisation a shot ;)
also set debug depending on ECORE_CONFIG_DEBUG environment SVN revision: 10360
This commit is contained in:
parent
1b1fd08d62
commit
1d3f35c515
|
@ -20,18 +20,6 @@
|
||||||
/* FIXME: this should only be included if evas is present */
|
/* FIXME: this should only be included if evas is present */
|
||||||
# include <Evas.h>
|
# include <Evas.h>
|
||||||
|
|
||||||
/* debug */
|
|
||||||
# define DEBUG 1
|
|
||||||
# undef ECORE_CONFIG_DEBUG
|
|
||||||
|
|
||||||
# ifdef ECORE_CONFIG_DEBUG
|
|
||||||
# define D(fmt,args...) do { if(DEBUG>=0) fprintf(stderr,fmt,## args); } while(0);
|
|
||||||
# define E(lvl,args...) do { if(DEBUG>=(lvl)) fprintf(stderr,## args); } while(0)
|
|
||||||
# else
|
|
||||||
# define D(msg,args...)
|
|
||||||
# define E(lvl,args...) do { } while(0)
|
|
||||||
# endif
|
|
||||||
|
|
||||||
# define ECORE_CONFIG_GLOBAL_ID "_system"
|
# define ECORE_CONFIG_GLOBAL_ID "_system"
|
||||||
|
|
||||||
/* structures */
|
/* structures */
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
#include "Ecore_Config.h"
|
#include "Ecore_Config.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "ecore_config_private.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -1256,6 +1257,12 @@ ecore_config_init(char *name)
|
||||||
char *buf, *p, *path;
|
char *buf, *p, *path;
|
||||||
Ecore_Config_Prop *sys;
|
Ecore_Config_Prop *sys;
|
||||||
|
|
||||||
|
DEBUG = -1;
|
||||||
|
if ((p = getenv("ECORE_CONFIG_DEBUG")) && strlen(p) > 0)
|
||||||
|
{
|
||||||
|
DEBUG = atoi(p);
|
||||||
|
}
|
||||||
|
|
||||||
__ecore_config_app_name = strdup(name);
|
__ecore_config_app_name = strdup(name);
|
||||||
__ecore_config_server_local = ecore_config_init_local(name);
|
__ecore_config_server_local = ecore_config_init_local(name);
|
||||||
if (!__ecore_config_server_local)
|
if (!__ecore_config_server_local)
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
#ifndef _ECORE_CONFIG_PRIVATE_H
|
||||||
|
# define _ECORE_CONFIG_PRIVATE_H
|
||||||
|
|
||||||
|
/* debug */
|
||||||
|
int DEBUG;
|
||||||
|
# define D(fmt,args...) do { if(DEBUG>=0) fprintf(stderr,fmt,## args); } while(0);
|
||||||
|
# define E(lvl,args...) do { if(DEBUG>=(lvl)) fprintf(stderr,## args); } while(0)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif
|
|
@ -1,6 +1,8 @@
|
||||||
#include <Edb.h>
|
#include <Edb.h>
|
||||||
#include "Ecore_Config.h"
|
#include "Ecore_Config.h"
|
||||||
|
|
||||||
|
#include "ecore_config_private.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -3,6 +3,8 @@
|
||||||
#include "ipc.h"
|
#include "ipc.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#include "ecore_config_private.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@ -56,6 +58,8 @@ _ecore_config_ipc_global_prop_list(Ecore_Config_Server * srv, const long serial)
|
||||||
int f;
|
int f;
|
||||||
char *buf, *p, *type, *data;
|
char *buf, *p, *type, *data;
|
||||||
|
|
||||||
|
db = NULL;
|
||||||
|
buf = NULL;
|
||||||
s = estring_new(8192);
|
s = estring_new(8192);
|
||||||
f = 0;
|
f = 0;
|
||||||
if ((p = getenv("HOME")))
|
if ((p = getenv("HOME")))
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
#include "ipc.h"
|
#include "ipc.h"
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
#include "ecore_config_private.h"
|
||||||
|
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
#include "Ecore_Config.h"
|
#include "Ecore_Config.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
#include "ecore_config_private.h"
|
||||||
|
|
||||||
#define CHUNKLEN 4096
|
#define CHUNKLEN 4096
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
Loading…
Reference in New Issue