sort_info is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

sort_info variable

Syntax

static struct lsort_info *sort_info;

References

LocationReferrerText
jimsh0.c:11524
static struct lsort_info *sort_info;
jimsh0.c:11530ListSortIndexHelper()
if (Jim_ListIndex(sort_info->interp, *lhsObj, sort_info->index, &lObj, JIM_ERRMSG) != JIM_OK ||
jimsh0.c:11531ListSortIndexHelper()
Jim_ListIndex(sort_info->interp, *rhsObj, sort_info->index, &rObj, JIM_ERRMSG) != JIM_OK) {
jimsh0.c:11532ListSortIndexHelper()
longjmp(sort_info->jmpbuf, JIM_ERR);
jimsh0.c:11534ListSortIndexHelper()
return sort_info->subfn(&lObj, &rObj);
jimsh0.c:11540ListSortString()
return Jim_StringCompareObj(sort_info->interp, *lhsObj, *rhsObj, 0) * sort_info->order;
jimsh0.c:11545ListSortStringNoCase()
return Jim_StringCompareObj(sort_info->interp, *lhsObj, *rhsObj, 1) * sort_info->order;
jimsh0.c:11552ListSortInteger()
if (Jim_GetWide(sort_info->interp, *lhsObj, &lhs) != JIM_OK ||
jimsh0.c:11553ListSortInteger()
Jim_GetWide(sort_info->interp, *rhsObj, &rhs) != JIM_OK) {
jimsh0.c:11554ListSortInteger()
longjmp(sort_info->jmpbuf, JIM_ERR);
jimsh0.c:11557ListSortInteger()
return JimSign(lhs - rhs) * sort_info->order;
jimsh0.c:11564ListSortReal()
if (Jim_GetDouble(sort_info->interp, *lhsObj, &lhs) != JIM_OK ||
jimsh0.c:11565ListSortReal()
Jim_GetDouble(sort_info->interp, *rhsObj, &rhs) != JIM_OK) {
jimsh0.c:11566ListSortReal()
longjmp(sort_info->jmpbuf, JIM_ERR);
jimsh0.c:11572ListSortReal()
return sort_info->order;
jimsh0.c:11574ListSortReal()
return -sort_info->order;
jimsh0.c:11585ListSortCommand()
compare_script = Jim_DuplicateObj(sort_info->interp, sort_info->command);
jimsh0.c:11586ListSortCommand()
Jim_ListAppendElement(sort_info->interp, compare_script, *lhsObj);
jimsh0.c:11587ListSortCommand()
Jim_ListAppendElement(sort_info->interp, compare_script, *rhsObj);
jimsh0.c:11589ListSortCommand()
rc = Jim_EvalObj(sort_info->interp, compare_script);
jimsh0.c:11591ListSortCommand()
if (rc != JIM_OK || Jim_GetWide(sort_info->interp, Jim_GetResult(sort_info->interp), &ret) != JIM_OK) {
jimsh0.c:11592ListSortCommand()
longjmp(sort_info->jmpbuf, rc);
jimsh0.c:11595ListSortCommand()
return JimSign(ret) * sort_info->order;
jimsh0.c:11607ListRemoveDuplicates()
Jim_DecrRefCount(sort_info->interp, ele[dst]);
jimsh0.c:11641ListSortElements()
prev_info = sort_info;
jimsh0.c:11642ListSortElements()
sort_info = info;
jimsh0.c:11683ListSortElements()
sort_info = prev_info;

Data Use

Type of sort_info
sort_info
all items filtered out