From de10506199c134164a905cb9ea06b5f5bcc3c24b Mon Sep 17 00:00:00 2001 From: rlar Date: Fri, 15 Oct 2010 18:59:07 +0000 Subject: [PATCH] cmpp shall add a function prototype to the generated "cfunc.c" file --- ChangeLog | 4 ++++ src/xspice/cmpp/pp_mod.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index f3c743b22..370991224 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-10-15 Robert Larice + * src/xspice/cmpp/pp_mod.c : + cmpp shall add a function prototype to the generated "cfunc.c" file + 2010-10-15 Robert Larice * src/ngnutmeg.c : visibility for the NDEVacct() prototype diff --git a/src/xspice/cmpp/pp_mod.c b/src/xspice/cmpp/pp_mod.c index 2ecd5cd3d..cd83231d5 100755 --- a/src/xspice/cmpp/pp_mod.c +++ b/src/xspice/cmpp/pp_mod.c @@ -153,6 +153,8 @@ void preprocess_mod_file ( fprintf (mod_yyout, "#line 1 \"%s\"\n", filename); fprintf (mod_yyout, "#include \"cm.h\"\n"); + fprintf (mod_yyout, "extern void %s(Mif_Private_t *);\n", + ifs_table.name.c_fcn_name); fprintf (mod_yyout, "#line 1 \"%s\"\n", filename); mod_yylineno = 1;