mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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
This commit is contained in:
parent
2696fb9503
commit
86c82ad647
2 changed files with 7 additions and 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue