aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorKenichi Handa2010-07-26 13:29:08 +0900
committerKenichi Handa2010-07-26 13:29:08 +0900
commit50efd41b43c9b1b540c49c53d4e7824468ec7879 (patch)
tree4a3be8d0322c537816f47a0c6450fc13495edf35 /lib-src
parentdfe3c90fa5974e200483297e11bb889d0589b8f5 (diff)
parent7d383292d10b876efec43e77fd51c2665e912688 (diff)
downloademacs-50efd41b43c9b1b540c49c53d4e7824468ec7879.tar.gz
emacs-50efd41b43c9b1b540c49c53d4e7824468ec7879.zip
merge trunk
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog35
-rw-r--r--lib-src/b2m.c2
-rw-r--r--lib-src/emacsclient.c16
-rw-r--r--lib-src/etags.c6
-rw-r--r--lib-src/fakemail.c2
-rw-r--r--lib-src/hexl.c2
-rw-r--r--lib-src/make-docfile.c3
-rw-r--r--lib-src/movemail.c6
-rw-r--r--lib-src/ntlib.h12
-rw-r--r--lib-src/update-game-score.c2
10 files changed, 61 insertions, 25 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 1b6a16dd524..d0ab1087aa9 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,30 @@
12010-07-25 Juanma Barranquero <lekktu@gmail.com>
2
3 * emacsclient.c (getcwd): Fix previous change: make getcwd
4 conditional on HAVE_GETCWD and declare with the correct POSIX
5 profile (for some reason MinGW headers define its 2nd arg as int,
6 not size_t; but getcwd is not used on Windows nonetheless).
7
82010-07-25 Juanma Barranquero <lekktu@gmail.com>
9
10 * emacsclient.c (getcwd, w32_getenv):
11 * ntlib.h (getlogin, getuid, getegid, getgid): Fix prototypes.
12
132010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
14
15 * update-game-score.c (usage): Add NO_RETURN specifier.
16 * movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
17 * make-docfile.c (fatal):
18 * hexl.c (usage):
19 * fakemail.c (fatal):
20 * etags.c (fatal, suggest_asking_for_help, pfatal):
21 * emacsclient.c (fatal):
22 * b2m.c (fatal): Likewise.
23
242010-07-23 Juanma Barranquero <lekktu@gmail.com>
25
26 * make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
27
12010-07-20 Juanma Barranquero <lekktu@gmail.com> 282010-07-20 Juanma Barranquero <lekktu@gmail.com>
2 29
3 * emacsclient.c (get_current_dir_name, w32_get_resource) 30 * emacsclient.c (get_current_dir_name, w32_get_resource)
@@ -775,7 +802,7 @@
775 802
7762008-02-01 Jason Rumney <jasonr@gnu.org> 8032008-02-01 Jason Rumney <jasonr@gnu.org>
777 804
778 * makefile.w32-in (obj): Sync with src/Makefile.in 805 * makefile.w32-in (obj): Sync with src/Makefile.in.
779 (TOOLTIP_SUPPORT, WINDOW_SUPPORT): New definitions. 806 (TOOLTIP_SUPPORT, WINDOW_SUPPORT): New definitions.
780 (WINNT_SUPPORT): Add term/w32-win.elc. 807 (WINNT_SUPPORT): Add term/w32-win.elc.
781 (lisp1, lisp2): Sync with lisp in src/Makefile.in. 808 (lisp1, lisp2): Sync with lisp in src/Makefile.in.
@@ -2471,7 +2498,7 @@
2471 2498
2472 * makefile.w32-in (WINNT_SUPPORT, MOUSE_SUPPORT, lisp): Revert to 2499 * makefile.w32-in (WINNT_SUPPORT, MOUSE_SUPPORT, lisp): Revert to
2473 using .elc files. 2500 using .elc files.
2474 (lisp): Sync with list in src/Makefile.in 2501 (lisp): Sync with list in src/Makefile.in.
2475 (VMS_SUPPORT, MSDOS_SUPPORT): Define, so DOC files can be shared. 2502 (VMS_SUPPORT, MSDOS_SUPPORT): Define, so DOC files can be shared.
2476 2503
24772002-02-10 Paul Eggert <eggert@twinsun.com> 25042002-02-10 Paul Eggert <eggert@twinsun.com>
@@ -6313,7 +6340,7 @@
6313 (TOKEN): Member linestart removed. 6340 (TOKEN): Member linestart removed.
6314 (linepos, prev_linepos, lb1): Deleted. 6341 (linepos, prev_linepos, lb1): Deleted.
6315 (main): Call initbuffer on lbs array instead of lb1. 6342 (main): Call initbuffer on lbs array instead of lb1.
6316 (init): Removed the initialisation of the logical _gd array; 6343 (init): Removed the initialisation of the logical _gd array.
6317 (find_entries): A .sa suffix means assembler file. 6344 (find_entries): A .sa suffix means assembler file.
6318 (C_create_stab): "auto", "void", "extern", "static" are st_C_typespec. 6345 (C_create_stab): "auto", "void", "extern", "static" are st_C_typespec.
6319 All C state machines rewritten. 6346 All C state machines rewritten.
@@ -7177,7 +7204,7 @@
7177 * etags.c: Changes for VMS. 7204 * etags.c: Changes for VMS.
7178 Always define ETAGS on VMS. 7205 Always define ETAGS on VMS.
7179 Define macros GOOD and BAD for success and failure exit codes. 7206 Define macros GOOD and BAD for success and failure exit codes.
7180 (begtk, intk): Allow `$' in identifiers 7207 (begtk, intk): Allow `$' in identifiers.
7181 (main): Don't support -B, -F or -u on VMS. 7208 (main): Don't support -B, -F or -u on VMS.
7182 Alternate loop for scanning filename arguments. 7209 Alternate loop for scanning filename arguments.
7183 (system): Delete definition of this function. 7210 (system): Delete definition of this function.
diff --git a/lib-src/b2m.c b/lib-src/b2m.c
index 733cd276653..f31b33f9780 100644
--- a/lib-src/b2m.c
+++ b/lib-src/b2m.c
@@ -70,7 +70,7 @@ long *xmalloc (unsigned int size);
70long *xrealloc (char *ptr, unsigned int size); 70long *xrealloc (char *ptr, unsigned int size);
71char *concat (char *s1, char *s2, char *s3); 71char *concat (char *s1, char *s2, char *s3);
72long readline (struct linebuffer *linebuffer, register FILE *stream); 72long readline (struct linebuffer *linebuffer, register FILE *stream);
73void fatal (char *message); 73void fatal (char *message) NO_RETURN;
74 74
75/* 75/*
76 * xnew -- allocate storage. SYNOPSIS: Type *xnew (int n, Type); 76 * xnew -- allocate storage. SYNOPSIS: Type *xnew (int n, Type);
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index bafc7e02720..1ca9b793f3a 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -82,10 +82,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
82 82
83 83
84char *getenv (const char *), *getwd (char *); 84char *getenv (const char *), *getwd (char *);
85char *(getcwd) (); 85#ifdef HAVE_GETCWD
86char *(getcwd) (char *, size_t);
87#endif
86 88
87#ifdef WINDOWSNT 89#ifdef WINDOWSNT
88char *w32_getenv (); 90char *w32_getenv (char *);
89#define egetenv(VAR) w32_getenv(VAR) 91#define egetenv(VAR) w32_getenv(VAR)
90#else 92#else
91#define egetenv(VAR) getenv(VAR) 93#define egetenv(VAR) getenv(VAR)
@@ -158,6 +160,8 @@ char *server_file = NULL;
158int emacs_pid = 0; 160int emacs_pid = 0;
159 161
160void print_help_and_exit (void) NO_RETURN; 162void print_help_and_exit (void) NO_RETURN;
163void fail (void) NO_RETURN;
164
161 165
162struct option longopts[] = 166struct option longopts[] =
163{ 167{
@@ -400,7 +404,7 @@ w32_set_user_model_id (void)
400 /* On Windows 7 and later, we need to set the user model ID 404 /* On Windows 7 and later, we need to set the user model ID
401 to associate emacsclient launched files with Emacs frames 405 to associate emacsclient launched files with Emacs frames
402 in the UI. */ 406 in the UI. */
403 shell = LoadLibrary("shell32.dll"); 407 shell = LoadLibrary ("shell32.dll");
404 if (shell) 408 if (shell)
405 { 409 {
406 set_user_model 410 set_user_model
@@ -430,7 +434,7 @@ w32_window_app (void)
430 nonconsole apps. Testing for the console title seems to work. */ 434 nonconsole apps. Testing for the console title seems to work. */
431 window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0); 435 window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0);
432 if (window_app) 436 if (window_app)
433 InitCommonControls(); 437 InitCommonControls ();
434 } 438 }
435 439
436 return window_app; 440 return window_app;
@@ -481,7 +485,7 @@ ttyname (int fd)
481void 485void
482message (int is_error, char *message, ...) 486message (int is_error, char *message, ...)
483{ 487{
484 char msg [2048]; 488 char msg[2048];
485 va_list args; 489 va_list args;
486 490
487 va_start (args, message); 491 va_start (args, message);
@@ -1468,7 +1472,7 @@ start_daemon_and_retry_set_socket (void)
1468 pid_t w; 1472 pid_t w;
1469 w = waitpid (dpid, &status, WUNTRACED | WCONTINUED); 1473 w = waitpid (dpid, &status, WUNTRACED | WCONTINUED);
1470 1474
1471 if ((w == -1) || !WIFEXITED (status) || WEXITSTATUS(status)) 1475 if ((w == -1) || !WIFEXITED (status) || WEXITSTATUS (status))
1472 { 1476 {
1473 message (TRUE, "Error: Could not start the Emacs daemon\n"); 1477 message (TRUE, "Error: Could not start the Emacs daemon\n");
1474 exit (EXIT_FAILURE); 1478 exit (EXIT_FAILURE);
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 79475fe9922..b78686dde57 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -406,9 +406,9 @@ static void analyse_regex (char *);
406static void free_regexps (void); 406static void free_regexps (void);
407static void regex_tag_multiline (void); 407static void regex_tag_multiline (void);
408static void error (const char *, const char *); 408static void error (const char *, const char *);
409static void suggest_asking_for_help (void); 409static void suggest_asking_for_help (void) NO_RETURN;
410void fatal (char *, char *); 410void fatal (char *, char *) NO_RETURN;
411static void pfatal (char *); 411static void pfatal (char *) NO_RETURN;
412static void add_node (node *, node **); 412static void add_node (node *, node **);
413 413
414static void init (void); 414static void init (void);
diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c
index f4d978b7d11..72e1b7179c0 100644
--- a/lib-src/fakemail.c
+++ b/lib-src/fakemail.c
@@ -147,6 +147,8 @@ static line_list file_preface;
147static stream_list the_streams; 147static stream_list the_streams;
148static boolean no_problems = true; 148static boolean no_problems = true;
149 149
150static void fatal (char *s1) NO_RETURN;
151
150extern FILE *popen (const char *, const char *); 152extern FILE *popen (const char *, const char *);
151extern int fclose (FILE *), pclose (FILE *); 153extern int fclose (FILE *), pclose (FILE *);
152 154
diff --git a/lib-src/hexl.c b/lib-src/hexl.c
index d730cac6814..b31ab812534 100644
--- a/lib-src/hexl.c
+++ b/lib-src/hexl.c
@@ -49,7 +49,7 @@ int base = DEFAULT_BASE, un_flag = FALSE, iso_flag = FALSE, endian = 1;
49int group_by = DEFAULT_GROUPING; 49int group_by = DEFAULT_GROUPING;
50char *progname; 50char *progname;
51 51
52void usage(void); 52void usage(void) NO_RETURN;
53 53
54int 54int
55main (int argc, char **argv) 55main (int argc, char **argv)
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 51c30f91d8f..4b5012902a0 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -70,6 +70,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
70int scan_file (char *filename); 70int scan_file (char *filename);
71int scan_lisp_file (char *filename, char *mode); 71int scan_lisp_file (char *filename, char *mode);
72int scan_c_file (char *filename, char *mode); 72int scan_c_file (char *filename, char *mode);
73void fatal (char *s1, char *s2) NO_RETURN;
73 74
74#ifdef MSDOS 75#ifdef MSDOS
75/* s/msdos.h defines this as sys_chdir, but we're not linking with the 76/* s/msdos.h defines this as sys_chdir, but we're not linking with the
@@ -488,7 +489,7 @@ write_c_args (FILE *out, char *func, char *buf, int minargs, int maxargs)
488 489
489 /* In C code, `default' is a reserved word, so we spell it 490 /* In C code, `default' is a reserved word, so we spell it
490 `defalt'; unmangle that here. */ 491 `defalt'; unmangle that here. */
491 if (strncmp (ident_start, "defalt", ident_length) == 0) 492 if (ident_length == 6 && strncmp (ident_start, "defalt", 6) == 0)
492 fprintf (out, "DEFAULT"); 493 fprintf (out, "DEFAULT");
493 else 494 else
494 while (ident_length-- > 0) 495 while (ident_length-- > 0)
diff --git a/lib-src/movemail.c b/lib-src/movemail.c
index 541edf545df..bb4a922014c 100644
--- a/lib-src/movemail.c
+++ b/lib-src/movemail.c
@@ -147,10 +147,10 @@ static char *mail_spool_name ();
147char *strerror (int); 147char *strerror (int);
148#endif 148#endif
149 149
150static void fatal (char *s1, char *s2, char *s3); 150static void fatal (char *s1, char *s2, char *s3) NO_RETURN;
151static void error (char *s1, char *s2, char *s3); 151static void error (char *s1, char *s2, char *s3);
152static void pfatal_with_name (char *name); 152static void pfatal_with_name (char *name) NO_RETURN;
153static void pfatal_and_delete (char *name); 153static void pfatal_and_delete (char *name) NO_RETURN;
154static char *concat (char *s1, char *s2, char *s3); 154static char *concat (char *s1, char *s2, char *s3);
155static long *xmalloc (unsigned int size); 155static long *xmalloc (unsigned int size);
156#ifdef MAIL_USE_POP 156#ifdef MAIL_USE_POP
diff --git a/lib-src/ntlib.h b/lib-src/ntlib.h
index fd51269fdfd..4dd6a32ee32 100644
--- a/lib-src/ntlib.h
+++ b/lib-src/ntlib.h
@@ -30,14 +30,14 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
30#ifdef sleep 30#ifdef sleep
31#undef sleep 31#undef sleep
32#endif 32#endif
33void sleep(unsigned long seconds); 33void sleep (unsigned long seconds);
34char *getwd (char *dir); 34char *getwd (char *dir);
35int getppid(void); 35int getppid (void);
36char * getlogin (); 36char * getlogin (void);
37char * cuserid (char * s); 37char * cuserid (char * s);
38unsigned getuid (); 38unsigned getuid (void);
39unsigned getegid (); 39unsigned getegid (void);
40unsigned getgid (); 40unsigned getgid (void);
41int setuid (unsigned uid); 41int setuid (unsigned uid);
42int setegid (unsigned gid); 42int setegid (unsigned gid);
43char * getpass (const char * prompt); 43char * getpass (const char * prompt);
diff --git a/lib-src/update-game-score.c b/lib-src/update-game-score.c
index a96422a09a9..30208d5c8d2 100644
--- a/lib-src/update-game-score.c
+++ b/lib-src/update-game-score.c
@@ -60,6 +60,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
60extern char *optarg; 60extern char *optarg;
61extern int optind, opterr; 61extern int optind, opterr;
62 62
63int usage (int err) NO_RETURN;
64
63#define MAX_ATTEMPTS 5 65#define MAX_ATTEMPTS 5
64#define MAX_SCORES 200 66#define MAX_SCORES 200
65#define MAX_DATA_LEN 1024 67#define MAX_DATA_LEN 1024