Common template for head of each file detailing licence, distribution and authors information

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8975 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-03-07 00:35:17 +00:00
commit c284e878e5
15 changed files with 140 additions and 121 deletions

View file

@ -1,11 +1,14 @@
/* longlongs.i /* -----------------------------------------------------------------------------
* See the LICENSE file for information on copyright, usage and redistribution
Typemap addition for support of 'long long' type and 'unsigned long long * of SWIG, and the README file for authors - http://www.swig.org/release.html.
Makes use of swig-def-foreign-class, so this header should be loaded *
after allegrocl.swg and after any custom user identifier-conversion * longlongs.i
functions have been defined. *
* Typemap addition for support of 'long long' type and 'unsigned long long
*/ * Makes use of swig-def-foreign-class, so this header should be loaded
* after allegrocl.swg and after any custom user identifier-conversion
* functions have been defined.
* ----------------------------------------------------------------------------- */
%typemap(in) long long, unsigned long long "$1 = $input;"; %typemap(in) long long, unsigned long long "$1 = $input;";
%typemap(out) long long, unsigned long long "$result = &$1;"; %typemap(out) long long, unsigned long long "$result = &$1;";

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.
*
* chicken.swg * chicken.swg
* *
* CHICKEN configuration module. * CHICKEN configuration module.

View file

@ -1,5 +1,5 @@
#ifndef __chicken_chickenkw_swg__ #ifndef CHICKEN_CHICKENKW_SWG_
#define __chicken_chickenkw_swg__ #define CHICKEN_CHICKENKW_SWG_
/* Warnings for certain CHICKEN keywords. From Section 7.1.1 of /* Warnings for certain CHICKEN keywords. From Section 7.1.1 of
Revised^5 Report on the Algorithmic Language Scheme */ Revised^5 Report on the Algorithmic Language Scheme */
@ -28,4 +28,4 @@ CHICKENKW(quasiquote);
#undef CHICKENKW #undef CHICKENKW
#endif //__chicken_chickenkw_swg__ #endif //CHICKEN_CHICKENKW_SWG_

View file

@ -1,9 +1,10 @@
/* -*- c -*- /* -----------------------------------------------------------------------------
* ----------------------------------------------------------------------- * See the LICENSE file for information on copyright, usage and redistribution
* swig_lib/chicken/chickenrun.swg * of SWIG, and the README file for authors - http://www.swig.org/release.html.
* *
* Author: John Lenz <lenz@cs.wisc.edu> * chickenrun.swg
* ----------------------------------------------------------------------- */ *
* ----------------------------------------------------------------------------- */
#include <chicken.h> #include <chicken.h>
#include <stdio.h> #include <stdio.h>

View file

