Widl: Conditionals, Dotted Versions, Handles
Ove Kaaven
ovek at arcticnet.no
Mon Apr 19 16:13:28 CDT 2004
man, 19.04.2004 kl. 17.03 skrev Robert Shearman:
> > Doesn't the "version" rule already handle this?
>
> It would appear not. The 'version' type is declared as a number further up
It's declared that the rule *returns* a number, you mean. The actual
rule is defined as
version:
aNUM { $$ = MAKELONG($1, 0); }
| aNUM '.' aNUM { $$ = MAKELONG($1, $3); }
;
Now if this somehow returns 0, then you need to fix that rule, not add
another rule which makes a version of e.g. "1.2.3.4" valid syntax (but
still return a wrong result).
More information about the wine-devel
mailing list