/haiku/src/tests/apps/miniterminal/ |
H A D | Arguments.cpp | 67 int argi = 1; in Parse() local 68 while (argi < argc) { in Parse() 69 const char *arg = argv[argi++]; in Parse() 78 if (argi + 1 >= argc in Parse() 79 || sscanf(argv[argi++], "%f", &x) != 1 in Parse() 80 || sscanf(argv[argi++], "%f", &y) != 1) { in Parse() 89 if (argi + 1 >= argc in Parse() 90 || sscanf(argv[argi++], "%f", &width) != 1 in Parse() 91 || sscanf(argv[argi++], "%f", &height) != 1) { in Parse() 100 if (argi >= argc) in Parse() [all …]
|
/haiku/src/apps/terminal/ |
H A D | Arguments.cpp | 50 int argi; in Parse() local 51 for (argi = 1; argi < argc; argi ++) { in Parse() 52 const char* arg = argv[argi]; in Parse() 59 if (argi >= argc) in Parse() 62 fTitle = argv[++argi]; in Parse() 65 if (argi >= argc) in Parse() 68 fWorkingDirectory = argv[++argi]; in Parse() 80 _SetShellArguments(argc - argi, argv + argi); in Parse() 81 argi = argc; in Parse()
|
/haiku/src/apps/serialconnect/libvterm/src/ |
H A D | pen.c | 215 int argi = 0; in vterm_state_setpen() local 218 while(argi < argcount) { in vterm_state_setpen() 224 switch(arg = CSI_ARG(args[argi])) { in vterm_state_setpen() 264 state->pen.font = CSI_ARG(args[argi]) - 10; in vterm_state_setpen() 305 value = CSI_ARG(args[argi]) - 30; in vterm_state_setpen() 314 if(argcount - argi < 1) in vterm_state_setpen() 316 …argi += 1 + lookup_colour(state, CSI_ARG(args[argi+1]), args+argi+2, argcount-argi-2, &state->pen.… in vterm_state_setpen() 328 value = CSI_ARG(args[argi]) - 40; in vterm_state_setpen() 335 if(argcount - argi < 1) in vterm_state_setpen() 337 …argi += 1 + lookup_colour(state, CSI_ARG(args[argi+1]), args+argi+2, argcount-argi-2, &state->pen.… in vterm_state_setpen() [all …]
|
H A D | parser.c | 28 int argi; in do_string_csi() local 51 for(argi = 0; argi < argcount; argi++) in do_string_csi() 52 csi_args[argi] = CSI_ARG_MISSING; in do_string_csi() 54 argi = 0; in do_string_csi() 55 for(i = leaderlen; i < arglen && argi < argcount; i++) { in do_string_csi() 59 if(csi_args[argi] == CSI_ARG_MISSING) in do_string_csi() 60 csi_args[argi] = 0; in do_string_csi() 61 csi_args[argi] *= 10; in do_string_csi() 62 csi_args[argi] += args[i] - '0'; in do_string_csi() 65 csi_args[argi] |= CSI_ARG_FLAG_MORE; in do_string_csi() [all …]
|
/haiku/src/add-ons/kernel/debugger/disasm/ |
H A D | disasm.cpp | 18 int argi = 1; in disasm_command() local 22 if (argi < argc && strcmp(argv[argi], "-b") == 0) { in disasm_command() 23 if (++argi >= argc) { in disasm_command() 28 if (!evaluate_debug_expression(argv[argi++], &backCount, false)) in disasm_command() 32 if (argi + 2 < argc) { in disasm_command() 39 if (argi < argc) { in disasm_command() 40 if (!evaluate_debug_expression(argv[argi++], &pc, false)) in disasm_command() 52 if (argi < argc) { in disasm_command() 53 if (!evaluate_debug_expression(argv[argi++], &count, false)) in disasm_command()
|
/haiku/src/add-ons/kernel/file_systems/userlandfs/server/ |
H A D | main.cpp | 60 int argi = 1; in main() local 61 for (; argi < argc; argi++) { in main() 62 const char* arg = argv[argi]; in main() 81 if (argi < argc) { in main() 82 fileSystem = argv[argi++]; in main() 88 if (argi < argc) { in main() 89 port = atol(argv[argi++]); in main() 96 if (argi < argc) { in main()
|
/haiku/src/add-ons/kernel/file_systems/netfs/netfs_server_prefs/ |
H A D | NetFSServerPrefs.cpp | 390 next_arg(int argc, char** argv, int& argi, bool dontFail = false) in next_arg() argument 392 if (argi >= argc) { in next_arg() 398 return argv[argi++]; in next_arg() 404 no_more_args(int argc, int argi) in no_more_args() argument 406 if (argi < argc) in no_more_args() 417 int argi = 1; in main() local 418 const char* arg = next_arg(argc, argv, argi); in main() 424 no_more_args(argc, argi); in main() 428 no_more_args(argc, argi); in main() 432 no_more_args(argc, argi); in main() [all …]
|
/haiku/src/tools/fs_shell/ |
H A D | fssh.cpp | 664 int argi = 1; in command_chmod() local 665 for (argi = 1; argi < argc; argi++) { in command_chmod() 666 const char *arg = argv[argi]; in command_chmod() 690 if (argi + 1 >= argc || !get_permissions(argv[argi++], permissions)) { in command_chmod() 699 for (; argi < argc; argi++) { in command_chmod() 700 const char *file = argv[argi]; in command_chmod() 838 int argi = 1; in command_ln() local 839 for (argi = 1; argi < argc; argi++) { in command_ln() 840 const char *arg = argv[argi]; in command_ln() 867 if (argc - argi != 2) { in command_ln() [all …]
|
H A D | fs_shell_command.cpp | 31 for (int argi = 0; argi < argc; argi++) { in prepare_command_string() local 32 const char *arg = argv[argi]; in prepare_command_string() 34 if (argi > 0) in prepare_command_string()
|
/haiku/src/tools/ |
H A D | rm_attrs.cpp | 189 int argi = 1; in main() local 190 for (argi = 1; argi < argc; argi++) { in main() 191 const char *arg = argv[argi]; in main() 216 if (argi >= argc) { in main() 222 for (; argi < argc; argi++) { in main() 224 if (!path.Init(argv[argi])) { in main() 225 fprintf(stderr, "Error: Invalid path: \"%s\".\n", argv[argi]); in main()
|
/haiku/src/tests/kits/storage/testapps/ |
H A D | clipboard.cpp | 60 next_arg(int argc, const char* const* argv, int& argi, bool dontFail = false) in next_arg() argument 62 if (argi + 1 >= argc) { in next_arg() 68 return argv[++argi]; in next_arg() 129 for (int argi = 1; argi < argc; argi++) { in main() local 130 const char *arg = argv[argi]; in main() 135 clipboardName = next_arg(argc, argv, argi); in main() 141 value = next_arg(argc, argv, argi, true); in main()
|
/haiku/src/bin/ |
H A D | settype.cpp | 69 next_arg(int &argi, bool optional = false) in next_arg() argument 71 if (argi >= kArgc) { in next_arg() 77 return kArgv[argi++]; in next_arg() 109 for (int argi = 1; argi < argc; ) { in main() local 110 const char *arg = argv[argi++]; in main() 116 preferredApp = next_arg(argi); in main() 119 signature = next_arg(argi); in main() 122 type = next_arg(argi); in main()
|
H A D | resattr.cpp | 66 next_arg(int argc, const char* const* argv, int& argi, bool dontFail = false) in next_arg() argument 68 if (argi + 1 >= argc) { in next_arg() 74 return argv[++argi]; in next_arg() 281 for (int argi = 1; argi < argc; argi++) { in main() local 282 const char *arg = argv[argi]; in main() 287 outputFile = next_arg(argc, argv, argi); in main()
|
H A D | diff_zip.cpp | 299 int argi = 1; in main() local 300 for (; argi < argc; argi++) { in main() 301 if (strcmp(argv[argi], "--") == 0) in main() 305 if (argi + 1 >= argc) { in main() 310 int zipArgCount = argi; in main() 311 const char* const* paths = argv + argi + 1; in main() 312 int pathCount = argc - argi - 1; in main()
|
H A D | xres.cpp | 685 next_arg(int &argi, bool optional = false) in next_arg() argument 687 if (argi >= kArgc) { in next_arg() 693 return kArgv[argi++]; in next_arg() 779 for (int argi = 1; argi < argc; ) { in main() local 780 const char *arg = argv[argi++]; in main() 794 const char *typeString = next_arg(argi); in main() 800 const char *file = next_arg(argi); in main() 803 const char *data = next_arg(argi); in main() 823 const char *typeString = next_arg(argi); in main() 846 const char *out = next_arg(argi); in main() [all …]
|
H A D | copyattr.cpp | 185 next_arg(int &argi, bool optional = false) in next_arg() argument 187 if (argi >= kArgc) { in next_arg() 193 return kArgv[argi++]; in next_arg() 641 for (int argi = 1; argi < argc; ) { in main() local 642 const char *arg = argv[argi++]; in main() 660 attributeName = next_arg(argi); in main() 673 attributeTypeString = next_arg(argi); in main() 680 parameters.entry_filter.AddExcludeFilter(next_arg(argi), true); in main() 683 parameters.entry_filter.AddExcludeFilter(next_arg(argi), false); in main()
|
/haiku/src/tests/add-ons/accelerants/intel_extreme/ |
H A D | intel_reg.cpp | 56 for (int argi = 1; argi < argc; argi++) { in main() local 57 const char *arg = argv[argi]; in main() 62 count = strtol(argv[++argi], (char **)NULL, 10); in main() 69 programArgs = argv + argi; in main() 70 programArgCount = argc - argi; in main()
|
/haiku/src/tools/create_repository_config/ |
H A D | create_repository_config.cpp | 62 int argi = 1; in main() local 63 const char* baseUrl = argc == 4 ? argv[argi++] : NULL; in main() 64 const char* infoPath = argv[argi++]; in main() 65 const char* configPath = argv[argi++]; in main()
|
/haiku/src/tools/gensyscalls/ |
H A D | gensyscalls.cpp | 260 for (int argi = 1; argi < argc; argi++) { in Run() local 261 string arg(argv[argi]); in Run() 266 if (argi + 1 >= argc) { in Run() 270 syscallsFile = argv[++argi]; in Run() 272 if (argi + 1 >= argc) { in Run() 276 dispatcherFile = argv[++argi]; in Run() 278 if (argi + 1 >= argc) { in Run() 282 numbersFile = argv[++argi]; in Run() 284 if (argi + 1 >= argc) { in Run() 288 tableFile = argv[++argi]; in Run() [all …]
|
/haiku/src/tests/system/kernel/unit/ |
H A D | kernel_unit_tests.cpp | 235 int argi = 1; in device_write() local 236 while (argi < argc) { in device_write() 237 const char* arg = argv[argi]; in device_write() 253 argi++; in device_write() 259 sTestManager->RunTests(globalContext, argv + argi, argc - argi); in device_write()
|
/haiku/src/system/kernel/debug/ |
H A D | debug_builtin_commands.cpp | 213 int argi = 1; in cmd_grep() local 214 for (; argi < argc; argi++) { in cmd_grep() 215 const char* arg = argv[argi]; in cmd_grep() 231 if (argc - argi != 2) { in cmd_grep() 236 const char* pattern = argv[argi++]; in cmd_grep() 237 const char* line = argv[argi++]; in cmd_grep()
|
H A D | tracing.cpp | 1304 int argi = 1; in dump_tracing_internal() local 1331 while (argi < argc) { in dump_tracing_internal() 1332 if (strcmp(argv[argi], "--difftime") == 0) { in dump_tracing_internal() 1334 argi++; in dump_tracing_internal() 1335 } else if (strcmp(argv[argi], "--printteam") == 0) { in dump_tracing_internal() 1337 argi++; in dump_tracing_internal() 1338 } else if (strcmp(argv[argi], "--stacktrace") == 0) { in dump_tracing_internal() 1340 argi++; in dump_tracing_internal() 1345 if (argi < argc) { in dump_tracing_internal() 1346 if (strcmp(argv[argi], "forward") == 0) { in dump_tracing_internal() [all …]
|
/haiku/src/bin/debug/strace/ |
H A D | strace.cpp | 585 for (int argi = 1; argi < argc; argi++) { in main() local 586 const char *arg = argv[argi]; in main() 604 && argi + 1 < argc && argv[argi + 1][0] != '-') { in main() 606 what = argv[++argi]; in main() 633 && argi + 1 < argc && argv[argi + 1][0] != '-') { in main() 635 filterString = argv[++argi]; in main() 722 && argi + 1 < argc && argv[argi + 1][0] != '-') { in main() 724 filename = argv[++argi]; in main() 738 programArgs = argv + argi; in main() 739 programArgCount = argc - argi; in main()
|
/haiku/src/tests/servers/debug/ |
H A D | crashing_app.cpp | 207 int argi = 1; in main() local 208 while (argi < argc) { in main() 209 const char *arg = argv[argi++]; in main()
|
/haiku/src/system/kernel/vm/ |
H A D | vm_debug.cpp | 616 int argi = 1; in dump_mapping_info() local 617 for (; argi < argc && argv[argi][0] == '-'; argi++) { in dump_mapping_info() 618 const char* arg = argv[argi]; in dump_mapping_info() 632 if (argi >= argc || argi + 2 < argc) { in dump_mapping_info() 638 if (!evaluate_debug_expression(argv[argi++], &addressValue, false)) in dump_mapping_info() 642 if (argi < argc) { in dump_mapping_info() 644 if (!evaluate_debug_expression(argv[argi++], &threadID, false)) in dump_mapping_info() 649 kprintf("Invalid thread/team ID \"%s\"\n", argv[argi - 1]); in dump_mapping_info()
|