Rev 4264 | Rev 4279 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4264 | Rev 4265 | ||
---|---|---|---|
Line 239... | Line 239... | ||
239 | place++; |
239 | place++; |
240 | return -2; |
240 | return -2; |
241 | } |
241 | } |
242 | } |
242 | } |
243 | if ((optchar = (int)*place++) == (int)':' || |
243 | if ((optchar = (int)*place++) == (int)':' || |
244 | (oli = strchr(options + (IGNORE_FIRST ? 1 : 0), optchar)) == NULL) { |
244 | (oli = str_chr(options + (IGNORE_FIRST ? 1 : 0), optchar)) == NULL) { |
245 | /* option letter unknown or ':' */ |
245 | /* option letter unknown or ':' */ |
246 | if (!*place) |
246 | if (!*place) |
247 | ++optind; |
247 | ++optind; |
248 | if (PRINT_ERROR) |
248 | if (PRINT_ERROR) |
249 | printf(illoptchar, optchar); |
249 | printf(illoptchar, optchar); |
Line 375... | Line 375... | ||
375 | optind -= nonopt_end - nonopt_start; |
375 | optind -= nonopt_end - nonopt_start; |
376 | } |
376 | } |
377 | nonopt_start = nonopt_end = -1; |
377 | nonopt_start = nonopt_end = -1; |
378 | return -1; |
378 | return -1; |
379 | } |
379 | } |
380 | if ((has_equal = strchr(current_argv, '=')) != NULL) { |
380 | if ((has_equal = str_chr(current_argv, '=')) != NULL) { |
381 | /* argument found (--option=arg) */ |
381 | /* argument found (--option=arg) */ |
382 | current_argv_len = has_equal - current_argv; |
382 | current_argv_len = has_equal - current_argv; |
383 | has_equal++; |
383 | has_equal++; |
384 | } else |
384 | } else |
385 | current_argv_len = str_size(current_argv); |
385 | current_argv_len = str_size(current_argv); |