summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlly Betts <olly@survex.com>2009-07-05 03:47:26 +0000
committerOlly Betts <olly@survex.com>2009-07-05 03:47:26 +0000
commitdc4474c95df06f4dfa4f0942bb76ef8cac266a23 (patch)
treea7765f36bde41acd0d71b69c6b9045c985191cfd
parent31d43ea8c035a00be40391e1981b41fa9e274063 (diff)
downloadswig-dc4474c95df06f4dfa4f0942bb76ef8cac266a23.tar.gz
Use single quotes for string literals since we don't need or want substitutions
to work. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@11361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
-rw-r--r--Source/Modules/php.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Modules/php.cxx b/Source/Modules/php.cxx
index ee69c1864..e3b22f1d3 100644
--- a/Source/Modules/php.cxx
+++ b/Source/Modules/php.cxx
@@ -322,7 +322,7 @@ public:
Printf(f_phpcode, "\n");
Printf(f_phpcode, "// Try to load our extension if it's not already loaded.\n");
- Printf(f_phpcode, "if (!extension_loaded(\"%s\")) {\n", module);
+ Printf(f_phpcode, "if (!extension_loaded('%s')) {\n", module);
Printf(f_phpcode, " if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {\n");
Printf(f_phpcode, " if (!dl('php_%s.dll')) return;\n", module);
Printf(f_phpcode, " } else {\n");
@@ -1383,7 +1383,7 @@ public:
SwigType *t = Getattr(current_class, "classtype");
String *mangled_type = SwigType_manglestr(SwigType_ltype(t));
Printf(output, "\tfunction %s(%s) {\n", methodname, args);
- Printf(output, "\t\tif (is_resource($%s) && get_resource_type($%s) == \"_p%s\") {\n", arg0, arg0, mangled_type);
+ Printf(output, "\t\tif (is_resource($%s) && get_resource_type($%s) == '_p%s') {\n", arg0, arg0, mangled_type);
Printf(output, "\t\t\t$this->%s=$%s;\n", SWIG_PTR, arg0);
Printf(output, "\t\t\treturn;\n");
Printf(output, "\t\t}\n");
@@ -1433,7 +1433,7 @@ public:
class_node = Getattr(zend_types, mangled);
}
if (i.item) {
- Printf(output, "case \"%s\": ", mangled);
+ Printf(output, "case '%s': ", mangled);
} else {
Printf(output, "default: ");
}
@@ -1603,7 +1603,7 @@ public:
}
} else if (Strcmp(type, "include") == 0) {
if (value) {
- Printf(pragma_incl, "include \"%s\";\n", value);
+ Printf(pragma_incl, "include '%s';\n", value);
}
} else if (Strcmp(type, "phpinfo") == 0) {
if (value) {