aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorMiles Bader2006-08-16 14:08:49 +0000
committerMiles Bader2006-08-16 14:08:49 +0000
commitde20e0ccdb039a2ac27e5bbd3e06ab70c4e7bb65 (patch)
tree80243ce02b52cbf7945c614bd213dd63142b861a /lib-src
parent7a5c2a42040b12b037940a067aee6ac6fde01680 (diff)
parent5ebdc2990a95cc38b21f772eea4de3ceee149e54 (diff)
downloademacs-de20e0ccdb039a2ac27e5bbd3e06ab70c4e7bb65.tar.gz
emacs-de20e0ccdb039a2ac27e5bbd3e06ab70c4e7bb65.zip
Merge from emacs--devo--0
Patches applied: * emacs--devo--0 (patch 382-398) - Update from CVS - Update from erc--emacs--22 - Fix ERC bug introduced in last patch - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 123-125) - Update from CVS Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-101
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog15
-rw-r--r--lib-src/etags.c7
2 files changed, 19 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index f61188fb8d5..3328f010846 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,18 @@
12006-08-09 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2
3 * etags.c (readline): expect sscanf returns >= 1.
4 (readline): Change position on %n and \" in sscanf.
5
62006-08-07 Masatake YAMATO <jet@gyve.org>
7
8 * etags.c (readline): expect sscanf returns 2,
9 not 1.
10
112006-08-07 Masatake YAMATO <jet@gyve.org>
12
13 * etags.c (TEX_mode): Check getc retruns EOF.
14 File ended without newline causes infinite loop.
15
12002-07-30 Adrian Aichner <adrian@xemacs.org> (tiny change) 162002-07-30 Adrian Aichner <adrian@xemacs.org> (tiny change)
2 17
3 * etags.c: It's XEmacs, not Xemacs: change all the occurences. 18 * etags.c: It's XEmacs, not Xemacs: change all the occurences.
diff --git a/lib-src/etags.c b/lib-src/etags.c
index d60c12c2bcc..49a18be1df5 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -5165,7 +5165,7 @@ TEX_mode (inf)
5165 { 5165 {
5166 /* Skip to next line if we hit the TeX comment char. */ 5166 /* Skip to next line if we hit the TeX comment char. */
5167 if (c == '%') 5167 if (c == '%')
5168 while (c != '\n') 5168 while (c != '\n' && c != EOF)
5169 c = getc (inf); 5169 c = getc (inf);
5170 else if (c == TEX_LESC || c == TEX_SESC ) 5170 else if (c == TEX_LESC || c == TEX_SESC )
5171 break; 5171 break;
@@ -6259,9 +6259,10 @@ readline (lbp, stream)
6259 int start, lno; 6259 int start, lno;
6260 6260
6261 if (DEBUG) start = 0; /* shut up the compiler */ 6261 if (DEBUG) start = 0; /* shut up the compiler */
6262 if (sscanf (lbp->buffer, "#line %d \"%n", &lno, &start) == 1) 6262 if (sscanf (lbp->buffer, "#line %d %n\"", &lno, &start) >= 1
6263 && lbp->buffer[start] == '"')
6263 { 6264 {
6264 char *endp = lbp->buffer + start; 6265 char *endp = lbp->buffer + ++start;
6265 6266
6266 assert (start > 0); 6267 assert (start > 0);
6267 while ((endp = etags_strchr (endp, '"')) != NULL 6268 while ((endp = etags_strchr (endp, '"')) != NULL