hier_hilight_hash_lookup(): set path param to const char *
This commit is contained in:
parent
faee6bbc89
commit
77a5cecef8
|
|
@ -194,13 +194,15 @@ Hilight_hashentry *bus_hilight_hash_lookup(const char *token, int value, int wha
|
||||||
return ptr2;
|
return ptr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
Hilight_hashentry *hier_hilight_hash_lookup(const char *token, int value, char *path, int what)
|
Hilight_hashentry *hier_hilight_hash_lookup(const char *token, int value, const char *path, int what)
|
||||||
{
|
{
|
||||||
Hilight_hashentry *entry;
|
Hilight_hashentry *entry;
|
||||||
char *oldpath = xctx->sch_path[xctx->currsch];
|
char *oldpath = xctx->sch_path[xctx->currsch];
|
||||||
xctx->sch_path_hash[xctx->currsch] = 0;
|
xctx->sch_path_hash[xctx->currsch] = 0;
|
||||||
xctx->sch_path[xctx->currsch] = path;
|
xctx->sch_path[xctx->currsch] = NULL;
|
||||||
|
my_strdup2(_ALLOC_ID_, &xctx->sch_path[xctx->currsch], path);
|
||||||
entry = bus_hilight_hash_lookup(token, value, what);
|
entry = bus_hilight_hash_lookup(token, value, what);
|
||||||
|
my_free(_ALLOC_ID_, &xctx->sch_path[xctx->currsch]);
|
||||||
xctx->sch_path[xctx->currsch] = oldpath;
|
xctx->sch_path[xctx->currsch] = oldpath;
|
||||||
xctx->sch_path_hash[xctx->currsch] = 0;
|
xctx->sch_path_hash[xctx->currsch] = 0;
|
||||||
return entry;
|
return entry;
|
||||||
|
|
|
||||||
|
|
@ -5414,10 +5414,9 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
|
||||||
del_object_table();
|
del_object_table();
|
||||||
Tcl_ResetResult(interp);
|
Tcl_ResetResult(interp);
|
||||||
}
|
}
|
||||||
else if(argc > 2 && atoi(argv[2]) == 2) {
|
else if(argc > 4 && atoi(argv[2]) == 2) {
|
||||||
prepare_netlist_structs(0);
|
prepare_netlist_structs(0);
|
||||||
hier_hilight_hash_lookup("LDCP_REF", 0, ".x17.xctrl.", XINSERT);
|
hier_hilight_hash_lookup(argv[4], 0, argv[3], XINSERT);
|
||||||
hier_hilight_hash_lookup(" x4", 1, ".x17.xctrl.", XINSERT);
|
|
||||||
propagate_hilights(1, 0, XINSERT_NOREPLACE);
|
propagate_hilights(1, 0, XINSERT_NOREPLACE);
|
||||||
Tcl_ResetResult(interp);
|
Tcl_ResetResult(interp);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1304,7 +1304,7 @@ extern Hilight_hashentry *bus_hilight_hash_lookup(const char *token, int value,
|
||||||
/* wrapper function to hash highlighted instances, avoid clash with net names */
|
/* wrapper function to hash highlighted instances, avoid clash with net names */
|
||||||
extern Hilight_hashentry *inst_hilight_hash_lookup(int i, int value, int what);
|
extern Hilight_hashentry *inst_hilight_hash_lookup(int i, int value, int what);
|
||||||
/* wrapper to bus_hilight_hash_lookup that provides a signal path instead of using xctx->sch_path */
|
/* wrapper to bus_hilight_hash_lookup that provides a signal path instead of using xctx->sch_path */
|
||||||
extern Hilight_hashentry *hier_hilight_hash_lookup(const char *token, int value, char *path, int what);
|
extern Hilight_hashentry *hier_hilight_hash_lookup(const char *token, int value, const char *path, int what);
|
||||||
extern Hilight_hashentry *hilight_lookup(const char *token, int value, int what);
|
extern Hilight_hashentry *hilight_lookup(const char *token, int value, int what);
|
||||||
extern int search(const char *tok, const char *val, int sub, int sel, int match_case);
|
extern int search(const char *tok, const char *val, int sub, int sel, int match_case);
|
||||||
extern int process_options(int argc, char **argv);
|
extern int process_options(int argc, char **argv);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue