|
From: | Rene Liebscher |
Subject: | [avrdude-dev] [patch #7709] Config file: change programmer type to string |
Date: | Thu, 26 Jan 2012 21:28:29 +0000 |
User-agent: | Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7 |
URL: <http://savannah.nongnu.org/patch/?7709> Summary: Config file: change programmer type to string Project: AVR Downloader/UploaDEr Submitted by: rliebscher Submitted on: Do 26 Jan 2012 21:28:27 GMT Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: rliebscher Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: Currently the programmer types are own keywords in the config files. This also means for every new programmer one has to extend the lexer and parser. This patch let the programmer type be specified as quoted string. It adds a C-file which provides a locate_programmer_type function for strings. It is internal realized as array of all known programmer types. So only this array needs to be extended for new programmers. (When this internal array would be later implemented as a list one could even realize a plugin concept for programmer drivers.) The implemented programmer types can be listed using 'avrdude -c ?type'. (This is also used to autofill the corresponding table in the documentation.) All programmers export now also a string xxxx_desc which is used as description entry in the table and output at 'avrdude -c ?type'. The config file is changed to the new format. Also the lexer and parser are updated. The parser would even bring an appropriate error message when the old format is used. For this the lexer return YYERRCODE instead of exit(1). So there is no exit left in the lexer, but the parser call still yyerror() which contains the exit.) _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Do 26 Jan 2012 21:28:28 GMT Name: pgm_type.patch Size: 50kB By: rliebscher <http://savannah.nongnu.org/patch/download.php?file_id=24900> _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/patch/?7709> _______________________________________________ Nachricht geschickt von/durch Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |