]> git.webhop.me Git - lcd4linux.git/commitdiff
[lcd4linux @ 2006-07-30 11:29:02 by lfcorreia]
authorlfcorreia <lfcorreia@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 30 Jul 2006 11:29:02 +0000 (11:29 +0000)
committerlfcorreia <lfcorreia@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Sun, 30 Jul 2006 11:29:02 +0000 (11:29 +0000)
Make changes suggested by Michael, only one init function is needed

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@679 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

plugin.c
plugin_string.c

index 8070b0a6d1faf7e1fe09740488dd3016b076aef7..b2f924bfa24164b1099994636a1be82765b54b06 100644 (file)
--- a/plugin.c
+++ b/plugin.c
@@ -1,4 +1,4 @@
-/* $Id: plugin.c,v 1.42 2006/07/29 21:12:31 lfcorreia Exp $
+/* $Id: plugin.c,v 1.43 2006/07/30 11:29:02 lfcorreia Exp $
  *
  * plugin handler for the Evaluator
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: plugin.c,v $
+ * Revision 1.43  2006/07/30 11:29:02  lfcorreia
+ * Make changes suggested by Michael, only one init function is needed
+ *
  * Revision 1.42  2006/07/29 21:12:31  lfcorreia
  * Add UPPERCASE string plugin function
  *
@@ -221,8 +224,6 @@ int plugin_init_math(void);
 void plugin_exit_math(void);
 int plugin_init_string(void);
 void plugin_exit_string(void);
-int plugin_init_strupper(void);
-void plugin_exit_strupper(void);
 int plugin_init_test(void);
 void plugin_exit_test(void);
 int plugin_init_time(void);
index 464d9e899af5b52fab228986f9cb42ab83d329ab..7684f678fda807d3d08307ef6dafba940bd31706 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: plugin_string.c,v 1.9 2006/07/29 21:12:31 lfcorreia Exp $
+/* $Id: plugin_string.c,v 1.10 2006/07/30 11:29:02 lfcorreia Exp $
  *
  * string plugin
  *
@@ -23,6 +23,9 @@
  *
  *
  * $Log: plugin_string.c,v $
+ * Revision 1.10  2006/07/30 11:29:02  lfcorreia
+ * Make changes suggested by Michael, only one init function is needed
+ *
  * Revision 1.9  2006/07/29 21:12:31  lfcorreia
  * Add UPPERCASE string plugin function
  *
@@ -85,21 +88,6 @@ static void my_strlen(RESULT * result, RESULT * arg1)
     SetResult(&result, R_NUMBER, &value);
 }
 
-
-int plugin_init_string(void)
-{
-
-    /* register some basic string functions */
-    AddFunction("strlen", 1, my_strlen);
-
-    return 0;
-}
-
-void plugin_exit_string(void)
-{
-    /* empty */
-}
-
 /* 'upcase' function (shamelessly stolen from plugin_sample.c)*/
 /* takes one argument, a string */
 /* returns the string in upper case letters */
@@ -127,16 +115,19 @@ static void my_upcase(RESULT * result, RESULT * arg1)
     free(value);
 }
 
-int plugin_init_strupper(void)
+int plugin_init_string(void)
 {
 
+    /* register some basic string functions */
+    AddFunction("strlen", 1, my_strlen);
+
     /* register my UPPERCASE transforming function */
     AddFunction("strupper", 1, my_upcase);
 
     return 0;
 }
 
-void plugin_exit_strupper(void)
+void plugin_exit_string(void)
 {
     /* empty */
-}
+}
\ No newline at end of file