Test const char [] instead of const char *

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5992 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-06-15 20:12:22 +00:00
commit db374a14f4
21 changed files with 14 additions and 22 deletions

View file

@ -18,7 +18,7 @@ char cvar = 0;
float fvar = 0;
double dvar = 0;
char *strvar = 0;
const char *cstrvar = 0;
const char cstrvar[] = "Goodbye";
int *iptrvar = 0;
char name[256] = "Dave";
char path[256] = "/home/beazley";

View file

@ -17,7 +17,7 @@ extern char cvar;
extern float fvar;
extern double dvar;
extern char *strvar;
extern const char *cstrvar;
extern const char cstrvar[];
extern int *iptrvar;
extern char name[256];

View file

@ -16,7 +16,6 @@ set cvar "S"
set fvar 3.14159
set dvar 2.1828
set strvar "Hello World"
set cstrvar "Goodbye"
set iptrvar [new_int 37]
set ptptr [new_Point 37 42]
set name "Bill"