mirror of
https://github.com/avrdudes/avrdude.git
synced 2026-09-22 09:06:23 +03:00
Allow inline # comments for terminal commands
This commit is contained in:
@@ -1097,6 +1097,8 @@ int tokenize(char *s, char ***argvp) {
|
||||
|
||||
for(n=0, r=s; *r; ) {
|
||||
nexttok(r, &q, &r);
|
||||
if(*q == '#') // Inline comment: ignore rest of line
|
||||
break;
|
||||
strcpy(buf, q);
|
||||
argv[n++] = buf;
|
||||
buf += strlen(q) + 1;
|
||||
|
||||
Reference in New Issue
Block a user