diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sheet.c | 3 | ||||
-rw-r--r-- | src/tui.c | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/sheet.c b/src/sheet.c index f399623..6782d94 100644 --- a/src/sheet.c +++ b/src/sheet.c @@ -204,7 +204,8 @@ void delete_sheet(struct roman * roman, struct sheet * sh, int flg_free) { // that could refer to this one by rebuilding the graph. if (! flg_free) rebuild_graph(); - for (int row = 0; sh->tbl != NULL && row < sh->maxrows; row++) { + int row; + for (row = 0; sh->tbl != NULL && row < sh->maxrows; row++) { if (sh->tbl[row] != NULL) { free(sh->tbl[row]); sh->tbl[row] = NULL; @@ -1138,7 +1138,8 @@ void ui_show_celldetails() { int il_pos = 0; // show filenames - for (struct roman * rom = session->first_doc; rom != NULL; rom = rom->next) { + struct roman * rom; + for (rom = session->first_doc; rom != NULL; rom = rom->next) { #ifdef USECOLORS ui_set_ucolor(input_win, &ucolors[FILENM], DEFAULT_COLOR); #endif @@ -1147,7 +1148,8 @@ void ui_show_celldetails() { il_pos += strlen(file_name) + 1; // show sheets - for (struct sheet * sh = rom->first_sh; sh != NULL; sh = sh->next) { + struct sheet * sh; + for (sh = rom->first_sh; sh != NULL; sh = sh->next) { if (sh == session->cur_doc->cur_sh) { #ifdef USECOLORS ui_set_ucolor(input_win, &ucolors[CURRENT_SHEET], DEFAULT_COLOR); |