]> code.delx.au - gnu-emacs/commitdiff
Move IF_LINT from lisp.h to conf_post.h
authorGlenn Morris <rgm@gnu.org>
Fri, 10 Aug 2012 18:23:45 +0000 (14:23 -0400)
committerGlenn Morris <rgm@gnu.org>
Fri, 10 Aug 2012 18:23:45 +0000 (14:23 -0400)
* src/conf_post.h (IF_LINT, lint_assume): Move here from lisp.h.
* src/lisp.h (IF_LINT, lint_assume): Move to conf_post.h.

* lib-src/make-docfile.c (IF_LINT):
* lib-src/emacsclient.c (IF_LINT): Remove (in config.h now).

lib-src/ChangeLog
lib-src/emacsclient.c
lib-src/make-docfile.c
src/ChangeLog
src/conf_post.h
src/lisp.h

index f3946f1f6c9634c4ab5bd2074c33e3ca1e38e061..98a7b2529b98f10116e19ca84e149aa237a30c58 100644 (file)
@@ -1,5 +1,8 @@
 2012-08-10  Glenn Morris  <rgm@gnu.org>
 
+       * make-docfile.c (IF_LINT):
+       * emacsclient.c (IF_LINT): Remove (in config.h now).
+
        * make-docfile.c (main):
        (fopen) [!WINDOWSNT]:
        (chdir) [!DOS_NT]: No more need to undef.
index ef9bc9c6afd2a0922ec592e7ffbb9623b0da2385..20afe1cad117bc5382fb4c4be97bff330535a41d 100644 (file)
@@ -113,13 +113,6 @@ char *(getcwd) (char *, size_t);
 /* Additional space when allocating buffers for filenames, etc.  */
 #define EXTRA_SPACE 100
 
-/* Use this to suppress gcc's `...may be used before initialized' warnings. */
-#ifdef lint
-# define IF_LINT(Code) Code
-#else
-# define IF_LINT(Code) /* empty */
-#endif
-
 #ifdef min
 #undef min
 #endif
index 627f4639aaad58530d8b935cc5b124462b4e85d0..dafb7c0afd9d60d9444b1a9c811d351e10b6af8d 100644 (file)
@@ -63,13 +63,6 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 #define READ_BINARY "r"
 #endif /* not DOS_NT */
 
-/* Use this to suppress gcc's `...may be used before initialized' warnings.  */
-#ifdef lint
-# define IF_LINT(Code) Code
-#else
-# define IF_LINT(Code) /* empty */
-#endif
-
 static int scan_file (char *filename);
 static int scan_lisp_file (const char *filename, const char *mode);
 static int scan_c_file (char *filename, const char *mode);
index 82b761a29c069a76fbcfbd57830c45662edfdac4..3b88f5c94e9c021af1beb53823241917f872ed72 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-10  Glenn Morris  <rgm@gnu.org>
+
+       * conf_post.h (IF_LINT, lint_assume): Move here from lisp.h.
+       * lisp.h (IF_LINT, lint_assume): Move to conf_post.h.
+
 2012-08-10  Dmitry Antipov  <dmantipov@yandex.ru>
 
        Fix last change to allow compilation with low optimization levels.
index e935940e54ae36c94500c83ec9cf3ebfd92648da..ead7298e98d573528db1cb911a6237eb762640eb 100644 (file)
@@ -218,4 +218,16 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
 #define INLINE_HEADER_BEGIN _GL_INLINE_HEADER_BEGIN
 #define INLINE_HEADER_END _GL_INLINE_HEADER_END
 
+/* Use this to suppress gcc's `...may be used before initialized' warnings. */
+#ifdef lint
+/* Use CODE only if lint checking is in effect.  */
+# define IF_LINT(Code) Code
+/* Assume that the expression COND is true.  This differs in intent
+   from 'assert', as it is a message from the programmer to the compiler.  */
+# define lint_assume(cond) ((cond) ? (void) 0 : abort ())
+#else
+# define IF_LINT(Code) /* empty */
+# define lint_assume(cond) ((void) (0 && (cond)))
+#endif
+
 /* conf_post.h ends here */
index e23093f56c98c1f23f8831dca74f2269760854ee..3dbea6e0f720a5a69efedf329717a4bf90c1f459 100644 (file)
@@ -3418,21 +3418,6 @@ extern char *egetenv (const char *);
 /* Set up the name of the machine we're running on.  */
 extern void init_system_name (void);
 
-/* Use this to suppress gcc's warnings.  */
-#ifdef lint
-
-/* Use CODE only if lint checking is in effect.  */
-# define IF_LINT(Code) Code
-
-/* Assume that the expression COND is true.  This differs in intent
-   from 'assert', as it is a message from the programmer to the compiler.  */
-# define lint_assume(cond) ((cond) ? (void) 0 : abort ())
-
-#else
-# define IF_LINT(Code) /* empty */
-# define lint_assume(cond) ((void) (0 && (cond)))
-#endif
-
 /* We used to use `abs', but that clashes with system headers on some
    platforms, and using a name reserved by Standard C is a bad idea
    anyway.  */