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,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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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_
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue