[ekg2-commit] ekg2: scripts.c (HEAD) scripts.h (HEAD) [darkjames]

CVS commit cvs w toxygen.net
Czw, 3 Maj 2007, 16:41:32 CEST


Module name:	ekg2
Changes by:	darkjames	2007-05-03 16:41:29

Modified files:
	scripts.c scripts.h

Log message:
mark some script list_t static.

Index: scripts.c
===================================================================
RCS file: /home/cvs/ekg2/ekg/scripts.c,v
diff -d -u -r1.40 -r1.41
--- scripts.c	3 May 2007 14:10:28 -0000	1.40
+++ scripts.c	3 May 2007 14:41:29 -0000	1.41
@@ -31,14 +31,14 @@
  */
 
 list_t	scripts;
-list_t	script_timers;
-list_t	script_plugins;
-list_t	script_vars;
-list_t	script_queries;
-list_t	script_commands;
-list_t	script_watches;
 list_t	scriptlang;
 
+static list_t script_timers;
+static list_t script_plugins;
+static list_t script_vars;
+static list_t script_queries;
+static list_t script_commands;
+static list_t script_watches;
 
 static COMMAND(script_command_handlers);
 static TIMER(script_timer_handlers);

Index: scripts.h
===================================================================
RCS file: /home/cvs/ekg2/ekg/scripts.h,v
diff -d -u -r1.18 -r1.19
--- scripts.h	3 May 2007 14:03:12 -0000	1.18
+++ scripts.h	3 May 2007 14:41:29 -0000	1.19
@@ -36,14 +36,12 @@
 	int 		removed;
 	void 		*private;
 } script_timer_t; 
-extern list_t 		script_timers;
 
 typedef struct {
 	script_t        *scr;
 	plugin_t        *self;
 	void            *private;
 } script_plugin_t;
-extern list_t          script_plugins;
 
 typedef struct {
 	script_t 	*scr;
@@ -53,7 +51,6 @@
 	char 		*value;
 	void 		*private;
 } script_var_t; 
-extern list_t 		script_vars;
 
 typedef struct {
 	script_t 	*scr;
@@ -62,14 +59,12 @@
 	int             argv_type[MAX_ARGS];
 	void 		*private;
 } script_query_t; 
-extern list_t 		script_queries;
 
 typedef struct {
 	script_t 	*scr;
 	command_t	*self;
 	void 		*private; 
 } script_command_t;
-extern list_t 		script_commands;
 
 typedef struct {
 	script_t 	*scr;
@@ -78,7 +73,6 @@
 	void 		*data;
 	void 		*private;
 } script_watch_t;
-extern list_t 		script_watches;
 
 typedef int (scriptlang_initialize_t)();
 typedef int (scriptlang_finalize_t)();


Więcej informacji o liście dyskusyjnej ekg2-commit