Moved non static function declarations from source files into header files

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5602 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-12-28 21:48:39 +00:00
commit c00aaf0f5b
14 changed files with 57 additions and 108 deletions

View file

@ -12,14 +12,18 @@
* $Header$
* ----------------------------------------------------------------------------- */
#ifndef _SWIGCORE_H
#define _SWIGCORE_H
#ifndef SWIGCORE_H_
#define SWIGCORE_H_
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <assert.h>
#ifdef __cplusplus
extern "C" {
#endif
#include "doh.h"
/* Status codes */
@ -486,13 +490,13 @@ extern void Swig_typemap_attach_parms(const String_or_char *op, ParmList *parm
extern void Swig_fragment_register(String *name, String *section, String *code);
extern void Swig_fragment_emit(String *name);
/* hacks defined in C++ ! */
extern int Swig_need_protected();
#ifdef __cplusplus
}
#endif
#endif

View file

@ -12,9 +12,10 @@
char cvsroot_typemap_c[] = "$Header$";
#include "swig.h"
#include "cparse.h"
#include <ctype.h>
void replace_embedded_typemap(String *s, Wrapper *f);
static void replace_embedded_typemap(String *s, Wrapper *f);
/* -----------------------------------------------------------------------------
* Typemaps are stored in a collection of nested hash tables. Something like
@ -1437,7 +1438,6 @@ static List *split_embedded(String *s) {
static void split_var(String *s, String **name, String **value) {
char *eq;
char *c;
extern Parm *Swig_cparse_parm(String *s);
eq = Strstr(s,"=");
if (!eq) {
@ -1462,7 +1462,7 @@ static void split_var(String *s, String **name, String **value) {
}
}
void replace_embedded_typemap(String *s, Wrapper *f) {
static void replace_embedded_typemap(String *s, Wrapper *f) {
while (Strstr(s,"$TYPEMAP(")) {
/* Gather the argument */