Changeset a376c9e in mainline
- Timestamp:
- 2011-04-14T21:02:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 12831ed7
- Parents:
- 3daba9de
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.common
r3daba9de ra376c9e 124 124 125 125 RD_APPS_NON_ESSENTIAL = \ 126 $(USPACE_PATH)/app/cc/cc \ 126 127 $(USPACE_PATH)/app/cpp/cpp \ 127 128 $(USPACE_PATH)/app/edit/edit \ -
uspace/Makefile
r3daba9de ra376c9e 35 35 DIRS = \ 36 36 app/bdsh \ 37 app/cc \ 37 38 app/cpp \ 38 39 app/edit \ -
uspace/app/pcc/cc/cc/cc.c
r3daba9de ra376c9e 285 285 * Wide char defines. 286 286 */ 287 #if 0 287 288 #if WCHAR_TYPE == USHORT 288 289 #define WCT "short unsigned int" … … 306 307 #error WCHAR_TYPE not defined or invalid 307 308 #endif 309 #endif 310 311 #define WCT "int" 312 #define WCM "2147483647" 313 308 314 309 315 #ifdef GCC_COMPAT … … 1327 1333 } 1328 1334 1335 #elif defined(__helenos__) 1336 1337 #include <task.h> 1338 1339 int callsys(char *f, char *v[]) 1340 { 1341 size_t len; 1342 char *path = NULL; 1343 const char *s; 1344 int t; 1345 task_exit_t texit; 1346 int retval; 1347 1348 task_id_t tid; 1349 1350 if (vflag) { 1351 fprintf(stderr, "%s ", f); 1352 for (t = 1; v[t]; t++) 1353 fprintf(stderr, "%s ", v[t]); 1354 fprintf(stderr, "\n"); 1355 } 1356 1357 if (Bflag) { 1358 len = strlen (Bflag) + 8; 1359 path = malloc (len); 1360 if (path == NULL) { 1361 error("callsys: malloc failed"); 1362 exit(1); 1363 } 1364 if ((s = strrchr(f, '/'))) { 1365 strlcpy(path, Bflag, len); 1366 strlcat(path, s, len); 1367 if (task_spawnv(&tid, path, v) == 0) 1368 goto _wait; 1369 } 1370 } 1371 1372 if (task_spawnv(&tid, f, v) == 0) 1373 goto _wait; 1374 1375 if ((s = strrchr(f, '/')) && task_spawnv (&tid, s + 1, v) == 0) 1376 goto _wait; 1377 1378 errorx(8, "Can't find %s\n", f); 1379 return 0; 1380 1381 _wait: 1382 1383 1384 if (task_wait (tid, &texit, &retval) != 0) { 1385 error("Couldn't wait on task"); 1386 return 0; 1387 } 1388 1389 return retval; 1390 } 1391 1329 1392 #else 1330 1393 -
uspace/app/pcc/cc/cpp/Makefile
r3daba9de ra376c9e 30 30 MIPDIR = ../../mip 31 31 ARCHDIR = ../../arch/$(PLATFORM) 32 EXTRA_CFLAGS = -I$(MIPDIR) -I$(ARCHDIR) 32 EXTRA_CFLAGS = -I$(MIPDIR) -I$(ARCHDIR) -w 33 33 EXTRA_CLEAN = y.tab.c y.tab.h 34 34 DEFS = -DCPP_DEBUG -Dfree=free -DCPPBUF=16384 -
uspace/app/pcc/config.h
r3daba9de ra376c9e 24 24 25 25 /* Define to 1 if you have the `basename' function. */ 26 #define HAVE_BASENAME 126 //#define HAVE_BASENAME 1 27 27 28 28 /* Define to 1 if printf supports C99 size specifiers */ … … 33 33 34 34 /* Define to 1 if you have the `ffs' function. */ 35 #define HAVE_FFS 135 //#define HAVE_FFS 1 36 36 37 37 /* Define to 1 if you have the `getopt' function. */ … … 42 42 43 43 /* Define to 1 if you have the <libgen.h> header file. */ 44 #define HAVE_LIBGEN_H 144 //#define HAVE_LIBGEN_H 1 45 45 46 46 /* Define to 1 if you have the <malloc.h> header file. */ … … 51 51 52 52 /* Define to 1 if you have the `mkstemp' function. */ 53 #define HAVE_MKSTEMP 153 //#define HAVE_MKSTEMP 1 54 54 55 55 /* Define to 1 if you have the `snprintf' function. */ … … 63 63 64 64 /* Define to 1 if you have the <strings.h> header file. */ 65 #define HAVE_STRINGS_H 165 //#define HAVE_STRINGS_H 1 66 66 67 67 /* Define to 1 if you have the <string.h> header file. */ … … 90 90 91 91 /* Define to 1 if you have the `vfork' function. */ 92 #define HAVE_VFORK 192 //#define HAVE_VFORK 1 93 93 94 94 /* Define to 1 if you have the `vsnprintf' function. */ … … 127 127 128 128 /* Define to the version of this package. */ 129 //#undef PACKAGE_VERSION 129 #define PACKAGE_VERSION "1.0.0" 130 130 131 131 /* Major version no */ … … 170 170 171 171 /* Size of wide character type */ 172 // #undef WCHAR_SIZE 172 #define WCHAR_SIZE (sizeof int) 173 173 174 174 /* Type to use for wide characters */ 175 // #undef WCHAR_TYPE 175 #define WCHAR_TYPE int 176 176 177 177 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a … … 179 179 //#define YYTEXT_POINTER 1 180 180 181 #undef COMPILER 182
Note:
See TracChangeset
for help on using the changeset viewer.