diff options
| author | Thien-Thi Nguyen | 2004-05-07 15:31:07 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2004-05-07 15:31:07 +0000 |
| commit | 3f0656ff20abbcd328175e055ae0ecd77acd6ce6 (patch) | |
| tree | b314e12141d2391e599315b5bae02993b1b7dab3 /lib-src/b2m.c | |
| parent | bef96454bf4b3f03410410f53fa269d67e6c8620 (diff) | |
| download | emacs-3f0656ff20abbcd328175e055ae0ecd77acd6ce6.tar.gz emacs-3f0656ff20abbcd328175e055ae0ecd77acd6ce6.zip | |
(GOOD, BAD): Delete macros. Throughout,
replace w/ `EXIT_SUCCESS' and `EXIT_FAILURE', respectively.
(main): Use `EXIT_SUCCESS' or `EXIT_FAILURE' for return value.
Diffstat (limited to 'lib-src/b2m.c')
| -rw-r--r-- | lib-src/b2m.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/lib-src/b2m.c b/lib-src/b2m.c index 5a1f9e85473..5bebe560e2a 100644 --- a/lib-src/b2m.c +++ b/lib-src/b2m.c | |||
| @@ -39,15 +39,6 @@ | |||
| 39 | #undef FALSE | 39 | #undef FALSE |
| 40 | #define FALSE 0 | 40 | #define FALSE 0 |
| 41 | 41 | ||
| 42 | /* Exit codes for success and failure. */ | ||
| 43 | #ifdef VMS | ||
| 44 | #define GOOD 1 | ||
| 45 | #define BAD 0 | ||
| 46 | #else | ||
| 47 | #define GOOD 0 | ||
| 48 | #define BAD 1 | ||
| 49 | #endif | ||
| 50 | |||
| 51 | #define streq(s,t) (strcmp (s, t) == 0) | 42 | #define streq(s,t) (strcmp (s, t) == 0) |
| 52 | #define strneq(s,t,n) (strncmp (s, t, n) == 0) | 43 | #define strneq(s,t,n) (strncmp (s, t, n) == 0) |
| 53 | 44 | ||
| @@ -124,18 +115,18 @@ main (argc, argv) | |||
| 124 | case 'V': | 115 | case 'V': |
| 125 | printf ("%s (GNU Emacs %s)\n", "b2m", VERSION); | 116 | printf ("%s (GNU Emacs %s)\n", "b2m", VERSION); |
| 126 | puts ("b2m is in the public domain."); | 117 | puts ("b2m is in the public domain."); |
| 127 | exit (GOOD); | 118 | exit (EXIT_SUCCESS); |
| 128 | 119 | ||
| 129 | case 'h': | 120 | case 'h': |
| 130 | fprintf (stderr, "Usage: %s <babylmailbox >unixmailbox\n", progname); | 121 | fprintf (stderr, "Usage: %s <babylmailbox >unixmailbox\n", progname); |
| 131 | exit (GOOD); | 122 | exit (EXIT_SUCCESS); |
| 132 | } | 123 | } |
| 133 | } | 124 | } |
| 134 | 125 | ||
| 135 | if (optind != argc) | 126 | if (optind != argc) |
| 136 | { | 127 | { |
| 137 | fprintf (stderr, "Usage: %s <babylmailbox >unixmailbox\n", progname); | 128 | fprintf (stderr, "Usage: %s <babylmailbox >unixmailbox\n", progname); |
| 138 | exit (GOOD); | 129 | exit (EXIT_SUCCESS); |
| 139 | } | 130 | } |
| 140 | 131 | ||
| 141 | labels_saved = printing = header = FALSE; | 132 | labels_saved = printing = header = FALSE; |
| @@ -191,7 +182,7 @@ main (argc, argv) | |||
| 191 | puts (data.buffer); | 182 | puts (data.buffer); |
| 192 | } | 183 | } |
| 193 | 184 | ||
| 194 | return 0; | 185 | return EXIT_SUCCESS; |
| 195 | } | 186 | } |
| 196 | 187 | ||
| 197 | 188 | ||
| @@ -298,8 +289,10 @@ fatal (message) | |||
| 298 | char *message; | 289 | char *message; |
| 299 | { | 290 | { |
| 300 | fprintf (stderr, "%s: %s\n", progname, message); | 291 | fprintf (stderr, "%s: %s\n", progname, message); |
| 301 | exit (BAD); | 292 | exit (EXIT_FAILURE); |
| 302 | } | 293 | } |
| 303 | 294 | ||
| 304 | /* arch-tag: 5a3ad2af-a802-408f-83cc-e7cf5e98653e | 295 | /* arch-tag: 5a3ad2af-a802-408f-83cc-e7cf5e98653e |
| 305 | (do not change this comment) */ | 296 | (do not change this comment) */ |
| 297 | |||
| 298 | /* b2m.c ends here */ | ||