Skip to content

Commit

Permalink
Merge pull request Unidata#1759 from brianmckenna/CES_FCN
Browse files Browse the repository at this point in the history
parse projection functions
  • Loading branch information
WardF committed Jul 14, 2020
2 parents 03eeea5 + c0c56b1 commit cee0a93
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions libdap2/constraints.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ qualifyprojectionnames(DCEprojection* proj)
NCerror ncstat = NC_NOERR;
NClist* fullpath = nclistnew();

if (proj->discrim == CES_VAR) {
ASSERT((proj->discrim == CES_VAR
&& proj->var->annotation != NULL
&& ((CDFnode*)proj->var->annotation)->ocnode != NULL));
Expand All @@ -129,6 +130,7 @@ fprintf(stderr,"qualify: %s -> ",
fprintf(stderr,"%s\n",
dumpprojection(proj));
#endif
}
nclistfree(fullpath);
return ncstat;
}
Expand All @@ -138,6 +140,7 @@ static NCerror
qualifyprojectionsizes(DCEprojection* proj)
{
size_t i,j;
if (proj->discrim == CES_VAR) {
ASSERT(proj->discrim == CES_VAR);
#ifdef DEBUG
fprintf(stderr,"qualifyprojectionsizes.before: %s\n",
Expand Down Expand Up @@ -168,6 +171,7 @@ fprintf(stderr,"qualifyprojectionsizes.before: %s\n",
fprintf(stderr,"qualifyprojectionsizes.after: %s\n",
dumpprojection(proj));
#endif
}
return NC_NOERR;
}

Expand Down
2 changes: 1 addition & 1 deletion libdap2/dce.y
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ projection:
segmentlist
{$$=projection(parsestate,$1);}
| function
{$$=$1;}
{$$=projection(parsestate,$1);}
;

function:
Expand Down
2 changes: 1 addition & 1 deletion libdap2/dcetab.c
Original file line number Diff line number Diff line change
Expand Up @@ -1305,7 +1305,7 @@ YYSTYPE yylval YY_INITIAL_VALUE (= yyval_default);

case 13:
#line 61 "dce.y" /* yacc.c:1646 */
{(yyval)=(yyvsp[0]);}
{(yyval)=projection(parsestate,(yyvsp[0]));}
#line 1310 "dcetab.c" /* yacc.c:1646 */
break;

Expand Down

0 comments on commit cee0a93

Please sign in to comment.