[Gnucash-changes] Add comment about potentially missing const in
function declaration
Christian Stimming
cstim at cvs.gnucash.org
Mon Jan 10 16:34:41 EST 2005
Log Message:
-----------
Add comment about potentially missing const in function declaration
Modified Files:
--------------
gnucash/src/gnc-module:
gnc-module.h
Revision Data
-------------
Index: gnc-module.h
===================================================================
RCS file: /home/cvs/cvsroot/gnucash/src/gnc-module/gnc-module.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -Lsrc/gnc-module/gnc-module.h -Lsrc/gnc-module/gnc-module.h -u -r1.4 -r1.5
--- src/gnc-module/gnc-module.h
+++ src/gnc-module/gnc-module.h
@@ -35,7 +35,12 @@
GList * gnc_module_system_modinfo(void);
/* load and unload a module. gnc_module_system_init() must be called
- * before loading and unloading. */
+ * before loading and unloading.
+ *
+ * Note/FIXME: There seems to be no real reason for why the argument
+ * module_name is not a const gchar?! It certainly should be const
+ * (because of passing string literals), and from a quick glance it is
+ * also only used in a const way. */
GNCModule gnc_module_load(gchar * module_name, gint interface);
GNCModule gnc_module_load_optional(gchar * module_name, gint interface);
int gnc_module_unload(GNCModule mod);
More information about the gnucash-changes
mailing list