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

sort_info variable

Syntax

static struct lsort_info *sort_info;

References

LocationReferrerText
jim.c:6785
static struct lsort_info *sort_info;
jim.c:6791ListSortIndexHelper()
if (Jim_ListIndices(sort_info->interp, *lhsObj, sort_info->indexv, sort_info->indexc, &lObj, JIM_ERRMSG) != JIM_OK ||
jim.c:6792ListSortIndexHelper()
Jim_ListIndices(sort_info->interp, *rhsObj, sort_info->indexv, sort_info->indexc, &rObj, JIM_ERRMSG) != JIM_OK) {
jim.c:6793ListSortIndexHelper()
longjmp(sort_info->jmpbuf, JIM_ERR);
jim.c:6795ListSortIndexHelper()
return sort_info->subfn(&lObj, &rObj);
jim.c:6801ListSortString()
return Jim_StringCompareObj(sort_info->interp, *lhsObj, *rhsObj, 0) * sort_info->order;
jim.c:6806ListSortStringNoCase()
return Jim_StringCompareObj(sort_info->interp, *lhsObj, *rhsObj, 1) * sort_info->order;
jim.c:6813ListSortInteger()
if (Jim_GetWide(sort_info->interp, *lhsObj, &lhs) != JIM_OK ||
jim.c:6814ListSortInteger()
Jim_GetWide(sort_info->interp, *rhsObj, &rhs) != JIM_OK) {
jim.c:6815ListSortInteger()
longjmp(sort_info->jmpbuf, JIM_ERR);
jim.c:6818ListSortInteger()
return JimSign(lhs - rhs) * sort_info->order;
jim.c:6825ListSortReal()
if (Jim_GetDouble(sort_info->interp, *lhsObj, &lhs) != JIM_OK ||
jim.c:6826ListSortReal()
Jim_GetDouble(sort_info->interp, *rhsObj, &rhs) != JIM_OK) {
jim.c:6827ListSortReal()
longjmp(sort_info->jmpbuf, JIM_ERR);
jim.c:6833ListSortReal()
return sort_info->order;
jim.c:6835ListSortReal()
return -sort_info->order;
jim.c:6846ListSortCommand()
compare_script = Jim_DuplicateObj(sort_info->interp, sort_info->command);
jim.c:6847ListSortCommand()
Jim_ListAppendElement(sort_info->interp, compare_script, *lhsObj);
jim.c:6848ListSortCommand()
Jim_ListAppendElement(sort_info->interp, compare_script, *rhsObj);
jim.c:6850ListSortCommand()
rc = Jim_EvalObj(sort_info->interp, compare_script);
jim.c:6852ListSortCommand()
if (rc != JIM_OK || Jim_GetWide(sort_info->interp, Jim_GetResult(sort_info->interp), &ret) != JIM_OK) {
jim.c:6853ListSortCommand()
longjmp(sort_info->jmpbuf, rc);
jim.c:6856ListSortCommand()
return JimSign(ret) * sort_info->order;
jim.c:6873ListRemoveDuplicates()
Jim_DecrRefCount(sort_info->interp, ele[dst]);
jim.c:6907ListSortElements()
prev_info = sort_info;
jim.c:6908ListSortElements()
sort_info = info;
jim.c:6949ListSortElements()
sort_info = prev_info;

Data Use

Type of sort_info
sort_info
all items filtered out