aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorDan Nicolaescu2010-07-24 10:18:18 -0700
committerDan Nicolaescu2010-07-24 10:18:18 -0700
commit68441b90e90d2d57b6755aa45559ca22dda8d04c (patch)
tree6e9997f892a46d6d7a8b25567c542a6b1019bbf2 /lib-src
parent4e8608ff8e2da0c921417f9274fdba943a9d7022 (diff)
downloademacs-68441b90e90d2d57b6755aa45559ca22dda8d04c.tar.gz
emacs-68441b90e90d2d57b6755aa45559ca22dda8d04c.zip
Add NO_RETURN specifiers to functions in lib-src.
* lib-src/update-game-score.c (usage): Add NO_RETURN specifier. * lib-src/movemail.c (fatal, pfatal_with_name, pfatal_and_delete): * lib-src/make-docfile.c (fatal): * lib-src/hexl.c (usage): * lib-src/fakemail.c (fatal): * lib-src/etags.c (fatal, suggest_asking_for_help, pfatal): * lib-src/emacsclient.c (fatal): * lib-src/b2m.c (fatal): Likewise.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog11
-rw-r--r--lib-src/b2m.c2
-rw-r--r--lib-src/emacsclient.c2
-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.c1
-rw-r--r--lib-src/movemail.c6
-rw-r--r--lib-src/update-game-score.c2
9 files changed, 26 insertions, 8 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 249dfa44fa4..50184ee58ad 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,14 @@
12010-07-24 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * update-game-score.c (usage): Add NO_RETURN specifier.
4 * movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
5 * make-docfile.c (fatal):
6 * hexl.c (usage):
7 * fakemail.c (fatal):
8 * etags.c (fatal, suggest_asking_for_help, pfatal):
9 * emacsclient.c (fatal):
10 * b2m.c (fatal): Likewise.
11
12010-07-23 Juanma Barranquero <lekktu@gmail.com> 122010-07-23 Juanma Barranquero <lekktu@gmail.com>
2 13
3 * make-docfile.c (write_c_args): Correctly handle prefixes of "defalt". 14 * make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
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..cbf988348dd 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -158,6 +158,8 @@ char *server_file = NULL;
158int emacs_pid = 0; 158int emacs_pid = 0;
159 159
160void print_help_and_exit (void) NO_RETURN; 160void print_help_and_exit (void) NO_RETURN;
161void fail (void) NO_RETURN;
162
161 163
162struct option longopts[] = 164struct option longopts[] =
163{ 165{
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 0b03b5e259d..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
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/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