changeset 109511:09a43f890565

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.
author Dan Nicolaescu <dann@ics.uci.edu>
date Sat, 24 Jul 2010 10:18:18 -0700
parents fb2c5240d81c
children cd770c24eabe
files lib-src/ChangeLog lib-src/b2m.c lib-src/emacsclient.c lib-src/etags.c lib-src/fakemail.c lib-src/hexl.c lib-src/make-docfile.c lib-src/movemail.c lib-src/update-game-score.c
diffstat 9 files changed, 26 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lib-src/ChangeLog	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/ChangeLog	Sat Jul 24 10:18:18 2010 -0700
@@ -1,3 +1,14 @@
+2010-07-24  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* update-game-score.c (usage):  Add NO_RETURN specifier.
+	* movemail.c (fatal, pfatal_with_name, pfatal_and_delete):
+	* make-docfile.c (fatal):
+	* hexl.c (usage):
+	* fakemail.c (fatal):
+	* etags.c (fatal, suggest_asking_for_help, pfatal):
+	* emacsclient.c (fatal):
+	* b2m.c (fatal): Likewise.
+
 2010-07-23  Juanma Barranquero  <lekktu@gmail.com>
 
 	* make-docfile.c (write_c_args): Correctly handle prefixes of "defalt".
--- a/lib-src/b2m.c	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/b2m.c	Sat Jul 24 10:18:18 2010 -0700
@@ -70,7 +70,7 @@
 long *xrealloc (char *ptr, unsigned int size);
 char *concat (char *s1, char *s2, char *s3);
 long readline (struct linebuffer *linebuffer, register FILE *stream);
-void fatal (char *message);
+void fatal (char *message) NO_RETURN;
 
 /*
  * xnew -- allocate storage.  SYNOPSIS: Type *xnew (int n, Type);
--- a/lib-src/emacsclient.c	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/emacsclient.c	Sat Jul 24 10:18:18 2010 -0700
@@ -158,6 +158,8 @@
 int emacs_pid = 0;
 
 void print_help_and_exit (void) NO_RETURN;
+void fail (void) NO_RETURN;
+
 
 struct option longopts[] =
 {
--- a/lib-src/etags.c	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/etags.c	Sat Jul 24 10:18:18 2010 -0700
@@ -406,9 +406,9 @@
 static void free_regexps (void);
 static void regex_tag_multiline (void);
 static void error (const char *, const char *);
-static void suggest_asking_for_help (void);
-void fatal (char *, char *);
-static void pfatal (char *);
+static void suggest_asking_for_help (void) NO_RETURN;
+void fatal (char *, char *) NO_RETURN;
+static void pfatal (char *) NO_RETURN;
 static void add_node (node *, node **);
 
 static void init (void);
--- a/lib-src/fakemail.c	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/fakemail.c	Sat Jul 24 10:18:18 2010 -0700
@@ -147,6 +147,8 @@
 static stream_list the_streams;
 static boolean no_problems = true;
 
+static void fatal (char *s1) NO_RETURN;
+
 extern FILE *popen (const char *, const char *);
 extern int fclose (FILE *), pclose (FILE *);
 
--- a/lib-src/hexl.c	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/hexl.c	Sat Jul 24 10:18:18 2010 -0700
@@ -49,7 +49,7 @@
 int group_by = DEFAULT_GROUPING;
 char *progname;
 
-void usage(void);
+void usage(void) NO_RETURN;
 
 int
 main (int argc, char **argv)
--- a/lib-src/make-docfile.c	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/make-docfile.c	Sat Jul 24 10:18:18 2010 -0700
@@ -70,6 +70,7 @@
 int scan_file (char *filename);
 int scan_lisp_file (char *filename, char *mode);
 int scan_c_file (char *filename, char *mode);
+void fatal (char *s1, char *s2) NO_RETURN;
 
 #ifdef MSDOS
 /* s/msdos.h defines this as sys_chdir, but we're not linking with the
--- a/lib-src/movemail.c	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/movemail.c	Sat Jul 24 10:18:18 2010 -0700
@@ -147,10 +147,10 @@
 char *strerror (int);
 #endif
 
-static void fatal (char *s1, char *s2, char *s3);
+static void fatal (char *s1, char *s2, char *s3) NO_RETURN;
 static void error (char *s1, char *s2, char *s3);
-static void pfatal_with_name (char *name);
-static void pfatal_and_delete (char *name);
+static void pfatal_with_name (char *name) NO_RETURN;
+static void pfatal_and_delete (char *name) NO_RETURN;
 static char *concat (char *s1, char *s2, char *s3);
 static long *xmalloc (unsigned int size);
 #ifdef MAIL_USE_POP
--- a/lib-src/update-game-score.c	Sat Jul 24 10:03:41 2010 -0700
+++ b/lib-src/update-game-score.c	Sat Jul 24 10:18:18 2010 -0700
@@ -60,6 +60,8 @@
 extern char *optarg;
 extern int optind, opterr;
 
+int usage (int err) NO_RETURN;
+
 #define MAX_ATTEMPTS 5
 #define MAX_SCORES 200
 #define MAX_DATA_LEN 1024