Added cvstags

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@54 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Dave Beazley 2000-01-12 04:09:03 +00:00
commit 5eb2509295
34 changed files with 68 additions and 290 deletions

View file

@ -12,6 +12,9 @@
* Please read the file LICENSE for the copyright and terms by which SWIG * Please read the file LICENSE for the copyright and terms by which SWIG
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/************************************************************************** /**************************************************************************
* $Header$ * $Header$
* *

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/*********************************************************************** /***********************************************************************
* $Header$ * $Header$
* *

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/*********************************************************************** /***********************************************************************
* $Header$ * $Header$
* *

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/********************************************************************** /**********************************************************************
* $Header$ * $Header$
* *

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/********************************************************************** /**********************************************************************
* $Header$ * $Header$
* *

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/*********************************************************************** /***********************************************************************
* $Header$ * $Header$
* *

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/*********************************************************************** /***********************************************************************
* $Header$ * $Header$
* *

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
****************************************************************************/ ****************************************************************************/
static char cvsroot[] = "$Header$";
#include "swigcpp.h" #include "swigcpp.h"
#include <ctype.h> #include <ctype.h>

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
****************************************************************************/ ****************************************************************************/
static char cvsroot[] = "$Header$";
#include "swigcpp.h" #include "swigcpp.h"
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------

View file

