From 2695aede2dfe44885ffb9d799697c2a832c0507f Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Mon, 19 May 2003 17:59:31 +0000 Subject: [PATCH] Removed runtime lib. It's not needed anymore. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4798 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/ocaml/extra-install.list | 2 +- SWIG/Lib/ocaml/libswigocaml.swg | 18 ------------------ SWIG/Runtime/Makefile.am | 18 ------------------ 3 files changed, 1 insertion(+), 37 deletions(-) delete mode 100644 SWIG/Lib/ocaml/libswigocaml.swg diff --git a/SWIG/Lib/ocaml/extra-install.list b/SWIG/Lib/ocaml/extra-install.list index faa456745..b35f4709d 100644 --- a/SWIG/Lib/ocaml/extra-install.list +++ b/SWIG/Lib/ocaml/extra-install.list @@ -1,2 +1,2 @@ # see top-level Makefile.in -libswigocaml.h +# libswigocaml is not needed anymore. diff --git a/SWIG/Lib/ocaml/libswigocaml.swg b/SWIG/Lib/ocaml/libswigocaml.swg deleted file mode 100644 index 15d54df1a..000000000 --- a/SWIG/Lib/ocaml/libswigocaml.swg +++ /dev/null @@ -1,18 +0,0 @@ -#include -#include -#include "libswigocaml.h" -/* Ocaml runtime support ... not much here yet */ - -void *nullptr = 0; -oc_bool isnull( void *v ) { return v ? 0 : 1; } -void *get_char_ptr( char *str ) { return str; } -void *make_ptr_array( int size ) { - return (void *)malloc( sizeof( void * ) * size ); -} -void *get_ptr( void *arrayptr, int elt ) { - return ((void **)arrayptr)[elt]; -} -void set_ptr( void *arrayptr, int elt, void *elt_v ) { - ((void **)arrayptr)[elt] = elt_v; -} -void *offset_ptr( void *p, int n ) { return ((char *)p) + n; } diff --git a/SWIG/Runtime/Makefile.am b/SWIG/Runtime/Makefile.am index 648fee614..7570d63b1 100644 --- a/SWIG/Runtime/Makefile.am +++ b/SWIG/Runtime/Makefile.am @@ -29,9 +29,6 @@ endif if !SKIP_PHP4 lib_LTLIBRARIES += libswigphp4.la endif -if !SKIP_OCAML -lib_LTLIBRARIES += libswigocaml.la -endif if !SKIP_PIKE lib_LTLIBRARIES += libswigpike.la endif @@ -131,21 +128,6 @@ libswigphp4_la_CFLAGS = -DSWIG_GLOBAL $(PHP4_INCLUDE) libphp4.c: $(SWIG_TYPECHECK) $(PHP4_RUNTIME) cat $(SWIG_TYPECHECK) $(PHP4_RUNTIME) > libphp4.c -# ---------------------------------------------------------------------- -# Ocaml run-time library -# ---------------------------------------------------------------------- - -OCAML_INCLUDE = @OCAMLINC@ -I$(SWIGLIB)/ocaml -OCAML_RUNTIME = $(SWIGLIB)/ocaml/libswigocaml.swg -OCAML_DLNK = - -libswigocaml_la_SOURCES = libocaml.c -libswigocaml_la_LDFLAGS = -no-undefined $(RELEASE_SUFFIX_LIBTOOL) $(OCAML_DLNK) -libswigocaml_la_CFLAGS = -DSWIG_GLOBAL $(OCAML_INCLUDE) - -libocaml.c: $(OCAML_RUNTIME) - cat $(OCAML_RUNTIME) > libocaml.c - # ---------------------------------------------------------------------- # Pike run-time library # ----------------------------------------------------------------------