aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog7
-rw-r--r--lib-src/emacsclient.c4
-rw-r--r--lib-src/make-docfile.c13
3 files changed, 19 insertions, 5 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index ba801f024db..1fc9fcdb1f5 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,10 @@
12014-06-17 Paul Eggert <eggert@cs.ucla.edu>
2
3 Omit redundant extern decls.
4 * emacsclient.c (getenv): Remove decl.
5 * make-docfile.c (write_globals): Add ATTRIBUTE_CONST for
6 Fbyteorder, Ftool_bar_height, Fmax_char, Fidentity.
7
12014-06-15 Glenn Morris <rgm@gnu.org> 82014-06-15 Glenn Morris <rgm@gnu.org>
2 9
3 * Makefile.in (LDFLAGS): Explicitly set via configure. 10 * Makefile.in (LDFLAGS): Explicitly set via configure.
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index a1177f54576..ddc1b6de5e3 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -82,10 +82,6 @@ char *w32_getenv (char *);
82#include <signal.h> 82#include <signal.h>
83#include <errno.h> 83#include <errno.h>
84 84
85
86
87char *getenv (const char *);
88
89#ifndef VERSION 85#ifndef VERSION
90#define VERSION "unspecified" 86#define VERSION "unspecified"
91#endif 87#endif
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 2eb2413815e..15ffa138b51 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -665,6 +665,7 @@ write_globals (void)
665 || strcmp (globals[i].name, "Fexit_recursive_edit") == 0 665 || strcmp (globals[i].name, "Fexit_recursive_edit") == 0
666 || strcmp (globals[i].name, "Fabort_recursive_edit") == 0) 666 || strcmp (globals[i].name, "Fabort_recursive_edit") == 0)
667 fprintf (outfile, "_Noreturn "); 667 fprintf (outfile, "_Noreturn ");
668
668 fprintf (outfile, "EXFUN (%s, ", globals[i].name); 669 fprintf (outfile, "EXFUN (%s, ", globals[i].name);
669 if (globals[i].value == -1) 670 if (globals[i].value == -1)
670 fprintf (outfile, "MANY"); 671 fprintf (outfile, "MANY");
@@ -672,7 +673,17 @@ write_globals (void)
672 fprintf (outfile, "UNEVALLED"); 673 fprintf (outfile, "UNEVALLED");
673 else 674 else
674 fprintf (outfile, "%d", globals[i].value); 675 fprintf (outfile, "%d", globals[i].value);
675 fprintf (outfile, ");\n"); 676 fprintf (outfile, ")");
677
678 /* It would be nice to have a cleaner way to deal with these
679 special hacks, too. */
680 if (strcmp (globals[i].name, "Fbyteorder") == 0
681 || strcmp (globals[i].name, "Ftool_bar_height") == 0
682 || strcmp (globals[i].name, "Fmax_char") == 0
683 || strcmp (globals[i].name, "Fidentity") == 0)
684 fprintf (outfile, " ATTRIBUTE_CONST");
685
686 fprintf (outfile, ";\n");
676 } 687 }
677 688
678 while (i + 1 < num_globals 689 while (i + 1 < num_globals