Fix many instances of "delimeter" to "delimiter".
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9967 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
427a4945be
commit
3777b685a6
7 changed files with 24 additions and 24 deletions
2
CHANGES
2
CHANGES
|
|
@ -3353,7 +3353,7 @@ Version 1.3.26 (October 9, 2005)
|
||||||
07/22/2005: wsfulton
|
07/22/2005: wsfulton
|
||||||
[C#, Java] Fix SWIG_exception usage to work with compilers that don't support empty macro
|
[C#, Java] Fix SWIG_exception usage to work with compilers that don't support empty macro
|
||||||
arguments. Unfortunately this fix will stop usage of SWIG_exception being used within typemaps
|
arguments. Unfortunately this fix will stop usage of SWIG_exception being used within typemaps
|
||||||
that use "" or %{ %} delimeters, but continues to work with typemaps using {} delimeters.
|
that use "" or %{ %} delimiters, but continues to work with typemaps using {} delimiters.
|
||||||
Please use the SWIG_CSharpSetPendingExceptionArgument or SWIG_JavaThrowException methods instead
|
Please use the SWIG_CSharpSetPendingExceptionArgument or SWIG_JavaThrowException methods instead
|
||||||
as SWIG_exception is really intended as a platform independent macro for the SWIG library writers.
|
as SWIG_exception is really intended as a platform independent macro for the SWIG library writers.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -269,8 +269,8 @@ static void set_outdir(const String *c_wrapper_file_dir) {
|
||||||
// Add file delimiter if not present in output directory name
|
// Add file delimiter if not present in output directory name
|
||||||
if (outdir && Len(outdir) != 0) {
|
if (outdir && Len(outdir) != 0) {
|
||||||
const char *outd = Char(outdir);
|
const char *outd = Char(outdir);
|
||||||
if (strcmp(outd + strlen(outd) - strlen(SWIG_FILE_DELIMETER), SWIG_FILE_DELIMETER) != 0)
|
if (strcmp(outd + strlen(outd) - strlen(SWIG_FILE_DELIMITER), SWIG_FILE_DELIMITER) != 0)
|
||||||
Printv(outdir, SWIG_FILE_DELIMETER, NIL);
|
Printv(outdir, SWIG_FILE_DELIMITER, NIL);
|
||||||
}
|
}
|
||||||
// Use the C wrapper file's directory if the output directory has not been set by user
|
// Use the C wrapper file's directory if the output directory has not been set by user
|
||||||
if (!outdir)
|
if (!outdir)
|
||||||
|
|
@ -878,19 +878,19 @@ int SWIG_main(int argc, char *argv[], Language *l) {
|
||||||
// Add language dependent directory to the search path
|
// Add language dependent directory to the search path
|
||||||
{
|
{
|
||||||
String *rl = NewString("");
|
String *rl = NewString("");
|
||||||
Printf(rl, ".%sswig_lib%s%s", SWIG_FILE_DELIMETER, SWIG_FILE_DELIMETER, LangSubDir);
|
Printf(rl, ".%sswig_lib%s%s", SWIG_FILE_DELIMITER, SWIG_FILE_DELIMITER, LangSubDir);
|
||||||
Swig_add_directory(rl);
|
Swig_add_directory(rl);
|
||||||
if (SwigLibWin) {
|
if (SwigLibWin) {
|
||||||
rl = NewString("");
|
rl = NewString("");
|
||||||
Printf(rl, "%s%s%s", SwigLibWin, SWIG_FILE_DELIMETER, LangSubDir);
|
Printf(rl, "%s%s%s", SwigLibWin, SWIG_FILE_DELIMITER, LangSubDir);
|
||||||
Swig_add_directory(rl);
|
Swig_add_directory(rl);
|
||||||
}
|
}
|
||||||
rl = NewString("");
|
rl = NewString("");
|
||||||
Printf(rl, "%s%s%s", SwigLib, SWIG_FILE_DELIMETER, LangSubDir);
|
Printf(rl, "%s%s%s", SwigLib, SWIG_FILE_DELIMITER, LangSubDir);
|
||||||
Swig_add_directory(rl);
|
Swig_add_directory(rl);
|
||||||
}
|
}
|
||||||
|
|
||||||
Swig_add_directory((String *) "." SWIG_FILE_DELIMETER "swig_lib");
|
Swig_add_directory((String *) "." SWIG_FILE_DELIMITER "swig_lib");
|
||||||
if (SwigLibWin)
|
if (SwigLibWin)
|
||||||
Swig_add_directory((String *) SwigLibWin);
|
Swig_add_directory((String *) SwigLibWin);
|
||||||
Swig_add_directory((String *) SwigLib);
|
Swig_add_directory((String *) SwigLib);
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
void PrintIncludeArg() {
|
void PrintIncludeArg() {
|
||||||
Printv(stdout, SWIG_LIB, SWIG_FILE_DELIMETER, ocaml_path, "\n", NIL);
|
Printv(stdout, SWIG_LIB, SWIG_FILE_DELIMITER, ocaml_path, "\n", NIL);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------
|
/* ------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -651,11 +651,11 @@ static String *get_filename(String *str, int *sysfile) {
|
||||||
}
|
}
|
||||||
#if defined(_WIN32) || defined(MACSWIG)
|
#if defined(_WIN32) || defined(MACSWIG)
|
||||||
/* accept Unix path separator on non-Unix systems */
|
/* accept Unix path separator on non-Unix systems */
|
||||||
Replaceall(fn, "/", SWIG_FILE_DELIMETER);
|
Replaceall(fn, "/", SWIG_FILE_DELIMITER);
|
||||||
#endif
|
#endif
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__)
|
||||||
/* accept Windows path separator in addition to Unix path separator */
|
/* accept Windows path separator in addition to Unix path separator */
|
||||||
Replaceall(fn, "\\", SWIG_FILE_DELIMETER);
|
Replaceall(fn, "\\", SWIG_FILE_DELIMITER);
|
||||||
#endif
|
#endif
|
||||||
Seek(fn, 0, SEEK_SET);
|
Seek(fn, 0, SEEK_SET);
|
||||||
return fn;
|
return fn;
|
||||||
|
|
@ -1610,7 +1610,7 @@ String *Preprocessor_parse(String *s) {
|
||||||
if (sysfile || !strlen(dirname))
|
if (sysfile || !strlen(dirname))
|
||||||
dirname = 0;
|
dirname = 0;
|
||||||
if (dirname) {
|
if (dirname) {
|
||||||
dirname[strlen(dirname) - 1] = 0; /* Kill trailing directory delimeter */
|
dirname[strlen(dirname) - 1] = 0; /* Kill trailing directory delimiter */
|
||||||
Swig_push_directory(dirname);
|
Swig_push_directory(dirname);
|
||||||
}
|
}
|
||||||
s2 = Preprocessor_parse(s1);
|
s2 = Preprocessor_parse(s1);
|
||||||
|
|
@ -1746,7 +1746,7 @@ String *Preprocessor_parse(String *s) {
|
||||||
if (sysfile || !strlen(dirname))
|
if (sysfile || !strlen(dirname))
|
||||||
dirname = 0;
|
dirname = 0;
|
||||||
if (dirname) {
|
if (dirname) {
|
||||||
dirname[strlen(dirname) - 1] = 0; /* Kill trailing directory delimeter */
|
dirname[strlen(dirname) - 1] = 0; /* Kill trailing directory delimiter */
|
||||||
Swig_push_directory(dirname);
|
Swig_push_directory(dirname);
|
||||||
}
|
}
|
||||||
s2 = Preprocessor_parse(s1);
|
s2 = Preprocessor_parse(s1);
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,6 @@ char cvsroot_include_c[] = "$Id$";
|
||||||
|
|
||||||
#include "swig.h"
|
#include "swig.h"
|
||||||
|
|
||||||
/* Delimeter used in accessing files and directories */
|
|
||||||
|
|
||||||
static List *directories = 0; /* List of include directories */
|
static List *directories = 0; /* List of include directories */
|
||||||
static String *lastpath = 0; /* Last file that was included */
|
static String *lastpath = 0; /* Last file that was included */
|
||||||
static List *pdirectories = 0; /* List of pushed directories */
|
static List *pdirectories = 0; /* List of pushed directories */
|
||||||
|
|
@ -110,9 +108,9 @@ static List *Swig_search_path_any(int syspath) {
|
||||||
filename = NewStringEmpty();
|
filename = NewStringEmpty();
|
||||||
assert(filename);
|
assert(filename);
|
||||||
#ifdef MACSWIG
|
#ifdef MACSWIG
|
||||||
Printf(filename, "%s", SWIG_FILE_DELIMETER);
|
Printf(filename, "%s", SWIG_FILE_DELIMITER);
|
||||||
#else
|
#else
|
||||||
Printf(filename, ".%s", SWIG_FILE_DELIMETER);
|
Printf(filename, ".%s", SWIG_FILE_DELIMITER);
|
||||||
#endif
|
#endif
|
||||||
Append(slist, filename);
|
Append(slist, filename);
|
||||||
Delete(filename);
|
Delete(filename);
|
||||||
|
|
@ -122,7 +120,7 @@ static List *Swig_search_path_any(int syspath) {
|
||||||
ilen = Len(pdirectories);
|
ilen = Len(pdirectories);
|
||||||
for (i = 0; i < ilen; i++) {
|
for (i = 0; i < ilen; i++) {
|
||||||
filename = NewString(Getitem(pdirectories,i));
|
filename = NewString(Getitem(pdirectories,i));
|
||||||
Append(filename,SWIG_FILE_DELIMETER);
|
Append(filename,SWIG_FILE_DELIMITER);
|
||||||
Append(slist,filename);
|
Append(slist,filename);
|
||||||
Delete(filename);
|
Delete(filename);
|
||||||
}
|
}
|
||||||
|
|
@ -131,7 +129,7 @@ static List *Swig_search_path_any(int syspath) {
|
||||||
ilen = Len(directories);
|
ilen = Len(directories);
|
||||||
for (i = 0; i < ilen; i++) {
|
for (i = 0; i < ilen; i++) {
|
||||||
filename = NewString(Getitem(directories,i));
|
filename = NewString(Getitem(directories,i));
|
||||||
Append(filename,SWIG_FILE_DELIMETER);
|
Append(filename,SWIG_FILE_DELIMITER);
|
||||||
if (syspath) {
|
if (syspath) {
|
||||||
/* If doing a system include, put the system directories first */
|
/* If doing a system include, put the system directories first */
|
||||||
Insert(slist,i,filename);
|
Insert(slist,i,filename);
|
||||||
|
|
@ -350,7 +348,7 @@ char *Swig_file_basename(const String_or_char *filename) {
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
char *Swig_file_filename(const String_or_char *filename) {
|
char *Swig_file_filename(const String_or_char *filename) {
|
||||||
static char tmp[1024];
|
static char tmp[1024];
|
||||||
const char *delim = SWIG_FILE_DELIMETER;
|
const char *delim = SWIG_FILE_DELIMITER;
|
||||||
char *c;
|
char *c;
|
||||||
|
|
||||||
strcpy(tmp, Char(filename));
|
strcpy(tmp, Char(filename));
|
||||||
|
|
@ -367,7 +365,7 @@ char *Swig_file_filename(const String_or_char *filename) {
|
||||||
* ----------------------------------------------------------------------------- */
|
* ----------------------------------------------------------------------------- */
|
||||||
char *Swig_file_dirname(const String_or_char *filename) {
|
char *Swig_file_dirname(const String_or_char *filename) {
|
||||||
static char tmp[1024];
|
static char tmp[1024];
|
||||||
const char *delim = SWIG_FILE_DELIMETER;
|
const char *delim = SWIG_FILE_DELIMITER;
|
||||||
char *c;
|
char *c;
|
||||||
strcpy(tmp, Char(filename));
|
strcpy(tmp, Char(filename));
|
||||||
if (!strstr(tmp, delim)) {
|
if (!strstr(tmp, delim)) {
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,12 @@ extern char *Swig_file_basename(const String_or_char *filename);
|
||||||
extern char *Swig_file_filename(const String_or_char *filename);
|
extern char *Swig_file_filename(const String_or_char *filename);
|
||||||
extern char *Swig_file_dirname(const String_or_char *filename);
|
extern char *Swig_file_dirname(const String_or_char *filename);
|
||||||
|
|
||||||
|
/* Delimiter used in accessing files and directories */
|
||||||
|
|
||||||
#if defined(MACSWIG)
|
#if defined(MACSWIG)
|
||||||
# define SWIG_FILE_DELIMETER ":"
|
# define SWIG_FILE_DELIMITER ":"
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
# define SWIG_FILE_DELIMETER "\\"
|
# define SWIG_FILE_DELIMITER "\\"
|
||||||
#else
|
#else
|
||||||
# define SWIG_FILE_DELIMETER "/"
|
# define SWIG_FILE_DELIMITER "/"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -123,7 +123,7 @@ SwigType *NewSwigType(const String_or_char *initial) {
|
||||||
* static element_size()
|
* static element_size()
|
||||||
*
|
*
|
||||||
* This utility function finds the size of a single type element in a type string.
|
* This utility function finds the size of a single type element in a type string.
|
||||||
* Type elements are always delimeted by periods, but may be nested with
|
* Type elements are always delimited by periods, but may be nested with
|
||||||
* parentheses. A nested element is always handled as a single item.
|
* parentheses. A nested element is always handled as a single item.
|
||||||
*
|
*
|
||||||
* Returns the integer size of the element (which can be used to extract a
|
* Returns the integer size of the element (which can be used to extract a
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue