summaryrefslogtreecommitdiff
path: root/missing
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-18 09:08:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1999-01-18 09:08:52 +0000
commit41d0ebf4660c74a92bfd9484bd3659d5367d2d76 (patch)
treef046d437bf3c46562223d3639ff5401297e3cd62 /missing
parent9f72c385f295637f8c7b3ed7a159cb7cfa9752ef (diff)
1.2.2 PR1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing')
-rw-r--r--missing/nt.c2
-rw-r--r--missing/setenv.c10
-rw-r--r--missing/vsnprintf.c3
3 files changed, 13 insertions, 2 deletions
diff --git a/missing/nt.c b/missing/nt.c
index 41d84a5da7..0525b809c9 100644
--- a/missing/nt.c
+++ b/missing/nt.c
@@ -287,6 +287,8 @@ isInternalCmd(char *cmd)
{
int i, fRet=0;
char **vec;
+ int vecc = NtMakeCmdVector(cmd, &vec, FALSE);
+
NtMakeCmdVector(cmd, &vec, FALSE);
for( i = 0; szInternalCmds[i] ; i++){
if(!strcmp(szInternalCmds[i], vec[0])){
diff --git a/missing/setenv.c b/missing/setenv.c
index c9cb4b20e0..fa1c65928d 100644
--- a/missing/setenv.c
+++ b/missing/setenv.c
@@ -5,7 +5,12 @@
* License or the Artistic License, as specified in the README file.
*/
-#include "ruby.h"
+void *xmalloc ();
+void *xcalloc ();
+void *xrealloc ();
+#define ALLOC_N(type,n) (type*)xmalloc(sizeof(type)*(n))
+#define ALLOC(type) (type*)xmalloc(sizeof(type))
+#define REALLOC_N(var,type,n) (var)=(type*)xrealloc((char*)(var),sizeof(type)*(n))
#ifndef NT
extern char **environ;
@@ -82,7 +87,7 @@ int n;
#endif /* MSDOS */
}
#else /* if WIN32 */
-void
+int
setenv(nam,val, n)
char *nam, *val;
int n;
@@ -144,6 +149,7 @@ int n;
SetEnvironmentVariable(nam,val);
#endif
+ return 1;
}
#endif /* WIN32 */
diff --git a/missing/vsnprintf.c b/missing/vsnprintf.c
index 64076b5c01..39c34890bd 100644
--- a/missing/vsnprintf.c
+++ b/missing/vsnprintf.c
@@ -101,6 +101,9 @@
#define __const
#endif /* People who don't like const sys_error */
+#ifdef NT
+typedef long size_t;
+#endif
#ifndef NULL
#define NULL 0