_getopt.c (7ce20373) | _getopt.c (509a48ff) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 40 unchanged lines hidden (view full) --- 49 } 50 else if (strcmp(argv[optind], "-isysroot") == 0) 51 { 52 // skip Mac OS X SDK selection flags 53 optind++; optind++; 54 } 55 } 56 optopt = c = argv[optind][sp]; | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 40 unchanged lines hidden (view full) --- 49 } 50 else if (strcmp(argv[optind], "-isysroot") == 0) 51 { 52 // skip Mac OS X SDK selection flags 53 optind++; optind++; 54 } 55 } 56 optopt = c = argv[optind][sp]; |
57 if (c == ':' || (cp = strchr(opts, c)) == 0) | 57 if (c == ':' || (cp = strchr(opts, c)) == NULL) |
58 { 59 ERR(": illegal option -- ", c); 60 if (argv[optind][++sp] == '\0') 61 { 62 optind++; 63 sp = 1; 64 } 65 return '?'; --- 15 unchanged lines hidden (view full) --- 81 } 82 else 83 { 84 if (argv[optind][++sp] == '\0') 85 { 86 sp = 1; 87 optind++; 88 } | 58 { 59 ERR(": illegal option -- ", c); 60 if (argv[optind][++sp] == '\0') 61 { 62 optind++; 63 sp = 1; 64 } 65 return '?'; --- 15 unchanged lines hidden (view full) --- 81 } 82 else 83 { 84 if (argv[optind][++sp] == '\0') 85 { 86 sp = 1; 87 optind++; 88 } |
89 optarg = 0; | 89 optarg = NULL; |
90 } 91 return c; 92} | 90 } 91 return c; 92} |