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:
William S Fulton 2006-03-07 00:14:10 +00:00
commit 49be05f4fd
153 changed files with 1209 additions and 801 deletions

View file

@ -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
into a "native" attribute.

View file

@ -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
*
* Author(s): David Beazley (beazley@cs.uchicago.edu)
*
* This library file contains macros that can be used to manipulate simple
* SWIG library file containing macros that can be used to manipulate simple
* pointers as arrays.
*
* $Header$
* ----------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------

View file

@ -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
*
* SWIG library file containing macros for manipulating raw C data as strings.
* ----------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
*
* Author(s): David Beazley (beazley@cs.uchicago.edu)
*
* This library file contains macros for manipulating raw C data as strings.
*
* $Header$
* ----------------------------------------------------------------------------- */

View file

@ -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
to distinguish between the SWIG language modules. */

View file

@ -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
*
* Author(s): David Beazley (beazley@cs.uchicago.edu)
*
* This library file contains macros that can be used to create objects using
* SWIG library file containing macros that can be used to create objects using
* the C malloc function.
*
* $Header$
* ----------------------------------------------------------------------------- */
%{

View file

@ -1,11 +1,15 @@
//
// SWIG constraint library
// Dave Beazley
// May 4, 1997
//
// This library file contains typemaps for implementing various kinds of
// constraints. Depends upon the SWIG exception library for generating
// errors in a language-independent manner.
/* -----------------------------------------------------------------------------
* 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.
*
* constraints.i
*
* SWIG constraints library.
*
* 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
%text %{

View file

@ -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
*
* Author(s): David Beazley (beazley@cs.uchicago.edu)
*
* This library file contains macros that can be used to manipulate simple
* SWIG library file containing macros that can be used to manipulate simple
* pointer objects.
*
* $Header$
* ----------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------

View file

@ -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"
#define SWIG_CSTRING_UNIMPL

View file

@ -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"
#define SWIG_CWSTRING_UNIMPL

View file

@ -1,9 +1,11 @@
//
// exception.i
// Dave Beazley
// April 14, 1997
//
// This SWIG library file provides language independent exception handling
/* -----------------------------------------------------------------------------
* 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.
*
* exception.i
*
* SWIG library file providing language independent exception handling
* ----------------------------------------------------------------------------- */
#if defined(SWIGUTL)
#error "This version of exception.i should not be used"

View file

@ -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

View file

@ -1,6 +1,11 @@
/* SWIG typemaps for C++ */
/* By Marcio Luis Teixeira <marciot@holly.colostate.edu>: */
/* -----------------------------------------------------------------------------
* 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.
*
* cplusplus.i
*
* SWIG typemaps for C++
* ----------------------------------------------------------------------------- */
%typemap(guile,out) string, std::string {
$result = gh_str02scm(const_cast<char*>($1.c_str()));

View file

@ -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 */
#define %scheme %insert("scheme")

View file

@ -1,7 +1,12 @@
/* -*- c -*-
This SWIG interface file is processed if the Guile module is run
with gh_ flavor.
*/
/* -----------------------------------------------------------------------------
* 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_gh.swg
*
* This SWIG interface file is processed if the Guile module is run
* with gh_ flavor.
* ----------------------------------------------------------------------------- */
#define SWIGGUILE_GH

View file

@ -1,10 +1,11 @@
/* -*- c -*-
* -----------------------------------------------------------------------
* Lib/guile/guile_gh_run.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.
*
* guile_gh_run.swg
*
* Guile GH runtime file
* Copyright (C) 2004 John Lenz <lenz@cs.wisc.edu>
* ----------------------------------------------------------------------- */
* ----------------------------------------------------------------------------- */
#define SWIGGUILE
#include "guile/gh.h"

View file

@ -1,7 +1,12 @@
/* -*- c -*-
This SWIG interface file is processed if the Guile module is run
with SCM_ flavor.
*/
/* -----------------------------------------------------------------------------
* 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_scm.swg
*
* This SWIG interface file is processed if the Guile module is run
* with SCM_ flavor.
* ----------------------------------------------------------------------------- */
#define SWIGGUILE_SCM

View file

@ -1,9 +1,9 @@
/* -*- c -*-
* -----------------------------------------------------------------------
* swig_lib/guile/guile_scm_run.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.
*
* Author: John Lenz <jelenz@wisc.edu>
* ----------------------------------------------------------------------- */
* guile_scm_run.swg
* ----------------------------------------------------------------------------- */
#include <libguile.h>
#include <stdio.h>

View file

@ -1,29 +1,13 @@
/*
* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
* Copyright (C) 2000 Dr.-Ing. Martin Froehlich <MartinFroehlich@ACM.org>
*
* PURPOSE OF THIS FILE: The main functions for a user augmented guile
* version that can handle wrapped calls as generated by the Simplified
* Wrapper and Interface Generator (SWIG 1.1)
*
* - 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.
*/
/* -----------------------------------------------------------------------------
* 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.
*
* guilemain.i
*
* The main functions for a user augmented guile
* version that can handle wrapped calls as generated by SWIG
* ----------------------------------------------------------------------------- */
%{
#include <libguile.h>

View file

@ -1,20 +1,11 @@
//
// $Header$
//
// SWIG file for a simple Guile interpreter
//
/* Revision History
* $Log$
* Revision 1.1 2000/01/11 21:15:50 beazley
* Added files
/* -----------------------------------------------------------------------------
* 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.
*
* Revision 1.1.1.1 1999/02/28 02:00:54 beazley
* Swig1.1
* interpreter.i
*
* Revision 1.1 1996/05/22 20:02:10 beazley
* Initial revision
*
*/
* SWIG file for a simple Guile interpreter
* ----------------------------------------------------------------------------- */
%{

View file

@ -1,10 +1,11 @@
/* list-vector.i --- Guile typemaps for converting between -*- c -*- arrays
and Scheme lists or vectors
Copyright (C) 2001, 2002 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
$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.
*
* list_vector.i
*
* Guile typemaps for converting between arrays and Scheme lists or vectors
* ----------------------------------------------------------------------------- */
/* Here is a macro that will define typemaps for converting between C
arrays and Scheme lists or vectors when passing arguments to the C

View file

@ -1,9 +1,11 @@
/* pointer-in-out.i --- Guile typemaps for passing -*- c -*- pointers indirectly
Copyright (C) 2001, 2003 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
$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.
*
* pointer-in-out.i
*
* Guile typemaps for passing pointers indirectly
* ----------------------------------------------------------------------------- */
/* Here is a macro that will define typemaps for passing C pointers indirectly.

View file

@ -1,8 +1,11 @@
/* ports.i --- Guile typemaps for handling ports -*- c -*-
Copyright (C) 2000, 2004 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
$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.
*
* ports.i
*
* Guile typemaps for handling ports
* ----------------------------------------------------------------------------- */
%{
#ifndef _POSIX_SOURCE

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for STL - common utilities
// Luigi Ballabio
// Aug 3, 2002
//
// Guile implementation
/* -----------------------------------------------------------------------------
* 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_common.i
*
* SWIG typemaps for STL - common utilities
* ----------------------------------------------------------------------------- */
%include <std/std_except.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::map
// Luigi Ballabio
// Jan. 2003
//
// Guile implementation
/* -----------------------------------------------------------------------------
* 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_map.i
*
* SWIG typemaps for std::map
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::pair
// Luigi Ballabio
// July 2003
//
// Guile implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::pair
* ----------------------------------------------------------------------------- */
%include <std_common.i>
%include <exception.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::string
// Luigi Ballabio
// Apr 8, 2002
//
// Guile implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::string
* ----------------------------------------------------------------------------- */
// ------------------------------------------------------------------------
// std::string is typemapped by value

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::vector
// Luigi Ballabio
// Apr 8, 2002
//
// Guile implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::vector
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -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_string.i>
%include <std_vector.i>

View file

@ -1,7 +1,11 @@
/* typemaps.i --- guile-specific typemaps -*- c -*-
Copyright (C) 2000 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
$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.
*
* typemaps.i
*
* Guile-specific typemaps
* ----------------------------------------------------------------------------- */
/* Pointers */

View file

@ -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>
%}

View file

@ -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
* 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.
* An exception is thrown if they are not.
Example usage:
Wrapping:
%include <arrays_java.i>
%inline %{
short FiddleSticks[3];
%}
Use from Java like this:
short[] fs = new short[] {10, 11, 12};
example.setFiddleSticks(fs);
fs = example.getFiddleSticks();
*/
*
* Example usage:
* Wrapping:
*
* %include <arrays_java.i>
* %inline %{
* short FiddleSticks[3];
* %}
*
* Use from Java like this:
*
* short[] fs = new short[] {10, 11, 12};
* example.setFiddleSticks(fs);
* fs = example.getFiddleSticks();
* ----------------------------------------------------------------------------- */
/* 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

View file

@ -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
*
* This file contains support for director classes that proxy
* 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)
************************************************************************/
* This file contains support for director classes that proxy
* method calls from C++ to Java extensions.
* ----------------------------------------------------------------------------- */
#ifdef __cplusplus

View file

@ -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.
* 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

View file

@ -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
* and earlier wrapped global enums with constant integers in the module class
* or Constants interface. Enums declared within a C++ class were wrapped by

View file

@ -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
* 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.

View file

@ -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.
* 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

View file

@ -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 typemaps
* ----------------------------------------------------------------------------- */
%include <javahead.swg>
/* The jni, jtype and jstype typemaps work together and so there should be one of each.

View file

@ -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
*
* Java support code

View file

@ -1,5 +1,5 @@
#ifndef __java_javakw_swg__
#define __java_javakw_swg__
#ifndef JAVA_JAVAKW_SWG_
#define JAVA_JAVAKW_SWG_
/* Warnings for Java keywords */
#define JAVAKW(x) %namewarn("314:" #x " is a java keyword") #x
@ -67,4 +67,4 @@ JAVAKW(while);
#undef JAVAKW
#endif //__java_javakw_swg__
#endif //JAVA_JAVAKW_SWG_

View file

@ -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
// size_t at() const throw (std::out_of_range);
/* -----------------------------------------------------------------------------
* 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_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>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::map
// Luigi Ballabio
// Jan. 2003
//
// Common implementation
/* -----------------------------------------------------------------------------
* 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_map.i
*
* SWIG typemaps for std::map
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::pair
// Luigi Ballabio
// July 2003
//
// Common implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::pair
* ----------------------------------------------------------------------------- */
%include <std_common.i>
%include <exception.i>

View file

@ -1,17 +1,15 @@
//
// SWIG typemaps for std::string
// Luigi Ballabio, Tal Shalif and William Fulton
// May 7, 2002
//
// Java implementation
//
/* ------------------------------------------------------------------------
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.
%apply const std::string & {std::string &};
/* -----------------------------------------------------------------------------
* 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
*
* 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.
* %apply const std::string & {std::string &};
------------------------------------------------------------------------ */
%{

View file

@ -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>
%{

View file

@ -1,14 +1,19 @@
/* ------------------------------------------------------------------------
Typemaps for std::wstring and const std::wstring&
These are mapped to a Java String and are passed around by value.
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 &};
------------------------------------------------------------------------ */
/* -----------------------------------------------------------------------------
* 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_wstring.i
*
* Typemaps for std::wstring and const std::wstring&
*
* These are mapped to a Java String and are passed around by value.
* 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 {

View file

@ -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_string.i>
%include <std_vector.i>

View file

@ -1,17 +1,15 @@
//
// SWIG Typemap library
// William Fulton
// 4 January 2002
//
// Java implementation
//
// ------------------------------------------------------------------------
// Pointer and reference handling
//
// These mappings provide support for input/output arguments and common
// uses for C/C++ pointers and C++ references.
// ------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
* 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
*
* SWIG Java typemap library
* Pointer and reference handling
*
* These mappings provide support for input/output arguments and common
* uses for C/C++ pointers and C++ references.
* ----------------------------------------------------------------------------- */
// INPUT typemaps.
// These remap a C pointer or C++ reference to be an "INPUT" value which is passed by value

View file

@ -1,8 +1,12 @@
/*
* SWIG Typemap library for Java
* Various useful typemaps.
/* -----------------------------------------------------------------------------
* 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.
*
*/
* various.i
*
* SWIG Typemap library for Java.
* Various useful typemaps.
* ----------------------------------------------------------------------------- */
/*
* char **STRING_ARRAY typemaps.

View file

@ -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

View file

@ -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
*
* SWIG Configuration File for Lua
* This file is parsed by SWIG before reading any other interface
* file.
*
* Author : Mark Gossage (mark@gossage.cjb.net)
************************************************************************/
* SWIG Configuration File for Lua.
* This file is parsed by SWIG before reading any other interface file.
* ----------------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
* includes

View file

@ -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
*
* This file contains the runtime support for Lua modules
* and includes code for managing global variables and pointer
* type checking.
*
* Author : Mark Gossage (mark@gossage.cjb.net)
************************************************************************/
* This file contains the runtime support for Lua modules
* and includes code for managing global variables and pointer
* type checking.
* ----------------------------------------------------------------------------- */
#ifdef __cplusplus
extern "C" {

View file

@ -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
// size_t at() const throw (std::out_of_range);
/* -----------------------------------------------------------------------------
* 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 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>

View file

@ -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 typemaps for LUA
*
* Author : Mark Gossage (mark@gossage.cjb.net)
************************************************************************/
* std::pair typemaps for LUA
* ----------------------------------------------------------------------------- */
%{
#include <utility>

View file

@ -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 typemaps for LUA
*
* Author : Mark Gossage (mark@gossage.cjb.net)
************************************************************************/
* std::string typemaps for LUA
* ----------------------------------------------------------------------------- */
%{
#include <string>

View file

@ -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 typemaps for LUA
*
* Author : Mark Gossage (mark@gossage.cjb.net)
************************************************************************/
* std::vector typemaps for LUA
* ----------------------------------------------------------------------------- */
%{
#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++; %}
%enddef
*/
*/

View file

@ -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
*
* SWIG Library file containing the main typemap code to support Lua modules.
* ----------------------------------------------------------------------------- */
/***********************************************************************
*
* This file contains the main typemap code to support Lua modules
*

View file

@ -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$
*
* math.i
* Dave Beazley
* March 24, 1996
* SWIG file for floating point operations
*
*/

View file

@ -1,9 +1,9 @@
/* -*- c -*-
* -----------------------------------------------------------------------
* swig_lib/mzscheme/mzrun.swg
*
* Author: John Lenz <lenz@cs.wisc.edu>
* ----------------------------------------------------------------------- */
/* -----------------------------------------------------------------------------
* 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.
*
* mzrun.swg
* ----------------------------------------------------------------------------- */
#include <stdio.h>
#include <string.h>

View file

@ -1,6 +1,12 @@
/* SWIG Configuration File for MzScheme. -*-c-*-
This file is parsed by SWIG before reading any other interface
file. */
/* -----------------------------------------------------------------------------
* 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.
*
* mzscheme.swg
*
* SWIG Configuration File for MzScheme.
* This file is parsed by SWIG before reading any other interface file.
* ----------------------------------------------------------------------------- */
/* Include headers */
%runtime "swigrun.swg" // Common C API type-checking code

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for STL - common utilities
// Luigi Ballabio
// Aug 3, 2002
//
// MzScheme implementation
/* -----------------------------------------------------------------------------
* 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_common.i
*
* SWIG typemaps for STL - common utilities
* ----------------------------------------------------------------------------- */
%include <std/std_except.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::map
// Luigi Ballabio
// Jan. 2003
//
// MzScheme implementation
/* -----------------------------------------------------------------------------
* 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_map.i
*
* SWIG typemaps for std::map
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::pair
// Luigi Ballabio
// July 2003
//
// MzScheme implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::pair
* ----------------------------------------------------------------------------- */
%include <std_common.i>
%include <exception.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::string types
// Luigi Ballabio
// Apr 8, 2002
//
// MzScheme implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::string types
* ----------------------------------------------------------------------------- */
// ------------------------------------------------------------------------
// std::string is typemapped by value

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::vector
// Luigi Ballabio
// Apr 8, 2002
//
// MzScheme implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::vector
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -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_string.i>
%include <std_vector.i>

View file

@ -1,9 +1,9 @@
/* typemaps.i --- mzscheme typemaps -*- c -*-
Copyright 2000, 2001, 2004, 2006 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
Based on code written by Oleg Tolmatcev.
$Id$
*/
/* -----------------------------------------------------------------------------
* 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 MzScheme module handles all types uniformly via typemaps. Here
are the definitions. */

View file

@ -1,15 +1,14 @@
/* -*- C++ -*-
* cstring.i
* $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.
*
* Author(s): Art Yerkes
* Modified from David Beazley (beazley@cs.uchicago.edu)
* cstring.i
*
* This file provides typemaps and macros for dealing with various forms
* of C character string handling. The primary use of this module
* is in returning character data that has been allocated or changed in
* some way.
*/
* ----------------------------------------------------------------------------- */
%include <fragments.i>

View file

@ -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
*
* This file contains support for director classes that proxy
* method calls from C++ to Ocaml extensions.
* This file contains support for director classes that proxy
* method calls from C++ to Ocaml extensions.
*
* Modified for Ocaml by : Art Yerkes
* Original Author : Mark Rose (mrose@stm.lbl.gov)
************************************************************************/
* ----------------------------------------------------------------------------- */
#ifdef __cplusplus

View file

@ -1,7 +1,11 @@
/* SWIG Configuration File for Ocaml. -*-c-*-
Modified from mzscheme.i
This file is parsed by SWIG before reading any other interface
file. */
/* -----------------------------------------------------------------------------
* 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.
*
* ocaml.i
*
* SWIG Configuration File for Ocaml
* ----------------------------------------------------------------------------- */
%runtime %{
#define SWIGSTATIC static

View file

@ -1,10 +1,11 @@
/* -*-c-*-
* -----------------------------------------------------------------------
* ocaml/ocamldec.swg
* Copyright (C) 2000, 2001 Matthias Koeppe
/* -----------------------------------------------------------------------------
* 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.
*
* ocamldec.swg
*
* Ocaml runtime code -- declarations
* ----------------------------------------------------------------------- */
* ----------------------------------------------------------------------------- */
#include <stdio.h>
#include <string.h>

View file

@ -1,5 +1,5 @@
#ifndef __ocaml_ocamlkw_swg__
#define __ocaml_ocamlkw_swg__
#ifndef OCAML_OCAMLKW_SWG_
#define OCAML_OCAMLKW_SWG_
/* Warnings for Ocaml keywords */
#define OCAMLKW(x) %namewarn("314:" #x " is a ocaml keyword and it will properly renamed") #x
@ -61,4 +61,4 @@ OCAMLKW(with);
#undef OCAMLKW
#endif //__ocaml_ocamlkw_swg__
#endif //OCAML_OCAMLKW_SWG_

View file

@ -1,10 +1,11 @@
// -*- C++ -*-
// SWIG typemaps for STL - common utilities
// Art Yerkes
// Modified from: Luigi Ballabio
// Aug 3, 2002
//
// Ocaml implementation
/* -----------------------------------------------------------------------------
* 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_common.i
*
* SWIG typemaps for STL - common utilities
* ----------------------------------------------------------------------------- */
%include <std/std_except.i>

View file

@ -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
%rename(__getitem__) std::deque::getitem;

View file

@ -1,10 +1,11 @@
// -*- C++ -*-
// SWIG typemaps for std::list types
// Art Yerkes
// Modified from: Jing Cao
// Aug 1st, 2002
//
// Python implementation
/* -----------------------------------------------------------------------------
* 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_list.i
*
* SWIG typemaps for std::list types
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::map
// Luigi Ballabio
// Jan. 2003
//
// Common implementation
/* -----------------------------------------------------------------------------
* 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_map.i
*
* SWIG typemaps for std::map
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::pair
// Luigi Ballabio
// July 2003
//
// Common implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::pair
* ----------------------------------------------------------------------------- */
%include <std_common.i>
%include <exception.i>

View file

@ -1,10 +1,11 @@
// -*- C++ -*-
// SWIG typemaps for std::string
// Art Yerkes
// Modified from: Luigi Ballabio
// Apr 8, 2002
//
// Ocaml implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::string
* ----------------------------------------------------------------------------- */
// ------------------------------------------------------------------------
// std::string is typemapped by value

View file

@ -1,10 +1,11 @@
// -*- C++ -*-
// SWIG typemaps for std::vector types
// Art Yerkes
// Modified from: Luigi Ballabio
// Apr 8, 2002
//
// Ocaml implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::vector types
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -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_string.i>
%include <std_vector.i>

View file

@ -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
* ------------------------------------------------------------ */
* ----------------------------------------------------------------------------- */
%typecheck(SWIG_TYPECHECK_INTEGER) char, signed char, const char &, const signed char & {
if( !Is_block($input) ) $1 = 0;

View file

@ -1,13 +1,12 @@
/* typemaps.i --- ocaml typemaps -*- c -*-
Ocaml conversion by Art Yerkes, modified from mzscheme/typemaps.i
Copyright 2000, 2001 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
Based on code written by Oleg Tolmatcev.
$Id$
*/
/* The Ocaml module handles all types uniformly via typemaps. Here
are the definitions. */
/* -----------------------------------------------------------------------------
* 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 Ocaml module handles all types uniformly via typemaps. Here
* are the definitions.
* ----------------------------------------------------------------------------- */
/* Pointers */

View file

@ -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
%subsection "perlmain.i"

View file

@ -1,11 +1,11 @@
/***********************************************************************
/* -----------------------------------------------------------------------------
* perlrun.swg
*
* This file contains the runtime support for Perl modules
* and includes code for managing global variables and pointer
* type checking.
*
************************************************************************/
* This file contains the runtime support for Perl modules
* and includes code for managing global variables and pointer
* type checking.
* ----------------------------------------------------------------------------- */
#ifdef PERL_OBJECT
#define SWIG_PERL_OBJECT_DECL CPerlObj *SWIGUNUSEDPARM(pPerl),
#define SWIG_PERL_OBJECT_CALL pPerl,

View file

@ -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

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for STL - common utilities
// Luigi Ballabio
// May 16, 2003
//
// Perl implementation
/* -----------------------------------------------------------------------------
* 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_common.i
*
* SWIG typemaps for STL - common utilities
* ----------------------------------------------------------------------------- */
%include <std/std_except.i>

View file

@ -1,10 +1,11 @@
//
// SWIG typemaps for std::list types
// Lluis Padro
// June 3, 2003
// based on existing std_vector.i
// Perl implementation
/* -----------------------------------------------------------------------------
* 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_list.i
*
* SWIG typemaps for std::list types
* ----------------------------------------------------------------------------- */
%include <std_common.i>
%include <exception.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::map
// Luigi Ballabio
// Jan. 2003
//
// Common implementation
/* -----------------------------------------------------------------------------
* 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_map.i
*
* SWIG typemaps for std::map
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::pair
// Luigi Ballabio
// July 2003
//
// Common implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::pair
* ----------------------------------------------------------------------------- */
%include <std_common.i>
%include <exception.i>

View file

@ -1,13 +1,11 @@
//
// SWIG typemaps for std::vector types
// Luigi Ballabio
// May 7, 2002
// Chris Seatory
// August 5, 2002
// Igor Bely
// May 16, 2003
//
// Perl implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::vector types
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -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_string.i>
%include <std_vector.i>

View file

@ -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)
%include <typemaps/typemaps.swg>
#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.
// These remap a C pointer to be an "INPUT" value which is passed by value

View file

@ -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,
unsigned int,

View file

@ -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 *,
char []

View file

@ -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
*
* PHP 4 configuration file
*
*/
* PHP4 configuration file
* ----------------------------------------------------------------------------- */
%runtime "swigrun.swg" // Common C API type-checking code
%runtime "php4run.swg" // Php4 runtime functions

View file

@ -1,7 +1,12 @@
//
// The 'keywords' in PHP are global, ie, the following names are fine
// when used as class methods.
//
/* -----------------------------------------------------------------------------
* 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.
*
* 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`

View file

@ -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
*
*/
* ----------------------------------------------------------------------------- */
#ifdef __cplusplus
extern "C" {

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for STL - common utilities
// Luigi Ballabio
// Aug 17, 2003
//
// PHP implementation
/* -----------------------------------------------------------------------------
* 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_common.i
*
* SWIG typemaps for STL - common utilities
* ----------------------------------------------------------------------------- */
%include <std/std_except.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::map
// Luigi Ballabio
// Jan. 2003
//
// Common implementation
/* -----------------------------------------------------------------------------
* 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_map.i
*
* SWIG typemaps for std::map
* ----------------------------------------------------------------------------- */
%include <std_common.i>

View file

@ -1,9 +1,11 @@
//
// SWIG typemaps for std::pair
// Luigi Ballabio
// July 2003
//
// Common implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::pair
* ----------------------------------------------------------------------------- */
%include <std_common.i>
%include <exception.i>

View file

@ -1,10 +1,11 @@
//
// SWIG typemaps for std::string types
// Luigi Ballabio
// May 7, 2002
//
// PHP implementation
/* -----------------------------------------------------------------------------
* 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
*
* SWIG typemaps for std::string types
* ----------------------------------------------------------------------------- */
// ------------------------------------------------------------------------
// std::string is typemapped by value

Some files were not shown because too many files have changed in this diff Show more