renamed struct member function pointer to x_strcmp
This commit is contained in:
parent
bc03dedbca
commit
200f4210d0
|
|
@ -423,10 +423,10 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
|
||||||
int n = atoi(argv[2]);
|
int n = atoi(argv[2]);
|
||||||
if(n) {
|
if(n) {
|
||||||
xctx->case_insensitive = 1;
|
xctx->case_insensitive = 1;
|
||||||
xctx->strcmp = my_strcasecmp;
|
xctx->x_strcmp = my_strcasecmp;
|
||||||
} else {
|
} else {
|
||||||
xctx->case_insensitive = 0;
|
xctx->case_insensitive = 0;
|
||||||
xctx->strcmp = strcmp;
|
xctx->x_strcmp = strcmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
my_strdup2(1462, &xctx->current_win_path, win_path);
|
||||||
xctx->fill_type=my_calloc(640, cadlayers, sizeof(int));
|
xctx->fill_type=my_calloc(640, cadlayers, sizeof(int));
|
||||||
xctx->case_insensitive = 0;
|
xctx->case_insensitive = 0;
|
||||||
xctx->strcmp = strcmp;
|
xctx->x_strcmp = strcmp;
|
||||||
xctx->fill_pattern = 1;
|
xctx->fill_pattern = 1;
|
||||||
xctx->draw_window = 0;
|
xctx->draw_window = 0;
|
||||||
xctx->time_last_modify = 0;
|
xctx->time_last_modify = 0;
|
||||||
|
|
|
||||||
|
|
@ -937,7 +937,7 @@ typedef struct {
|
||||||
void (*delete_undo)(void);
|
void (*delete_undo)(void);
|
||||||
void (*clear_undo)(void);
|
void (*clear_undo)(void);
|
||||||
int case_insensitive; /* for case insensitive compare where needed */
|
int case_insensitive; /* for case insensitive compare where needed */
|
||||||
int (*strcmp)(const char *, const char *);
|
int (*x_strcmp)(const char *, const char *);
|
||||||
} Xschem_ctx;
|
} Xschem_ctx;
|
||||||
|
|
||||||
/* GLOBAL VARIABLES */
|
/* GLOBAL VARIABLES */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue