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_ast.c
diff --git
a/rpcgen_ast.c
b/rpcgen_ast.c
index
e1caa99
..
baade6a
100644
(file)
--- a/
rpcgen_ast.c
+++ b/
rpcgen_ast.c
@@
-26,13
+26,12
@@
#include "rpcgen_int.h"
struct type *
#include "rpcgen_int.h"
struct type *
-new_type (enum type_enum type, int sgn, char *ident
, char *len
)
+new_type (enum type_enum type, int sgn, char *ident)
{
struct type *r = malloc (sizeof *r);
r->type = type;
r->sgn = sgn;
r->ident = ident;
{
struct type *r = malloc (sizeof *r);
r->type = type;
r->sgn = sgn;
r->ident = ident;
- r->len = len;
return r;
}
return r;
}
@@
-41,7
+40,6
@@
free_type (struct type *t)
{
if (t) {
free (t->ident);
{
if (t) {
free (t->ident);
- free (t->len);
free (t);
}
}
free (t);
}
}