[email protected] Hi All,
y.tab.c file dereferences with .int rather than with .ival
Best
Milt
y.tab.c file
...
YY_REDUCE_PRINT (yyn);
switch (yyn)
{
case 4:
/* Line 1464 of yacc.c */
#line 95 "cfg.y"
{(yyval.int)=(yyvsp[(1) - (1)].int); dbg print("SensorId:
INTEGER=%d\n",(yyvsp[(1) - (1)].int));;}
break;
case 5:
/* Line 1464 of yacc.c */
#line 98 "cfg.y"
{(yyval.sval)=(yyvsp[(1) - (1)].sval); dbg print("SecurityCode:
LETTERS=%s\n",(yyvsp[(1) - (1)].sval));;}
break;
case 6:
/* Line 1464 of yacc.c */
#line 101 "cfg.y"
{(yyval.int)=(yyvsp[(1) - (1)].int);;}
break;
case 7:
/* Line 1464 of yacc.c */
#line 102 "cfg.y"
{(yyval.int)=(yyvsp[(1) - (1)].int);;}
break;
case 8:
cfg.y
Description: Binary data
#ifndef CFG_H
#define CFG_H
typedef struct Sensor {
int sensorId,
manuf;
char *securityCode;
struct Sensor *next;
} Sensor;
#define isw(c) (*c==' '||*c=='\n'||*c=='\r'||*c=='\t'||*c=='\f')
#define dbg if(debug)
#endif // #endif CFG_H
