-/* $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
*
*
*
* $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
*
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);
-/* $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
*
*
*
* $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
*
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 */
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