Skip to content

Commit

Permalink
Make configure detect malloc.h
Browse files Browse the repository at this point in the history
  • Loading branch information
steve committed Sep 15, 2001
1 parent 92760f2 commit b2b8b89
Show file tree
Hide file tree
Showing 36 changed files with 207 additions and 34 deletions.
6 changes: 5 additions & 1 deletion config.h.in
Expand Up @@ -19,7 +19,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) #if !defined(WINNT)
#ident "$Id: config.h.in,v 1.1 2001/07/25 03:10:48 steve Exp $" #ident "$Id: config.h.in,v 1.2 2001/09/15 18:27:04 steve Exp $"
#endif #endif


#if defined(__cplusplus) #if defined(__cplusplus)
Expand All @@ -37,13 +37,17 @@
# undef HAVE_TIMES # undef HAVE_TIMES
# undef HAVE_IOSFWD # undef HAVE_IOSFWD
# undef HAVE_GETOPT_H # undef HAVE_GETOPT_H
# undef HAVE_MALLOC_H
# undef HAVE_DLFCN_H # undef HAVE_DLFCN_H
# undef HAVE_DL_H # undef HAVE_DL_H
# undef HAVE_FCHMOD # undef HAVE_FCHMOD
# undef HAVE_LIBREADLINE # undef HAVE_LIBREADLINE