@ -1,5 +1,11 @@
// SWIG typemaps for std::string /* -----------------------------------------------------------------------------
// copied from the guile std_string.i and modified * 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
* ----------------------------------------------------------------------------- */
%{ %{
#include <string> #include <string>

View file

@ -1,26 +1,15 @@
// /* -----------------------------------------------------------------------------
// SWIG Typemap library * See the LICENSE file for information on copyright, usage and redistribution
// Jonah Beckford * of SWIG, and the README file for authors - http://www.swig.org/release.html.
// Nov 22, 2002 *
// Derived: Dave Beazley (Author); Lib/python/typemaps.i; May 5, 1997 * typemaps.i
// *
// CHICKEN implementation * Pointer handling
// *
// This library provides standard typemaps for modifying SWIG's behavior. * These mappings provide support for input/output arguments and
// With enough entries in this file, I hope that very few people actually * common uses for C/C++ pointers. INOUT mappings allow for C/C++
// ever need to write a typemap. * pointer variables in addition to input/output arguments.
// * ----------------------------------------------------------------------------- */
// Disclaimer : Unless you really understand how typemaps work, this file
// probably isn't going to make much sense.
//
// ------------------------------------------------------------------------
// Pointer handling
//
// These mappings provide support for input/output arguments and
// common uses for C/C++ pointers. INOUT mappings allow for C/C++
// pointer variables in addition to input/output arguments.
// ------------------------------------------------------------------------
// 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

View file

@ -1,7 +1,12 @@
/* /* -----------------------------------------------------------------------------
* C complex typemaps * See the LICENSE file for information on copyright, usage and redistribution
* ISO C99: 7.3 Complex arithmetic <complex.h> * of SWIG, and the README file for authors - http://www.swig.org/release.html.
*/ *
* ccomplex.i
*
* C complex typemaps
* ISO C99: 7.3 Complex arithmetic <complex.h>
* ----------------------------------------------------------------------------- */
%include <pycomplex.swg> %include <pycomplex.swg>

View file

@ -1,11 +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 Python extensions. * method calls from C++ to Python extensions.
* * ----------------------------------------------------------------------------- */
* Author : Mark Rose (mrose@stm.lbl.gov)
************************************************************************/
#ifdef __cplusplus #ifdef __cplusplus

View file

@ -1,13 +1,15 @@
#ifndef SWIG_DIRECTOR_PYTHON_HEADER_ /* -----------------------------------------------------------------------------
#define SWIG_DIRECTOR_PYTHON_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.
*
* director_h.swg * director_h.swg
* *
* This file contains support for director classes that proxy * This file contains support for director classes that proxy
* method calls from C++ to Python extensions. * method calls from C++ to Python extensions.
* * ----------------------------------------------------------------------------- */
* Author : Mark Rose (mrose@stm.lbl.gov)
************************************************************************/ #ifndef SWIG_DIRECTOR_PYTHON_HEADER_
#define SWIG_DIRECTOR_PYTHON_HEADER_
#ifdef __cplusplus #ifdef __cplusplus

View file

@ -1,13 +1,16 @@
// /* -----------------------------------------------------------------------------
// embed15.i * See the LICENSE file for information on copyright, usage and redistribution
// SWIG file embedding the Python interpreter in something else. * of SWIG, and the README file for authors - http://www.swig.org/release.html.
// This file is based on Python-1.5. It will not work with *
// earlier versions. * embed15.i
// *
// This file makes it possible to extend Python and all of its * SWIG file embedding the Python interpreter in something else.
// built-in functions without having to hack it's setup script. * This file is based on Python-1.5. It will not work with
// * earlier versions.
*
* This file makes it possible to extend Python and all of its
* built-in functions without having to hack it's setup script.
* ----------------------------------------------------------------------------- */
#ifdef AUTODOC #ifdef AUTODOC
%subsection "embed.i" %subsection "embed.i"

View file

@ -1,9 +1,12 @@
/* /* -----------------------------------------------------------------------------
Typemaps for 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.
From the ideas of Luigi *
luigi.ballabio@fastwebnet.it * file.i
*/ *
* Typemaps for FILE*
* From the ideas of Luigi Ballabio
* ----------------------------------------------------------------------------- */
%types(FILE *); %types(FILE *);

View file

@ -1,14 +1,20 @@
// /* -----------------------------------------------------------------------------
// Python sequence <-> C++ container 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.
// This wrapper, and its iterator, allows a general use (and reuse) of *
// the the mapping between C++ and Python, thanks to the C++ * pycontainer.swg
// templates. *
// * Python sequence <-> C++ container wrapper
// Of course, it needs the C++ compiler to support templates, but *
// since we will use this wrapper with the STL containers, that should * This wrapper, and its iterator, allows a general use (and reuse) of
// be the case. * the the mapping between C++ and Python, thanks to the C++
// * templates.
*
* Of course, it needs the C++ compiler to support templates, but
* since we will use this wrapper with the STL containers, that should
* be the case.
* ----------------------------------------------------------------------------- */
%{ %{
#include <iostream> #include <iostream>
%} %}

View file

@ -1,11 +1,17 @@
// /* -----------------------------------------------------------------------------
// Implemet a python 'output' iterator for Python 2.2 or higher. * 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.
// Users can derive form the PySwigIterator to implemet their *
// own iterators. As an example (real one since we use it for STL/STD * pyiterators.swg
// containers), the template PySwigIterator_T does the *
// implementation for genereic C++ iterators. * Implement a python 'output' iterator for Python 2.2 or higher.
// *
* Users can derive form the PySwigIterator to implemet their
* own iterators. As an example (real one since we use it for STL/STD
* containers), the template PySwigIterator_T does the
* implementation for genereic C++ iterators.
* ----------------------------------------------------------------------------- */
%include <std_common.i> %include <std_common.i>
%fragment("PySwigIterator","header") { %fragment("PySwigIterator","header") {

View file

@ -1,12 +1,14 @@
/*********************************************************************** /* -----------------------------------------------------------------------------
* 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.
*
* pyrun.swg * pyrun.swg
* *
* This file contains the runtime support for Python modules * This file contains the runtime support for Python modules
* and includes code for managing global variables and pointer * and includes code for managing global variables and pointer
* type checking. * type checking.
* *
* Author : David Beazley (beazley@cs.uchicago.edu) * ----------------------------------------------------------------------------- */
************************************************************************/
/* Common SWIG API */ /* Common SWIG API */

View file

@ -1,24 +1,13 @@
// /* -----------------------------------------------------------------------------
// SWIG Typemap 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 5, 1997 *
// * typemaps.i
// Python implementation *
// * Pointer handling
// This library provides standard typemaps for modifying SWIG's behavior. * These mappings provide support for input/output arguments and common
// With enough entries in this file, I hope that very few people actually * uses for C/C++ pointers.
// ever need to write a typemap. * ----------------------------------------------------------------------------- */
//
// Disclaimer : Unless you really understand how typemaps work, this file
// probably isn't going to make much sense.
//
// ------------------------------------------------------------------------
// Pointer handling
//
// These mappings provide support for input/output arguments and common
// uses for C/C++ 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