X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginsh%2Fginsh.h;h=335e0f1af91613ecb60102879b584d6c284637a8;hp=24f37c00555990eec0934280bf5935b123338f33;hb=7d5599da087670e2ce1229789a847acd73fe8e0a;hpb=5c0989497994b35faa9c17b18f936c21dbb22d78 diff --git a/ginsh/ginsh.h b/ginsh/ginsh.h index 24f37c00..335e0f1a 100644 --- a/ginsh/ginsh.h +++ b/ginsh/ginsh.h @@ -2,8 +2,8 @@ * ginsh.h - GiNaC Interactive Shell, global definitions */ -#ifndef GINSH_H_ -#define GINSH_H_ +#ifndef GINSH_H +#define GINSH_H // yacc semantic type #define YYSTYPE ex @@ -21,14 +21,9 @@ extern char yytext[]; typedef map sym_tab; extern sym_tab syms; -// Ersatz functions +// Prototypes for missing functions #ifndef HAVE_STRDUP -char *strdup(const char *s) -{ - char *n = (char *)malloc(strlen(s) + 1); - strcpy(n, s); - return n; -} +extern char *strdup(const char *s); #endif #endif