@ -26,17 +26,10 @@
* *
*******************************************************************************/ *******************************************************************************/
static char cvstag[] = "$Header$";
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// ASCII::ASCII() // ASCII::ASCII()
//
// Constructor. Initializes the ASCII module.
//
// Inputs : None
//
// Output : Documentation module object
//
// Side Effects :
// Sets page-width and indentation.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
ASCII::ASCII() { ASCII::ASCII() {
@ -50,16 +43,6 @@ ASCII::ASCII() {
// //
// Prints a string to the documentation file. Performs line wrapping and // Prints a string to the documentation file. Performs line wrapping and
// other formatting. // other formatting.
//
// Inputs :
// s = NULL terminate ASCII string
// margin = Number of characters to be inserted on left side
// mode = If set, text will be reformatted. Otherwise, it's
// printed verbatim (with indentation).
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::print_string(char *s, int margin, int mode) { void ASCII::print_string(char *s, int margin, int mode) {
@ -154,13 +137,6 @@ void ASCII::print_string(char *s, int margin, int mode) {
// void ASCII::print_decl(DocEntry *de) // void ASCII::print_decl(DocEntry *de)
// //
// Prints the documentation entry corresponding to a declaration // Prints the documentation entry corresponding to a declaration
//
// Inputs :
// de = Documentation entry (which should be for a declaration)
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::print_decl(DocEntry *de) { void ASCII::print_decl(DocEntry *de) {
@ -198,13 +174,6 @@ void ASCII::print_decl(DocEntry *de) {
// //
// Prints the documentation for a block of text. Will strip any leading white // Prints the documentation for a block of text. Will strip any leading white
// space from the text block. // space from the text block.
//
// Inputs :
// de = Documentation entry of text
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::print_text(DocEntry *de) { void ASCII::print_text(DocEntry *de) {
@ -221,13 +190,6 @@ void ASCII::print_text(DocEntry *de) {
// void ASCII::title(DocEntry *de) // void ASCII::title(DocEntry *de)
// //
// Sets the title of the documentation file. // Sets the title of the documentation file.
//
// Inputs :
// de = Documentation entry of the title.
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::title(DocEntry *de) { void ASCII::title(DocEntry *de) {
@ -260,15 +222,6 @@ void ASCII::title(DocEntry *de) {
// //
// Starts a new section. Will underline major sections and subsections, but // Starts a new section. Will underline major sections and subsections, but
// not minor subsections. // not minor subsections.
//
// Inputs :
// de = Documentation entry of the section
// sectnum = Section number.
//
// Output : None
//
// Side Effects :
// Forces a new subsection to be created within the ASCII module.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::newsection(DocEntry *de,int sectnum) { void ASCII::newsection(DocEntry *de,int sectnum) {
@ -326,13 +279,6 @@ void ASCII::newsection(DocEntry *de,int sectnum) {
// //
// Ends the current section. It is an error to call this without having first // Ends the current section. It is an error to call this without having first
// called newsection(). // called newsection().
//
// Inputs : None
//
// Output : None
//
// Side Effects :
// Pops out of the current section, moving back into the parent section
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::endsection() { void ASCII::endsection() {
@ -344,12 +290,6 @@ void ASCII::endsection() {
// //
// Prints a small dashed line that is used to designate the end of C++ class // Prints a small dashed line that is used to designate the end of C++ class
// subsections. // subsections.
//
// Inputs : None
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::separator() { void ASCII::separator() {
@ -363,12 +303,6 @@ void ASCII::separator() {
// void ASCII::init(char *filename) // void ASCII::init(char *filename)
// //
// Initializes the documentation module and opens up the documentation file. // Initializes the documentation module and opens up the documentation file.
//
// Inputs : filename = name of documentation file (without suffix)
//
// Output : None
//
// Side Effects : Opens the documentation file.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::init(char *filename) { void ASCII::init(char *filename) {
@ -388,12 +322,6 @@ void ASCII::init(char *filename) {
// void ASCII::close() // void ASCII::close()
// //
// Closes the documentation module. This function should only be called once // Closes the documentation module. This function should only be called once
//
// Inputs : None
//
// Output : None
//
// Side Effects : Closes the documentation file.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::close(void) { void ASCII::close(void) {
@ -409,14 +337,6 @@ void ASCII::close(void) {
// //
// Looks for style parameters that the user might have supplied using the // Looks for style parameters that the user might have supplied using the
// %style directive. Unrecognized options are simply ignored. // %style directive. Unrecognized options are simply ignored.
//
// Inputs :
// name = name of the style parameter
// value = value of the style parameter (optional)
//
// Output : None
//
// Side Effects : Can change internal settings of 'indent' and 'columns' members.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void ASCII::style(char *name, char *value) { void ASCII::style(char *name, char *value) {
@ -435,14 +355,6 @@ void ASCII::style(char *name, char *value) {
// void ASCII::parse_args(int argc, char **argv) // void ASCII::parse_args(int argc, char **argv)
// //
// Function for processing options supplied on the SWIG command line. // Function for processing options supplied on the SWIG command line.
//
// Inputs :
// argc = Number of arguments
// argv = Argument strings
//
// Output : None
//
// Side Effects : May set various internal parameters.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
static char *ascii_usage = "\ static char *ascii_usage = "\

View file

@ -42,6 +42,8 @@
* *
*******************************************************************************/ *******************************************************************************/
static char cvstag[] = "$Header$";
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// struct Comment // struct Comment
// //
@ -338,12 +340,6 @@ DocEntryList *DocEntryList::doc_list = 0;
// //
// Constructor. Creates a new comment handler. Sets up some default values // Constructor. Creates a new comment handler. Sets up some default values
// for comment handling. // for comment handling.
//
// Inputs : None
//
// Output : New CommentHandler object.
//
// Side Effects : Sets default comment handling parameters.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
CommentHandler::CommentHandler() { CommentHandler::CommentHandler() {
@ -362,13 +358,6 @@ CommentHandler::CommentHandler() {
// //
// Constructor. Creates a new comment handler, but copies attributes from // Constructor. Creates a new comment handler, but copies attributes from
// another handler. // another handler.
//
// Inputs :
// c = A different comment handler.
//
// Output : A new CommentHandler object.
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
CommentHandler::CommentHandler(CommentHandler *c) { CommentHandler::CommentHandler(CommentHandler *c) {
@ -387,12 +376,6 @@ CommentHandler::CommentHandler(CommentHandler *c) {
// //
// Destructor. Destroys a comment handler. Does nothing interesting at the // Destructor. Destroys a comment handler. Does nothing interesting at the
// moment. // moment.
//
// Inputs : None
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
CommentHandler::~CommentHandler() { CommentHandler::~CommentHandler() {
@ -416,8 +399,6 @@ CommentHandler::~CommentHandler() {
// col = Starting column of the comment // col = Starting column of the comment
// file = File in which the comment was located. // file = File in which the comment was located.
// //
// Output : None
//
// Side Effects : // Side Effects :
// Saves the comment in an internal linked list. // Saves the comment in an internal linked list.
// If multiple comments appear in succession, some may end up // If multiple comments appear in succession, some may end up
@ -468,10 +449,6 @@ void CommentHandler::add_comment(char *text, int line_num, int col, char *file)
// //
// We will place the doc entry into our documentation list and then // We will place the doc entry into our documentation list and then
// check it to see if any comments are sitting around. // check it to see if any comments are sitting around.
//
// Inputs : d = Documentation Entry
//
// Output : None
// //
// Side Effects : // Side Effects :
// May attach comments to the documentation entry. In this case, // May attach comments to the documentation entry. In this case,
@ -498,14 +475,6 @@ void CommentHandler::set_entry(DocEntry *d) {
// Checks all documentation entries and sees if there are any comments available. // Checks all documentation entries and sees if there are any comments available.
// If so, they are attached. This function is usually only called upon completion // If so, they are attached. This function is usually only called upon completion
// of parsing. // of parsing.
//
// Inputs : None
//
// Output : None
//
// Side Effects :
// Removes documentation entries and comments from internal lists.
//
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void CommentHandler::cleanup() { void CommentHandler::cleanup() {
@ -553,15 +522,6 @@ void CommentHandler::cleanup() {
// untabify - Strip tabs and convert them into spaces. // untabify - Strip tabs and convert them into spaces.
// ignore - Ignore comments // ignore - Ignore comments
// enable - Enable comments // enable - Enable comments
//
// Inputs :
// name - Name of style parameter
// value - Optional parameter value
//
// Output : None
//
// Side Effects : Changes style of comment handler object.
//
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void CommentHandler::style(char *name, char *value) { void CommentHandler::style(char *name, char *value) {
@ -601,15 +561,6 @@ void CommentHandler::style(char *name, char *value) {
// //
// Function for processing command line options given on the SWIG command line. // Function for processing command line options given on the SWIG command line.
// See the help string below for available options. // See the help string below for available options.
//
// Inputs :
// argc = Argument count
// argv = Argument strings
//
// Output : None
//
// Side Effects :
// Changes various style parameters for the top-level CommentHandler.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
static char *comment_usage = "\ static char *comment_usage = "\

View file

@ -15,6 +15,8 @@
#include "internal.h" #include "internal.h"
static char cvstag[] = "$Header$";
/******************************************************************************* /*******************************************************************************
* $Header$ * $Header$
* *
@ -113,6 +115,7 @@
* *
*******************************************************************************/ *******************************************************************************/
// Some status variables // Some status variables
static int Inherit_mode = 0; // Set if we're inheriting members static int Inherit_mode = 0; // Set if we're inheriting members
@ -139,12 +142,6 @@ void cplus_inherit_decl(char **);
// //
// Adds a new datatype to the local datatype hash. This is used to handle // Adds a new datatype to the local datatype hash. This is used to handle
// datatypes defined within a class. // datatypes defined within a class.
//
// Inputs : Datatype to place in hash
//
// Output : None
//
// Side Effects : Updates localtypes hash.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
static void add_local_type(char *type, char *classname) { static void add_local_type(char *type, char *classname) {
@ -166,12 +163,6 @@ void add_local_type(DataType *type, char *classname) {
// Checks to see whether this datatype is part of a class definition. If so, // Checks to see whether this datatype is part of a class definition. If so,
// we update the type-name by appending the class prefix to it. Uses the // we update the type-name by appending the class prefix to it. Uses the
// name stored in current_class unless unavailable. // name stored in current_class unless unavailable.
//
// Inputs : type = Datatype
//
// Output : type is updated with a new name.
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
static void update_local_type(DataType *type) { static void update_local_type(DataType *type) {
@ -193,12 +184,6 @@ static void update_local_type(DataType *type) {
// //
// Updates all of the parameters in a parameter list with the proper C++ prefix // Updates all of the parameters in a parameter list with the proper C++ prefix
// (if neccessary). // (if neccessary).
//
// Inputs : l = Parameter list
//
// Output : Parameter list l is updated (make sure its a copy!)
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
static void update_parms(ParmList *l) { static void update_parms(ParmList *l) {
@ -787,8 +772,6 @@ char *cplus_base_class(char *name) {
// rname = New name of the class (using %name() directive) // rname = New name of the class (using %name() directive)
// ctype = Class type ("class","struct", or "union") // ctype = Class type ("class","struct", or "union")
// //
// Output : None
//
// Side Effects : // Side Effects :
// Creates a new class obect internally. // Creates a new class obect internally.
// Added type-mappings to the SWIG type-checker module. // Added type-mappings to the SWIG type-checker module.

View file

@ -14,9 +14,10 @@
*******************************************************************************/ *******************************************************************************/
#include "internal.h" #include "internal.h"
static char cvsroot[] = "$Header$";
/******************************************************************************* /*******************************************************************************
* $Header$
*
* File : emit.cxx * File : emit.cxx
* *
* This file contains some useful functions for emitting code that would be * This file contains some useful functions for emitting code that would be
@ -29,12 +30,6 @@
// void emit_banner(FILE *f) // void emit_banner(FILE *f)
// //
// Emits the SWIG identifying banner in the wrapper file // Emits the SWIG identifying banner in the wrapper file
//
// Inputs : f = FILE handle
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void emit_banner(FILE *f) { void emit_banner(FILE *f) {
@ -80,10 +75,6 @@ void emit_banner(FILE *f) {
// 0 - No "extern" // 0 - No "extern"
// 1,2 - Normal extern (C/C++) // 1,2 - Normal extern (C/C++)
// f = FILE handle // f = FILE handle
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void emit_extern_var(char *decl, DataType *t, int extern_type, FILE *f) { void emit_extern_var(char *decl, DataType *t, int extern_type, FILE *f) {
@ -146,11 +137,6 @@ void emit_extern_var(char *decl, DataType *t, int extern_type, FILE *f) {
// 2 - extern "C" // 2 - extern "C"
// 3 - Function declaration (with arg names) // 3 - Function declaration (with arg names)
// f = FILE Handle // f = FILE Handle
//
// Output : None
//
// Side Effects : None
//
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void emit_extern_func(char *decl, DataType *t, ParmList *L, int extern_type, FILE *f) { void emit_extern_func(char *decl, DataType *t, ParmList *L, int extern_type, FILE *f) {
@ -220,12 +206,6 @@ void emit_extern_func(char *decl, DataType *t, ParmList *L, int extern_type, FIL
// char *emit_local(int i) // char *emit_local(int i)
// //
// Returns the name of local variable for parameter i // Returns the name of local variable for parameter i
//
// Inputs : i = Parameter number
//
// Output : NULL terminated ASCII string
//
// Side Effects : Result is left in a static local variable.
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
char *emit_local(int i) { char *emit_local(int i) {
@ -245,18 +225,6 @@ char *emit_local(int i) {
// _arg0, _arg1, _arg2, etc... // _arg0, _arg1, _arg2, etc...
// //
// Returns the number of parameters associated with a function. // Returns the number of parameters associated with a function.
//
// Inputs :
// d = Name of function
// rt = Return type
// l = Parameter list
// f = FILE Handle
//
// Output : Number of function arguments
//
// Side Effects : None
//
// Note : This function is obsolete. Use emit_args below...
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
int emit_args(DataType *rt, ParmList *l, FILE *f) { int emit_args(DataType *rt, ParmList *l, FILE *f) {
@ -344,17 +312,6 @@ int emit_args(DataType *rt, ParmList *l, FILE *f) {
// _arg0, _arg1, _arg2, etc... // _arg0, _arg1, _arg2, etc...
// //
// Returns the number of parameters associated with a function. // Returns the number of parameters associated with a function.
//
// Inputs :
// d = Name of function
// rt = Return type
// l = Parameter list
// f = Wrapper function object
//
// Output : Number of function arguments
//
// Side Effects : None
//
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
int emit_args(DataType *rt, ParmList *l, WrapperFunction &f) { int emit_args(DataType *rt, ParmList *l, WrapperFunction &f) {
@ -432,18 +389,6 @@ int emit_args(DataType *rt, ParmList *l, WrapperFunction &f) {
// int emit_func_call(char *decl, DataType *t, ParmList *l, FILE *f) // int emit_func_call(char *decl, DataType *t, ParmList *l, FILE *f)
// //
// Emits code for a function call. // Emits code for a function call.
//
// Inputs :
// decl = name of function
// t = Return datatype
// l = Parameter list
// f = FILE Handle
//
// Output : None
//
// Side Effects : None
//
// Note : This function is obsolete
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void emit_func_call(char *decl, DataType *t, ParmList *l, FILE *f) { void emit_func_call(char *decl, DataType *t, ParmList *l, FILE *f) {
@ -531,17 +476,6 @@ void emit_func_call(char *decl, DataType *t, ParmList *l, FILE *f) {
// - This function checks to see if any sort of exception mechanism // - This function checks to see if any sort of exception mechanism
// has been defined. If so, we emit the function call in an exception // has been defined. If so, we emit the function call in an exception
// handling block. // handling block.
//
// Inputs :
// decl = name of function
// t = Return datatype
// l = Parameter list
// f = WrapperFunction object
//
// Output : None
//
// Side Effects : None
//
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void emit_func_call(char *decl, DataType *t, ParmList *l, WrapperFunction &f) { void emit_func_call(char *decl, DataType *t, ParmList *l, WrapperFunction &f) {
@ -643,12 +577,6 @@ void emit_func_call(char *decl, DataType *t, ParmList *l, WrapperFunction &f) {
// //
// Emits the default C-code to handle pointers. This is normally contained // Emits the default C-code to handle pointers. This is normally contained
// in the SWIG library file 'swigptr.swg' // in the SWIG library file 'swigptr.swg'
//
// Inputs : f = FILE handle
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void emit_hex(FILE *f) { void emit_hex(FILE *f) {
@ -696,16 +624,6 @@ void emit_hex(FILE *f) {
// 2. User_Defined // 2. User_Defined
// Will assign value from a pointer. // Will assign value from a pointer.
// Will return a pointer to current value. // Will return a pointer to current value.
//
//
// Inputs :
// name = Name of variable
// iname = Renamed version of variable
// type = Datatype of the variable
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void emit_set_get(char *name, char *iname, DataType *t) { void emit_set_get(char *name, char *iname, DataType *t) {

View file

@ -15,6 +15,8 @@
#include "internal.h" #include "internal.h"
static char cvsroot[] = "$Header$";
/******************************************************************************* /*******************************************************************************
* $Header$ * $Header$
* *

View file

@ -15,6 +15,8 @@
#include "internal.h" #include "internal.h"
static char cvsroot[] = "$Header$";
/******************************************************************************* /*******************************************************************************
* $Header$ * $Header$
* *

View file

@ -16,6 +16,8 @@
#include "swig.h" #include "swig.h"
#include "html.h" #include "html.h"
static char cvsroot[] = "$Header$";
/******************************************************************************* /*******************************************************************************
* $Header$ * $Header$
* *

View file

@ -18,6 +18,8 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h> #include <ctype.h>
static char cvsroot[] = "$Header$";
/******************************************************************************* /*******************************************************************************
* $Header$ * $Header$
* *

View file

@ -16,6 +16,7 @@
#include "internal.h" #include "internal.h"
#include <ctype.h> #include <ctype.h>
static char cvsroot[] = "$Header$";
// ----------------------------------------------------------------------- // -----------------------------------------------------------------------
// $Header$ // $Header$

View file

@ -25,6 +25,8 @@
#include "swig.h" #include "swig.h"
#include "latex.h" #include "latex.h"
static char cvsroot[] = "$Header$";
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// LATEX::LATEX() // LATEX::LATEX()
// //

View file

@ -21,6 +21,8 @@
* *
***********************************************************************/ ***********************************************************************/
static char cvsroot[] = "$Header$";
#define WRAP #define WRAP
#include "internal.h" #include "internal.h"

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
#include "internal.h" #include "internal.h"
#include <limits.h> #include <limits.h>
#include <ctype.h> #include <ctype.h>

View file

@ -44,6 +44,8 @@
* *
*************************************************************************/ *************************************************************************/
static char cvsroot[] = "$Header$";
#include "internal.h" #include "internal.h"
#include <ctype.h> #include <ctype.h>

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/* ------------------------------------------------------------------------ /* ------------------------------------------------------------------------
$Header$ $Header$

View file

@ -32,6 +32,8 @@
#define yylex yylex #define yylex yylex
static char cvsroot[] = "$Header$";
extern "C" int yylex(); extern "C" int yylex();
void yyerror (char *s); void yyerror (char *s);

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/************************************************************************* /*************************************************************************
* $Header$ * $Header$
* scanner.c * scanner.c

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
#include "internal.h" #include "internal.h"
#include <ctype.h> #include <ctype.h>

View file

@ -46,17 +46,7 @@ static Hash SymHash; // SWIG Symbol table
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// int add_symbol(char *name, DataType *type, char *value) // int add_symbol(char *name, DataType *type, char *value)
// //
// Adds a symbol to the symbol table. Returns -1 if symbol is already in the // Adds a symbol to the symbol table. Returns -1 if symbol is already in the table.
// table.
//
// Inputs :
// name = Symbol name
// type = Datatype (for constants). Optional.
// value = Value string. Optional.
//
// Output : 0 on success, -1 if symbol already exists.
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
int add_symbol(char *name, DataType *type, char *value) { int add_symbol(char *name, DataType *type, char *value) {
@ -86,12 +76,6 @@ int add_symbol(char *name, DataType *type, char *value) {
// int lookup_symbol(char *name) // int lookup_symbol(char *name)
// //
// Checks to see if a symbol is in the symbol table. // Checks to see if a symbol is in the symbol table.
//
// Inputs : name = Symbol name
//
// Output : 0 if not found, 1 if found.
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
int lookup_symbol(char *name) { int lookup_symbol(char *name) {
@ -106,12 +90,6 @@ int lookup_symbol(char *name) {
// DataType *lookup_symtype(char *name) // DataType *lookup_symtype(char *name)
// //
// Returns the datatype of a symbol or NULL if not found. // Returns the datatype of a symbol or NULL if not found.
//
// Inputs : name = Symbol name
//
// Output : Datatype of symbol, NULL if not found.
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
DataType *lookup_symtype(char *name) { DataType *lookup_symtype(char *name) {
@ -127,12 +105,6 @@ DataType *lookup_symtype(char *name) {
// char *lookup_symvalue(char *name) // char *lookup_symvalue(char *name)
// //
// Returns the value associate with a symbol. // Returns the value associate with a symbol.
//
// Inputs : name = Symbol name
//
// Output : Symbol value (or NULL if not present).
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
char *lookup_symvalue(char *name) { char *lookup_symvalue(char *name) {
@ -148,15 +120,6 @@ char *lookup_symvalue(char *name) {
// int update_symbol(char *name, DataType *type, char *value) // int update_symbol(char *name, DataType *type, char *value)
// //
// Updates a symbol (or create it) in the hash table. // Updates a symbol (or create it) in the hash table.
//
// Inputs :
// name = Name of symbol
// type = Datatype of symbol (optional)
// value = Symbol value (optional)
//
// Output : 0
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
int update_symbol(char *name, DataType *type, char *value) { int update_symbol(char *name, DataType *type, char *value) {
@ -185,12 +148,6 @@ int update_symbol(char *name, DataType *type, char *value) {
// void remove_symbol(char *name) // void remove_symbol(char *name)
// //
// Removes a symbol from the symbol table. // Removes a symbol from the symbol table.
//
// Inputs : name = Symbol name.
//
// Output : None
//
// Side Effects : None
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void remove_symbol(char *name) { void remove_symbol(char *name) {

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
#include "internal.h" #include "internal.h"
#include <limits.h> #include <limits.h>

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
/*********************************************************************** /***********************************************************************
* $Header$ * $Header$
* *

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
// ------------------------------------------------------------------ // ------------------------------------------------------------------
// wrapfunc.cxx // wrapfunc.cxx
// //

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
*******************************************************************************/ *******************************************************************************/
static char cvsroot[] = "$Header$";
#include "swigcore.h" #include "swigcore.h"
/******************************************************************************* /*******************************************************************************

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
****************************************************************************/ ****************************************************************************/
static char cvsroot[] = "$Header$";
#include "swigcore.h" #include "swigcore.h"
/******************************************************************************* /*******************************************************************************

View file

@ -13,6 +13,8 @@
* can be used and distributed. * can be used and distributed.
****************************************************************************/ ****************************************************************************/
static char cvsroot[] = "$Header$";
#include "swigcore.h" #include "swigcore.h"
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------

View file

@ -13,6 +13,7 @@
* can be used and distributed. * can be used and distributed.
****************************************************************************/ ****************************************************************************/
static char cvsroot[] = "$Header$";
#include "swigcore.h" #include "swigcore.h"