cosmetics

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-03-07 22:02:54 +00:00
commit 797317163a
16 changed files with 90 additions and 103 deletions

View file

@ -27,12 +27,12 @@ static contract Rules[] = {
{ NULL, NULL}
};
/************************************************************************
/* ----------------------------------------------------------------------------
* class Contracts:
*
* This class defines the functions that need to be used in
* "wrap by contract" module.
*************************************************************************/
* ------------------------------------------------------------------------- */
class Contracts : public Dispatcher {
String *make_expression(String *s, Node *n);

View file

@ -1454,9 +1454,9 @@ public:
return ret;
}
/***************************************************************************
/* ----------------------------------------------------------------------------
* BEGIN C++ Director Class modifications
***************************************************************************/
* ------------------------------------------------------------------------- */
/*
* Modified polymorphism code for Ocaml language module.

View file

@ -1061,38 +1061,38 @@ public:
return SWIG_OK;
}
/****************************************************************************
*** OBJECT-ORIENTED FEATURES
****************************************************************************
*** These extensions provide a more object-oriented interface to C++
*** classes and structures. The code here is based on extensions
*** provided by David Fletcher and Gary Holt.
***
*** I have generalized these extensions to make them more general purpose
*** and to resolve object-ownership problems.
***
*** The approach here is very similar to the Python module :
*** 1. All of the original methods are placed into a single
*** package like before except that a 'c' is appended to the
*** package name.
***
*** 2. All methods and function calls are wrapped with a new
*** perl function. While possibly inefficient this allows
*** us to catch complex function arguments (which are hard to
*** track otherwise).
***
*** 3. Classes are represented as tied-hashes in a manner similar
*** to Gary Holt's extension. This allows us to access
*** member data.
***
*** 4. Stand-alone (global) C functions are modified to take
*** tied hashes as arguments for complex datatypes (if
*** appropriate).
***
*** 5. Global variables involving a class/struct is encapsulated
*** in a tied hash.
***
****************************************************************************/
/* ----------------------------------------------------------------------------
* OBJECT-ORIENTED FEATURES
*
* These extensions provide a more object-oriented interface to C++
* classes and structures. The code here is based on extensions
* provided by David Fletcher and Gary Holt.
*
* I have generalized these extensions to make them more general purpose
* and to resolve object-ownership problems.
*
* The approach here is very similar to the Python module :
* 1. All of the original methods are placed into a single
* package like before except that a 'c' is appended to the
* package name.
*
* 2. All methods and function calls are wrapped with a new
* perl function. While possibly inefficient this allows
* us to catch complex function arguments (which are hard to
* track otherwise).
*
* 3. Classes are represented as tied-hashes in a manner similar
* to Gary Holt's extension. This allows us to access
* member data.
*
* 4. Stand-alone (global) C functions are modified to take
* tied hashes as arguments for complex datatypes (if
* appropriate).
*
* 5. Global variables involving a class/struct is encapsulated
* in a tied hash.
*
* ------------------------------------------------------------------------- */
void setclassname(Node *n) {

View file

@ -2360,9 +2360,9 @@ public:
/*************************************************************************************
/* ----------------------------------------------------------------------------
* BEGIN C++ Director Class modifications
************************************************************************************/
* ------------------------------------------------------------------------- */
/* C++/Python polymorphism demo code, copyright (C) 2002 Mark Rose <mrose@stm.lbl.gov>
*
@ -2558,9 +2558,9 @@ public:
return result;
}
/*************************************************************************************
/* ----------------------------------------------------------------------------
* END of C++ Director Class modifications
************************************************************************************/
* ------------------------------------------------------------------------- */
/* ------------------------------------------------------------

View file

@ -102,13 +102,13 @@ protected:
AccessMode cplus_mode;
};
/************************************************************************
/* ----------------------------------------------------------------------------
* class language:
*
* This class defines the functions that need to be supported by the
* scripting language being used. The translator calls these virtual
* functions to output different types of code for different languages.
*************************************************************************/
* ------------------------------------------------------------------------- */
class Language : public Dispatcher {
public: