(xuloadrow): Obey NSC_EXTRA.
(xuloadrow): Remove redundant `not supported' check.
This commit is contained in:
parent
29c83d1511
commit
8ca219819c
1 changed files with 4 additions and 3 deletions
|
@ -243,6 +243,10 @@ xuloadrow(int type, int row, struct value values[])
|
||||||
j = 0;
|
j = 0;
|
||||||
while (ca[i].ca_type != NSC_NOTYPE &&
|
while (ca[i].ca_type != NSC_NOTYPE &&
|
||||||
values[j].v_type != VAL_NOTUSED) {
|
values[j].v_type != VAL_NOTUSED) {
|
||||||
|
if (ca[i].ca_flags & NSC_EXTRA) {
|
||||||
|
i++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
row_ref = (char *)ptr + ca[i].ca_off;
|
row_ref = (char *)ptr + ca[i].ca_off;
|
||||||
k = 0;
|
k = 0;
|
||||||
do {
|
do {
|
||||||
|
@ -342,9 +346,6 @@ xuloadrow(int type, int row, struct value values[])
|
||||||
break;
|
break;
|
||||||
case VAL_STRING:
|
case VAL_STRING:
|
||||||
switch(ca[i].ca_type) {
|
switch(ca[i].ca_type) {
|
||||||
case NSC_STRINGY:
|
|
||||||
return gripe("Field %s is of NSC_STRINGY type "
|
|
||||||
"which is not supported", ca[i].ca_name);
|
|
||||||
case NSC_STRING:
|
case NSC_STRING:
|
||||||
if (ca[i].ca_flags & NSC_CONST) {
|
if (ca[i].ca_flags & NSC_CONST) {
|
||||||
if (strcmp(((char **)row_ref)[k],
|
if (strcmp(((char **)row_ref)[k],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue