aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-06-14 23:05:43 -0300
committerFabián Ezequiel Gallina2012-06-14 23:05:43 -0300
commit315f675857250c2204d024748e9eafa57c68410f (patch)
tree101bfee7ff075c2eb02fd4bd80af02ed1da979b5 /lib-src
parentc6a506fefd22cb1efde1935154e79b471b943c45 (diff)
parent4302f5ba6e853d3f42ca21c536afd5a69b9e1774 (diff)
downloademacs-315f675857250c2204d024748e9eafa57c68410f.tar.gz
emacs-315f675857250c2204d024748e9eafa57c68410f.zip
Merge from trunk
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog111
-rw-r--r--lib-src/Makefile.in40
-rw-r--r--lib-src/etags.c28
-rw-r--r--lib-src/make-docfile.c155
-rw-r--r--lib-src/makefile.w32-in31
-rwxr-xr-xlib-src/rcs-checkin116
-rwxr-xr-xlib-src/vcdiff114
7 files changed, 159 insertions, 436 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index a4a1cffaa96..68a8c37c2fb 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,72 @@
12012-06-08 Andreas Schwab <schwab@linux-m68k.org>
2
3 * make-docfile.c (search_lisp_doc_at_eol): Unget last read
4 character.
5
62012-06-06 Glenn Morris <rgm@gnu.org>
7
8 * Makefile.in (STAMP_INST_SCRIPTS, STAMP_SCRIPTS, insrcdir)
9 (stamp-rcs2log, stamp-grep-changelog): Remove.
10 (all, clean): Remove references to stamps.
11
12 * vcdiff: Remove file.
13 * Makefile.in (SCRIPTS, STAMP_SCRIPTS): Remove vcdiff.
14 (stamp-vcdiff): Remove.
15
162012-06-05 Glenn Morris <rgm@gnu.org>
17
18 * makefile.w32-in ($(BLD)/getdate.$(O), $(BLD)/leditcfns.$(O)):
19 ($(BLD)/make-path.$(O), $(BLD)/qsort.$(O)):
20 ($(BLD)/timer.$(O)): Remove cruft.
21
222012-06-03 Glenn Morris <rgm@gnu.org>
23
24 * rcs-checkin: Remove file.
25 * Makefile.in (INSTALLABLE_SCRIPTS, STAMP_INST_SCRIPTS):
26 Remove rcs-checkin.
27 (stamp-rcs-checkin): Remove.
28
292012-05-31 Eli Zaretskii <eliz@gnu.org>
30
31 * makefile.w32-in ($(BLD)/emacsclientw.exe): Use $(MWINDOWS)
32 instead of a literal -mwindows, which is not supported by MSVC.
33 (Bug#11405)
34
352012-05-30 Stefan Monnier <monnier@iro.umontreal.ca>
36
37 * make-docfile.c: Improve comment style.
38 (search_lisp_doc_at_eol): New function.
39 (scan_lisp_file): Use it.
40
412012-05-26 Glenn Morris <rgm@gnu.org>
42
43 * Makefile.in (INSTALL_DATA): Remove; unused.
44
452012-05-22 Paul Eggert <eggert@cs.ucla.edu>
46
47 Remove src/m/*.
48 * makefile.w32-in: Remove dependencies on
49 $(EMACS_ROOT)/src/m/intel386.h.
50
512012-05-22 Glenn Morris <rgm@gnu.org>
52
53 * Makefile.in (install): Remove unneeded chmods.
54
552012-05-21 Paul Eggert <eggert@cs.ucla.edu>
56
57 Assume C89 or later.
58 * etags.c (static, const): Remove macros.
59 (PTR): Remove; all uses replaced with void *. Omit needless casts.
60
612012-05-21 Glenn Morris <rgm@gnu.org>
62
63 * Makefile.in (insrcdir, $(DESTDIR)${archlibdir}):
64 Scrap superfluous subshells.
65
662012-05-18 Glenn Morris <rgm@gnu.org>
67
68 * Makefile.in (install): Ensure $bindir exists.
69
12012-05-17 Glenn Morris <rgm@gnu.org> 702012-05-17 Glenn Morris <rgm@gnu.org>
2 71
3 * Makefile.in (ns_appbindir): New, set by configure. 72 * Makefile.in (ns_appbindir): New, set by configure.
@@ -412,8 +481,8 @@
412 481
413 * etags.c (canonicalize_filename, ISUPPER): Fix last change. 482 * etags.c (canonicalize_filename, ISUPPER): Fix last change.
414 483
415 * makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)): Depend 484 * makefile.w32-in ($(BLD)/ebrowse.$(O), $(BLD)/pop.$(O)):
416 on ../lib/min-max.h. 485 Depend on ../lib/min-max.h.
417 486
4182011-02-22 Paul Eggert <eggert@cs.ucla.edu> 4872011-02-22 Paul Eggert <eggert@cs.ucla.edu>
419 488
@@ -2790,7 +2859,7 @@
2790 2859
2791 * make-docfile.c (read_c_string_or_comment): Declare msgno. 2860 * make-docfile.c (read_c_string_or_comment): Declare msgno.
2792 2861
2793 * Makefile.in (YACC): Deleted. 2862 * Makefile.in (YACC): Delete.
2794 2863
27952002-10-19 Andreas Schwab <schwab@suse.de> 28642002-10-19 Andreas Schwab <schwab@suse.de>
2796 2865
@@ -3008,7 +3077,7 @@
3008 (TeX_commands): Names now include the initial backslash. 3077 (TeX_commands): Names now include the initial backslash.
3009 (TeX_commands): Names do not include numeric args #n. 3078 (TeX_commands): Names do not include numeric args #n.
3010 (TeX_commands): Correct line char number in tags. 3079 (TeX_commands): Correct line char number in tags.
3011 (TEX_tabent, TEX_token): Deleted. 3080 (TEX_tabent, TEX_token): Delete.
3012 (TeX_commands, TEX_decode_env): Streamlined. 3081 (TeX_commands, TEX_decode_env): Streamlined.
3013 3082
30142002-06-05 Francesco Potortì <pot@gnu.org> 30832002-06-05 Francesco Potortì <pot@gnu.org>
@@ -3049,7 +3118,7 @@
3049 (main): New argument -d, for specifying directory. 3118 (main): New argument -d, for specifying directory.
3050 (usage): Document. 3119 (usage): Document.
3051 (get_user_id): Compute. 3120 (get_user_id): Compute.
3052 (get_home_dir): Deleted. 3121 (get_home_dir): Delete.
3053 (get_prefix): New function, taken from main. 3122 (get_prefix): New function, taken from main.
3054 (main): Check whether or not we are running setuid. Move prefix 3123 (main): Check whether or not we are running setuid. Move prefix
3055 computation to get_prefix. Don't call getpwent; we don't need to 3124 computation to get_prefix. Don't call getpwent; we don't need to
@@ -3310,7 +3379,7 @@
3310 (LOOKING_AT, get_tag, PHP_functions): Use notinname. 3379 (LOOKING_AT, get_tag, PHP_functions): Use notinname.
3311 (Ada_getit, Ada_funcs, Python_functions, Scheme_functions): 3380 (Ada_getit, Ada_funcs, Python_functions, Scheme_functions):
3312 Clarified, using strneq or notinname. 3381 Clarified, using strneq or notinname.
3313 (L_isdef, L_isquote): Removed. 3382 (L_isdef, L_isquote): Remove.
3314 (Lisp_functions, L_getit): Clarified. 3383 (Lisp_functions, L_getit): Clarified.
3315 3384
3316 * etags.c (P_): Rename to __P for consistency with config.h. 3385 * etags.c (P_): Rename to __P for consistency with config.h.
@@ -3747,7 +3816,7 @@
3747 comma when --declarations is used. 3816 comma when --declarations is used.
3748 (C_entries): More accurate tagging of members and declarations. 3817 (C_entries): More accurate tagging of members and declarations.
3749 (yacc_rules): Was global, made local to C_entries. 3818 (yacc_rules): Was global, made local to C_entries.
3750 (next_token_is_func): Removed. 3819 (next_token_is_func): Remove.
3751 (fvdef): New constants fdefunkey, fdefunname. 3820 (fvdef): New constants fdefunkey, fdefunname.
3752 (consider_token, C_entries): Use them. 3821 (consider_token, C_entries): Use them.
3753 (C_entries): Build proper lisp names for Emacs DEFUNs. 3822 (C_entries): Build proper lisp names for Emacs DEFUNs.
@@ -4223,7 +4292,7 @@
4223 (find_entries, takeprec, getit, Fortran_functions, Perl_functions) 4292 (find_entries, takeprec, getit, Fortran_functions, Perl_functions)
4224 (Python_functions, L_getit, Lisp_functions, Scheme_functions) 4293 (Python_functions, L_getit, Lisp_functions, Scheme_functions)
4225 (prolog_pred, erlanf_func, erlang_attribute): Use them. 4294 (prolog_pred, erlanf_func, erlang_attribute): Use them.
4226 (eat_white): Deleted. 4295 (eat_white): Delete.
4227 4296
4228 * etags.c (CHAR, init): Keep into account non US-ASCII 4297 * etags.c (CHAR, init): Keep into account non US-ASCII
4229 characters and compilers with default signed chars. 4298 characters and compilers with default signed chars.
@@ -4746,7 +4815,7 @@
47461997-05-13 Francesco Potortì <F.Potorti@cnuce.cnr.it> 48151997-05-13 Francesco Potortì <F.Potorti@cnuce.cnr.it>
4747 4816
4748 * etags.c (TeX_functions): Cleaned up. 4817 * etags.c (TeX_functions): Cleaned up.
4749 (tex_getit): Removed. 4818 (tex_getit): Remove.
4750 4819
47511997-05-13 Paul Eggert <eggert@twinsun.com> 48201997-05-13 Paul Eggert <eggert@twinsun.com>
4752 4821
@@ -5267,7 +5336,7 @@
5267 5336
5268 * etags.c: Prolog language totally rewritten. 5337 * etags.c: Prolog language totally rewritten.
5269 (Prolog_functions): Rewritten from scratch. 5338 (Prolog_functions): Rewritten from scratch.
5270 (skip_comment, prolog_getit): Removed. 5339 (skip_comment, prolog_getit): Remove.
5271 (prolog_skip_comment): New function, like old skip_comment. 5340 (prolog_skip_comment): New function, like old skip_comment.
5272 (prolog_pred, prolog_atom, prolog_white): New functions. 5341 (prolog_pred, prolog_atom, prolog_white): New functions.
5273 (erlang_func, erlang_attributes): Forward declarations added. 5342 (erlang_func, erlang_attributes): Forward declarations added.
@@ -5768,7 +5837,7 @@
5768 5837
57691995-01-12 Francesco Potortì (pot@cnuce.cnr.it) 58381995-01-12 Francesco Potortì (pot@cnuce.cnr.it)
5770 5839
5771 * etags.c (FILEPOS, GET_CHARNO, GET_FILEPOS, max, LINENO): Deleted. 5840 * etags.c (FILEPOS, GET_CHARNO, GET_FILEPOS, max, LINENO): Delete.
5772 (append_to_tagfile, typedefs, typedefs_and_cplusplus) 5841 (append_to_tagfile, typedefs, typedefs_and_cplusplus)
5773 (constantypedefs, update, vgrind_style, no_warnings) 5842 (constantypedefs, update, vgrind_style, no_warnings)
5774 (cxref_style, cplusplus, noindentypedefs): Were int, now logical. 5843 (cxref_style, cplusplus, noindentypedefs): Were int, now logical.
@@ -5787,9 +5856,9 @@
5787 (consider_token): Don't take a token as argument. Use savenstr 5856 (consider_token): Don't take a token as argument. Use savenstr
5788 when saving a tag in structtag. Callers changed. 5857 when saving a tag in structtag. Callers changed.
5789 (TOKEN): Structure changed. Now used only in C_entries. 5858 (TOKEN): Structure changed. Now used only in C_entries.
5790 (TOKEN_SAVED_P, SAVE_TOKEN, RESTORE_TOKEN): Deleted. 5859 (TOKEN_SAVED_P, SAVE_TOKEN, RESTORE_TOKEN): Delete.
5791 (C_entries): nameb and savenameb deleted. Use dinamic allocation. 5860 (C_entries): nameb and savenameb deleted. Use dinamic allocation.
5792 (pfcnt): Deleted. Users updated. 5861 (pfcnt): Delete. Users updated.
5793 (getit, Asm_labels, Pascal_functions, L_getit, get_scheme) 5862 (getit, Asm_labels, Pascal_functions, L_getit, get_scheme)
5794 (TEX_getit, prolog_getit): Use dinamic allocation for storing 5863 (TEX_getit, prolog_getit): Use dinamic allocation for storing
5795 the tag instead of a fixed size buffer. 5864 the tag instead of a fixed size buffer.
@@ -6365,7 +6434,7 @@
6365 6434
63661994-03-25 Francesco Potortì (pot@cnuce.cnr.it) 64351994-03-25 Francesco Potortì (pot@cnuce.cnr.it)
6367 6436
6368 * etags.c (emacs_tags_format, ETAGS): Removed. Use CTAGS instead. 6437 * etags.c (emacs_tags_format, ETAGS): Remove. Use CTAGS instead.
6369 (main): Don't allow the use of -t and -T in etags mode. 6438 (main): Don't allow the use of -t and -T in etags mode.
6370 (print_help): Don't show options enabled by default. 6439 (print_help): Don't show options enabled by default.
6371 (print_version): Show the emacs version number if VERSION is #defined. 6440 (print_version): Show the emacs version number if VERSION is #defined.
@@ -6482,9 +6551,9 @@
64821994-01-14 Francesco Potortì (pot@cnuce.cnr.it) 65511994-01-14 Francesco Potortì (pot@cnuce.cnr.it)
6483 6552
6484 * etags.c (stab_entry, stab_create, stab_find, stab_search, 6553 * etags.c (stab_entry, stab_create, stab_find, stab_search,
6485 stab_type, add_keyword, C_reate_stab, C_create_stabs): Deleted. 6554 stab_type, add_keyword, C_reate_stab, C_create_stabs): Delete.
6486 Use gperf generated hash table instead of linked list. 6555 Use gperf generated hash table instead of linked list.
6487 (C_stab_entry, hash, in_word_set, get_C_stab, C_symtype): Added. 6556 (C_stab_entry, hash, in_word_set, get_C_stab, C_symtype): Add.
6488 Mostly code generated by gperf. 6557 Mostly code generated by gperf.
6489 (consider_token): Remove unused parameter `lp'. 6558 (consider_token): Remove unused parameter `lp'.
6490 (PF_funcs, getit): Allow subroutine and similar declarations 6559 (PF_funcs, getit): Allow subroutine and similar declarations
@@ -6803,7 +6872,7 @@
6803 * etags.c (consider_token): Was `==', now is `='. 6872 * etags.c (consider_token): Was `==', now is `='.
6804 (consider_token): DEFUNs now treated like funcs in ctags mode. 6873 (consider_token): DEFUNs now treated like funcs in ctags mode.
6805 6874
6806 * etags.c (LEVEL_OK_FOR_FUNCDEF): Removed. 6875 * etags.c (LEVEL_OK_FOR_FUNCDEF): Remove.
6807 (C_entries): Optimized the test that used LEVEL_OK_FOR_FUNCDEF. 6876 (C_entries): Optimized the test that used LEVEL_OK_FOR_FUNCDEF.
6808 (C_entries): Remove a piece of useless code. 6877 (C_entries): Remove a piece of useless code.
6809 (C_entries): Making typedef tags is delayed until a semicolon 6878 (C_entries): Making typedef tags is delayed until a semicolon
@@ -7102,10 +7171,10 @@
7102 * etags.c (GET_COOKIE): And related macros removed. 7171 * etags.c (GET_COOKIE): And related macros removed.
7103 (logical): Is now int, no more a char. 7172 (logical): Is now int, no more a char.
7104 (reg): Define deleted. 7173 (reg): Define deleted.
7105 (isgood, _gd, notgd): Deleted. 7174 (isgood, _gd, notgd): Delete.
7106 (gotone): Deleted. 7175 (gotone): Delete.
7107 (TOKEN): Member linestart removed. 7176 (TOKEN): Member linestart removed.
7108 (linepos, prev_linepos, lb1): Deleted. 7177 (linepos, prev_linepos, lb1): Delete.
7109 (main): Call initbuffer on lbs array instead of lb1. 7178 (main): Call initbuffer on lbs array instead of lb1.
7110 (init): Remove the initialization of the logical _gd array. 7179 (init): Remove the initialization of the logical _gd array.
7111 (find_entries): A .sa suffix means assembler file. 7180 (find_entries): A .sa suffix means assembler file.
@@ -7113,7 +7182,7 @@
7113 All C state machines rewritten. 7182 All C state machines rewritten.
7114 (C_entries): Complete rewrite. 7183 (C_entries): Complete rewrite.
7115 (condider_token): Complete rewrite. 7184 (condider_token): Complete rewrite.
7116 (getline): Deleted. 7185 (getline): Delete.
7117 7186
71181993-03-01 Francesco Potortì (pot@fly.CNUCE.CNR.IT) 71871993-03-01 Francesco Potortì (pot@fly.CNUCE.CNR.IT)
7119 7188
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index 1306e660630..2df22d9f7d8 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -106,7 +106,6 @@ gameuser=@gameuser@
106# ../configure figures out the correct values for these. 106# ../configure figures out the correct values for these.
107INSTALL = @INSTALL@ 107INSTALL = @INSTALL@
108INSTALL_PROGRAM = @INSTALL_PROGRAM@ 108INSTALL_PROGRAM = @INSTALL_PROGRAM@
109INSTALL_DATA = @INSTALL_DATA@
110INSTALL_SCRIPT = @INSTALL_SCRIPT@ 109INSTALL_SCRIPT = @INSTALL_SCRIPT@
111# By default, we uphold the dignity of our programs. 110# By default, we uphold the dignity of our programs.
112INSTALL_STRIP = 111INSTALL_STRIP =
@@ -118,8 +117,7 @@ MKDIR_P = @MKDIR_P@
118INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} \ 117INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} \
119 ebrowse${EXEEXT} 118 ebrowse${EXEEXT}
120 119
121INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog 120INSTALLABLE_SCRIPTS = grep-changelog
122STAMP_INST_SCRIPTS = stamp-rcs-checkin stamp-grep-changelog
123 121
124# Things that Emacs runs internally, or during the build process, 122# Things that Emacs runs internally, or during the build process,
125# which should not be installed in bindir. 123# which should not be installed in bindir.
@@ -130,8 +128,7 @@ DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT}
130 128
131# Like UTILITIES, but they're not system-dependent, and should not be 129# Like UTILITIES, but they're not system-dependent, and should not be
132# deleted by the distclean target. 130# deleted by the distclean target.
133SCRIPTS= rcs2log vcdiff 131SCRIPTS= rcs2log
134STAMP_SCRIPTS= stamp-rcs2log stamp-vcdiff
135 132
136# All files that are created by the linker, i.e., whose names end in ${EXEEXT}. 133# All files that are created by the linker, i.e., whose names end in ${EXEEXT}.
137EXE_FILES = ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL} 134EXE_FILES = ${INSTALLABLES} ${UTILITIES} ${DONT_INSTALL}
@@ -182,32 +179,11 @@ ALL_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${LDFLAGS} ${CPPFLAGS} ${CFLAGS}
182LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS} 179LINK_CFLAGS = ${BASE_CFLAGS} ${LDFLAGS} ${CFLAGS}
183CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS} 180CPP_CFLAGS = ${BASE_CFLAGS} ${PROFILING_CFLAGS} ${CPPFLAGS} ${CFLAGS}
184 181
185all: ${EXE_FILES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS} ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS} 182all: ${EXE_FILES} ${SCRIPTS} ${INSTALLABLE_SCRIPTS}
186 183
187LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM) 184LOADLIBES = ../lib/libgnu.a $(LIBS_SYSTEM)
188$(EXE_FILES): ../lib/libgnu.a 185$(EXE_FILES): ../lib/libgnu.a
189 186
190## These targets copy the scripts into the build directory so that
191## they can be run from there in an uninstalled Emacs.
192## Nothing to do if pwd = srcdir.
193insrcdir=[ "`/bin/pwd`" = "`(cd $(srcdir) && /bin/pwd)`" ]
194
195stamp-rcs2log: $(srcdir)/rcs2log
196 $(insrcdir) || cp -p $(srcdir)/rcs2log rcs2log
197 touch $@
198
199stamp-rcs-checkin: $(srcdir)/rcs-checkin
200 $(insrcdir) || cp -p $(srcdir)/rcs-checkin rcs-checkin
201 touch $@
202
203stamp-grep-changelog: $(srcdir)/grep-changelog
204 $(insrcdir) || cp -p $(srcdir)/grep-changelog grep-changelog
205 touch $@
206
207stamp-vcdiff: $(srcdir)/vcdiff
208 $(insrcdir) || cp -p $(srcdir)/vcdiff vcdiff
209 touch $@
210
211## Only used if we need blessmail, but no harm in always defining. 187## Only used if we need blessmail, but no harm in always defining.
212## This makes the actual blessmail executable. 188## This makes the actual blessmail executable.
213blessmail: 189blessmail:
@@ -237,7 +213,7 @@ $(DESTDIR)${archlibdir}: all
237 @echo 213 @echo
238 @echo "Installing utilities run internally by Emacs." 214 @echo "Installing utilities run internally by Emacs."
239 umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir} 215 umask 022; ${MKDIR_P} $(DESTDIR)${archlibdir}
240 if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` != `/bin/pwd` ]; then \ 216 if [ `cd $(DESTDIR)${archlibdir} && /bin/pwd` != `/bin/pwd` ]; then \
241 for file in ${UTILITIES}; do \ 217 for file in ${UTILITIES}; do \
242 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \ 218 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $$file $(DESTDIR)${archlibdir}/$$file ; \
243 done ; \ 219 done ; \
@@ -249,8 +225,8 @@ $(DESTDIR)${archlibdir}: all
249 chown ${gameuser} $(DESTDIR)${gamedir}; \ 225 chown ${gameuser} $(DESTDIR)${gamedir}; \
250 chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \ 226 chmod u=rwx,g=rwx,o=rx $(DESTDIR)${gamedir}; \
251 fi 227 fi
252 if [ `(cd $(DESTDIR)${archlibdir} && /bin/pwd)` \ 228 if [ `cd $(DESTDIR)${archlibdir} && /bin/pwd` \
253 != `(cd ${srcdir} && /bin/pwd)` ]; then \ 229 != `cd ${srcdir} && /bin/pwd` ]; then \
254 for file in ${SCRIPTS}; do \ 230 for file in ${SCRIPTS}; do \
255 $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \ 231 $(INSTALL_SCRIPT) ${srcdir}/$$file $(DESTDIR)${archlibdir}/$$file; \
256 done ; \ 232 done ; \
@@ -259,13 +235,12 @@ $(DESTDIR)${archlibdir}: all
259install: $(DESTDIR)${archlibdir} 235install: $(DESTDIR)${archlibdir}
260 @echo 236 @echo
261 @echo "Installing utilities for users to run." 237 @echo "Installing utilities for users to run."
238 umask 022; ${MKDIR_P} $(DESTDIR)${bindir}
262 for file in ${INSTALLABLES} ; do \ 239 for file in ${INSTALLABLES} ; do \
263 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ 240 $(INSTALL_PROGRAM) $(INSTALL_STRIP) $${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
264 chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
265 done 241 done
266 for file in ${INSTALLABLE_SCRIPTS} ; do \ 242 for file in ${INSTALLABLE_SCRIPTS} ; do \
267 $(INSTALL_SCRIPT) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \ 243 $(INSTALL_SCRIPT) ${srcdir}/$${file} $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'` ; \
268 chmod a+rx $(DESTDIR)${bindir}/`echo $${file} | sed '$(TRANSFORM)'`; \
269 done 244 done
270 245
271uninstall: 246uninstall:
@@ -283,7 +258,6 @@ mostlyclean:
283 258
284clean: mostlyclean 259clean: mostlyclean
285 -rm -f ${EXE_FILES} 260 -rm -f ${EXE_FILES}
286 -rm -f ${STAMP_INST_SCRIPTS} ${STAMP_SCRIPTS}
287 261
288distclean: clean 262distclean: clean
289 -rm -f TAGS 263 -rm -f TAGS
diff --git a/lib-src/etags.c b/lib-src/etags.c
index ccf97a8357f..7d2a5a90999 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -93,22 +93,6 @@ char pot_etags_version[] = "@(#) pot revision number is 17.38.1.4";
93 93
94#ifdef HAVE_CONFIG_H 94#ifdef HAVE_CONFIG_H
95# include <config.h> 95# include <config.h>
96 /* This is probably not necessary any more. On some systems, config.h
97 used to define static as nothing for the sake of unexec. We don't
98 want that here since we don't use unexec. None of these systems
99 are supported any more, but the idea is still mentioned in
100 etc/PROBLEMS. */
101# undef static
102# ifndef PTR /* for XEmacs */
103# define PTR void *
104# endif
105#else /* no config.h */
106# if defined (__STDC__) && (__STDC__ || defined (__SUNPRO_C))
107# define PTR void * /* for generic pointers */
108# else /* not standard C */
109# define const /* remove const for old compilers' sake */
110# define PTR long * /* don't use void* */
111# endif
112#endif /* !HAVE_CONFIG_H */ 96#endif /* !HAVE_CONFIG_H */
113 97
114#ifndef _GNU_SOURCE 98#ifndef _GNU_SOURCE
@@ -415,8 +399,8 @@ static bool filename_is_absolute (char *f);
415static void canonicalize_filename (char *); 399static void canonicalize_filename (char *);
416static void linebuffer_init (linebuffer *); 400static void linebuffer_init (linebuffer *);
417static void linebuffer_setlen (linebuffer *, int); 401static void linebuffer_setlen (linebuffer *, int);
418static PTR xmalloc (size_t); 402static void *xmalloc (size_t);
419static PTR xrealloc (char *, size_t); 403static void *xrealloc (char *, size_t);
420 404
421 405
422static char searchar = '/'; /* use /.../ searches */ 406static char searchar = '/'; /* use /.../ searches */
@@ -6686,19 +6670,19 @@ linebuffer_setlen (linebuffer *lbp, int toksize)
6686} 6670}
6687 6671
6688/* Like malloc but get fatal error if memory is exhausted. */ 6672/* Like malloc but get fatal error if memory is exhausted. */
6689static PTR 6673static void *
6690xmalloc (size_t size) 6674xmalloc (size_t size)
6691{ 6675{
6692 PTR result = (PTR) malloc (size); 6676 void *result = malloc (size);
6693 if (result == NULL) 6677 if (result == NULL)
6694 fatal ("virtual memory exhausted", (char *)NULL); 6678 fatal ("virtual memory exhausted", (char *)NULL);
6695 return result; 6679 return result;
6696} 6680}
6697 6681
6698static PTR 6682static void *
6699xrealloc (char *ptr, size_t size) 6683xrealloc (char *ptr, size_t size)
6700{ 6684{
6701 PTR result = (PTR) realloc (ptr, size); 6685 void *result = realloc (ptr, size);
6702 if (result == NULL) 6686 if (result == NULL)
6703 fatal ("virtual memory exhausted", (char *)NULL); 6687 fatal ("virtual memory exhausted", (char *)NULL);
6704 return result; 6688 return result;
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index b33b13f34ce..4f68fdb78c9 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -35,7 +35,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
35 35
36#include <config.h> 36#include <config.h>
37 37
38/* defined to be emacs_main, sys_fopen, etc. in config.h */ 38/* Defined to be emacs_main, sys_fopen, etc. in config.h. */
39#undef main 39#undef main
40#undef fopen 40#undef fopen
41#undef chdir 41#undef chdir
@@ -66,7 +66,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
66#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP) 66#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
67#endif 67#endif
68 68
69/* Use this to suppress gcc's `...may be used before initialized' warnings. */ 69/* Use this to suppress gcc's `...may be used before initialized' warnings. */
70#ifdef lint 70#ifdef lint
71# define IF_LINT(Code) Code 71# define IF_LINT(Code) Code
72#else 72#else
@@ -226,7 +226,7 @@ put_filename (char *filename)
226 226
227 for (tmp = filename; *tmp; tmp++) 227 for (tmp = filename; *tmp; tmp++)
228 { 228 {
229 if (IS_DIRECTORY_SEP(*tmp)) 229 if (IS_DIRECTORY_SEP (*tmp))
230 filename = tmp + 1; 230 filename = tmp + 1;
231 } 231 }
232 232
@@ -675,14 +675,14 @@ scan_c_file (char *filename, const char *mode)
675 675
676 if (infile == NULL && extension == 'o') 676 if (infile == NULL && extension == 'o')
677 { 677 {
678 /* try .m */ 678 /* Try .m. */
679 filename[strlen (filename) - 1] = 'm'; 679 filename[strlen (filename) - 1] = 'm';
680 infile = fopen (filename, mode); 680 infile = fopen (filename, mode);
681 if (infile == NULL) 681 if (infile == NULL)
682 filename[strlen (filename) - 1] = 'c'; /* don't confuse people */ 682 filename[strlen (filename) - 1] = 'c'; /* Don't confuse people. */
683 } 683 }
684 684
685 /* No error if non-ex input file */ 685 /* No error if non-ex input file. */
686 if (infile == NULL) 686 if (infile == NULL)
687 { 687 {
688 perror (filename); 688 perror (filename);
@@ -800,8 +800,8 @@ scan_c_file (char *filename, const char *mode)
800 input_buffer[i++] = c; 800 input_buffer[i++] = c;
801 c = getc (infile); 801 c = getc (infile);
802 } 802 }
803 while (! (c == ',' || c == ' ' || c == '\t' || 803 while (! (c == ',' || c == ' ' || c == '\t'
804 c == '\n' || c == '\r')); 804 || c == '\n' || c == '\r'));
805 input_buffer[i] = '\0'; 805 input_buffer[i] = '\0';
806 806
807 name = xmalloc (i + 1); 807 name = xmalloc (i + 1);
@@ -820,7 +820,7 @@ scan_c_file (char *filename, const char *mode)
820 commas = 3; 820 commas = 3;
821 else if (defvarflag) 821 else if (defvarflag)
822 commas = 1; 822 commas = 1;
823 else /* For DEFSIMPLE and DEFPRED */ 823 else /* For DEFSIMPLE and DEFPRED. */
824 commas = 2; 824 commas = 2;
825 825
826 while (commas) 826 while (commas)
@@ -838,9 +838,9 @@ scan_c_file (char *filename, const char *mode)
838 if (c < 0) 838 if (c < 0)
839 goto eof; 839 goto eof;
840 ungetc (c, infile); 840 ungetc (c, infile);
841 if (commas == 2) /* pick up minargs */ 841 if (commas == 2) /* Pick up minargs. */
842 scanned = fscanf (infile, "%d", &minargs); 842 scanned = fscanf (infile, "%d", &minargs);
843 else /* pick up maxargs */ 843 else /* Pick up maxargs. */
844 if (c == 'M' || c == 'U') /* MANY || UNEVALLED */ 844 if (c == 'M' || c == 'U') /* MANY || UNEVALLED */
845 maxargs = -1; 845 maxargs = -1;
846 else 846 else
@@ -893,7 +893,7 @@ scan_c_file (char *filename, const char *mode)
893 fprintf (outfile, "%s\n", input_buffer); 893 fprintf (outfile, "%s\n", input_buffer);
894 894
895 if (comment) 895 if (comment)
896 getc (infile); /* Skip past `*' */ 896 getc (infile); /* Skip past `*'. */
897 c = read_c_string_or_comment (infile, 1, comment, &saw_usage); 897 c = read_c_string_or_comment (infile, 1, comment, &saw_usage);
898 898
899 /* If this is a defun, find the arguments and print them. If 899 /* If this is a defun, find the arguments and print them. If
@@ -979,7 +979,7 @@ scan_c_file (char *filename, const char *mode)
979 problem because byte-compiler output follows this convention. 979 problem because byte-compiler output follows this convention.
980 The NAME and DOCSTRING are output. 980 The NAME and DOCSTRING are output.
981 NAME is preceded by `F' for a function or `V' for a variable. 981 NAME is preceded by `F' for a function or `V' for a variable.
982 An entry is output only if DOCSTRING has \ newline just after the opening " 982 An entry is output only if DOCSTRING has \ newline just after the opening ".
983 */ 983 */
984 984
985static void 985static void
@@ -1020,6 +1020,34 @@ read_lisp_symbol (FILE *infile, char *buffer)
1020} 1020}
1021 1021
1022static int 1022static int
1023search_lisp_doc_at_eol (FILE *infile)
1024{
1025 char c = 0, c1 = 0, c2 = 0;
1026
1027 /* Skip until the end of line; remember two previous chars. */
1028 while (c != '\n' && c != '\r' && c != EOF)
1029 {
1030 c2 = c1;
1031 c1 = c;
1032 c = getc (infile);
1033 }
1034
1035 /* If two previous characters were " and \,
1036 this is a doc string. Otherwise, there is none. */
1037 if (c2 != '"' || c1 != '\\')
1038 {
1039#ifdef DEBUG
1040 fprintf (stderr, "## non-docstring in %s (%s)\n",
1041 buffer, filename);
1042#endif
1043 if (c != EOF)
1044 ungetc (c, infile);
1045 return 0;
1046 }
1047 return 1;
1048}
1049
1050static int
1023scan_lisp_file (const char *filename, const char *mode) 1051scan_lisp_file (const char *filename, const char *mode)
1024{ 1052{
1025 FILE *infile; 1053 FILE *infile;
@@ -1033,7 +1061,7 @@ scan_lisp_file (const char *filename, const char *mode)
1033 if (infile == NULL) 1061 if (infile == NULL)
1034 { 1062 {
1035 perror (filename); 1063 perror (filename);
1036 return 0; /* No error */ 1064 return 0; /* No error. */
1037 } 1065 }
1038 1066
1039 c = '\n'; 1067 c = '\n';
@@ -1110,7 +1138,7 @@ scan_lisp_file (const char *filename, const char *mode)
1110 type = 'F'; 1138 type = 'F';
1111 read_lisp_symbol (infile, buffer); 1139 read_lisp_symbol (infile, buffer);
1112 1140
1113 /* Skip the arguments: either "nil" or a list in parens */ 1141 /* Skip the arguments: either "nil" or a list in parens. */
1114 1142
1115 c = getc (infile); 1143 c = getc (infile);
1116 if (c == 'n') /* nil */ 1144 if (c == 'n') /* nil */
@@ -1154,39 +1182,18 @@ scan_lisp_file (const char *filename, const char *mode)
1154 || ! strcmp (buffer, "defconst") 1182 || ! strcmp (buffer, "defconst")
1155 || ! strcmp (buffer, "defcustom")) 1183 || ! strcmp (buffer, "defcustom"))
1156 { 1184 {
1157 char c1 = 0, c2 = 0;
1158 type = 'V'; 1185 type = 'V';
1159 read_lisp_symbol (infile, buffer); 1186 read_lisp_symbol (infile, buffer);
1160 1187
1161 if (saved_string == 0) 1188 if (saved_string == 0)
1162 { 1189 if (!search_lisp_doc_at_eol (infile))
1163 1190 continue;
1164 /* Skip until the end of line; remember two previous chars. */
1165 while (c != '\n' && c != '\r' && c >= 0)
1166 {
1167 c2 = c1;
1168 c1 = c;
1169 c = getc (infile);
1170 }
1171
1172 /* If two previous characters were " and \,
1173 this is a doc string. Otherwise, there is none. */
1174 if (c2 != '"' || c1 != '\\')
1175 {
1176#ifdef DEBUG
1177 fprintf (stderr, "## non-docstring in %s (%s)\n",
1178 buffer, filename);
1179#endif
1180 continue;
1181 }
1182 }
1183 } 1191 }
1184 1192
1185 else if (! strcmp (buffer, "custom-declare-variable") 1193 else if (! strcmp (buffer, "custom-declare-variable")
1186 || ! strcmp (buffer, "defvaralias") 1194 || ! strcmp (buffer, "defvaralias")
1187 ) 1195 )
1188 { 1196 {
1189 char c1 = 0, c2 = 0;
1190 type = 'V'; 1197 type = 'V';
1191 1198
1192 c = getc (infile); 1199 c = getc (infile);
@@ -1221,31 +1228,12 @@ scan_lisp_file (const char *filename, const char *mode)
1221 } 1228 }
1222 1229
1223 if (saved_string == 0) 1230 if (saved_string == 0)
1224 { 1231 if (!search_lisp_doc_at_eol (infile))
1225 /* Skip to end of line; remember the two previous chars. */ 1232 continue;
1226 while (c != '\n' && c != '\r' && c >= 0)
1227 {
1228 c2 = c1;
1229 c1 = c;
1230 c = getc (infile);
1231 }
1232
1233 /* If two previous characters were " and \,
1234 this is a doc string. Otherwise, there is none. */
1235 if (c2 != '"' || c1 != '\\')
1236 {
1237#ifdef DEBUG
1238 fprintf (stderr, "## non-docstring in %s (%s)\n",
1239 buffer, filename);
1240#endif
1241 continue;
1242 }
1243 }
1244 } 1233 }
1245 1234
1246 else if (! strcmp (buffer, "fset") || ! strcmp (buffer, "defalias")) 1235 else if (! strcmp (buffer, "fset") || ! strcmp (buffer, "defalias"))
1247 { 1236 {
1248 char c1 = 0, c2 = 0;
1249 type = 'F'; 1237 type = 'F';
1250 1238
1251 c = getc (infile); 1239 c = getc (infile);
@@ -1278,26 +1266,8 @@ scan_lisp_file (const char *filename, const char *mode)
1278 } 1266 }
1279 1267
1280 if (saved_string == 0) 1268 if (saved_string == 0)
1281 { 1269 if (!search_lisp_doc_at_eol (infile))
1282 /* Skip to end of line; remember the two previous chars. */ 1270 continue;
1283 while (c != '\n' && c != '\r' && c >= 0)
1284 {
1285 c2 = c1;
1286 c1 = c;
1287 c = getc (infile);
1288 }
1289
1290 /* If two previous characters were " and \,
1291 this is a doc string. Otherwise, there is none. */
1292 if (c2 != '"' || c1 != '\\')
1293 {
1294#ifdef DEBUG
1295 fprintf (stderr, "## non-docstring in %s (%s)\n",
1296 buffer, filename);
1297#endif
1298 continue;
1299 }
1300 }
1301 } 1271 }
1302 1272
1303 else if (! strcmp (buffer, "autoload")) 1273 else if (! strcmp (buffer, "autoload"))
@@ -1339,23 +1309,10 @@ scan_lisp_file (const char *filename, const char *mode)
1339 continue; 1309 continue;
1340 } 1310 }
1341 read_c_string_or_comment (infile, 0, 0, 0); 1311 read_c_string_or_comment (infile, 0, 0, 0);
1342 skip_white (infile);
1343 1312
1344 if (saved_string == 0) 1313 if (saved_string == 0)
1345 { 1314 if (!search_lisp_doc_at_eol (infile))
1346 /* If the next three characters aren't `dquote bslash newline' 1315 continue;
1347 then we're not reading a docstring. */
1348 if ((c = getc (infile)) != '"'
1349 || (c = getc (infile)) != '\\'
1350 || ((c = getc (infile)) != '\n' && c != '\r'))
1351 {
1352#ifdef DEBUG
1353 fprintf (stderr, "## non-docstring in %s (%s)\n",
1354 buffer, filename);
1355#endif
1356 continue;
1357 }
1358 }
1359 } 1316 }
1360 1317
1361#ifdef DEBUG 1318#ifdef DEBUG
@@ -1373,12 +1330,10 @@ scan_lisp_file (const char *filename, const char *mode)
1373 continue; 1330 continue;
1374 } 1331 }
1375 1332
1376 /* At this point, we should either use the previous 1333 /* At this point, we should either use the previous dynamic doc string in
1377 dynamic doc string in saved_string 1334 saved_string or gobble a doc string from the input file.
1378 or gobble a doc string from the input file. 1335 In the latter case, the opening quote (and leading backslash-newline)
1379 1336 have already been read. */
1380 In the latter case, the opening quote (and leading
1381 backslash-newline) have already been read. */
1382 1337
1383 putc (037, outfile); 1338 putc (037, outfile);
1384 putc (type, outfile); 1339 putc (type, outfile);
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index 316e4fb127f..fea1d29592e 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -65,7 +65,7 @@ $(BLD)/emacsclient.exe: $(ECLIENTOBJS)
65 65
66$(BLD)/emacsclientw.exe: $(ECLIENTOBJS) $(CLIENTRES) 66$(BLD)/emacsclientw.exe: $(ECLIENTOBJS) $(CLIENTRES)
67# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib 67# put wsock32.lib before $(LIBS) to ensure we don't link to ws2_32.lib
68 $(LINK) $(LINK_OUT)$@ $(CLIENTRES) -mwindows $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS) 68 $(LINK) $(LINK_OUT)$@ $(CLIENTRES) $(MWINDOWS) $(LINK_FLAGS) $(ECLIENTOBJS) $(WSOCK32) $(USER32) $(COMCTL32) $(LIBS)
69 69
70$(BLD)/emacsclient.$(O): emacsclient.c 70$(BLD)/emacsclient.$(O): emacsclient.c
71 $(CC) $(CFLAGS) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c 71 $(CC) $(CFLAGS) $(ECLIENT_CFLAGS) $(CC_OUT)$@ emacsclient.c
@@ -354,7 +354,6 @@ SRC = .
354$(BLD)/alloca.$(O) : \ 354$(BLD)/alloca.$(O) : \
355 $(SRC)/alloca.c \ 355 $(SRC)/alloca.c \
356 $(EMACS_ROOT)/src/s/ms-w32.h \ 356 $(EMACS_ROOT)/src/s/ms-w32.h \
357 $(EMACS_ROOT)/src/m/intel386.h \
358 $(EMACS_ROOT)/src/config.h \ 357 $(EMACS_ROOT)/src/config.h \
359 $(EMACS_ROOT)/src/blockinput.h 358 $(EMACS_ROOT)/src/blockinput.h
360 359
@@ -363,7 +362,6 @@ $(BLD)/ctags.$(O) : \
363 $(EMACS_ROOT)/nt/inc/sys/param.h \ 362 $(EMACS_ROOT)/nt/inc/sys/param.h \
364 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 363 $(EMACS_ROOT)/nt/inc/sys/stat.h \
365 $(EMACS_ROOT)/src/s/ms-w32.h \ 364 $(EMACS_ROOT)/src/s/ms-w32.h \
366 $(EMACS_ROOT)/src/m/intel386.h \
367 $(EMACS_ROOT)/lib-src/../src/config.h \ 365 $(EMACS_ROOT)/lib-src/../src/config.h \
368 $(SRC)/ntlib.h \ 366 $(SRC)/ntlib.h \
369 $(EMACS_ROOT)/lib/getopt.h 367 $(EMACS_ROOT)/lib/getopt.h
@@ -372,14 +370,12 @@ $(BLD)/ebrowse.$(O) : \
372 $(SRC)/ebrowse.c \ 370 $(SRC)/ebrowse.c \
373 $(EMACS_ROOT)/lib/min-max.h \ 371 $(EMACS_ROOT)/lib/min-max.h \
374 $(EMACS_ROOT)/src/s/ms-w32.h \ 372 $(EMACS_ROOT)/src/s/ms-w32.h \
375 $(EMACS_ROOT)/src/m/intel386.h \
376 $(EMACS_ROOT)/lib-src/../src/config.h 373 $(EMACS_ROOT)/lib-src/../src/config.h
377 374
378$(BLD)/emacsclient.$(O) : \ 375$(BLD)/emacsclient.$(O) : \
379 $(SRC)/emacsclient.c \ 376 $(SRC)/emacsclient.c \
380 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 377 $(EMACS_ROOT)/nt/inc/sys/stat.h \
381 $(EMACS_ROOT)/src/s/ms-w32.h \ 378 $(EMACS_ROOT)/src/s/ms-w32.h \
382 $(EMACS_ROOT)/src/m/intel386.h \
383 $(EMACS_ROOT)/lib-src/../src/config.h 379 $(EMACS_ROOT)/lib-src/../src/config.h
384 380
385$(BLD)/etags.$(O) : \ 381$(BLD)/etags.$(O) : \
@@ -387,35 +383,20 @@ $(BLD)/etags.$(O) : \
387 $(EMACS_ROOT)/nt/inc/sys/param.h \ 383 $(EMACS_ROOT)/nt/inc/sys/param.h \
388 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 384 $(EMACS_ROOT)/nt/inc/sys/stat.h \
389 $(EMACS_ROOT)/src/s/ms-w32.h \ 385 $(EMACS_ROOT)/src/s/ms-w32.h \
390 $(EMACS_ROOT)/src/m/intel386.h \
391 $(EMACS_ROOT)/lib-src/../src/config.h \ 386 $(EMACS_ROOT)/lib-src/../src/config.h \
392 $(SRC)/ntlib.h \ 387 $(SRC)/ntlib.h \
393 $(EMACS_ROOT)/lib/getopt.h 388 $(EMACS_ROOT)/lib/getopt.h
394 389
395$(BLD)/getdate.$(O) : \
396 $(SRC)/getdate.c \
397 $(EMACS_ROOT)/src/s/ms-w32.h \
398 $(EMACS_ROOT)/src/m/intel386.h \
399 $(EMACS_ROOT)/src/config.h \
400 $(MSTOOLS_SYS)/types.h
401
402$(BLD)/hexl.$(O) : \ 390$(BLD)/hexl.$(O) : \
403 $(SRC)/hexl.c 391 $(SRC)/hexl.c
404 392
405$(BLD)/leditcfns.$(O) : \
406 $(SRC)/leditcfns.c
407
408$(BLD)/make-docfile.$(O) : \ 393$(BLD)/make-docfile.$(O) : \
409 $(SRC)/make-docfile.c \ 394 $(SRC)/make-docfile.c \
410 $(EMACS_ROOT)/src/config.h 395 $(EMACS_ROOT)/src/config.h
411 396
412$(BLD)/make-path.$(O) : \
413 $(SRC)/make-path.c
414
415$(BLD)/movemail.$(O) : \ 397$(BLD)/movemail.$(O) : \
416 $(SRC)/movemail.c \ 398 $(SRC)/movemail.c \
417 $(EMACS_ROOT)/src/s/ms-w32.h \ 399 $(EMACS_ROOT)/src/s/ms-w32.h \
418 $(EMACS_ROOT)/src/m/intel386.h \
419 $(EMACS_ROOT)/lib-src/../src/config.h \ 400 $(EMACS_ROOT)/lib-src/../src/config.h \
420 $(EMACS_ROOT)/nt/inc/sys/file.h \ 401 $(EMACS_ROOT)/nt/inc/sys/file.h \
421 $(EMACS_ROOT)/nt/inc/sys/stat.h \ 402 $(EMACS_ROOT)/nt/inc/sys/stat.h \
@@ -439,25 +420,15 @@ $(BLD)/pop.$(O) : \
439$(BLD)/profile.$(O) : \ 420$(BLD)/profile.$(O) : \
440 $(SRC)/profile.c \ 421 $(SRC)/profile.c \
441 $(EMACS_ROOT)/src/s/ms-w32.h \ 422 $(EMACS_ROOT)/src/s/ms-w32.h \
442 $(EMACS_ROOT)/src/m/intel386.h \
443 $(EMACS_ROOT)/lib-src/../src/config.h \ 423 $(EMACS_ROOT)/lib-src/../src/config.h \
444 $(EMACS_ROOT)/lib-src/../src/systime.h 424 $(EMACS_ROOT)/lib-src/../src/systime.h
445 425
446$(BLD)/qsort.$(O) : \
447 $(SRC)/qsort.c
448
449$(BLD)/tcp.$(O) : \ 426$(BLD)/tcp.$(O) : \
450 $(SRC)/tcp.c 427 $(SRC)/tcp.c
451 428
452$(BLD)/test-distrib.$(O) : \ 429$(BLD)/test-distrib.$(O) : \
453 $(SRC)/test-distrib.c 430 $(SRC)/test-distrib.c
454 431
455$(BLD)/timer.$(O) : \
456 $(SRC)/timer.c \
457 $(EMACS_ROOT)/src/s/ms-w32.h \
458 $(EMACS_ROOT)/src/m/intel386.h \
459 $(EMACS_ROOT)/lib-src/../src/config.h
460
461# The following dependencies are for supporting parallel builds, where 432# The following dependencies are for supporting parallel builds, where
462# we must make sure $(BLD) exists before any compilation starts. 433# we must make sure $(BLD) exists before any compilation starts.
463# 434#
diff --git a/lib-src/rcs-checkin b/lib-src/rcs-checkin
deleted file mode 100755
index 57e91becf9d..00000000000
--- a/lib-src/rcs-checkin
+++ /dev/null
@@ -1,116 +0,0 @@
1#! /bin/sh
2
3# This script accepts any number of file arguments and checks them into RCS.
4
5# Copyright (C) 1993-1995, 2001-2012 Free Software Foundation, Inc.
6
7# This file is part of GNU Emacs.
8
9# GNU Emacs is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, either version 3 of the License, or
12# (at your option) any later version.
13
14# GNU Emacs is distributed in the hope that it will be useful,
15# but WITHOUT ANY WARRANTY; without even the implied warranty of
16# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17# GNU General Public License for more details.
18
19# You should have received a copy of the GNU General Public License
20# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
21
22
23# Arguments which are detectably either RCS masters (with names ending in ,v)
24# or Emacs version files (with names of the form foo.~<number>~) are ignored.
25# For each file foo, the script looks for Emacs version files related to it.
26# These files are checked in as deltas, oldest first, so that the contents of
27# the file itself becomes the latest revision in the master.
28#
29# The first line of each file is used as its description text. The file itself
30# is not deleted, as under VC with vc-keep-workfiles at its default of t, but
31# all the version files are.
32#
33# If an argument file is already version-controlled under RCS, any version
34# files are added to the list of deltas and deleted, and then the workfile
35# is checked in again as the latest version. This is probably not quite
36# what was wanted, and is the main reason VC doesn't simply call this to
37# do checkins.
38#
39# This script is intended to be used to convert files with an old-Emacs-style
40# version history for use with VC (the Emacs 19 version-control interface),
41# which likes to use RCS as its back end. It was written by Paul Eggert
42# and revised/documented for use with VC by Eric S. Raymond, Mar 19 1993.
43
44case $# in
450)
46 echo "rcs-checkin: usage: rcs-checkin file ..."
47 echo "rcs-checkin: function: checks file.~*~ and file into a new RCS file"
48 echo "rcs-checkin: function: uses the file's first line for the description"
49esac
50
51# expr pattern to extract owner from ls -l output
52ls_owner_pattern='[^ ][^ ]* *[^ ][^ ]* *\([^ ][^ ]*\)'
53
54for file
55do
56 # Make it easier to say `rcs-checkin *'
57 # by ignoring file names that already contain `~', or end in `,v'.
58 case $file in
59 *~* | *,v) continue
60 esac
61 # Ignore non-files too.
62 test -f "$file" || continue
63
64 # Check that file is readable.
65 test -r "$file" || exit
66
67 # If the RCS file does not already exist,
68 # initialize it with a description from $file's first line.
69 rlog -R "$file" >/dev/null 2>&1 ||
70 rcs -i -q -t-"`sed 1q $file`" "$file" || exit
71
72 # Get list of old files.
73 oldfiles=`
74 ls $file.~[0-9]*~ 2>/dev/null |
75 sort -t~ -n -k 2
76 `
77
78 # Check that they are properly sorted by date.
79 case $oldfiles in
80 ?*)
81 oldfiles_by_date=`ls -rt $file $oldfiles`
82 test " $oldfiles
83$file" = " $oldfiles_by_date" || {
84 echo >&2 "rcs-checkin: skipping $file, because its mod times are out of order.
85
86Sorted by mod time:
87$oldfiles_by_date
88
89Sorted by name:
90$oldfiles
91$file"
92 continue
93 }
94 esac
95
96 echo >&2 rcs-checkin: checking in: $oldfiles $file
97
98 # Save $file as $file.~-~ temporarily.
99 mv "$file" "$file.~-~" || exit
100
101 # Rename each old file to $file, and check it in.
102 for oldfile in $oldfiles
103 do
104 mv "$oldfile" "$file" || exit
105 ls_l=`ls -l "$file"` || exit
106 owner=-w`expr " $ls_l" : " $ls_owner_pattern"` || owner=
107 echo "Formerly ${oldfile}" | ci -d -l -q $owner "$file" || exit
108 done
109
110 # Bring $file back from $file.~-~, and check it in.
111 mv "$file.~-~" "$file" || exit
112 ls_l=`ls -l "$file"` || exit
113 owner=-w`expr " $ls_l" : " $ls_owner_pattern"` || owner=
114 ci -d -q -u $owner -m"entered into RCS" "$file" || exit
115done
116
diff --git a/lib-src/vcdiff b/lib-src/vcdiff
deleted file mode 100755
index dd7ca446d7c..00000000000
--- a/lib-src/vcdiff
+++ /dev/null
@@ -1,114 +0,0 @@
1#! /bin/sh
2
3# Enhanced sccs diff utility for use with vc mode.
4# This version is more compatible with rcsdiff(1).
5
6# Copyright (C) 1992-1993, 1995, 1997, 2001-2012
7# Free Software Foundation, Inc.
8
9# Author: Paul Eggert
10# (according to authors.el)
11
12# This file is part of GNU Emacs.
13
14# GNU Emacs is free software: you can redistribute it and/or modify
15# it under the terms of the GNU General Public License as published by
16# the Free Software Foundation, either version 3 of the License, or
17# (at your option) any later version.
18
19# GNU Emacs is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22# GNU General Public License for more details.
23
24# You should have received a copy of the GNU General Public License
25# along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
26
27
28DIFF="diff"
29usage="$0: Usage: vcdiff [--brief] [-q] [-r<sid1>] [-r<sid2>] [diffopts] sccsfile..."
30
31# Now that we use `sccs get' rather than just `get', we don't need this.
32# PATH=$PATH:/usr/ccs/bin:/usr/sccs:/usr/xpg4/bin # common SCCS hangouts
33
34echo="echo"
35sid1= sid2=
36
37for f
38do
39 case $f in
40 -*)
41 case $f in
42 --brief)
43 DIFF=cmp;;
44 -q)
45 echo=:;;
46 -r?*)
47 case $sid1 in
48 '')
49 sid1=$f
50 ;;
51 *)
52 case $sid2 in
53 ?*) echo "$usage" >&2; exit 2 ;;
54 esac
55 sid2=$f
56 ;;
57 esac
58 ;;
59 *)
60 options="$options $f"
61 ;;
62 esac
63 shift
64 ;;
65 *)
66 break
67 ;;
68 esac
69done
70
71case $# in
720)
73 echo "$usage" >&2
74 exit 2
75esac
76
77
78rev1= rev2= status=0
79trap 'status=2; exit' 1 2 13 15
80trap 'rm -f $rev1 $rev2 || status=2; exit $status' 0
81
82for f
83do
84 s=2
85
86 case $f in
87 s.* | */s.*)
88 if
89 rev1=`mktemp /tmp/geta.XXXXXXXX`
90 sccs get -s -p -k $sid1 "$f" > $rev1 &&
91 case $sid2 in
92 '')
93 workfile=`expr " /$f" : '.*/s.\(.*\)'`
94 ;;
95 *)
96 rev2=`mktemp /tmp/getb.XXXXXXXX`
97 sccs get -s -p -k $sid2 "$f" > $rev2
98 workfile=$rev2
99 esac
100 then
101 $echo $DIFF $options $rev1 $workfile >&2
102 $DIFF $options $rev1 $workfile
103 s=$?
104 fi
105 ;;
106 *)
107 echo "$0: $f is not an SCCS file" >&2
108 esac
109
110 if test $status -lt $s
111 then status=$s
112 fi
113done
114