ruby-changes:23911
From: akr <ko1@a...>
Date: Fri, 8 Jun 2012 19:02:10 +0900 (JST)
Subject: [ruby-changes:23911] akr:r35962 (trunk): * process.c (ARGV_COUNT): unused macro removed.
akr 2012-06-08 19:02:00 +0900 (Fri, 08 Jun 2012) New Revision: 35962 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35962 Log: * process.c (ARGV_COUNT): unused macro removed. (ARGV_SIZE): ditto. (ALLOC_ARGV): ditto. (ALLOC_ARGV_WITH_STR): ditto. Modified files: trunk/ChangeLog trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 35961) +++ ChangeLog (revision 35962) @@ -1,3 +1,10 @@ +Fri Jun 8 19:00:59 2012 Tanaka Akira <akr@f...> + + * process.c (ARGV_COUNT): unused macro removed. + (ARGV_SIZE): ditto. + (ALLOC_ARGV): ditto. + (ALLOC_ARGV_WITH_STR): ditto. + Fri Jun 8 16:19:33 2012 Nobuyoshi Nakada <nobu@r...> * test/runner.rb (src_testdir): expand real path so that Index: process.c =================================================================== --- process.c (revision 35961) +++ process.c (revision 35962) @@ -1058,15 +1058,9 @@ execv("/bin/sh", argv); /* async-signal-safe */ } -#define ARGV_COUNT(n) ((n)+1) #else #define try_with_sh(prog, argv, envp) (void)0 -#define ARGV_COUNT(n) (n) #endif -#define ARGV_SIZE(n) (sizeof(char*) * ARGV_COUNT(n)) -#define ALLOC_ARGV(n, v) ALLOCV_N(char*, (v), ARGV_COUNT(n)) -#define ALLOC_ARGV_WITH_STR(n, v, s, l) \ - (char **)(((s) = ALLOCV_N(char, (v), ARGV_SIZE(n) + (l)) + ARGV_SIZE(n)) - ARGV_SIZE(n)) /* This function should be async-signal-safe. Actually it isn't because after_exec(). */ static int -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/