aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ebrowse.c4
-rw-r--r--lib-src/emacsclient.c4
-rw-r--r--lib-src/etags.c35
-rw-r--r--lib-src/hexl.c7
-rw-r--r--lib-src/make-docfile.c4
-rw-r--r--lib-src/movemail.c49
-rw-r--r--lib-src/ntlib.c4
-rw-r--r--lib-src/ntlib.h5
-rw-r--r--lib-src/pop.c4
-rw-r--r--lib-src/pop.h4
-rw-r--r--lib-src/profile.c4
-rw-r--r--lib-src/update-game-score.c4
12 files changed, 93 insertions, 35 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c
index cb09ab80879..c59181f9464 100644
--- a/lib-src/ebrowse.c
+++ b/lib-src/ebrowse.c
@@ -6,8 +6,8 @@ This file is part of GNU Emacs.
6 6
7GNU Emacs is free software: you can redistribute it and/or modify 7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by 8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or 9the Free Software Foundation, either version 3 of the License, or (at
10(at your option) any later version. 10your option) any later version.
11 11
12GNU Emacs is distributed in the hope that it will be useful, 12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of 13but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index c7cef8a2b20..dd66d34da70 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -6,8 +6,8 @@ This file is part of GNU Emacs.
6 6
7GNU Emacs is free software: you can redistribute it and/or modify 7GNU Emacs is free software: you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by 8it under the terms of the GNU General Public License as published by
9the Free Software Foundation, either version 3 of the License, or 9the Free Software Foundation, either version 3 of the License, or (at
10(at your option) any later version. 10your option) any later version.
11 11
12GNU Emacs is distributed in the hope that it will be useful, 12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of 13but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 796adaa5d05..a8221497393 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -35,8 +35,8 @@ This file is not considered part of GNU Emacs.
35 35
36This program is free software: you can redistribute it and/or modify 36This program is free software: you can redistribute it and/or modify
37it under the terms of the GNU General Public License as published by 37it under the terms of the GNU General Public License as published by
38the Free Software Foundation, either version 3 of the License, or 38the Free Software Foundation, either version 3 of the License, or (at
39(at your option) any later version. 39your option) any later version.
40 40
41This program is distributed in the hope that it will be useful, 41This program is distributed in the hope that it will be useful,
42but WITHOUT ANY WARRANTY; without even the implied warranty of 42but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -680,8 +680,8 @@ static const char *Objc_suffixes [] =
680static const char Objc_help [] = 680static const char Objc_help [] =
681"In Objective C code, tags include Objective C definitions for classes,\n\ 681"In Objective C code, tags include Objective C definitions for classes,\n\
682class categories, methods and protocols. Tags for variables and\n\ 682class categories, methods and protocols. Tags for variables and\n\
683functions in classes are named 'CLASS::VARIABLE' and 'CLASS::FUNCTION'.\n\ 683functions in classes are named 'CLASS::VARIABLE' and 'CLASS::FUNCTION'.\
684(Use --help --lang=c --lang=objc --lang=java for full help.)"; 684\n(Use --help --lang=c --lang=objc --lang=java for full help.)";
685 685
686static const char *Pascal_suffixes [] = 686static const char *Pascal_suffixes [] =
687 { "p", "pas", NULL }; 687 { "p", "pas", NULL };
@@ -972,11 +972,12 @@ Relative ones are stored relative to the output file's directory.\n");
972 in some languages."); 972 in some languages.");
973 973
974 puts ("-Q, --class-qualify\n\ 974 puts ("-Q, --class-qualify\n\
975 Qualify tag names with their class name in C++, ObjC, and Java.\n\ 975 Qualify tag names with their class name in C++, ObjC, Java, and Perl.\n\
976 This produces tag names of the form \"class::member\" for C++,\n\ 976 This produces tag names of the form \"class::member\" for C++,\n\
977 \"class(category)\" for Objective C, and \"class.member\" for Java.\n\ 977 \"class(category)\" for Objective C, and \"class.member\" for Java.\n\
978 For Objective C, this also produces class methods qualified with\n\ 978 For Objective C, this also produces class methods qualified with\n\
979 their arguments, as in \"foo:bar:baz:more\"."); 979 their arguments, as in \"foo:bar:baz:more\".\n\
980 For Perl, this produces \"package::member\".");
980 puts ("-r REGEXP, --regex=REGEXP or --regex=@regexfile\n\ 981 puts ("-r REGEXP, --regex=REGEXP or --regex=@regexfile\n\
981 Make a tag for each line matching a regular expression pattern\n\ 982 Make a tag for each line matching a regular expression pattern\n\
982 in the following files. {LANGUAGE}REGEXP uses REGEXP for LANGUAGE\n\ 983 in the following files. {LANGUAGE}REGEXP uses REGEXP for LANGUAGE\n\
@@ -4535,10 +4536,21 @@ Perl_functions (FILE *inf)
4535 continue; /* nothing found */ 4536 continue; /* nothing found */
4536 pos = strchr (sp, ':'); 4537 pos = strchr (sp, ':');
4537 if (pos && pos < cp && pos[1] == ':') 4538 if (pos && pos < cp && pos[1] == ':')
4538 /* The name is already qualified. */ 4539 {
4539 make_tag (sp, cp - sp, true, 4540 /* The name is already qualified. */
4540 lb.buffer, cp - lb.buffer + 1, lineno, linecharno); 4541 if (!class_qualify)
4541 else 4542 {
4543 char *q = pos + 2, *qpos;
4544 while ((qpos = strchr (q, ':')) != NULL
4545 && qpos < cp
4546 && qpos[1] == ':')
4547 q = qpos + 2;
4548 sp = q;
4549 }
4550 make_tag (sp, cp - sp, true,
4551 lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
4552 }
4553 else if (class_qualify)
4542 /* Qualify it. */ 4554 /* Qualify it. */
4543 { 4555 {
4544 char savechar, *name; 4556 char savechar, *name;
@@ -4551,6 +4563,9 @@ Perl_functions (FILE *inf)
4551 lb.buffer, cp - lb.buffer + 1, lineno, linecharno); 4563 lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
4552 free (name); 4564 free (name);
4553 } 4565 }
4566 else
4567 make_tag (sp, cp - sp, true,
4568 lb.buffer, cp - lb.buffer + 1, lineno, linecharno);
4554 } 4569 }
4555 else if (LOOKING_AT (cp, "use constant") 4570 else if (LOOKING_AT (cp, "use constant")
4556 || LOOKING_AT (cp, "use constant::defer")) 4571 || LOOKING_AT (cp, "use constant::defer"))
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index 833ea50b480..9a5ca7e1543 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -1,15 +1,14 @@
1/* Convert files for Emacs Hexl mode. 1/* Convert files for Emacs Hexl mode.
2 Copyright (C) 1989, 2001-2016 Free Software Foundation, Inc. 2 Copyright (C) 1989, 2001-2016 Free Software Foundation, Inc.
3 3
4Author: Keith Gabryelski 4Author: Keith Gabryelski (according to authors.el)
5(according to authors.el)
6 5
7This file is not considered part of GNU Emacs. 6This file is not considered part of GNU Emacs.
8 7
9This program is free software: you can redistribute it and/or modify 8This program is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by 9it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 3 of the License, or 10the Free Software Foundation, either version 3 of the License, or (at
12(at your option) any later version. 11your option) any later version.
13 12
14This program is distributed in the hope that it will be useful, 13This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of 14but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index e266207ee9e..32e3817a465 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -7,8 +7,8 @@ This file is part of GNU Emacs.
7 7
8GNU Emacs is free software: you can redistribute it and/or modify 8GNU Emacs is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by 9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 3 of the License, or 10the Free Software Foundation, either version 3 of the License, or (at
11(at your option) any later version. 11your option) any later version.
12 12
13GNU Emacs is distributed in the hope that it will be useful, 13GNU Emacs is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of 14but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index eb1962a8f6b..90e683ed855 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -8,8 +8,8 @@ This file is part of GNU Emacs.
8 8
9GNU Emacs is free software: you can redistribute it and/or modify 9GNU Emacs is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by 10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 3 of the License, or 11the Free Software Foundation, either version 3 of the License, or (at
12(at your option) any later version. 12your option) any later version.
13 13
14GNU Emacs is distributed in the hope that it will be useful, 14GNU Emacs is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of 15but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -799,6 +799,51 @@ mbx_write (char *line, int len, FILE *mbf)
799 return fwrite (line, 1, len, mbf) == len && 0 <= fputc ('\n', mbf); 799 return fwrite (line, 1, len, mbf) == len && 0 <= fputc ('\n', mbf);
800} 800}
801 801
802#ifdef WINDOWSNT
803/* Work around MS-Windows lack of support for %e or %T with a
804 special-purpose strftime that assumes the exact format that
805 movemail uses. */
806static size_t
807movemail_strftime (char *s, size_t size, char const *format,
808 struct tm const *tm)
809{
810 char fmt[size + 6], *q;
811 const char *p;
812
813 for (p = format, q = &fmt[0]; *p; )
814 {
815 if (*p == '%' && p[1] == 'e')
816 {
817 memcpy (q, "%d", 2);
818 q += 2;
819 p += 2;
820 }
821 else if (*p == '%' && p[1] == 'T')
822 {
823 memcpy (q, "%H:%M:%S", 8);
824 q += 8;
825 p += 2;
826 }
827 else if (*p == '%' && p[1] == '%')
828 {
829 memcpy (q, p, 2);
830 q += 2;
831 p += 2;
832 }
833 else
834 *q++ = *p++;
835 }
836
837 size_t n = strftime (s, size, fmt, tm);
838 char *mday = s + sizeof "From movemail Sun Jan " - 1;
839 if (*mday == '0')
840 *mday = ' ';
841 return n;
842}
843# undef strftime
844# define strftime movemail_strftime
845#endif
846
802static bool 847static bool
803mbx_delimit_begin (FILE *mbf) 848mbx_delimit_begin (FILE *mbf)
804{ 849{
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index 931a3abdf93..4b25796830e 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -9,8 +9,8 @@ This file is part of GNU Emacs.
9 9
10GNU Emacs is free software: you can redistribute it and/or modify 10GNU Emacs is free software: you can redistribute it and/or modify
11it under the terms of the GNU General Public License as published by 11it under the terms of the GNU General Public License as published by
12the Free Software Foundation, either version 3 of the License, or 12the Free Software Foundation, either version 3 of the License, or (at
13(at your option) any later version. 13your option) any later version.
14 14
15GNU Emacs is distributed in the hope that it will be useful, 15GNU Emacs is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of 16but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h
index a0c0d43bdc6..b49da79f328 100644
--- a/lib-src/ntlib.h
+++ b/lib-src/ntlib.h
@@ -5,8 +5,8 @@ This file is part of GNU Emacs.
5 5
6GNU Emacs is free software: you can redistribute it and/or modify 6GNU Emacs is free software: you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by 7it under the terms of the GNU General Public License as published by
8the Free Software Foundation, either version 3 of the License, or 8the Free Software Foundation, either version 3 of the License, or (at
9(at your option) any later version. 9your option) any later version.
10 10
11GNU Emacs is distributed in the hope that it will be useful, 11GNU Emacs is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of 12but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -102,4 +102,3 @@ int mkostemp (char * template, int flags);
102#undef _WINSOCK_H 102#undef _WINSOCK_H
103 103
104/* end of ntlib.h */ 104/* end of ntlib.h */
105
diff --git a/lib-src/pop.c b/lib-src/pop.c
index 983993461b5..74a6fc151aa 100644
--- a/lib-src/pop.c
+++ b/lib-src/pop.c
@@ -9,8 +9,8 @@ This file is part of GNU Emacs.
9 9
10GNU Emacs is free software: you can redistribute it and/or modify 10GNU Emacs is free software: you can redistribute it and/or modify
11it under the terms of the GNU General Public License as published by 11it under the terms of the GNU General Public License as published by
12the Free Software Foundation, either version 3 of the License, or 12the Free Software Foundation, either version 3 of the License, or (at
13(at your option) any later version. 13your option) any later version.
14 14
15GNU Emacs is distributed in the hope that it will be useful, 15GNU Emacs is distributed in the hope that it will be useful,
16but WITHOUT ANY WARRANTY; without even the implied warranty of 16but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/lib-src/pop.h b/lib-src/pop.h
index 4c67bdcb015..b8c21fcedb6 100644
--- a/lib-src/pop.h
+++ b/lib-src/pop.h
@@ -7,8 +7,8 @@ This file is part of GNU Emacs.
7 7
8GNU Emacs is free software: you can redistribute it and/or modify 8GNU Emacs is free software: you can redistribute it and/or modify
9it under the terms of the GNU General Public License as published by 9it under the terms of the GNU General Public License as published by
10the Free Software Foundation, either version 3 of the License, or 10the Free Software Foundation, either version 3 of the License, or (at
11(at your option) any later version. 11your option) any later version.
12 12
13GNU Emacs is distributed in the hope that it will be useful, 13GNU Emacs is distributed in the hope that it will be useful,
14but WITHOUT ANY WARRANTY; without even the implied warranty of 14but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/lib-src/profile.c b/lib-src/profile.c
index da6232afbca..0e603776049 100644
--- a/lib-src/profile.c
+++ b/lib-src/profile.c
@@ -8,8 +8,8 @@ This file is part of GNU Emacs.
8 8
9GNU Emacs is free software: you can redistribute it and/or modify 9GNU Emacs is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by 10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 3 of the License, or 11the Free Software Foundation, either version 3 of the License, or (at
12(at your option) any later version. 12your option) any later version.
13 13
14GNU Emacs is distributed in the hope that it will be useful, 14GNU Emacs is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of 15but WITHOUT ANY WARRANTY; without even the implied warranty of
diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c
index 3803a31c817..7675e9bdd4c 100644
--- a/lib-src/update-game-score.c
+++ b/lib-src/update-game-score.c
@@ -8,8 +8,8 @@ This file is part of GNU Emacs.
8 8
9GNU Emacs is free software: you can redistribute it and/or modify 9GNU Emacs is free software: you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by 10it under the terms of the GNU General Public License as published by
11the Free Software Foundation, either version 3 of the License, or 11the Free Software Foundation, either version 3 of the License, or (at
12(at your option) any later version. 12your option) any later version.
13 13
14GNU Emacs is distributed in the hope that it will be useful, 14GNU Emacs is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of 15but WITHOUT ANY WARRANTY; without even the implied warranty of