emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r109101: Remove empty and useless ini


From: Dmitry Antipov
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109101: Remove empty and useless init functions.
Date: Mon, 16 Jul 2012 08:47:31 +0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109101
committer: Dmitry Antipov <address@hidden>
branch nick: trunk
timestamp: Mon 2012-07-16 08:47:31 +0400
message:
  Remove empty and useless init functions.
  * lisp.h (init_character_once, init_fns, init_image)
  (init_filelock, init_sound): Remove prototype.
  * character.c (init_character_once): Remove.
  * filelock.c (init_filelock): Likewise.
  * fns.c (init_fns): Likewise.
  * image.c (init_image): Likewise.
  * sound.c (init_sound): Likewise.
  * emacs.c (main): Adjust accordingly.
modified:
  src/ChangeLog
  src/character.c
  src/emacs.c
  src/filelock.c
  src/fns.c
  src/image.c
  src/lisp.h
  src/sound.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-07-16 03:36:46 +0000
+++ b/src/ChangeLog     2012-07-16 04:47:31 +0000
@@ -1,5 +1,17 @@
 2012-07-16  Dmitry Antipov  <address@hidden>
 
+       Remove empty and useless init functions.
+       * lisp.h (init_character_once, init_fns, init_image)
+       (init_filelock, init_sound): Remove prototype.
+       * character.c (init_character_once): Remove.
+       * filelock.c (init_filelock): Likewise.
+       * fns.c (init_fns): Likewise.
+       * image.c (init_image): Likewise.
+       * sound.c (init_sound): Likewise.
+       * emacs.c (main): Adjust accordingly.
+
+2012-07-16  Dmitry Antipov  <address@hidden>
+
        * gtkutil.h: Tiny cleanups.
        (use_old_gtk_file_dialog): Remove useless declaration.
        (xg_uses_old_file_dialog): Add suggested const attribute.

=== modified file 'src/character.c'
--- a/src/character.c   2012-06-30 09:13:54 +0000
+++ b/src/character.c   2012-07-16 04:47:31 +0000
@@ -1010,12 +1010,6 @@
   return make_number (c);
 }
 
-
-void
-init_character_once (void)
-{
-}
-
 #ifdef emacs
 
 void

=== modified file 'src/emacs.c'
--- a/src/emacs.c       2012-07-12 23:56:39 +0000
+++ b/src/emacs.c       2012-07-16 04:47:31 +0000
@@ -1254,7 +1254,6 @@
       init_alloc_once ();
       init_obarray ();
       init_eval_once ();
-      init_character_once ();
       init_charset_once ();
       init_coding_once ();
       init_syntax_once ();     /* Create standard syntax table.  */
@@ -1307,9 +1306,6 @@
 
   init_eval ();
   init_data ();
-#ifdef CLASH_DETECTION
-  init_filelock ();
-#endif
   init_atimer ();
   running_asynch_code = 0;
 
@@ -1602,17 +1598,12 @@
   init_keyboard ();    /* This too must precede init_sys_modes.  */
   if (!noninteractive)
     init_display ();   /* Determine terminal type.  Calls init_sys_modes.  */
-  init_fns ();
   init_xdisp ();
 #ifdef HAVE_WINDOW_SYSTEM
   init_fringe ();
-  init_image ();
 #endif /* HAVE_WINDOW_SYSTEM */
   init_macros ();
   init_floatfns ();
-#ifdef HAVE_SOUND
-  init_sound ();
-#endif
   init_window ();
   init_font ();
 

=== modified file 'src/filelock.c'
--- a/src/filelock.c    2012-07-10 06:23:45 +0000
+++ b/src/filelock.c    2012-07-16 04:47:31 +0000
@@ -708,15 +708,6 @@
 
   return ret;
 }
-
-/* Initialization functions.  */
-
-void
-init_filelock (void)
-{
-  boot_time = 0;
-  boot_time_initialized = 0;
-}
 
 #endif /* CLASH_DETECTION */
 

=== modified file 'src/fns.c'
--- a/src/fns.c 2012-07-15 11:17:09 +0000
+++ b/src/fns.c 2012-07-16 04:47:31 +0000
@@ -5022,9 +5022,3 @@
   defsubr (&Ssecure_hash);
   defsubr (&Slocale_info);
 }
-
-
-void
-init_fns (void)
-{
-}

=== modified file 'src/image.c'
--- a/src/image.c       2012-07-13 12:20:07 +0000
+++ b/src/image.c       2012-07-16 04:47:31 +0000
@@ -8951,8 +8951,3 @@
 #endif
 
 }
-
-void
-init_image (void)
-{
-}

=== modified file 'src/lisp.h'
--- a/src/lisp.h        2012-07-15 11:17:09 +0000
+++ b/src/lisp.h        2012-07-16 04:47:31 +0000
@@ -2402,7 +2402,6 @@
 extern ptrdiff_t multibyte_chars_in_text (const unsigned char *, ptrdiff_t);
 extern int multibyte_char_to_unibyte (int) ATTRIBUTE_CONST;
 extern int multibyte_char_to_unibyte_safe (int) ATTRIBUTE_CONST;
-extern void init_character_once (void) ATTRIBUTE_CONST;
 extern void syms_of_character (void);
 
 /* Defined in charset.c */
@@ -2437,7 +2436,6 @@
 ptrdiff_t hash_lookup (struct Lisp_Hash_Table *, Lisp_Object, EMACS_UINT *);
 ptrdiff_t hash_put (struct Lisp_Hash_Table *, Lisp_Object, Lisp_Object,
                    EMACS_UINT);
-extern void init_fns (void) ATTRIBUTE_CONST;
 
 extern Lisp_Object substring_both (Lisp_Object, ptrdiff_t, ptrdiff_t,
                                   ptrdiff_t, ptrdiff_t);
@@ -2473,7 +2471,6 @@
 extern Lisp_Object QCconversion;
 extern int x_bitmap_mask (struct frame *, ptrdiff_t);
 extern void syms_of_image (void);
-extern void init_image (void) ATTRIBUTE_CONST;
 
 /* Defined in insdel.c */
 extern Lisp_Object Qinhibit_modification_hooks;
@@ -3162,11 +3159,9 @@
 extern void unlock_file (Lisp_Object);
 extern void unlock_buffer (struct buffer *);
 extern void syms_of_filelock (void);
-extern void init_filelock (void);
 
 /* Defined in sound.c */
 extern void syms_of_sound (void);
-extern void init_sound (void) ATTRIBUTE_CONST;
 
 /* Defined in category.c */
 extern void init_category_once (void);

=== modified file 'src/sound.c'
--- a/src/sound.c       2012-07-11 02:16:25 +0000
+++ b/src/sound.c       2012-07-16 04:47:31 +0000
@@ -1473,10 +1473,4 @@
   defsubr (&Splay_sound_internal);
 }
 
-
-void
-init_sound (void)
-{
-}
-
 #endif /* HAVE_SOUND */


reply via email to

[Prev in Thread] Current Thread [Next in Thread]