Changeset 2311 in kBuild
- Timestamp:
- Mar 2, 2009 12:46:13 AM (16 years ago)
- Location:
- trunk/src/kash
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/main.c
r2298 r2311 238 238 }; 239 239 #define SIGSSIZE (sizeof(sigs)/sizeof(sigs[0])) 240 inti;240 unsigned i; 241 241 242 242 for (i = 0; i < SIGSSIZE; i++) … … 435 435 436 436 STATIC const char * 437 strip_argv0(const char *argv0, size_t*lenp)437 strip_argv0(const char *argv0, unsigned *lenp) 438 438 { 439 439 const char *tmp; … … 447 447 if (!tmp) 448 448 tmp = strchr(argv0, '\0'); 449 *lenp = tmp - argv0;449 *lenp = (unsigned)(tmp - argv0); 450 450 return argv0; 451 451 } … … 454 454 usage(const char *argv0) 455 455 { 456 size_tlen;456 unsigned len; 457 457 argv0 = strip_argv0(argv0, &len); 458 458 … … 473 473 version(const char *argv0) 474 474 { 475 size_tlen;475 unsigned len; 476 476 strip_argv0(argv0, &len); 477 477 -
trunk/src/kash/mknodes.sh
r1233 r2311 115 115 echo 116 116 echo 117 echo "union node *copyfunc( union node *);"118 echo "void freefunc( union node *);"117 echo "union node *copyfunc(struct shinstance *, union node *);" 118 echo "void freefunc(struct shinstance *, union node *);" 119 119 120 120 exec <$nodes_pat -
trunk/src/kash/shinstance.c
r2303 r2311 38 38 # include <pwd.h> 39 39 #endif 40 #include "shinstance.h" 41 40 42 #if K_OS == K_OS_WINDOWS 41 43 # include <Windows.h> 42 #endif43 #include "shinstance.h"44 45 #if K_OS == K_OS_WINDOWS46 44 extern pid_t shfork_do_it(shinstance *psh); /* shforkA-win.asm */ 47 45 #endif … … 1065 1063 1066 1064 if (!envp) 1067 envp = sh_environ(psh);1065 envp = (const char * const *)sh_environ(psh); 1068 1066 1069 1067 #if defined(SH_FORKED_MODE) && K_OS != K_OS_WINDOWS -
trunk/src/kash/shtypes.h
r2298 r2311 120 120 #else 121 121 # define SH_NORETURN_1 122 # define SH_NORETURN_2 __attribute__((__noreturn__)) ;122 # define SH_NORETURN_2 __attribute__((__noreturn__)) 123 123 #endif 124 124
Note:
See TracChangeset
for help on using the changeset viewer.