* gfilenotify.c (globals_of_gfilenotify): New function.
(syms_of_gfilenotify): Move global initialization there.
* lisp.h (globals_of_gfilenotify) [HAVE_GFILENOTIFY]: Add prototype.
+2013-06-05 Michael Albinus <michael.albinus@gmx.de>
+
+ * emacs.c (main) [HAVE_GFILENOTIFY]: Call globals_of_gfilenotify.
+
+ * gfilenotify.c (globals_of_gfilenotify): New function.
+ (syms_of_gfilenotify): Move global initialization there.
+
+ * lisp.h (globals_of_gfilenotify) [HAVE_GFILENOTIFY]: Add prototype.
+
2013-06-05 Stefan Monnier <monnier@iro.umontreal.ca>
* keymap.c (Fcurrent_active_maps, Fdescribe_buffer_bindings):
tzset ();
#endif /* MSDOS */
+#ifdef HAVE_GFILENOTIFY
+ globals_of_gfilenotify ();
+#endif
+
#ifdef WINDOWSNT
globals_of_w32 ();
#ifdef HAVE_W32NOTIFY
\f
void
-syms_of_gfilenotify (void)
+globals_of_gfilenotify (void)
{
-
g_type_init ();
+ watch_list = Qnil;
+}
+
+void
+syms_of_gfilenotify (void)
+{
DEFSYM (Qgfile_add_watch, "gfile-add-watch");
defsubr (&Sgfile_add_watch);
DEFSYM (Qunmounted, "unmounted");
DEFSYM (Qmoved, "moved");
- /* Initialize internal objects. */
- watch_list = Qnil;
staticpro (&watch_list);
Fprovide (intern_c_string ("gfilenotify"), Qnil);
/* Defined in gfilenotify.c */
#ifdef HAVE_GFILENOTIFY
+extern void globals_of_gfilenotify (void);
extern void syms_of_gfilenotify (void);
#endif