X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=rpcgen_codegen.c;h=49a7059929745b781dd10216d3d9659cf72581f9;hb=HEAD;hp=9677a2af8dd6f56a08b7739147ac69cd6ce96724;hpb=454515776b24e20fd92c9259086088e05aa1b357;p=portablexdr.git diff --git a/rpcgen_codegen.c b/rpcgen_codegen.c index 9677a2a..49a7059 100644 --- a/rpcgen_codegen.c +++ b/rpcgen_codegen.c @@ -119,7 +119,8 @@ gen_prologue (const char *filename) "#endif\n" "\n" "#include \n" - "#include \n" + "#include \n" + "#include \n" "\n" "/* Use the following symbol in your code to detect whether\n" " * PortableXDR's rpcgen was used to compile the source file.\n" @@ -423,6 +424,9 @@ xdr_func_of_simple_type (const struct type *type) case type_hyper: if (type->sgn) r = "quad_t"; else r = "u_quad_t"; break; + case type_float: + r = "float"; + break; case type_double: r = "double"; break; @@ -457,6 +461,9 @@ sizeof_simple_type (const struct type *type) case type_hyper: r = strdup ("8"); break; + case type_float: + r = strdup ("4"); + break; case type_double: r = strdup ("8"); break; @@ -567,6 +574,10 @@ gen_type (const struct type *type) else fputs ("uint64_t", yyout); break; + case type_float: + fputs ("float", yyout); + break; + case type_double: fputs ("double", yyout); break;