-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1893 from stefanrueger/space-the-final-frontier
Space: the final frontier Reformatting most of the source: The created avrdude executable stays invariant except for the source line numbers that errors and warnings emit with -vv. To prove this check out git main, replace all occurrences of __LINE__ in avrdude.h and jtagmkII.c with 07654321. Compile the executable avrdude and disassemble using objdump -d $(which avrdude) >ad.S. Then do the same with this PR and convince yourself that the ensuing .S files are identical. OK, I only checked under Linux but have every reason to believe that the semi-automated method of this PR will also leave the fraction of the code invariant that isn't seen by a Linux compilation. Tools used: $ indent -as -nsaf -nsai -nsaw -nut -bap -bacc -bad -bbb -brs -nbc -br -brf -nbs -c33 -cd33 -cp33 -ncdb -cdw -ce -ci2 -cli0 -d0 -di1 -neei -nfc1 -i2 -il-2 -ppi0 -nip -l130 -lc130 -nlp -npcs -npsl -nsc -sob -nlps -nprs -par Then polish with a set of sed scripts to ensure the correct spacing of - switch(i) - a? b: c - type *p - single-line comments just so // Note the space and capital letter at the start and - Multi-line comments such as /* * Multi-line comments which * - Tend to be about larger code regions * - Contain vital algorithmic information * - Deserve visual attention and prominence * - Help users utilise functions and code thereafter */ Also - Change PDATA(pgm)-> to my. - Change xxx->prog_modes & PM_ABCD to is_abcd(xxx)
- Loading branch information
Showing
138 changed files
with
24,023 additions
and
25,859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,4 @@ | |
|
||
extern const char arduino_desc[]; | ||
void arduino_initpgm(PROGRAMMER *pgm); | ||
|
||
#endif | ||
|
||
|
Oops, something went wrong.