don't worry about strdup, it's defined by roken

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2274 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-07-14 11:39:17 +00:00
parent 0b51fffea2
commit dd5d033bbd
2 changed files with 6 additions and 8 deletions

View File

@@ -11,10 +11,6 @@
#include "symbol.h"
#include "parse.h"
#ifndef HAVE_STRDUP
char *strdup(char *);
#endif
void error_message(char *, ...);
static unsigned lineno = 1;

View File

@@ -11,14 +11,12 @@
#include "lex.h"
#include "asn1_locl.h"
RCSID("$Id$");
static Type *new_type (Typetype t);
void yyerror (char *);
int yylex();
#ifndef HAVE_STRDUP
char *strdup(char *);
#endif
static void append (Member *l, Member *r);
%}
@@ -170,6 +168,10 @@ static Type *
new_type (Typetype tt)
{
Type *t = malloc(sizeof(*t));
if (t == NULL) {
error_message ("out of memory in malloc(%u)", sizeof(*t));
exit (1);
}
t->type = tt;
t->application = 0;
t->members = NULL;