diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 10:02:00 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-06-08 10:02:00 +0000 |
commit | 86c82ad6478aa054adecd475eeb31c062c1e4a89 (patch) | |
tree | 4680a0fcbf0fab83ab93f8d240f5c581c11096cf /process.c | |
parent | 2696fb950391fb74685caf0484f130430d2d2146 (diff) |
* process.c (ARGV_COUNT): unused macro removed.
(ARGV_SIZE): ditto.
(ALLOC_ARGV): ditto.
(ALLOC_ARGV_WITH_STR): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -1058,15 +1058,9 @@ exec_with_sh(const char *prog, char **argv, char **envp) 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 |