git.annexia.org
/
portablexdr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added the float type.
[portablexdr.git]
/
rpcgen_parse.y
diff --git
a/rpcgen_parse.y
b/rpcgen_parse.y
index
2923325
..
652a7f3
100644
(file)
--- a/
rpcgen_parse.y
+++ b/
rpcgen_parse.y
@@
-59,6
+59,7
@@
extern void yyerror (const char *str);
%token SHORT
%token INT
%token HYPER
%token SHORT
%token INT
%token HYPER
+%token FLOAT
%token DOUBLE
%token STRING
%token OPAQUE
%token DOUBLE
%token STRING
%token OPAQUE
@@
-259,6
+260,8
@@
type_ident
{ $$ = new_type (type_int, 1, NULL); }
| UNSIGNED
{ $$ = new_type (type_int, 0, NULL); }
{ $$ = new_type (type_int, 1, NULL); }
| UNSIGNED
{ $$ = new_type (type_int, 0, NULL); }
+ | FLOAT
+ { $$ = new_type (type_float, 0, NULL); }
| DOUBLE
{ $$ = new_type (type_double, 0, NULL); }
| BOOL
| DOUBLE
{ $$ = new_type (type_double, 0, NULL); }
| BOOL