Ticket #20526: patch-config_gram.y.diff
File patch-config_gram.y.diff, 1.1 KB (added by ranauei@…, 15 years ago) |
---|
-
config_gram.y
old new 41 41 #include "stk500v2.h" 42 42 #include "stk500generic.h" 43 43 #include "avr910.h" 44 #include "serjtag.h" 44 45 #include "butterfly.h" 45 46 #include "usbasp.h" 46 47 #include "usbtiny.h" … … 143 144 %token K_STK600HVSP 144 145 %token K_STK600PP 145 146 %token K_AVR910 147 %token K_SERJTAG 148 %token K_FT245R 146 149 %token K_USBASP 147 150 %token K_USBTINY 148 151 %token K_BUTTERFLY … … 449 452 } 450 453 } | 451 454 455 K_TYPE TKN_EQUAL K_SERJTAG { 456 { 457 serjtag_initpgm(current_prog); 458 } 459 } | 460 461 K_TYPE TKN_EQUAL K_FT245R { 462 { 463 ft245r_initpgm(current_prog); 464 } 465 } | 466 452 467 K_TYPE TKN_EQUAL K_USBASP { 453 468 { 454 469 usbasp_initpgm(current_prog); … … 1321 1336 1322 1337 value = v->value.number; 1323 1338 1324 if ((value < =0) || (value >= 18)) {1339 if ((value < 0) || (value >= 18)) { 1325 1340 fprintf(stderr, 1326 1341 "%s: error at line %d of %s: pin must be in the " 1327 "range 1-17\n",1342 "range 0-17\n", 1328 1343 progname, lineno, infile); 1329 1344 exit(1); 1330 1345 }