- Timestamp:
- Jun 8, 2007 6:36:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kObjCache/kObjCache.c
r1040 r1041 646 646 static void kOCSumInitWithCtx(PKOCSUM pSum, PKOCSUMCTX pCtx) 647 647 { 648 mem cmp(pSum, 0, sizeof(*pSum));648 memset(pSum, 0, sizeof(*pSum)); 649 649 MD5Init(&pCtx->MD5Ctx); 650 650 } … … 694 694 static void kOCSumInit(PKOCSUM pSumHead) 695 695 { 696 mem cmp(pSumHead, 0, sizeof(*pSumHead));696 memset(pSumHead, 0, sizeof(*pSumHead)); 697 697 } 698 698 … … 760 760 free(pv); 761 761 } 762 mem cmp(pSumHead, 0, sizeof(*pSumHead));762 memset(pSumHead, 0, sizeof(*pSumHead)); 763 763 } 764 764 … … 3424 3424 { 3425 3425 printf("syntax: kObjCache [--kObjCache-options] [-v|--verbose]\n" 3426 " [-d|--cache-dir <cache-dir>] [-n|--name <name-in-cache>]\n" 3427 " [-f|--file <local-cache-file>] [-t|--target <target-name>\n" 3426 " < [-c|--cache-file <cache-file>]\n" 3427 " | [-n|--name <name-in-cache>] [[-d|--cache-dir <cache-dir>]] >\n" 3428 " <-f|--file <local-cache-file>>\n" 3429 " <-t|--target <target-name>>\n" 3428 3430 " [-r|--redir-stdout] [-p|--passthru]\n" 3429 3431 " --kObjCache-cpp <filename> <precompiler + args>\n" … … 3432 3434 " [--kObjCache-cpp|--kObjCache-cc [more args]]\n" 3433 3435 " kObjCache <-V|--version>\n" 3434 " kObjCache [-?| -h|--help]\n"3436 " kObjCache [-?|/?|-h|/h|--help|/help]\n" 3435 3437 "\n" 3436 3438 "The env.var. KOBJCACHE_DIR sets the default cache diretory (-d).\n" … … 3482 3484 * Parse the arguments. 3483 3485 */ 3486 if (argc <= 1) 3487 return usage(); 3484 3488 for (i = 1; i < argc; i++) 3485 3489 { … … 3565 3569 else if (!strcmp(argv[i], "-q") || !strcmp(argv[i], "--quiet")) 3566 3570 g_cVerbosityLevel = 0; 3567 else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "-?")) 3571 else if (!strcmp(argv[i], "-h") || !strcmp(argv[i], "-?") 3572 || !strcmp(argv[i], "/h") || !strcmp(argv[i], "/?") || !strcmp(argv[i], "/help")) 3568 3573 return usage(); 3569 3574 else if (!strcmp(argv[i], "-V") || !strcmp(argv[i], "--version")) … … 3577 3582 if (!pszEntryFile) 3578 3583 return SyntaxError("No cache entry filename (-f)!\n"); 3584 if (!pszTarget) 3585 return SyntaxError("No target name (-t)!\n"); 3579 3586 if (!cArgvCompile) 3580 3587 return SyntaxError("No compiler arguments (--kObjCache-cc)!\n");
Note:
See TracChangeset
for help on using the changeset viewer.