Common template for head of each file detailing licence, distribution and authors information
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8973 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7f74b8e7a3
commit
49be05f4fd
153 changed files with 1209 additions and 801 deletions
|
|
@ -1,5 +1,13 @@
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* attribute.i
|
||||||
|
*
|
||||||
|
* SWIG library file for implementing attributes.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Attribute implementation using JOHN E LENZ ideas.
|
|
||||||
|
|
||||||
The following macros convert a pair of set/get methods
|
The following macros convert a pair of set/get methods
|
||||||
into a "native" attribute.
|
into a "native" attribute.
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* carrays.i
|
* carrays.i
|
||||||
*
|
*
|
||||||
* Author(s): David Beazley (beazley@cs.uchicago.edu)
|
* SWIG library file containing macros that can be used to manipulate simple
|
||||||
*
|
|
||||||
* This library file contains macros that can be used to manipulate simple
|
|
||||||
* pointers as arrays.
|
* pointers as arrays.
|
||||||
*
|
|
||||||
* $Header$
|
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,16 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* cdata.i
|
* cdata.i
|
||||||
|
*
|
||||||
|
* SWIG library file containing macros for manipulating raw C data as strings.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* Author(s): David Beazley (beazley@cs.uchicago.edu)
|
* Author(s): David Beazley (beazley@cs.uchicago.edu)
|
||||||
*
|
*
|
||||||
* This library file contains macros for manipulating raw C data as strings.
|
|
||||||
*
|
*
|
||||||
* $Header$
|
* $Header$
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* clisp.swg
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Define a C preprocessor symbol that can be used in interface files
|
/* Define a C preprocessor symbol that can be used in interface files
|
||||||
to distinguish between the SWIG language modules. */
|
to distinguish between the SWIG language modules. */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* cmalloc.i
|
* cmalloc.i
|
||||||
*
|
*
|
||||||
* Author(s): David Beazley (beazley@cs.uchicago.edu)
|
* SWIG library file containing macros that can be used to create objects using
|
||||||
*
|
|
||||||
* This library file contains macros that can be used to create objects using
|
|
||||||
* the C malloc function.
|
* the C malloc function.
|
||||||
*
|
|
||||||
* $Header$
|
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG constraint library
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Dave Beazley
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// May 4, 1997
|
*
|
||||||
//
|
* constraints.i
|
||||||
// This library file contains typemaps for implementing various kinds of
|
*
|
||||||
// constraints. Depends upon the SWIG exception library for generating
|
* SWIG constraints library.
|
||||||
// errors in a language-independent manner.
|
*
|
||||||
|
* SWIG library file containing typemaps for implementing various kinds of
|
||||||
|
* constraints. Depends upon the SWIG exception library for generating
|
||||||
|
* errors in a language-independent manner.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#ifdef AUTODOC
|
#ifdef AUTODOC
|
||||||
%text %{
|
%text %{
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,11 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* cpointer.i
|
* cpointer.i
|
||||||
*
|
*
|
||||||
* Author(s): David Beazley (beazley@cs.uchicago.edu)
|
* SWIG library file containing macros that can be used to manipulate simple
|
||||||
*
|
|
||||||
* This library file contains macros that can be used to manipulate simple
|
|
||||||
* pointer objects.
|
* pointer objects.
|
||||||
*
|
|
||||||
* $Header$
|
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* cstring.i
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%echo "cstring.i not implemented for this target"
|
%echo "cstring.i not implemented for this target"
|
||||||
#define SWIG_CSTRING_UNIMPL
|
#define SWIG_CSTRING_UNIMPL
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* cwstring.i
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%echo "cwstring.i not implemented for this target"
|
%echo "cwstring.i not implemented for this target"
|
||||||
#define SWIG_CWSTRING_UNIMPL
|
#define SWIG_CWSTRING_UNIMPL
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// exception.i
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Dave Beazley
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// April 14, 1997
|
*
|
||||||
//
|
* exception.i
|
||||||
// This SWIG library file provides language independent exception handling
|
*
|
||||||
|
* SWIG library file providing language independent exception handling
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#if defined(SWIGUTL)
|
#if defined(SWIGUTL)
|
||||||
#error "This version of exception.i should not be used"
|
#error "This version of exception.i should not be used"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,9 @@
|
||||||
/*
|
/* -----------------------------------------------------------------------------
|
||||||
Swig especial
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
*/
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* cni.swg
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#ifdef SWIG
|
#ifdef SWIG
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
/* SWIG typemaps for C++ */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
/* By Marcio Luis Teixeira <marciot@holly.colostate.edu>: */
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* cplusplus.i
|
||||||
|
*
|
||||||
|
* SWIG typemaps for C++
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%typemap(guile,out) string, std::string {
|
%typemap(guile,out) string, std::string {
|
||||||
$result = gh_str02scm(const_cast<char*>($1.c_str()));
|
$result = gh_str02scm(const_cast<char*>($1.c_str()));
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
/* SWIG Configuration File for Guile. -*-c-*-*/
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* guile.i
|
||||||
|
*
|
||||||
|
* SWIG Configuration File for Guile.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Macro for inserting Scheme code into the stub */
|
/* Macro for inserting Scheme code into the stub */
|
||||||
#define %scheme %insert("scheme")
|
#define %scheme %insert("scheme")
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
/* -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
This SWIG interface file is processed if the Guile module is run
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
with gh_ flavor.
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
*/
|
*
|
||||||
|
* guile_gh.swg
|
||||||
|
*
|
||||||
|
* This SWIG interface file is processed if the Guile module is run
|
||||||
|
* with gh_ flavor.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#define SWIGGUILE_GH
|
#define SWIGGUILE_GH
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
/* -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
* -----------------------------------------------------------------------
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
* Lib/guile/guile_gh_run.swg
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* guile_gh_run.swg
|
||||||
*
|
*
|
||||||
* Guile GH runtime file
|
* Guile GH runtime file
|
||||||
* Copyright (C) 2004 John Lenz <lenz@cs.wisc.edu>
|
* ----------------------------------------------------------------------------- */
|
||||||
* ----------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
#define SWIGGUILE
|
#define SWIGGUILE
|
||||||
#include "guile/gh.h"
|
#include "guile/gh.h"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
/* -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
This SWIG interface file is processed if the Guile module is run
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
with SCM_ flavor.
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
*/
|
*
|
||||||
|
* guile_scm.swg
|
||||||
|
*
|
||||||
|
* This SWIG interface file is processed if the Guile module is run
|
||||||
|
* with SCM_ flavor.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#define SWIGGUILE_SCM
|
#define SWIGGUILE_SCM
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
/* -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
* -----------------------------------------------------------------------
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
* swig_lib/guile/guile_scm_run.swg
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
*
|
*
|
||||||
* Author: John Lenz <jelenz@wisc.edu>
|
* guile_scm_run.swg
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#include <libguile.h>
|
#include <libguile.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
||||||
|
|
@ -1,29 +1,13 @@
|
||||||
/*
|
/* -----------------------------------------------------------------------------
|
||||||
* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
* Copyright (C) 2000 Dr.-Ing. Martin Froehlich <MartinFroehlich@ACM.org>
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
*
|
*
|
||||||
* PURPOSE OF THIS FILE: The main functions for a user augmented guile
|
* guilemain.i
|
||||||
* version that can handle wrapped calls as generated by the Simplified
|
*
|
||||||
* Wrapper and Interface Generator (SWIG 1.1)
|
* The main functions for a user augmented guile
|
||||||
*
|
* version that can handle wrapped calls as generated by SWIG
|
||||||
* - Automatic Version Information via RCS/CVS:
|
* ----------------------------------------------------------------------------- */
|
||||||
* $Id$
|
|
||||||
* $Source$
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
*/
|
|
||||||
%{
|
%{
|
||||||
#include <libguile.h>
|
#include <libguile.h>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,20 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// $Header$
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
//
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// SWIG file for a simple Guile interpreter
|
|
||||||
//
|
|
||||||
/* Revision History
|
|
||||||
* $Log$
|
|
||||||
* Revision 1.1 2000/01/11 21:15:50 beazley
|
|
||||||
* Added files
|
|
||||||
*
|
*
|
||||||
* Revision 1.1.1.1 1999/02/28 02:00:54 beazley
|
* interpreter.i
|
||||||
* Swig1.1
|
|
||||||
*
|
*
|
||||||
* Revision 1.1 1996/05/22 20:02:10 beazley
|
* SWIG file for a simple Guile interpreter
|
||||||
* Initial revision
|
* ----------------------------------------------------------------------------- */
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
/* list-vector.i --- Guile typemaps for converting between -*- c -*- arrays
|
/* -----------------------------------------------------------------------------
|
||||||
and Scheme lists or vectors
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
Copyright (C) 2001, 2002 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
|
*
|
||||||
|
* list_vector.i
|
||||||
$Header$
|
*
|
||||||
*/
|
* Guile typemaps for converting between arrays and Scheme lists or vectors
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Here is a macro that will define typemaps for converting between C
|
/* Here is a macro that will define typemaps for converting between C
|
||||||
arrays and Scheme lists or vectors when passing arguments to the C
|
arrays and Scheme lists or vectors when passing arguments to the C
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
/* pointer-in-out.i --- Guile typemaps for passing -*- c -*- pointers indirectly
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
Copyright (C) 2001, 2003 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
$Header$
|
* pointer-in-out.i
|
||||||
*/
|
*
|
||||||
|
* Guile typemaps for passing pointers indirectly
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Here is a macro that will define typemaps for passing C pointers indirectly.
|
/* Here is a macro that will define typemaps for passing C pointers indirectly.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
/* ports.i --- Guile typemaps for handling ports -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
Copyright (C) 2000, 2004 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
$Header$
|
*
|
||||||
*/
|
* ports.i
|
||||||
|
*
|
||||||
|
* Guile typemaps for handling ports
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#ifndef _POSIX_SOURCE
|
#ifndef _POSIX_SOURCE
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for STL - common utilities
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Aug 3, 2002
|
*
|
||||||
//
|
* std_common.i
|
||||||
// Guile implementation
|
*
|
||||||
|
* SWIG typemaps for STL - common utilities
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std/std_except.i>
|
%include <std/std_except.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::map
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Jan. 2003
|
*
|
||||||
//
|
* std_map.i
|
||||||
// Guile implementation
|
*
|
||||||
|
* SWIG typemaps for std::map
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::pair
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// July 2003
|
*
|
||||||
//
|
* std_pair.i
|
||||||
// Guile implementation
|
*
|
||||||
|
* SWIG typemaps for std::pair
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <exception.i>
|
%include <exception.i>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::string
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Apr 8, 2002
|
*
|
||||||
//
|
* std_string.i
|
||||||
// Guile implementation
|
*
|
||||||
|
* SWIG typemaps for std::string
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// std::string is typemapped by value
|
// std::string is typemapped by value
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::vector
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Apr 8, 2002
|
*
|
||||||
//
|
* std_vector.i
|
||||||
// Guile implementation
|
*
|
||||||
|
* SWIG typemaps for std::vector
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
/* initial STL definition. extended as needed in each language */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* stl.i
|
||||||
|
*
|
||||||
|
* Initial STL definition. extended as needed in each language
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <std_string.i>
|
%include <std_string.i>
|
||||||
%include <std_vector.i>
|
%include <std_vector.i>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
/* typemaps.i --- guile-specific typemaps -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
Copyright (C) 2000 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
$Header$ */
|
*
|
||||||
|
* typemaps.i
|
||||||
|
*
|
||||||
|
* Guile-specific typemaps
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Pointers */
|
/* Pointers */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
/*
|
/* -----------------------------------------------------------------------------
|
||||||
* ISO C99: 7.8 Format conversion of integer types <inttypes.h>
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
*/
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* inttypes.i
|
||||||
|
*
|
||||||
|
* SWIG library file for ISO C99 types: 7.8 Format conversion of integer types <inttypes.h>
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
|
|
@ -1,24 +1,28 @@
|
||||||
/* arrays_java.i
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* arrays_java.i
|
||||||
|
*
|
||||||
* These typemaps give more natural support for arrays. The typemaps are not efficient
|
* These typemaps give more natural support for arrays. The typemaps are not efficient
|
||||||
* as there is a lot of copying of the array values whenever the array is passed to C/C++
|
* as there is a lot of copying of the array values whenever the array is passed to C/C++
|
||||||
* from Java and visa versa. The Java array is expected to be the same size as the C array.
|
* from Java and visa versa. The Java array is expected to be the same size as the C array.
|
||||||
* An exception is thrown if they are not.
|
* An exception is thrown if they are not.
|
||||||
|
*
|
||||||
Example usage:
|
* Example usage:
|
||||||
Wrapping:
|
* Wrapping:
|
||||||
|
*
|
||||||
%include <arrays_java.i>
|
* %include <arrays_java.i>
|
||||||
%inline %{
|
* %inline %{
|
||||||
short FiddleSticks[3];
|
* short FiddleSticks[3];
|
||||||
%}
|
* %}
|
||||||
|
*
|
||||||
Use from Java like this:
|
* Use from Java like this:
|
||||||
|
*
|
||||||
short[] fs = new short[] {10, 11, 12};
|
* short[] fs = new short[] {10, 11, 12};
|
||||||
example.setFiddleSticks(fs);
|
* example.setFiddleSticks(fs);
|
||||||
fs = example.getFiddleSticks();
|
* fs = example.getFiddleSticks();
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
*/
|
|
||||||
|
|
||||||
/* Primitive array support is a combination of SWIG macros and functions in order to reduce
|
/* Primitive array support is a combination of SWIG macros and functions in order to reduce
|
||||||
* code bloat and aid maintainability. The SWIG preprocessor expands the macros into functions
|
* code bloat and aid maintainability. The SWIG preprocessor expands the macros into functions
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* director.swg
|
* director.swg
|
||||||
*
|
*
|
||||||
* This file contains support for director classes that proxy
|
* This file contains support for director classes that proxy
|
||||||
* method calls from C++ to Java extensions.
|
* method calls from C++ to Java extensions.
|
||||||
*
|
* ----------------------------------------------------------------------------- */
|
||||||
* Author : Scott Michel (scottm@aero.org)
|
|
||||||
*
|
|
||||||
* This file was adapted from the python director.swg, written by
|
|
||||||
* Mark Rose (mrose@stm.lbl.gov)
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* enums.swg
|
||||||
|
*
|
||||||
* Include this file in order for C/C++ enums to be wrapped by proper Java enums.
|
* Include this file in order for C/C++ enums to be wrapped by proper Java enums.
|
||||||
* Note that the JNI layer handles the enum as an int. The Java enum has extra
|
* Note that the JNI layer handles the enum as an int. The Java enum has extra
|
||||||
* code generated to store the C++ int value. This is required for C++ enums that
|
* code generated to store the C++ int value. This is required for C++ enums that
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* enumsimple.swg
|
||||||
|
*
|
||||||
* This file provides backwards compatible enum wrapping. SWIG versions 1.3.21
|
* This file provides backwards compatible enum wrapping. SWIG versions 1.3.21
|
||||||
* and earlier wrapped global enums with constant integers in the module class
|
* and earlier wrapped global enums with constant integers in the module class
|
||||||
* or Constants interface. Enums declared within a C++ class were wrapped by
|
* or Constants interface. Enums declared within a C++ class were wrapped by
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* enumtypesafe.swg
|
||||||
|
*
|
||||||
* Include this file in order for C/C++ enums to be wrapped by the so called
|
* Include this file in order for C/C++ enums to be wrapped by the so called
|
||||||
* typesafe enum pattern. Each enum has an equivalent Java class named after the
|
* typesafe enum pattern. Each enum has an equivalent Java class named after the
|
||||||
* enum and each enum item is a static instance of this class.
|
* enum and each enum item is a static instance of this class.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* enumtypeunsafe.swg
|
||||||
|
*
|
||||||
* Include this file in order for C/C++ enums to be wrapped by integers values.
|
* Include this file in order for C/C++ enums to be wrapped by integers values.
|
||||||
* Each enum has an equivalent class named after the enum and the enum items are
|
* Each enum has an equivalent class named after the enum and the enum items are
|
||||||
* wrapped by constant integers within this class. The enum items are not
|
* wrapped by constant integers within this class. The enum items are not
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* java.swg
|
* java.swg
|
||||||
*
|
*
|
||||||
* Java typemaps
|
* Java typemaps
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
|
||||||
%include <javahead.swg>
|
%include <javahead.swg>
|
||||||
|
|
||||||
/* The jni, jtype and jstype typemaps work together and so there should be one of each.
|
/* The jni, jtype and jstype typemaps work together and so there should be one of each.
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,7 @@
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* javahead.swg
|
* javahead.swg
|
||||||
*
|
*
|
||||||
* Java support code
|
* Java support code
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef __java_javakw_swg__
|
#ifndef JAVA_JAVAKW_SWG_
|
||||||
#define __java_javakw_swg__
|
#define JAVA_JAVAKW_SWG_
|
||||||
|
|
||||||
/* Warnings for Java keywords */
|
/* Warnings for Java keywords */
|
||||||
#define JAVAKW(x) %namewarn("314:" #x " is a java keyword") #x
|
#define JAVAKW(x) %namewarn("314:" #x " is a java keyword") #x
|
||||||
|
|
@ -67,4 +67,4 @@ JAVAKW(while);
|
||||||
|
|
||||||
#undef JAVAKW
|
#undef JAVAKW
|
||||||
|
|
||||||
#endif //__java_javakw_swg__
|
#endif //JAVA_JAVAKW_SWG_
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,13 @@
|
||||||
// Typemaps used by the STL wrappers that throw exceptions.
|
/* -----------------------------------------------------------------------------
|
||||||
// These typemaps are used when methods are declared with an STL exception specification, such as
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// size_t at() const throw (std::out_of_range);
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* std_except.i
|
||||||
|
*
|
||||||
|
* Typemaps used by the STL wrappers that throw exceptions.
|
||||||
|
* These typemaps are used when methods are declared with an STL exception specification, such as
|
||||||
|
* size_t at() const throw (std::out_of_range);
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::map
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Jan. 2003
|
*
|
||||||
//
|
* std_map.i
|
||||||
// Common implementation
|
*
|
||||||
|
* SWIG typemaps for std::map
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::pair
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// July 2003
|
*
|
||||||
//
|
* std_pair.i
|
||||||
// Common implementation
|
*
|
||||||
|
* SWIG typemaps for std::pair
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <exception.i>
|
%include <exception.i>
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,15 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::string
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio, Tal Shalif and William Fulton
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// May 7, 2002
|
*
|
||||||
//
|
* std_string.i
|
||||||
// Java implementation
|
*
|
||||||
//
|
* Typemaps for std::string and const std::string&
|
||||||
/* ------------------------------------------------------------------------
|
* These are mapped to a Java String and are passed around by value.
|
||||||
Typemaps for std::string and const std::string&
|
*
|
||||||
These are mapped to a Java String and are passed around by value.
|
* To use non-const std::string references use the following %apply. Note
|
||||||
|
* that they are passed by value.
|
||||||
To use non-const std::string references use the following %apply. Note
|
* %apply const std::string & {std::string &};
|
||||||
that they are passed by value.
|
|
||||||
%apply const std::string & {std::string &};
|
|
||||||
------------------------------------------------------------------------ */
|
------------------------------------------------------------------------ */
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,10 @@
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* std_vector.i
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,19 @@
|
||||||
/* ------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
Typemaps for std::wstring and const std::wstring&
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
These are mapped to a Java String and are passed around by value.
|
*
|
||||||
Warning: Unicode / multibyte characters are handled differently on different
|
* std_wstring.i
|
||||||
OSs so the std::wstring typemaps may not always work as intended.
|
*
|
||||||
|
* Typemaps for std::wstring and const std::wstring&
|
||||||
To use non-const std::wstring references use the following %apply. Note
|
*
|
||||||
that they are passed by value.
|
* These are mapped to a Java String and are passed around by value.
|
||||||
%apply const std::wstring & {std::wstring &};
|
* Warning: Unicode / multibyte characters are handled differently on different
|
||||||
------------------------------------------------------------------------ */
|
* OSs so the std::wstring typemaps may not always work as intended.
|
||||||
|
*
|
||||||
|
* To use non-const std::wstring references use the following %apply. Note
|
||||||
|
* that they are passed by value.
|
||||||
|
* %apply const std::wstring & {std::wstring &};
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
namespace std {
|
namespace std {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,10 @@
|
||||||
/* initial STL definition. extended as needed in each language */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* stl.i
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <std_string.i>
|
%include <std_string.i>
|
||||||
%include <std_vector.i>
|
%include <std_vector.i>
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,15 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG Typemap library
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// William Fulton
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// 4 January 2002
|
*
|
||||||
//
|
* typemaps.i
|
||||||
// Java implementation
|
*
|
||||||
//
|
* SWIG Java typemap library
|
||||||
|
* Pointer and reference handling
|
||||||
// ------------------------------------------------------------------------
|
*
|
||||||
// Pointer and reference handling
|
* These mappings provide support for input/output arguments and common
|
||||||
//
|
* uses for C/C++ pointers and C++ references.
|
||||||
// These mappings provide support for input/output arguments and common
|
* ----------------------------------------------------------------------------- */
|
||||||
// uses for C/C++ pointers and C++ references.
|
|
||||||
// ------------------------------------------------------------------------
|
|
||||||
|
|
||||||
// INPUT typemaps.
|
// INPUT typemaps.
|
||||||
// These remap a C pointer or C++ reference to be an "INPUT" value which is passed by value
|
// These remap a C pointer or C++ reference to be an "INPUT" value which is passed by value
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,12 @@
|
||||||
/*
|
/* -----------------------------------------------------------------------------
|
||||||
* SWIG Typemap library for Java
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
* Various useful typemaps.
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
*
|
*
|
||||||
*/
|
* various.i
|
||||||
|
*
|
||||||
|
* SWIG Typemap library for Java.
|
||||||
|
* Various useful typemaps.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* char **STRING_ARRAY typemaps.
|
* char **STRING_ARRAY typemaps.
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
* _std_stl.i
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
*
|
*
|
||||||
* std::helpers for LUA
|
* _std_common.i
|
||||||
*
|
*
|
||||||
* Author : Mark Gossage (mark@gossage.cjb.net)
|
* std::helpers for LUA
|
||||||
************************************************************************/
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_except.i> // the general exepctions
|
%include <std_except.i> // the general exepctions
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* lua.swg
|
* lua.swg
|
||||||
*
|
*
|
||||||
* SWIG Configuration File for Lua
|
* SWIG Configuration File for Lua.
|
||||||
* This file is parsed by SWIG before reading any other interface
|
* This file is parsed by SWIG before reading any other interface file.
|
||||||
* file.
|
* ----------------------------------------------------------------------------- */
|
||||||
*
|
|
||||||
* Author : Mark Gossage (mark@gossage.cjb.net)
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
* includes
|
* includes
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* luarun.swg
|
* luarun.swg
|
||||||
*
|
*
|
||||||
* This file contains the runtime support for Lua modules
|
* This file contains the runtime support for Lua modules
|
||||||
* and includes code for managing global variables and pointer
|
* and includes code for managing global variables and pointer
|
||||||
* type checking.
|
* type checking.
|
||||||
*
|
* ----------------------------------------------------------------------------- */
|
||||||
* Author : Mark Gossage (mark@gossage.cjb.net)
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,14 @@
|
||||||
// Typemaps used by the STL wrappers that throw exceptions.
|
/* -----------------------------------------------------------------------------
|
||||||
// These typemaps are used when methods are declared with an STL exception specification, such as
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// size_t at() const throw (std::out_of_range);
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* Typemaps used by the STL wrappers that throw exceptions.
|
||||||
|
* These typemaps are used when methods are declared with an STL exception
|
||||||
|
* specification, such as:
|
||||||
|
* size_t at() const throw (std::out_of_range);
|
||||||
|
*
|
||||||
|
* std_except.i
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* std_pair.i
|
* std_pair.i
|
||||||
*
|
*
|
||||||
* std::pair typemaps for LUA
|
* std::pair typemaps for LUA
|
||||||
*
|
* ----------------------------------------------------------------------------- */
|
||||||
* Author : Mark Gossage (mark@gossage.cjb.net)
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* std_string.i
|
* std_string.i
|
||||||
*
|
*
|
||||||
* std::string typemaps for LUA
|
* std::string typemaps for LUA
|
||||||
*
|
* ----------------------------------------------------------------------------- */
|
||||||
* Author : Mark Gossage (mark@gossage.cjb.net)
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* std_vector.i
|
* std_vector.i
|
||||||
*
|
*
|
||||||
* std::vector typemaps for LUA
|
* std::vector typemaps for LUA
|
||||||
*
|
* ----------------------------------------------------------------------------- */
|
||||||
* Author : Mark Gossage (mark@gossage.cjb.net)
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
%{
|
%{
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
@ -130,4 +131,4 @@ int SWIG_write_number_vector(lua_State* L,std::vector<T> *vec)
|
||||||
%{ SWIG_write_number_vector(L,$1); SWIG_arg++; %}
|
%{ SWIG_write_number_vector(L,$1); SWIG_arg++; %}
|
||||||
|
|
||||||
%enddef
|
%enddef
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,13 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* typemaps.swg
|
* typemaps.swg
|
||||||
|
*
|
||||||
|
* SWIG Library file containing the main typemap code to support Lua modules.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
*
|
*
|
||||||
* This file contains the main typemap code to support Lua modules
|
* This file contains the main typemap code to support Lua modules
|
||||||
*
|
*
|
||||||
|
|
|
||||||
10
Lib/math.i
10
Lib/math.i
|
|
@ -1,10 +1,18 @@
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* math.i
|
||||||
|
*
|
||||||
|
* SWIG library file for floating point operations.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Header$
|
* $Header$
|
||||||
*
|
*
|
||||||
* math.i
|
* math.i
|
||||||
* Dave Beazley
|
* Dave Beazley
|
||||||
* March 24, 1996
|
* March 24, 1996
|
||||||
* SWIG file for floating point operations
|
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
/* -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
* -----------------------------------------------------------------------
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
* swig_lib/mzscheme/mzrun.swg
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
*
|
*
|
||||||
* Author: John Lenz <lenz@cs.wisc.edu>
|
* mzrun.swg
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,12 @@
|
||||||
/* SWIG Configuration File for MzScheme. -*-c-*-
|
/* -----------------------------------------------------------------------------
|
||||||
This file is parsed by SWIG before reading any other interface
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
file. */
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* mzscheme.swg
|
||||||
|
*
|
||||||
|
* SWIG Configuration File for MzScheme.
|
||||||
|
* This file is parsed by SWIG before reading any other interface file.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* Include headers */
|
/* Include headers */
|
||||||
%runtime "swigrun.swg" // Common C API type-checking code
|
%runtime "swigrun.swg" // Common C API type-checking code
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for STL - common utilities
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Aug 3, 2002
|
*
|
||||||
//
|
* std_common.i
|
||||||
// MzScheme implementation
|
*
|
||||||
|
* SWIG typemaps for STL - common utilities
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std/std_except.i>
|
%include <std/std_except.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::map
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Jan. 2003
|
*
|
||||||
//
|
* std_map.i
|
||||||
// MzScheme implementation
|
*
|
||||||
|
* SWIG typemaps for std::map
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::pair
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// July 2003
|
*
|
||||||
//
|
* std_pair.i
|
||||||
// MzScheme implementation
|
*
|
||||||
|
* SWIG typemaps for std::pair
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <exception.i>
|
%include <exception.i>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::string types
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Apr 8, 2002
|
*
|
||||||
//
|
* std_string.i
|
||||||
// MzScheme implementation
|
*
|
||||||
|
* SWIG typemaps for std::string types
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// std::string is typemapped by value
|
// std::string is typemapped by value
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::vector
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Apr 8, 2002
|
*
|
||||||
//
|
* std_vector.i
|
||||||
// MzScheme implementation
|
*
|
||||||
|
* SWIG typemaps for std::vector
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
/* initial STL definition. extended as needed in each language */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* stl.i
|
||||||
|
*
|
||||||
|
* Initial STL definition. extended as needed in each language
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <std_string.i>
|
%include <std_string.i>
|
||||||
%include <std_vector.i>
|
%include <std_vector.i>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
/* typemaps.i --- mzscheme typemaps -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
Copyright 2000, 2001, 2004, 2006 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
Based on code written by Oleg Tolmatcev.
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
$Id$
|
* typemaps.i
|
||||||
*/
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/* The MzScheme module handles all types uniformly via typemaps. Here
|
/* The MzScheme module handles all types uniformly via typemaps. Here
|
||||||
are the definitions. */
|
are the definitions. */
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
/* -*- C++ -*-
|
/* -----------------------------------------------------------------------------
|
||||||
* cstring.i
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
* $Header$
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
*
|
*
|
||||||
* Author(s): Art Yerkes
|
* cstring.i
|
||||||
* Modified from David Beazley (beazley@cs.uchicago.edu)
|
|
||||||
*
|
*
|
||||||
* This file provides typemaps and macros for dealing with various forms
|
* This file provides typemaps and macros for dealing with various forms
|
||||||
* of C character string handling. The primary use of this module
|
* of C character string handling. The primary use of this module
|
||||||
* is in returning character data that has been allocated or changed in
|
* is in returning character data that has been allocated or changed in
|
||||||
* some way.
|
* some way.
|
||||||
*/
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <fragments.i>
|
%include <fragments.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
/* -*- C++ -*- */
|
/* -----------------------------------------------------------------------------
|
||||||
/***********************************************************************
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* director.swg
|
* director.swg
|
||||||
*
|
*
|
||||||
* This file contains support for director classes that proxy
|
* This file contains support for director classes that proxy
|
||||||
* method calls from C++ to Ocaml extensions.
|
* method calls from C++ to Ocaml extensions.
|
||||||
*
|
*
|
||||||
* Modified for Ocaml by : Art Yerkes
|
* ----------------------------------------------------------------------------- */
|
||||||
* Original Author : Mark Rose (mrose@stm.lbl.gov)
|
|
||||||
************************************************************************/
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
/* SWIG Configuration File for Ocaml. -*-c-*-
|
/* -----------------------------------------------------------------------------
|
||||||
Modified from mzscheme.i
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
This file is parsed by SWIG before reading any other interface
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
file. */
|
*
|
||||||
|
* ocaml.i
|
||||||
|
*
|
||||||
|
* SWIG Configuration File for Ocaml
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%runtime %{
|
%runtime %{
|
||||||
#define SWIGSTATIC static
|
#define SWIGSTATIC static
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
/* -*-c-*-
|
/* -----------------------------------------------------------------------------
|
||||||
* -----------------------------------------------------------------------
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
* ocaml/ocamldec.swg
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
* Copyright (C) 2000, 2001 Matthias Koeppe
|
*
|
||||||
|
* ocamldec.swg
|
||||||
*
|
*
|
||||||
* Ocaml runtime code -- declarations
|
* Ocaml runtime code -- declarations
|
||||||
* ----------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#ifndef __ocaml_ocamlkw_swg__
|
#ifndef OCAML_OCAMLKW_SWG_
|
||||||
#define __ocaml_ocamlkw_swg__
|
#define OCAML_OCAMLKW_SWG_
|
||||||
|
|
||||||
/* Warnings for Ocaml keywords */
|
/* Warnings for Ocaml keywords */
|
||||||
#define OCAMLKW(x) %namewarn("314:" #x " is a ocaml keyword and it will properly renamed") #x
|
#define OCAMLKW(x) %namewarn("314:" #x " is a ocaml keyword and it will properly renamed") #x
|
||||||
|
|
@ -61,4 +61,4 @@ OCAMLKW(with);
|
||||||
|
|
||||||
#undef OCAMLKW
|
#undef OCAMLKW
|
||||||
|
|
||||||
#endif //__ocaml_ocamlkw_swg__
|
#endif //OCAML_OCAMLKW_SWG_
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
// -*- C++ -*-
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for STL - common utilities
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Art Yerkes
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Modified from: Luigi Ballabio
|
*
|
||||||
// Aug 3, 2002
|
* std_common.i
|
||||||
//
|
*
|
||||||
// Ocaml implementation
|
* SWIG typemaps for STL - common utilities
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std/std_except.i>
|
%include <std/std_except.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
/* Default std_deque wrapper */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* std_deque.i
|
||||||
|
*
|
||||||
|
* Default std_deque wrapper
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%module std_deque
|
%module std_deque
|
||||||
|
|
||||||
%rename(__getitem__) std::deque::getitem;
|
%rename(__getitem__) std::deque::getitem;
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
// -*- C++ -*-
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::list types
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Art Yerkes
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Modified from: Jing Cao
|
*
|
||||||
// Aug 1st, 2002
|
* std_list.i
|
||||||
//
|
*
|
||||||
// Python implementation
|
* SWIG typemaps for std::list types
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::map
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Jan. 2003
|
*
|
||||||
//
|
* std_map.i
|
||||||
// Common implementation
|
*
|
||||||
|
* SWIG typemaps for std::map
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::pair
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// July 2003
|
*
|
||||||
//
|
* std_pair.i
|
||||||
// Common implementation
|
*
|
||||||
|
* SWIG typemaps for std::pair
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <exception.i>
|
%include <exception.i>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
// -*- C++ -*-
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::string
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Art Yerkes
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Modified from: Luigi Ballabio
|
*
|
||||||
// Apr 8, 2002
|
* std_string.i
|
||||||
//
|
*
|
||||||
// Ocaml implementation
|
* SWIG typemaps for std::string
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// std::string is typemapped by value
|
// std::string is typemapped by value
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
// -*- C++ -*-
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::vector types
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Art Yerkes
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Modified from: Luigi Ballabio
|
*
|
||||||
// Apr 8, 2002
|
* std_vector.i
|
||||||
//
|
*
|
||||||
// Ocaml implementation
|
* SWIG typemaps for std::vector types
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,12 @@
|
||||||
/* initial STL definition. extended as needed in each language */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* stl.i
|
||||||
|
*
|
||||||
|
* Initial STL definition. extended as needed in each language
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <std_string.i>
|
%include <std_string.i>
|
||||||
%include <std_vector.i>
|
%include <std_vector.i>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,11 @@
|
||||||
/* -*- C++ -*- */
|
/* -----------------------------------------------------------------------------
|
||||||
/* Type checking code adapted from python backend. */
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
/* ------------------------------------------------------------
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* typecheck.i
|
||||||
|
*
|
||||||
* Typechecking rules
|
* Typechecking rules
|
||||||
* ------------------------------------------------------------ */
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%typecheck(SWIG_TYPECHECK_INTEGER) char, signed char, const char &, const signed char & {
|
%typecheck(SWIG_TYPECHECK_INTEGER) char, signed char, const char &, const signed char & {
|
||||||
if( !Is_block($input) ) $1 = 0;
|
if( !Is_block($input) ) $1 = 0;
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,12 @@
|
||||||
/* typemaps.i --- ocaml typemaps -*- c -*-
|
/* -----------------------------------------------------------------------------
|
||||||
Ocaml conversion by Art Yerkes, modified from mzscheme/typemaps.i
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
Copyright 2000, 2001 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
Based on code written by Oleg Tolmatcev.
|
*
|
||||||
|
* typemaps.i
|
||||||
$Id$
|
*
|
||||||
*/
|
* The Ocaml module handles all types uniformly via typemaps. Here
|
||||||
|
* are the definitions.
|
||||||
/* The Ocaml module handles all types uniformly via typemaps. Here
|
* ----------------------------------------------------------------------------- */
|
||||||
are the definitions. */
|
|
||||||
|
|
||||||
/* Pointers */
|
/* Pointers */
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
// $Header$
|
/* -----------------------------------------------------------------------------
|
||||||
// Code to statically rebuild perl5.
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
//
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* perlmain.i
|
||||||
|
*
|
||||||
|
* Code to statically rebuild perl5.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#ifdef AUTODOC
|
#ifdef AUTODOC
|
||||||
%subsection "perlmain.i"
|
%subsection "perlmain.i"
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
/***********************************************************************
|
/* -----------------------------------------------------------------------------
|
||||||
* perlrun.swg
|
* perlrun.swg
|
||||||
*
|
*
|
||||||
* This file contains the runtime support for Perl modules
|
* This file contains the runtime support for Perl modules
|
||||||
* and includes code for managing global variables and pointer
|
* and includes code for managing global variables and pointer
|
||||||
* type checking.
|
* type checking.
|
||||||
*
|
* ----------------------------------------------------------------------------- */
|
||||||
************************************************************************/
|
|
||||||
#ifdef PERL_OBJECT
|
#ifdef PERL_OBJECT
|
||||||
#define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
|
#define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
|
||||||
#define SWIG_PERL_OBJECT_CALL pPerl,
|
#define SWIG_PERL_OBJECT_CALL pPerl,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,11 @@
|
||||||
// REFERENCE
|
/* -----------------------------------------------------------------------------
|
||||||
// Accept Perl references as pointers
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* reference.i
|
||||||
|
*
|
||||||
|
* Accept Perl references as pointers
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The following methods make Perl references work like simple C
|
The following methods make Perl references work like simple C
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for STL - common utilities
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// May 16, 2003
|
*
|
||||||
//
|
* std_common.i
|
||||||
// Perl implementation
|
*
|
||||||
|
* SWIG typemaps for STL - common utilities
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std/std_except.i>
|
%include <std/std_except.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::list types
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Lluis Padro
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// June 3, 2003
|
*
|
||||||
// based on existing std_vector.i
|
* std_list.i
|
||||||
|
*
|
||||||
// Perl implementation
|
* SWIG typemaps for std::list types
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <exception.i>
|
%include <exception.i>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::map
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Jan. 2003
|
*
|
||||||
//
|
* std_map.i
|
||||||
// Common implementation
|
*
|
||||||
|
* SWIG typemaps for std::map
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::pair
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// July 2003
|
*
|
||||||
//
|
* std_pair.i
|
||||||
// Common implementation
|
*
|
||||||
|
* SWIG typemaps for std::pair
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <exception.i>
|
%include <exception.i>
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::vector types
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// May 7, 2002
|
*
|
||||||
// Chris Seatory
|
* std_vector.i
|
||||||
// August 5, 2002
|
*
|
||||||
// Igor Bely
|
* SWIG typemaps for std::vector types
|
||||||
// May 16, 2003
|
* ----------------------------------------------------------------------------- */
|
||||||
//
|
|
||||||
// Perl implementation
|
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
/* initial STL definition. extended as needed in each language */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* stl.i
|
||||||
|
*
|
||||||
|
* Initial STL definition. extended as needed in each language
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <std_string.i>
|
%include <std_string.i>
|
||||||
%include <std_vector.i>
|
%include <std_vector.i>
|
||||||
|
|
|
||||||
|
|
@ -1,26 +1,20 @@
|
||||||
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* typemaps.i
|
||||||
|
*
|
||||||
|
* The SWIG typemap library provides a language independent mechanism for
|
||||||
|
* supporting output arguments, input values, and other C function
|
||||||
|
* calling mechanisms. The primary use of the library is to provide a
|
||||||
|
* better interface to certain C function--especially those involving
|
||||||
|
* pointers.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#if !defined(SWIG_USE_OLD_TYPEMAPS)
|
#if !defined(SWIG_USE_OLD_TYPEMAPS)
|
||||||
%include <typemaps/typemaps.swg>
|
%include <typemaps/typemaps.swg>
|
||||||
#else
|
#else
|
||||||
|
|
||||||
//
|
|
||||||
// SWIG Typemap library
|
|
||||||
// Dave Beazley
|
|
||||||
// May 5, 1997
|
|
||||||
//
|
|
||||||
// Perl5 implementation
|
|
||||||
//
|
|
||||||
// This library provides standard typemaps for modifying SWIG's behavior.
|
|
||||||
// With enough entries in this file, I hope that very few people actually
|
|
||||||
// ever need to write a typemap.
|
|
||||||
//
|
|
||||||
|
|
||||||
/*
|
|
||||||
The SWIG typemap library provides a language independent mechanism for
|
|
||||||
supporting output arguments, input values, and other C function
|
|
||||||
calling mechanisms. The primary use of the library is to provide a
|
|
||||||
better interface to certain C function--especially those involving
|
|
||||||
pointers.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// INPUT typemaps.
|
// INPUT typemaps.
|
||||||
// These remap a C pointer to be an "INPUT" value which is passed by value
|
// These remap a C pointer to be an "INPUT" value which is passed by value
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
/* Typemaps for constants */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* const.i
|
||||||
|
*
|
||||||
|
* Typemaps for constants
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%typemap(consttab) int,
|
%typemap(consttab) int,
|
||||||
unsigned int,
|
unsigned int,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
/* Global variables - add the variable to PHP */
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* globalvar.i
|
||||||
|
*
|
||||||
|
* Global variables - add the variable to PHP
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%typemap(varinit) char *,
|
%typemap(varinit) char *,
|
||||||
char []
|
char []
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
/*
|
/* -----------------------------------------------------------------------------
|
||||||
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
* php4.swg
|
* php4.swg
|
||||||
*
|
*
|
||||||
* PHP 4 configuration file
|
* PHP4 configuration file
|
||||||
*
|
* ----------------------------------------------------------------------------- */
|
||||||
*/
|
|
||||||
|
|
||||||
%runtime "swigrun.swg" // Common C API type-checking code
|
%runtime "swigrun.swg" // Common C API type-checking code
|
||||||
%runtime "php4run.swg" // Php4 runtime functions
|
%runtime "php4run.swg" // Php4 runtime functions
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,12 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// The 'keywords' in PHP are global, ie, the following names are fine
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// when used as class methods.
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
//
|
*
|
||||||
|
* php4kw.swg
|
||||||
|
*
|
||||||
|
* The 'keywords' in PHP are global, ie, the following names are fine
|
||||||
|
* when used as class methods.
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
#define PHPKW(x) %keywordwarn(`x` " is a php keyword, renamed as c_"`x`,sourcefmt="%(lower)s", rename="c_%s",fullname=1) `x`
|
#define PHPKW(x) %keywordwarn(`x` " is a php keyword, renamed as c_"`x`,sourcefmt="%(lower)s", rename="c_%s",fullname=1) `x`
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
/*
|
/* -----------------------------------------------------------------------------
|
||||||
* php4.swg
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
|
*
|
||||||
|
* php4run.swg
|
||||||
*
|
*
|
||||||
* PHP4 runtime library
|
* PHP4 runtime library
|
||||||
*
|
* ----------------------------------------------------------------------------- */
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for STL - common utilities
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Aug 17, 2003
|
*
|
||||||
//
|
* std_common.i
|
||||||
// PHP implementation
|
*
|
||||||
|
* SWIG typemaps for STL - common utilities
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std/std_except.i>
|
%include <std/std_except.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::map
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// Jan. 2003
|
*
|
||||||
//
|
* std_map.i
|
||||||
// Common implementation
|
*
|
||||||
|
* SWIG typemaps for std::map
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::pair
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// July 2003
|
*
|
||||||
//
|
* std_pair.i
|
||||||
// Common implementation
|
*
|
||||||
|
* SWIG typemaps for std::pair
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
%include <std_common.i>
|
%include <std_common.i>
|
||||||
%include <exception.i>
|
%include <exception.i>
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
//
|
/* -----------------------------------------------------------------------------
|
||||||
// SWIG typemaps for std::string types
|
* See the LICENSE file for information on copyright, usage and redistribution
|
||||||
// Luigi Ballabio
|
* of SWIG, and the README file for authors - http://www.swig.org/release.html.
|
||||||
// May 7, 2002
|
*
|
||||||
//
|
* std_string.i
|
||||||
// PHP implementation
|
*
|
||||||
|
* SWIG typemaps for std::string types
|
||||||
|
* ----------------------------------------------------------------------------- */
|
||||||
|
|
||||||
// ------------------------------------------------------------------------
|
// ------------------------------------------------------------------------
|
||||||
// std::string is typemapped by value
|
// std::string is typemapped by value
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue