Home
last modified time | relevance | path

Searched refs:argi (Results 1 – 25 of 43) sorted by relevance

12

/haiku/src/tests/apps/miniterminal/
H A DArguments.cpp67 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 DArguments.cpp50 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 Dpen.c215 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()
316argi += 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()
337argi += 1 + lookup_colour(state, CSI_ARG(args[argi+1]), args+argi+2, argcount-argi-2, &state->pen.… in vterm_state_setpen()
[all …]
H A Dparser.c28 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 Ddisasm.cpp18 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 Dmain.cpp60 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 DNetFSServerPrefs.cpp390 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 Dfssh.cpp664 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 Dfs_shell_command.cpp31 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 Drm_attrs.cpp189 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 Dclipboard.cpp60 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 Dsettype.cpp69 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 Dresattr.cpp66 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 Ddiff_zip.cpp299 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 Dxres.cpp685 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 Dcopyattr.cpp185 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 Dintel_reg.cpp56 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 Dcreate_repository_config.cpp62 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 Dgensyscalls.cpp260 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 Dkernel_unit_tests.cpp235 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 Ddebug_builtin_commands.cpp213 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 Dtracing.cpp1304 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 Dstrace.cpp585 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 Dcrashing_app.cpp207 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 Dvm_debug.cpp616 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()

12