90 |
} |
} |
91 |
|
|
92 |
struct Instance *GetSubjectInstance(struct gl_list_t *arglist, |
struct Instance *GetSubjectInstance(struct gl_list_t *arglist, |
93 |
unsigned long varndx) |
unsigned long varndx |
94 |
{ |
){ |
95 |
struct Instance *arg; |
struct Instance *arg; |
96 |
struct gl_list_t *branch; |
struct gl_list_t *branch; |
97 |
unsigned long len1,c=1L,len2,count=0L; |
unsigned long len1,c=1L,len2,count=0L; |
107 |
if (count>=varndx){ |
if (count>=varndx){ |
108 |
safetycheck = len2-count+varndx; |
safetycheck = len2-count+varndx; |
109 |
if (safetycheck<=0){ |
if (safetycheck<=0){ |
110 |
FPRINTF(ASCERR,"Something really wrong in GetSubjectInstance\n"); |
ERROR_REPORTER_HERE(ASC_PROG_ERR,"Something really wrong (%s)",__FUNCTION__); |
|
FPRINTF(ASCERR,"Please report to%s\n",ASC_BIG_BUGMAIL); |
|
111 |
return NULL; |
return NULL; |
112 |
} |
} |
113 |
arg = (struct Instance *)gl_fetch(branch,(unsigned long)safetycheck); |
arg = (struct Instance *)gl_fetch(branch,(unsigned long)safetycheck); |
285 |
return i; |
return i; |
286 |
} |
} |
287 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|