renamed struct member function pointer to x_strcmp

This commit is contained in:
Stefan Frederik 2022-02-01 18:31:23 +01:00
parent bc03dedbca
commit 200f4210d0
3 changed files with 4 additions and 4 deletions

View File

@ -423,10 +423,10 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
int n = atoi(argv[2]);
if(n) {
xctx->case_insensitive = 1;
xctx->strcmp = my_strcasecmp;
xctx->x_strcmp = my_strcasecmp;
} else {
xctx->case_insensitive = 0;
xctx->strcmp = strcmp;
xctx->x_strcmp = strcmp;
}
}
}

View File

@ -619,7 +619,7 @@ static void alloc_xschem_data(const char *top_path, const char *win_path)
my_strdup2(1462, &xctx->current_win_path, win_path);
xctx->fill_type=my_calloc(640, cadlayers, sizeof(int));
xctx->case_insensitive = 0;
xctx->strcmp = strcmp;
xctx->x_strcmp = strcmp;
xctx->fill_pattern = 1;
xctx->draw_window = 0;
xctx->time_last_modify = 0;

View File

@ -937,7 +937,7 @@ typedef struct {
void (*delete_undo)(void);
void (*clear_undo)(void);
int case_insensitive; /* for case insensitive compare where needed */
int (*strcmp)(const char *, const char *);
int (*x_strcmp)(const char *, const char *);
} Xschem_ctx;
/* GLOBAL VARIABLES */