Changeset 1523 for trunk/layout.c
- Timestamp:
- Apr 15, 2012 4:09:16 PM (13 months ago)
- File:
-
- 1 edited
-
trunk/layout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/layout.c
r1483 r1523 202 202 #endif 203 203 204 /* returns the index of the entry (or a negative value if it is not found) */ 205 int find_include_arg(const char *const name) 206 { 207 unsigned int i; 208 for (i = 0; i < num_include_args; i++) { 209 if (!strcmp(include_args[i], name)) 210 return i; 211 } 212 return -1; 213 } 214 204 215 /* register an include argument (-i) for later processing */ 205 216 int register_include_arg(char *name) … … 212 223 if (name == NULL) { 213 224 msg_gerr("<NULL> is a bad region name.\n"); 225 return 1; 226 } 227 228 if (find_include_arg(name) != -1) { 229 msg_gerr("Duplicate region name: \"%s\".\n", name); 214 230 return 1; 215 231 } … … 251 267 return 0; 252 268 269 /* User has specified an area, but no layout file is loaded. */ 270 if (!romimages) { 271 msg_gerr("Region requested (with -i \"%s\"), " 272 "but no layout data is available.\n", 273 include_args[0]); 274 return 1; 275 } 276 253 277 for (i = 0; i < num_include_args; i++) { 254 /* User has specified an area, but no layout file is loaded. */255 if (!romimages) {256 msg_gerr("Region requested (with -i \"%s\"), "257 "but no layout data is available.\n",258 include_args[i]);259 return 1;260 }261 262 278 if (find_romentry(include_args[i]) < 0) { 263 msg_gerr("Invalid region specified: \"%s\" \n",279 msg_gerr("Invalid region specified: \"%s\".\n", 264 280 include_args[i]); 265 281 return 1;
Note: See TracChangeset
for help on using the changeset viewer.
