Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

Commit

Permalink
Add create_meters tool (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
dchassin committed Dec 4, 2022
1 parent cff9084 commit 4f8e3a9
Show file tree
Hide file tree
Showing 6 changed files with 4,215 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/load.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8238,11 +8238,11 @@ int GldLoader::process_macro(char *line, int size, char *_filename, int linenum)
}
else if ( strncmp(line, "#for",4) == 0 )
{
char var[64], range[1024];
char var[64], range[1024] = "";
if ( line[0] == '"' ) line++;
char *end = line + strlen(line);
if ( end[-1] == '"') end[-1] = '\0';
if ( sscanf(line+4,"%s in%*[ \t\"]%[^\n\"]",var,range) == 2 )
if ( sscanf(line+4,"%s in%*[ \t\"]%[^\n\"]",var,range) >= 1 )
{
strcpy(line,"\n");
return for_open(var,range) ? TRUE : FALSE;
Expand Down
1 change: 1 addition & 0 deletions tools/Makefile.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
dist_pkgdata_DATA += tools/create_filter.py
dist_pkgdata_DATA += tools/create_player.py
dist_pkgdata_DATA += tools/create_meters.py
dist_pkgdata_DATA += tools/create_poles.py
dist_pkgdata_DATA += tools/eia_recs.py
dist_pkgdata_DATA += tools/find_location.py
Expand Down
Loading

0 comments on commit 4f8e3a9

Please sign in to comment.