aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorMiles Bader2006-06-07 18:05:10 +0000
committerMiles Bader2006-06-07 18:05:10 +0000
commitb883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb (patch)
treede3804210a8cd955e0d3b9abc15679480930bc82 /lib-src
parent885b7d0991bd4b4b8f4bd1d3cd21c18a697bbce2 (diff)
parent26c9afc3239e18b03537faaea33e3e82e28099e6 (diff)
downloademacs-b883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb.tar.gz
emacs-b883cdb2fefa8ea9c3b0d82eba7a9ee792f871bb.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 285-296) - Update from CVS - Merge from gnus--rel--5.10 - Update from CVS: admin/FOR-RELEASE: Update refcard section. * gnus--rel--5.10 (patch 102-104) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-64
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog33
-rw-r--r--lib-src/digest-doc.c11
-rw-r--r--lib-src/ebrowse.c22
-rw-r--r--lib-src/leditcfns.c21
-rw-r--r--lib-src/makefile.w32-in29
-rw-r--r--lib-src/pop.c9
-rw-r--r--lib-src/sorted-doc.c14
7 files changed, 100 insertions, 39 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 16c4e538939..557d8a2d492 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,36 @@
12006-06-04 Masatake YAMATO <jet@gyve.org>
2
3 * ebrowse.c (main): Exit with EXIT_FAILURE if BROWSE file
4 doesn't exist, is not seekable, not is failed in ftall.
5
62006-06-03 Eli Zaretskii <eliz@gnu.org>
7
8 * makefile.w32-in (ALL): Add sorted-doc and digest-doc.
9 ($(BLD)/sorted-doc.exe, $(BLD)/digest-doc.exe)
10 ($(BLD)/test-distrib.exe): New targets.
11 (sorted-doc, digest-doc, test-distrib): New targets.
12 (install): Install sorted-doc.exe and digest-doc.exe.
13 ($(BLD)/sorted-doc.$(O)): Update dependencies.
14
15 * digest-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
16 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a
17 terminal device.
18
19 * sorted-doc.c [DOS_NT] <top level>: Include fcntl.h and io.h.
20 [WINDOWSNT] <top level>: Don't redeclare malloc.
21 (main) [DOS_NT]: Switch stdin to binary mode, if it is not a
22 terminal device.
23 (main): Initialize bp, to avoid compiler warnings
24
25 * makefile.w32-in: Delete traces of leditcfns.c.
26
27 * leditcfns.c: Remove file.
28
292006-05-23 Francesco Potort,Al(B <pot@gnu.org>
30
31 * pop.c (pop_open, socket_connection, KPOP_SERVICE): Added
32 comments explaining why the "kpop" service is never used.
33
12006-05-13 Eli Zaretskii <eliz@gnu.org> 342006-05-13 Eli Zaretskii <eliz@gnu.org>
2 35
3 * makefile.w32-in (lisp1): Add fringe.elc. 36 * makefile.w32-in (lisp1): Add fringe.elc.
diff --git a/lib-src/digest-doc.c b/lib-src/digest-doc.c
index 7b5a9677e7c..7787d422e39 100644
--- a/lib-src/digest-doc.c
+++ b/lib-src/digest-doc.c
@@ -26,12 +26,23 @@
26 26
27#include <stdio.h> 27#include <stdio.h>
28 28
29#ifdef DOS_NT
30#include <fcntl.h> /* for O_BINARY */
31#include <io.h> /* for setmode */
32#endif
33
29int 34int
30main () 35main ()
31{ 36{
32 register int ch; 37 register int ch;
33 register int notfirst = 0; 38 register int notfirst = 0;
34 39
40#ifdef DOS_NT
41 /* DOC is a binary file. */
42 if (!isatty (fileno (stdin)))
43 setmode (fileno (stdin), O_BINARY);
44#endif
45
35 printf (".TL\n"); 46 printf (".TL\n");
36 printf ("Command Summary for GNU Emacs\n"); 47 printf ("Command Summary for GNU Emacs\n");
37 printf (".AU\nRichard M. Stallman\n"); 48 printf (".AU\nRichard M. Stallman\n");
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index 94fa9114d23..398dd10896e 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -3909,17 +3909,31 @@ main (argc, argv)
3909 3909
3910 fp = fopen (out_filename, "r"); 3910 fp = fopen (out_filename, "r");
3911 if (fp == NULL) 3911 if (fp == NULL)
3912 yyerror ("file `%s' must exist for --append", out_filename); 3912 {
3913 yyerror ("file `%s' must exist for --append", out_filename);
3914 exit (EXIT_FAILURE);
3915 }
3913 3916
3914 rc = fseek (fp, 0, SEEK_END); 3917 rc = fseek (fp, 0, SEEK_END);
3915 if (rc == -1) 3918 if (rc == -1)
3916 yyerror ("error seeking in file `%s'", out_filename); 3919 {
3920 yyerror ("error seeking in file `%s'", out_filename);
3921 exit (EXIT_FAILURE);
3922 }
3917 3923
3918 rc = ftell (fp); 3924 rc = ftell (fp);
3919 if (rc == -1) 3925 if (rc == -1)
3920 yyerror ("error getting size of file `%s'", out_filename); 3926 {
3927 yyerror ("error getting size of file `%s'", out_filename);
3928 exit (EXIT_FAILURE);
3929 }
3930
3921 else if (rc == 0) 3931 else if (rc == 0)
3922 yyerror ("file `%s' is empty", out_filename); 3932 {
3933 yyerror ("file `%s' is empty", out_filename);
3934 /* It may be ok to use an empty file for appending.
3935 exit (EXIT_FAILURE); */
3936 }
3923 3937
3924 fclose (fp); 3938 fclose (fp);
3925 } 3939 }
diff --git a/lib-src/leditcfns.c b/lib-src/leditcfns.c
deleted file mode 100644
index 239db1cd1fa..00000000000
--- a/lib-src/leditcfns.c
+++ /dev/null
@@ -1,21 +0,0 @@
1#include <sgtty.h>
2#include <signal.h>
3#define STRLEN 100
4static char str[STRLEN+1] = "%?emacs"; /* extra char for the null */
5
6switch_to_proc(){
7 char *ptr = str;
8 while (*ptr) ioctl(0, TIOCSTI, ptr++);
9 ioctl(0, TIOCSTI, "\n");
10 kill(getpid(), SIGTSTP);
11 }
12
13set_proc_str(ptr) char *ptr; {
14 if (strlen(ptr) <= STRLEN)
15 strcpy(str, ptr);
16 else
17 printf("string too long for set-proc-str: %s\n", ptr);
18 }
19
20/* arch-tag: eb7ae804-0d6e-4077-ab42-7173821410c3
21 (do not change this comment) */
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index c145e47f197..f941e862514 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -20,7 +20,7 @@
20# Boston, MA 02110-1301, USA. 20# Boston, MA 02110-1301, USA.
21# 21#
22 22
23ALL = make-docfile hexl ctags etags movemail ebrowse 23ALL = make-docfile hexl ctags etags movemail ebrowse sorted-doc digest-doc
24 24
25.PHONY: $(ALL) 25.PHONY: $(ALL)
26 26
@@ -30,15 +30,10 @@ LOCAL_FLAGS = -DWINDOWSNT -DDOS_NT -DSTDC_HEADERS=1 -DNO_LDAV=1 \
30 30
31# don't know what (if) to do with these yet... 31# don't know what (if) to do with these yet...
32# 32#
33# $(BLD)/sorted-doc.exe \
34# $(BLD)/env.exe \
35# $(BLD)/server.exe \ 33# $(BLD)/server.exe \
36# $(BLD)/emacstool.exe \ 34# $(BLD)/emacstool.exe \
37# $(BLD)/leditcfns.exe \
38# $(BLD)/emacsclient.exe \ 35# $(BLD)/emacsclient.exe \
39# $(BLD)/cvtmail.exe \ 36# $(BLD)/cvtmail.exe \
40# $(BLD)/digest-doc.exe \
41# $(BLD)/test-distrib.exe \
42 37
43LIBS = $(BASE_LIBS) $(ADVAPI32) 38LIBS = $(BASE_LIBS) $(ADVAPI32)
44 39
@@ -48,6 +43,12 @@ $(BLD)/hexl.exe: $(BLD)/hexl.$(O)
48 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS) 43 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/hexl.$(O) $(LIBS)
49$(BLD)/fakemail.exe: $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O) 44$(BLD)/fakemail.exe: $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O)
50 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O) $(LIBS) 45 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/fakemail.$(O) $(BLD)/ntlib.$(O) $(LIBS)
46$(BLD)/sorted-doc.exe: $(BLD)/sorted-doc.$(O)
47 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/sorted-doc.$(O) $(LIBS)
48$(BLD)/digest-doc.exe: $(BLD)/digest-doc.$(O)
49 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/digest-doc.$(O) $(LIBS)
50$(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O)
51 $(LINK) $(LINK_OUT)$@ $(LINK_FLAGS) $(BLD)/test-distrib.$(O) $(LIBS)
51 52
52make-docfile: $(BLD) $(BLD)/make-docfile.exe 53make-docfile: $(BLD) $(BLD)/make-docfile.exe
53ctags: $(BLD) $(BLD)/ctags.exe 54ctags: $(BLD) $(BLD)/ctags.exe
@@ -56,6 +57,11 @@ ebrowse: $(BLD) $(BLD)/ebrowse.exe
56hexl: $(BLD) $(BLD)/hexl.exe 57hexl: $(BLD) $(BLD)/hexl.exe
57movemail: $(BLD) $(BLD)/movemail.exe 58movemail: $(BLD) $(BLD)/movemail.exe
58fakemail: $(BLD) $(BLD)/fakemail.exe 59fakemail: $(BLD) $(BLD)/fakemail.exe
60sorted-doc: $(BLD) $(BLD)/sorted-doc.exe
61digest-doc: $(BLD) $(BLD)/digest-doc.exe
62
63test-distrib: $(BLD) $(BLD)/test-distrib.exe
64 "$(BLD)/test-distrib.exe" "$(SRC)/testfile"
59 65
60GETOPTOBJS = $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O) 66GETOPTOBJS = $(BLD)/getopt.$(O) $(BLD)/getopt1.$(O)
61GETOPTDEPS = $(GETOPTOBJS) getopt.h 67GETOPTDEPS = $(GETOPTOBJS) getopt.h
@@ -114,15 +120,11 @@ $(BLD)/ctags.$(O): ctags.c
114# 120#
115# don't know what to do with these yet... 121# don't know what to do with these yet...
116# 122#
117# $(BLD)/sorted-doc.exe: $(BLD)/sorted-doc.$(O)
118# $(BLD)/yow.exe: $(BLD)/yow.$(O) 123# $(BLD)/yow.exe: $(BLD)/yow.$(O)
119# $(BLD)/emacstool.exe: $(BLD)/emacstool.$(O) 124# $(BLD)/emacstool.exe: $(BLD)/emacstool.$(O)
120# $(BLD)/leditcfns.exe: $(BLD)/leditcfns.$(O)
121# $(BLD)/server.exe: $(BLD)/server.$(O) 125# $(BLD)/server.exe: $(BLD)/server.$(O)
122# $(BLD)/cvtmail.exe: $(BLD)/cvtmail.$(O) 126# $(BLD)/cvtmail.exe: $(BLD)/cvtmail.$(O)
123# $(BLD)/digest-doc.exe: $(BLD)/digest-doc.$(O)
124# $(BLD)/emacsclient.exe: $(BLD)/emacsclient.$(O) 127# $(BLD)/emacsclient.exe: $(BLD)/emacsclient.$(O)
125# $(BLD)/test-distrib.exe: $(BLD)/test-distrib.$(O)
126 128
127# 129#
128# From ..\src\Makefile.in 130# From ..\src\Makefile.in
@@ -283,6 +285,8 @@ install: $(INSTALL_FILES)
283 $(CP) $(BLD)/ctags.exe $(INSTALL_DIR)/bin 285 $(CP) $(BLD)/ctags.exe $(INSTALL_DIR)/bin
284 $(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin 286 $(CP) $(BLD)/hexl.exe $(INSTALL_DIR)/bin
285 $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin 287 $(CP) $(BLD)/movemail.exe $(INSTALL_DIR)/bin
288 $(CP) $(BLD)/sorted-doc.exe $(INSTALL_DIR)/bin
289 $(CP) $(BLD)/digest-doc.exe $(INSTALL_DIR)/bin
286 - mkdir "$(INSTALL_DIR)/etc" 290 - mkdir "$(INSTALL_DIR)/etc"
287 $(CP) $(DOC) $(INSTALL_DIR)/etc 291 $(CP) $(DOC) $(INSTALL_DIR)/etc
288 292
@@ -438,7 +442,10 @@ $(BLD)/qsort.$(O) : \
438 $(SRC)/qsort.c 442 $(SRC)/qsort.c
439 443
440$(BLD)/sorted-doc.$(O) : \ 444$(BLD)/sorted-doc.$(O) : \
441 $(SRC)/sorted-doc.c 445 $(SRC)/sorted-doc.c \
446 $(EMACS_ROOT)/src/s/ms-w32.h \
447 $(EMACS_ROOT)/src/m/intel386.h \
448 $(EMACS_ROOT)/src/config.h \
442 449
443$(BLD)/tcp.$(O) : \ 450$(BLD)/tcp.$(O) : \
444 $(SRC)/tcp.c 451 $(SRC)/tcp.c
diff --git a/lib-src/pop.c b/lib-src/pop.c
index 7d6bcc5cdc9..5dcbf2d2483 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -135,7 +135,7 @@ static char *find_crlf __P((char *, int));
135#define KPOP_PORT 1109 135#define KPOP_PORT 1109
136#define POP_SERVICE "pop3" /* we don't want the POP2 port! */ 136#define POP_SERVICE "pop3" /* we don't want the POP2 port! */
137#ifdef KERBEROS 137#ifdef KERBEROS
138#define KPOP_SERVICE "kpop" 138#define KPOP_SERVICE "kpop" /* never used: look for 20060515 to see why */
139#endif 139#endif
140 140
141char pop_error[ERROR_MAX]; 141char pop_error[ERROR_MAX];
@@ -264,10 +264,11 @@ pop_open (host, username, password, flags)
264 return (0); 264 return (0);
265 } 265 }
266 } 266 }
267 if (password) 267 if (password) /* always true, detected 20060515 */
268 flags |= POP_NO_KERBEROS; 268 flags |= POP_NO_KERBEROS;
269 else 269 else
270 password = username; 270 password = username; /* dead code, detected 20060515 */
271 /** "kpop" service is never used: look for 20060515 to see why **/
271 272
272 sock = socket_connection (host, flags); 273 sock = socket_connection (host, flags);
273 if (sock == -1) 274 if (sock == -1)
@@ -1047,6 +1048,7 @@ socket_connection (host, flags)
1047 bzero ((char *) &addr, sizeof (addr)); 1048 bzero ((char *) &addr, sizeof (addr));
1048 addr.sin_family = AF_INET; 1049 addr.sin_family = AF_INET;
1049 1050
1051 /** "kpop" service is never used: look for 20060515 to see why **/
1050#ifdef KERBEROS 1052#ifdef KERBEROS
1051 service = (flags & POP_NO_KERBEROS) ? POP_SERVICE : KPOP_SERVICE; 1053 service = (flags & POP_NO_KERBEROS) ? POP_SERVICE : KPOP_SERVICE;
1052#else 1054#else
@@ -1073,6 +1075,7 @@ socket_connection (host, flags)
1073 } 1075 }
1074 else 1076 else
1075 { 1077 {
1078 /** "kpop" service is never used: look for 20060515 to see why **/
1076#ifdef KERBEROS 1079#ifdef KERBEROS
1077 addr.sin_port = htons ((flags & POP_NO_KERBEROS) ? 1080 addr.sin_port = htons ((flags & POP_NO_KERBEROS) ?
1078 POP_PORT : KPOP_PORT); 1081 POP_PORT : KPOP_PORT);
diff --git a/lib-src/sorted-doc.c b/lib-src/sorted-doc.c
index 0a06aa2c984..a8b2d441f9a 100644
--- a/lib-src/sorted-doc.c
+++ b/lib-src/sorted-doc.c
@@ -29,9 +29,15 @@
29 29
30#include <stdio.h> 30#include <stdio.h>
31#include <ctype.h> 31#include <ctype.h>
32#ifdef DOS_NT
33#include <fcntl.h> /* for O_BINARY */
34#include <io.h> /* for setmode */
35#endif
32#ifndef HAVE_STDLIB_H /* config.h includes stdlib. */ 36#ifndef HAVE_STDLIB_H /* config.h includes stdlib. */
37#ifndef WINDOWSNT /* src/s/ms-w32.h includes stdlib.h */
33extern char *malloc (); 38extern char *malloc ();
34#endif 39#endif
40#endif
35 41
36#define NUL '\0' 42#define NUL '\0'
37#define MARKER '\037' 43#define MARKER '\037'
@@ -134,6 +140,14 @@ main ()
134 DOCSTR *docs = NULL; /* chain of allocated DOCSTRS */ 140 DOCSTR *docs = NULL; /* chain of allocated DOCSTRS */
135 char buf[512]; /* line buffer */ 141 char buf[512]; /* line buffer */
136 142
143#ifdef DOS_NT
144 /* DOC is a binary file. */
145 if (!isatty (fileno (stdin)))
146 setmode (fileno (stdin), O_BINARY);
147#endif
148
149 bp = buf;
150
137 while (1) /* process one char at a time */ 151 while (1) /* process one char at a time */
138 { 152 {
139 /* this char from the DOCSTR file */ 153 /* this char from the DOCSTR file */