/* /*
* $Log: config.h.in,v $ * $Log: config.h.in,v $
* Revision 1.2 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.1 2001/07/25 03:10:48 steve * Revision 1.1 2001/07/25 03:10:48 steve
* Create a config.h.in file to hold all the config * Create a config.h.in file to hold all the config
* junk, and support gcc 3.0. (Stephan Boettcher) * junk, and support gcc 3.0. (Stephan Boettcher)
Expand Down
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -16,7 +16,7 @@ fi


AC_LANG_CPLUSPLUS AC_LANG_CPLUSPLUS


AC_CHECK_HEADERS(getopt.h iosfwd sys/wait.h) AC_CHECK_HEADERS(getopt.h malloc.h iosfwd sys/wait.h)


AC_MSG_CHECKING(for sys/times) AC_MSG_CHECKING(for sys/times)
AC_TRY_LINK( AC_TRY_LINK(
Expand Down
5 changes: 4 additions & 1 deletion driver/parse.y
Expand Up @@ -18,13 +18,16 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: parse.y,v 1.3 2001/07/25 03:10:50 steve Exp $" #ident "$Id: parse.y,v 1.4 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "config.h" # include "config.h"


# include <stdio.h> # include <stdio.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdlib.h>
# include "globals.h" # include "globals.h"




Expand Down
5 changes: 4 additions & 1 deletion ivlpp/lexor.lex
Expand Up @@ -19,13 +19,16 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: lexor.lex,v 1.24 2001/07/25 03:10:50 steve Exp $" #ident "$Id: lexor.lex,v 1.25 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "config.h" # include "config.h"


# include <stdio.h> # include <stdio.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdlib.h>
# include <string.h> # include <string.h>
# include <assert.h> # include <assert.h>


Expand Down
7 changes: 6 additions & 1 deletion ivlpp/main.c
Expand Up @@ -17,7 +17,7 @@ const char COPYRIGHT[] =
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: main.c,v 1.11 2001/07/25 03:10:50 steve Exp $" #ident "$Id: main.c,v 1.12 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "config.h" # include "config.h"
Expand All @@ -42,7 +42,9 @@ const char VERSION[] = "$Name: $ $State: Exp $";


# include <stdio.h> # include <stdio.h>
# include <stdlib.h> # include <stdlib.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <unistd.h> # include <unistd.h>
# include <string.h> # include <string.h>
#if defined(HAVE_GETOPT_H) #if defined(HAVE_GETOPT_H)
Expand Down Expand Up @@ -186,6 +188,9 @@ int main(int argc, char*argv[])


/* /*
* $Log: main.c,v $ * $Log: main.c,v $
* Revision 1.12 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.11 2001/07/25 03:10:50 steve * Revision 1.11 2001/07/25 03:10:50 steve
* Create a config.h.in file to hold all the config * Create a config.h.in file to hold all the config
* junk, and support gcc 3.0. (Stephan Boettcher) * junk, and support gcc 3.0. (Stephan Boettcher)
Expand Down
8 changes: 7 additions & 1 deletion t-dll-expr.cc
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) & !defined(macintosh) #if !defined(WINNT) & !defined(macintosh)
#ident "$Id: t-dll-expr.cc,v 1.17 2001/07/27 04:51:44 steve Exp $" #ident "$Id: t-dll-expr.cc,v 1.18 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "config.h" # include "config.h"
Expand All @@ -27,7 +27,10 @@
# include "t-dll.h" # include "t-dll.h"
# include "netlist.h" # include "netlist.h"
# include <assert.h> # include <assert.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdlib.h>


/* /*
* These methods implement the expression scan that generates the * These methods implement the expression scan that generates the
Expand Down Expand Up @@ -298,6 +301,9 @@ void dll_target::expr_unary(const NetEUnary*net)


/* /*
* $Log: t-dll-expr.cc,v $ * $Log: t-dll-expr.cc,v $
* Revision 1.18 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.17 2001/07/27 04:51:44 steve * Revision 1.17 2001/07/27 04:51:44 steve
* Handle part select expressions as variants of * Handle part select expressions as variants of
* NetESignal/IVL_EX_SIGNAL objects, instead of * NetESignal/IVL_EX_SIGNAL objects, instead of
Expand Down
8 changes: 7 additions & 1 deletion t-dll-proc.cc
Expand Up @@ -18,7 +18,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: t-dll-proc.cc,v 1.34 2001/08/25 23:50:03 steve Exp $" #ident "$Id: t-dll-proc.cc,v 1.35 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "config.h" # include "config.h"
Expand All @@ -29,7 +29,10 @@
# include "ivl_target.h" # include "ivl_target.h"
# include "compiler.h" # include "compiler.h"
# include "t-dll.h" # include "t-dll.h"
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdlib.h>




bool dll_target::process(const NetProcTop*net) bool dll_target::process(const NetProcTop*net)
Expand Down Expand Up @@ -666,6 +669,9 @@ void dll_target::proc_while(const NetWhile*net)


/* /*
* $Log: t-dll-proc.cc,v $ * $Log: t-dll-proc.cc,v $
* Revision 1.35 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.34 2001/08/25 23:50:03 steve * Revision 1.34 2001/08/25 23:50:03 steve
* Change the NetAssign_ class to refer to the signal * Change the NetAssign_ class to refer to the signal
* instead of link into the netlist. This is faster * instead of link into the netlist. This is faster
Expand Down
8 changes: 7 additions & 1 deletion t-dll.cc
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: t-dll.cc,v 1.62 2001/09/09 16:49:04 steve Exp $" #ident "$Id: t-dll.cc,v 1.63 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "config.h" # include "config.h"
Expand All @@ -27,7 +27,10 @@
# include "compiler.h" # include "compiler.h"
# include "t-dll.h" # include "t-dll.h"
# include "netmisc.h" # include "netmisc.h"
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdlib.h>


#if defined(__WIN32__) #if defined(__WIN32__)


Expand Down Expand Up @@ -1532,6 +1535,9 @@ extern const struct target tgt_dll = { "dll", &dll_target_obj };


/* /*
* $Log: t-dll.cc,v $ * $Log: t-dll.cc,v $
* Revision 1.63 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.62 2001/09/09 16:49:04 steve * Revision 1.62 2001/09/09 16:49:04 steve
* Connect right ANEB pin when doing NE comparator. * Connect right ANEB pin when doing NE comparator.
* *
Expand Down
1 change: 1 addition & 0 deletions tgt-fpga/configure.in
Expand Up @@ -11,6 +11,7 @@ AC_CANONICAL_HOST


AC_CYGWIN AC_CYGWIN
AC_SUBST(CYGWIN) AC_SUBST(CYGWIN)
AC_CHECK_HEADERS(malloc.h)


# The -fPIC flag is used to tell the compiler to make position # The -fPIC flag is used to tell the compiler to make position
# independent code. It is needed when making shared objects. # independent code. It is needed when making shared objects.
Expand Down
7 changes: 6 additions & 1 deletion tgt-fpga/d-generic-edif.c
Expand Up @@ -16,13 +16,15 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ident "$Id: d-generic-edif.c,v 1.5 2001/09/15 05:06:04 steve Exp $" #ident "$Id: d-generic-edif.c,v 1.6 2001/09/15 18:27:04 steve Exp $"


# include "device.h" # include "device.h"
# include "fpga_priv.h" # include "fpga_priv.h"
# include <stdlib.h> # include <stdlib.h>
# include <string.h> # include <string.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <assert.h> # include <assert.h>


struct nexus_recall { struct nexus_recall {
Expand Down Expand Up @@ -392,6 +394,9 @@ const struct device_s d_generic_edif = {


/* /*
* $Log: d-generic-edif.c,v $ * $Log: d-generic-edif.c,v $
* Revision 1.6 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.5 2001/09/15 05:06:04 steve * Revision 1.5 2001/09/15 05:06:04 steve
* Support != in virtex code generator. * Support != in virtex code generator.
* *
Expand Down
7 changes: 6 additions & 1 deletion tgt-fpga/d-virtex.c
Expand Up @@ -16,13 +16,15 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ident "$Id: d-virtex.c,v 1.7 2001/09/15 05:06:04 steve Exp $" #ident "$Id: d-virtex.c,v 1.8 2001/09/15 18:27:04 steve Exp $"


# include "device.h" # include "device.h"
# include "fpga_priv.h" # include "fpga_priv.h"
# include <stdlib.h> # include <stdlib.h>
# include <string.h> # include <string.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <assert.h> # include <assert.h>


/* /*
Expand Down Expand Up @@ -898,6 +900,9 @@ const struct device_s d_virtex_edif = {


/* /*
* $Log: d-virtex.c,v $ * $Log: d-virtex.c,v $
* Revision 1.8 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.7 2001/09/15 05:06:04 steve * Revision 1.7 2001/09/15 05:06:04 steve
* Support != in virtex code generator. * Support != in virtex code generator.
* *
Expand Down
8 changes: 7 additions & 1 deletion tgt-fpga/mangle.c
Expand Up @@ -16,12 +16,15 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#ident "$Id: mangle.c,v 1.3 2001/09/02 21:33:07 steve Exp $" #ident "$Id: mangle.c,v 1.4 2001/09/15 18:27:04 steve Exp $"




# include "fpga_priv.h" # include "fpga_priv.h"
# include <string.h> # include <string.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdlib.h>


static size_t xnf_mangle_scope_name(ivl_scope_t net, char*buf, size_t nbuf) static size_t xnf_mangle_scope_name(ivl_scope_t net, char*buf, size_t nbuf)
{ {
Expand Down Expand Up @@ -94,6 +97,9 @@ const char* xnf_mangle_nexus_name(ivl_nexus_t net)


/* /*
* $Log: mangle.c,v $ * $Log: mangle.c,v $
* Revision 1.4 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.3 2001/09/02 21:33:07 steve * Revision 1.3 2001/09/02 21:33:07 steve
* Rearrange the XNF code generator to be generic-xnf * Rearrange the XNF code generator to be generic-xnf
* so that non-XNF code generation is also possible. * so that non-XNF code generation is also possible.
Expand Down
8 changes: 7 additions & 1 deletion tgt-pal/emit_jed.c
Expand Up @@ -17,14 +17,17 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: emit_jed.c,v 1.3 2001/07/25 03:10:50 steve Exp $" #ident "$Id: emit_jed.c,v 1.4 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "config.h" # include "config.h"


# include "priv.h" # include "priv.h"
# include <stdio.h> # include <stdio.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdlib.h>
# include <assert.h> # include <assert.h>


static void draw_macrocell_modes(FILE*jfd) static void draw_macrocell_modes(FILE*jfd)
Expand Down Expand Up @@ -131,6 +134,9 @@ int emit_jedec(const char*path)


/* /*
* $Log: emit_jed.c,v $ * $Log: emit_jed.c,v $
* Revision 1.4 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.3 2001/07/25 03:10:50 steve * Revision 1.3 2001/07/25 03:10:50 steve
* Create a config.h.in file to hold all the config * Create a config.h.in file to hold all the config
* junk, and support gcc 3.0. (Stephan Boettcher) * junk, and support gcc 3.0. (Stephan Boettcher)
Expand Down
7 changes: 6 additions & 1 deletion tgt-pal/imain.c
Expand Up @@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) && !defined(macintosh) #if !defined(WINNT) && !defined(macintosh)
#ident "$Id: imain.c,v 1.8 2001/07/25 03:10:50 steve Exp $" #ident "$Id: imain.c,v 1.9 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "config.h" # include "config.h"
Expand All @@ -28,7 +28,9 @@


# include "priv.h" # include "priv.h"


#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdio.h> # include <stdio.h>
# include <stdlib.h> # include <stdlib.h>
# include <assert.h> # include <assert.h>
Expand Down Expand Up @@ -152,6 +154,9 @@ DECLARE_CYGWIN_DLL(DllMain);


/* /*
* $Log: imain.c,v $ * $Log: imain.c,v $
* Revision 1.9 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.8 2001/07/25 03:10:50 steve * Revision 1.8 2001/07/25 03:10:50 steve
* Create a config.h.in file to hold all the config * Create a config.h.in file to hold all the config
* junk, and support gcc 3.0. (Stephan Boettcher) * junk, and support gcc 3.0. (Stephan Boettcher)
Expand Down
1 change: 1 addition & 0 deletions tgt-vvp/configure.in
Expand Up @@ -11,6 +11,7 @@ AC_CANONICAL_HOST


AC_CYGWIN AC_CYGWIN
AC_SUBST(CYGWIN) AC_SUBST(CYGWIN)
AC_CHECK_HEADERS(malloc.h)


# The -fPIC flag is used to tell the compiler to make position # The -fPIC flag is used to tell the compiler to make position
# independent code. It is needed when making shared objects. # independent code. It is needed when making shared objects.
Expand Down
8 changes: 7 additions & 1 deletion tgt-vvp/eval_expr.c
Expand Up @@ -17,12 +17,15 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/ */
#if !defined(WINNT) #if !defined(WINNT)
#ident "$Id: eval_expr.c,v 1.43 2001/08/31 01:37:56 steve Exp $" #ident "$Id: eval_expr.c,v 1.44 2001/09/15 18:27:04 steve Exp $"
#endif #endif


# include "vvp_priv.h" # include "vvp_priv.h"
# include <string.h> # include <string.h>
#ifdef HAVE_MALLOC_H
# include <malloc.h> # include <malloc.h>
#endif
# include <stdlib.h>
# include <assert.h> # include <assert.h>


struct vector_info draw_eval_expr_wid(ivl_expr_t exp, unsigned wid); struct vector_info draw_eval_expr_wid(ivl_expr_t exp, unsigned wid);
Expand Down Expand Up @@ -1197,6 +1200,9 @@ struct vector_info draw_eval_expr(ivl_expr_t exp)


/* /*
* $Log: eval_expr.c,v $ * $Log: eval_expr.c,v $
* Revision 1.44 2001/09/15 18:27:04 steve
* Make configure detect malloc.h
*
* Revision 1.43 2001/08/31 01:37:56 steve * Revision 1.43 2001/08/31 01:37:56 steve
* Handle update in place of repeat constants. * Handle update in place of repeat constants.
* *
Expand Down

0 comments on commit b2b8b89

Please sign in to comment.