| 331 | } |
| 332 | |
| 333 | int main(int argc, char** argv) |
| 334 | { |
| 335 | #if 0 |
| 336 | // const char* pp = "�\\"; |
| 337 | const char* pp = "�\\"; |
| 338 | while (*pp) |
| 339 | { |
| 340 | printf("ch: %d\r\n", *pp); |
| 341 | pp++; |
| 342 | } |
| 343 | printf("'\\': %d\r\n", '\\'); |
| 344 | exit(0); |
| 345 | #endif |
| 346 | |
| 347 | int ch; |
| 348 | int benchmark_max = 100; |
| 349 | bool use_default = true, benchmark = false; |
| 350 | bool once = false, use_mempool = false; |
| 351 | |
| 352 | while ((ch = getopt(argc, argv, "hf:bm:sM")) > 0) |
| 353 | { |
| 354 | switch (ch) |
| 355 | { |
| 356 | case 'h': |
| 357 | use_default = false; |
| 358 | usage(argv[0]); |
| 359 | return (0); |
| 360 | case 'f': |
| 361 | use_default = false; |
| 362 | test_json_file(optarg); |
| 363 | break; |
| 364 | case 'b': |
| 365 | use_default = false; |
| 366 | benchmark = true; |
| 367 | break; |
| 368 | case 'm': |
| 369 | use_default = false; |
| 370 | benchmark_max = atoi(optarg); |
| 371 | break; |
| 372 | case 's': |
| 373 | once = true; |
| 374 | break; |
| 375 | case 'M': |
| 376 | use_mempool = true; |
| 377 | break; |
| 378 | default: |
| 379 | break; |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | if (use_mempool) |
| 384 | { |
| 385 | acl_mem_slice_init(8, 1024, 100000, |
| 386 | ACL_SLICE_FLAG_GC2 | |
| 387 | ACL_SLICE_FLAG_RTGC_OFF | |
| 388 | ACL_SLICE_FLAG_LP64_ALIGN); |
| 389 | printf("use mempool now\n"); |
| 390 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…