Skip to content

Commit

Permalink
Localize Variables in make_batch_file
Browse files Browse the repository at this point in the history
  • Loading branch information
LegalizeAdulthood committed Jan 2, 2025
1 parent 2c59c6b commit e87c429
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions libid/make_batch_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,17 @@ void make_batch_file()
double piece_x_min{};
double piece_y_min{};
char video_mode_key_name[5];
int prompt_num;
int pieces_prompts;
bool have_3rd{};
char input_command_file[80];
char input_command_name[ITEM_NAME_LEN + 1];
char input_comment[4][MAX_COMMENT_LEN];
constexpr int MAX_PROMPTS{18};
FullScreenValues param_values[MAX_PROMPTS];
char const *choices[MAX_PROMPTS];
fs::path out_name;
char buf[256];
char buf2[128];
std::FILE *infile{};
std::FILE *bat_file{};
char color_spec[14];
int max_color;
int max_color_index{};
char const *sptr{};
char const *sptr2;

Expand Down Expand Up @@ -225,7 +219,12 @@ void make_batch_file()
while (true)
{
prompt_user:
prompt_num = 0;
int prompt_num = 0;
constexpr int MAX_PROMPTS{18};
FullScreenValues param_values[MAX_PROMPTS];
char const *choices[MAX_PROMPTS];
int max_color_index{};
int pieces_prompts;
choices[prompt_num] = "Parameter file";
param_values[prompt_num].type = 0x100 + MAX_COMMENT_LEN - 1;
param_values[prompt_num++].uval.sbuf = input_command_file;
Expand Down

0 comments on commit e87c429

Please sign in to comment.