--------------------------------------------------------------------------- | Facility : libnform | Function : static bool Next_Enum(FIELD * field, | const void * argp) | | Description : Check for the next enumeration value | | Return Values : TRUE - next value found and loaded | FALSE - no next value loaded
| 213 | | FALSE - no next value loaded |
| 214 | +--------------------------------------------------------------------------*/ |
| 215 | static bool Next_Enum(FIELD * field, const void * argp) |
| 216 | { |
| 217 | const enumARG *args = (const enumARG *)argp; |
| 218 | char **kwds = args->kwds; |
| 219 | bool ccase = args->checkcase; |
| 220 | int cnt = args->count; |
| 221 | unsigned char *bp = (unsigned char *)field_buffer(field,0); |
| 222 | |
| 223 | if (kwds) { |
| 224 | while(cnt--) |
| 225 | { |
| 226 | if (Compare((unsigned char *)(*kwds++),bp,ccase)==EXACT) |
| 227 | break; |
| 228 | } |
| 229 | if (cnt<=0) |
| 230 | kwds = args->kwds; |
| 231 | if ((cnt>=0) || (Compare((const unsigned char *)dummy,bp,ccase)==EXACT)) |
| 232 | { |
| 233 | set_field_buffer(field,0,*kwds); |
| 234 | return TRUE; |
| 235 | } |
| 236 | } |
| 237 | return FALSE; |
| 238 | } |
| 239 | |
| 240 | /*--------------------------------------------------------------------------- |
| 241 | | Facility : libnform |
nothing calls this directly
no test coverage detected
searching dependent graphs…