Skip to content

Commit

Permalink
version.c: EXIT_SUCCESS
Browse files Browse the repository at this point in the history
* version.c (ruby_show_copyright): use EXIT_SUCCESS instead of magic
  number 0.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Nov 28, 2013
1 parent c26bc97 commit 6de07f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion version.c
Expand Up @@ -13,6 +13,10 @@
#include "version.h" #include "version.h"
#include <stdio.h> #include <stdio.h>


#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif

#define PRINT(type) puts(ruby_##type) #define PRINT(type) puts(ruby_##type)
#define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1)) #define MKSTR(type) rb_obj_freeze(rb_usascii_str_new(ruby_##type, sizeof(ruby_##type)-1))


Expand Down Expand Up @@ -84,5 +88,5 @@ void
ruby_show_copyright(void) ruby_show_copyright(void)
{ {
PRINT(copyright); PRINT(copyright);
exit(0); exit(EXIT_SUCCESS);
} }

0 comments on commit 6de07f1

Please sign in to comment.