Changeset 11133
- Timestamp:
- Jan 18, 2007, 10:30:24 AM (19 years ago)
- Location:
- trunk/stac
- Files:
-
- 2 edited
-
configure.ac (modified) (2 diffs)
-
src/shiftSize.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/stac/configure.ac
r8783 r11133 21 21 [AS_HELP_STRING(--enable-optimize,enable compiler optimization)], 22 22 [AC_MSG_RESULT(compile optimization enabled) 23 CFLAGS="${CFLAGS=} -O2 "],23 CFLAGS="${CFLAGS=} -O2 -DPS_NO_TRACE"], 24 24 [AC_MSG_RESULT([compile optimization disabled]) 25 25 CFLAGS="${CFLAGS=} -O0 -g"] … … 28 28 PKG_CHECK_MODULES([PSLIB], [pslib >= 0.12.99]) 29 29 30 stac_CFLAGS="-Wall -Werror -std=c99 -DPS_NO_TRACE" 31 #stac_CFLAGS="-Wall -Werror -std=c99" 30 stac_CFLAGS="-Wall -Werror -std=c99" 32 31 AC_SUBST([stac_CFLAGS]) 33 32 -
trunk/stac/src/shiftSize.c
r9740 r11133 30 30 } 31 31 32 33 32 int main(int argc, char *argv[]) 34 33 { 35 34 // Set trace levels 36 35 psTraceSetLevel(".",0); 36 psTraceSetLevel("err", 10); 37 37 #ifdef TESTING 38 38 psTraceSetLevel("stac.checkMemory",10); … … 78 78 psArray *inputs = psArrayAlloc(argc); // Input filenames 79 79 for (int i = 0; i < argc; i++) { 80 inputs->data[i] = psAlloc(strlen(argv[i])); 81 strncpy(inputs->data[i], argv[i], strlen(argv[i])); 82 psTrace("stac.size", 8, "Input file: %s\n", inputs->data[i]); 80 inputs->data[i] = psStringCopy(argv[i]); 81 psTrace("stac.size", 8, "Input file: %s\n", (char*)inputs->data[i]); 83 82 } 84 83
Note:
See TracChangeset
for help on using the changeset viewer.
