diff options
| author | Kenichi Handa | 2014-06-28 10:35:48 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2014-06-28 10:35:48 +0900 |
| commit | f036e167feaf875873636972b28a4adc12c32254 (patch) | |
| tree | 440e45ae8951f7030393b130b184f2b1882070ee /lib-src | |
| parent | 1fc00e5c9e87c88b4b253692d6ade822f6d74d3e (diff) | |
| parent | 2c4e2e6fd3096eb615504e3cfc89c588ec620f78 (diff) | |
| download | emacs-f036e167feaf875873636972b28a4adc12c32254.tar.gz emacs-f036e167feaf875873636972b28a4adc12c32254.zip | |
merge trunk
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 25 | ||||
| -rw-r--r-- | lib-src/Makefile.in | 47 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 4 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 13 |
4 files changed, 61 insertions, 28 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 06417b3254f..64a73027915 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,28 @@ | |||
| 1 | 2014-06-26 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (blessmail): Depend on lisp/mail/blessmail.el. | ||
| 4 | Use $<, $@. | ||
| 5 | (regex.o, etags${EXEEXT}, ctags${EXEEXT}, ebrowse${EXEEXT}) | ||
| 6 | (profile${EXEEXT}, make-docfile${EXEEXT}, movemail${EXEEXT}) | ||
| 7 | (pop.o, emacsclient${EXEEXT}, emacsclientw${EXEEXT}, ntlib.o) | ||
| 8 | (hexl${EXEEXT}, update-game-score${EXEEXT}, emacsclient.res): Use $<. | ||
| 9 | (ctags${EXEEXT}): Add $srcdir to dependency rather than using VPATH. | ||
| 10 | |||
| 11 | 2014-06-17 Paul Eggert <eggert@cs.ucla.edu> | ||
| 12 | |||
| 13 | Omit redundant extern decls. | ||
| 14 | * emacsclient.c (getenv): Remove decl. | ||
| 15 | * make-docfile.c (write_globals): Add ATTRIBUTE_CONST for | ||
| 16 | Fbyteorder, Ftool_bar_height, Fmax_char, Fidentity. | ||
| 17 | |||
| 18 | 2014-06-15 Glenn Morris <rgm@gnu.org> | ||
| 19 | |||
| 20 | * Makefile.in (LDFLAGS): Explicitly set via configure. | ||
| 21 | |||
| 22 | 2014-06-15 Eli Zaretskii <eliz@gnu.org> | ||
| 23 | |||
| 24 | * Makefile.in (CPPFLAGS): Define. | ||
| 25 | |||
| 1 | 2014-06-15 Glenn Morris <rgm@gnu.org> | 26 | 2014-06-15 Glenn Morris <rgm@gnu.org> |
| 2 | 27 | ||
| 3 | * Makefile.in (../lib/libgnu.a): | 28 | * Makefile.in (../lib/libgnu.a): |
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in index eb3dc026c05..7eb13f667ec 100644 --- a/lib-src/Makefile.in +++ b/lib-src/Makefile.in | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ### @configure_input@ | 1 | ### @configure_input@ |
| 2 | 2 | ||
| 3 | # Copyright (C) 1985, 1987-1988, 1993-1994, 2001-2014 Free Software | 3 | # Copyright (C) 1985, 1987-1988, 1993-1994, 2001-2014 |
| 4 | # Foundation, Inc. | 4 | # Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | # This file is part of GNU Emacs. | 6 | # This file is part of GNU Emacs. |
| 7 | 7 | ||
| @@ -28,6 +28,9 @@ EMACSOPT = -batch --no-site-file --no-site-lisp | |||
| 28 | 28 | ||
| 29 | CC=@CC@ | 29 | CC=@CC@ |
| 30 | CFLAGS=@CFLAGS@ | 30 | CFLAGS=@CFLAGS@ |
| 31 | CPPFLAGS = @CPPFLAGS@ | ||
| 32 | LDFLAGS = @LDFLAGS@ | ||
| 33 | |||
| 31 | version=@version@ | 34 | version=@version@ |
| 32 | ## Used in $archlibdir. | 35 | ## Used in $archlibdir. |
| 33 | configuration=@configuration@ | 36 | configuration=@configuration@ |
| @@ -192,6 +195,7 @@ BASE_CFLAGS = $(C_SWITCH_SYSTEM) $(C_SWITCH_MACHINE) \ | |||
| 192 | -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib | 195 | -I${srcdir} -I${srcdir}/../src -I${srcdir}/../lib |
| 193 | 196 | ||
| 194 | ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} | 197 | ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS} |
| 198 | ## Unused. | ||
| 195 | LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} | 199 | LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} |
| 196 | CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} | 200 | CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} |
| 197 | 201 | ||
| @@ -207,9 +211,9 @@ $(EXE_FILES): ../lib/libgnu.a | |||
| 207 | 211 | ||
| 208 | ## Only used if we need blessmail, but no harm in always defining. | 212 | ## Only used if we need blessmail, but no harm in always defining. |
| 209 | ## This makes the actual blessmail executable. | 213 | ## This makes the actual blessmail executable. |
| 210 | blessmail: | 214 | blessmail: $(srcdir)/../lisp/mail/blessmail.el |
| 211 | $(EMACS) $(EMACSOPT) -l $(srcdir)/../lisp/mail/blessmail.el | 215 | $(EMACS) $(EMACSOPT) -l $< |
| 212 | chmod +x blessmail | 216 | chmod +x $@ |
| 213 | 217 | ||
| 214 | ## This checks if we need to run blessmail. | 218 | ## This checks if we need to run blessmail. |
| 215 | ## Do not charge ahead and do it! Let the installer decide. | 219 | ## Do not charge ahead and do it! Let the installer decide. |
| @@ -307,7 +311,7 @@ TAGS: etags${EXEEXT} | |||
| 307 | $(MAKE) -C ../lib libgnu.a | 311 | $(MAKE) -C ../lib libgnu.a |
| 308 | 312 | ||
| 309 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h $(config_h) | 313 | regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h $(config_h) |
| 310 | ${CC} -c ${CPP_CFLAGS} ${srcdir}/../src/regex.c | 314 | ${CC} -c ${CPP_CFLAGS} $< |
| 311 | 315 | ||
| 312 | 316 | ||
| 313 | etags_deps = ${srcdir}/etags.c regex.o $(NTLIB) $(config_h) | 317 | etags_deps = ${srcdir}/etags.c regex.o $(NTLIB) $(config_h) |
| @@ -315,42 +319,41 @@ etags_cflags = -DEMACS_NAME="\"GNU Emacs\"" -DVERSION="\"${version}\"" -o $@ | |||
| 315 | etags_libs = regex.o $(LOADLIBES) $(NTLIB) | 319 | etags_libs = regex.o $(LOADLIBES) $(NTLIB) |
| 316 | 320 | ||
| 317 | etags${EXEEXT}: ${etags_deps} | 321 | etags${EXEEXT}: ${etags_deps} |
| 318 | $(CC) ${ALL_CFLAGS} $(etags_cflags) $(srcdir)/etags.c $(etags_libs) | 322 | $(CC) ${ALL_CFLAGS} $(etags_cflags) $< $(etags_libs) |
| 319 | 323 | ||
| 320 | ## ctags.c is distinct from etags.c so that parallel makes do not write two | 324 | ## ctags.c is distinct from etags.c so that parallel makes do not write two |
| 321 | ## etags.o files on top of each other. | 325 | ## etags.o files on top of each other. |
| 322 | ## FIXME? | 326 | ## FIXME? |
| 323 | ## Can't we use a wrapper that calls 'etags --ctags'? | 327 | ## Can't we use a wrapper that calls 'etags --ctags'? |
| 324 | ctags${EXEEXT}: ctags.c ${etags_deps} | 328 | ctags${EXEEXT}: ${srcdir}/ctags.c ${etags_deps} |
| 325 | $(CC) ${ALL_CFLAGS} $(etags_cflags) $(srcdir)/ctags.c $(etags_libs) | 329 | $(CC) ${ALL_CFLAGS} $(etags_cflags) $< $(etags_libs) |
| 326 | 330 | ||
| 327 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h $(NTLIB) \ | 331 | ebrowse${EXEEXT}: ${srcdir}/ebrowse.c ${srcdir}/../lib/min-max.h $(NTLIB) \ |
| 328 | $(config_h) | 332 | $(config_h) |
| 329 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ | 333 | $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" \ |
| 330 | ${srcdir}/ebrowse.c $(LOADLIBES) $(NTLIB) -o $@ | 334 | $< $(LOADLIBES) $(NTLIB) -o $@ |
| 331 | 335 | ||
| 332 | profile${EXEEXT}: ${srcdir}/profile.c $(NTLIB) $(config_h) | 336 | profile${EXEEXT}: ${srcdir}/profile.c $(NTLIB) $(config_h) |
| 333 | $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c \ | 337 | $(CC) ${ALL_CFLAGS} $< \ |
| 334 | $(LOADLIBES) $(NTLIB) $(LIB_CLOCK_GETTIME) -o $@ | 338 | $(LOADLIBES) $(NTLIB) $(LIB_CLOCK_GETTIME) -o $@ |
| 335 | 339 | ||
| 336 | make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(NTLIB) $(config_h) | 340 | make-docfile${EXEEXT}: ${srcdir}/make-docfile.c $(NTLIB) $(config_h) |
| 337 | $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) $(NTLIB) \ | 341 | $(CC) ${ALL_CFLAGS} $< $(LOADLIBES) $(NTLIB) -o $@ |
| 338 | -o $@ | ||
| 339 | 342 | ||
| 340 | movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB) $(config_h) | 343 | movemail${EXEEXT}: ${srcdir}/movemail.c pop.o $(NTLIB) $(config_h) |
| 341 | $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} ${srcdir}/movemail.c pop.o \ | 344 | $(CC) ${ALL_CFLAGS} ${MOVE_FLAGS} $< pop.o \ |
| 342 | $(LOADLIBES) $(NTLIB) $(LIBS_MOVE) -o $@ | 345 | $(LOADLIBES) $(NTLIB) $(LIBS_MOVE) -o $@ |
| 343 | 346 | ||
| 344 | pop.o: ${srcdir}/pop.c ${srcdir}/pop.h ${srcdir}/../lib/min-max.h $(config_h) | 347 | pop.o: ${srcdir}/pop.c ${srcdir}/pop.h ${srcdir}/../lib/min-max.h $(config_h) |
| 345 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c | 348 | $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} $< |
| 346 | 349 | ||
| 347 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(config_h) | 350 | emacsclient${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(config_h) |
| 348 | $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c \ | 351 | $(CC) ${ALL_CFLAGS} $< \ |
| 349 | -DVERSION="\"${version}\"" $(NTLIB) $(LOADLIBES) $(LIB_FDATASYNC) \ | 352 | -DVERSION="\"${version}\"" $(NTLIB) $(LOADLIBES) $(LIB_FDATASYNC) \ |
| 350 | $(LIB_WSOCK32) $(LIBS_ECLIENT) -o $@ | 353 | $(LIB_WSOCK32) $(LIBS_ECLIENT) -o $@ |
| 351 | 354 | ||
| 352 | emacsclientw${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(CLIENTRES) $(config_h) | 355 | emacsclientw${EXEEXT}: ${srcdir}/emacsclient.c $(NTLIB) $(CLIENTRES) $(config_h) |
| 353 | $(CC) ${ALL_CFLAGS} $(CLIENTRES) -mwindows ${srcdir}/emacsclient.c \ | 356 | $(CC) ${ALL_CFLAGS} $(CLIENTRES) -mwindows $< \ |
| 354 | -DVERSION="\"${version}\"" $(LOADLIBES) $(LIB_FDATASYNC) \ | 357 | -DVERSION="\"${version}\"" $(LOADLIBES) $(LIB_FDATASYNC) \ |
| 355 | $(LIB_WSOCK32) $(LIBS_ECLIENT) -o $@ | 358 | $(LIB_WSOCK32) $(LIBS_ECLIENT) -o $@ |
| 356 | 359 | ||
| @@ -362,18 +365,16 @@ NTDEPS = $(NTINC)/ms-w32.h $(NTINC)/sys/stat.h $(NTINC)/inttypes.h \ | |||
| 362 | # The dependency on $(NTDEPS) is a trick intended to cause recompile of | 365 | # The dependency on $(NTDEPS) is a trick intended to cause recompile of |
| 363 | # programs on MinGW whenever some private header in nt/inc is modified. | 366 | # programs on MinGW whenever some private header in nt/inc is modified. |
| 364 | ntlib.o: ${srcdir}/ntlib.c ${srcdir}/ntlib.h $(NTDEPS) | 367 | ntlib.o: ${srcdir}/ntlib.c ${srcdir}/ntlib.h $(NTDEPS) |
| 365 | $(CC) -c ${CPP_CFLAGS} ${srcdir}/ntlib.c | 368 | $(CC) -c ${CPP_CFLAGS} $< |
| 366 | 369 | ||
| 367 | hexl${EXEEXT}: ${srcdir}/hexl.c $(NTLIB) $(config_h) | 370 | hexl${EXEEXT}: ${srcdir}/hexl.c $(NTLIB) $(config_h) |
| 368 | $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o $@ | 371 | $(CC) ${ALL_CFLAGS} $< $(LOADLIBES) -o $@ |
| 369 | 372 | ||
| 370 | update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB) $(config_h) | 373 | update-game-score${EXEEXT}: ${srcdir}/update-game-score.c $(NTLIB) $(config_h) |
| 371 | $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ | 374 | $(CC) ${ALL_CFLAGS} -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ |
| 372 | ${srcdir}/update-game-score.c $(LOADLIBES) $(NTLIB) \ | 375 | $< $(LOADLIBES) $(NTLIB) -o $@ |
| 373 | -o $@ | ||
| 374 | 376 | ||
| 375 | emacsclient.res: $(NTINC)/../emacsclient.rc | 377 | emacsclient.res: $(NTINC)/../emacsclient.rc |
| 376 | $(WINDRES) -O coff --include-dir=$(NTINC)/.. -o $@ \ | 378 | $(WINDRES) -O coff --include-dir=$(NTINC)/.. -o $@ $< |
| 377 | $(NTINC)/../emacsclient.rc | ||
| 378 | 379 | ||
| 379 | ## Makefile ends here. | 380 | ## Makefile ends here. |
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 | |||
| 87 | char *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 |