git.annexia.org
/
portablexdr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Seems to create a reasonable .c and .h file now.
[portablexdr.git]
/
rpcgen_int.h
diff --git
a/rpcgen_int.h
b/rpcgen_int.h
index
9271326
..
b551516
100644
(file)
--- a/
rpcgen_int.h
+++ b/
rpcgen_int.h
@@
-37,7
+37,7
@@
extern enum output_mode output_mode;
enum type_enum {
type_char, type_short, type_int, type_hyper,
type_double,
enum type_enum {
type_char, type_short, type_int, type_hyper,
type_double,
- type_
string, type_opaque, type_
bool,
+ type_bool,
type_ident,
};
type_ident,
};
@@
-45,13
+45,15
@@
struct type {
enum type_enum type;
int sgn; /* true if signed, false if unsigned */
char *ident;
enum type_enum type;
int sgn; /* true if signed, false if unsigned */
char *ident;
- char *len; /* length (only for strings) */
};
};
-extern struct type *new_type (enum type_enum, int, char *
, char *
);
+extern struct type *new_type (enum type_enum, int, char *);
extern void free_type (struct type *);
enum decl_type {
extern void free_type (struct type *);
enum decl_type {
+ decl_type_string, /* string foo<len>; (len is optional) */
+ decl_type_opaque_fixed, /* opaque foo[len]; */
+ decl_type_opaque_variable, /* opaque foo<len>; */
decl_type_simple, /* type ident; */
decl_type_fixed_array, /* type ident[len]; */
decl_type_variable_array, /* type ident<len>; (len is optional) */
decl_type_simple, /* type ident; */
decl_type_fixed_array, /* type ident[len]; */
decl_type_variable_array, /* type ident<len>; (len is optional) */
@@
-60,7
+62,7
@@
enum decl_type {
struct decl {
enum decl_type decl_type;
struct decl {
enum decl_type decl_type;
- struct type *type;
+ struct type *type;
/* NULL for string & opaque types. */
char *ident;
char *len;
};
char *ident;
char *len;
};