didou Thu Jan 15 07:43:14 2004 EDT
Modified files:
/phpdoc/en/reference/sesam/functions sesam-diagnostic.xml
Log:
CS : Function declarations follow the 'one true brace' convention
Index: phpdoc/en/reference/sesam/functions/sesam-diagnostic.xml
diff -u phpdoc/en/reference/sesam/functions/sesam-diagnostic.xml:1.5
phpdoc/en/reference/sesam/functions/sesam-diagnostic.xml:1.6
--- phpdoc/en/reference/sesam/functions/sesam-diagnostic.xml:1.5 Tue Jan 6
07:45:31 2004
+++ phpdoc/en/reference/sesam/functions/sesam-diagnostic.xml Thu Jan 15 07:43:14
2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/sesam.xml, last change in rev 1.1 -->
<refentry id="function.sesam-diagnostic">
<refnamediv>
@@ -80,7 +80,8 @@
// Function which prints a formatted error message,
// displaying a pointer to the syntax error in the
// SQL statement
-function PrintReturncode($exec_str) {
+function PrintReturncode($exec_str)
+{
$err = Sesam_Diagnostic();
$colspan=4; // 4 cols for: sqlstate, errlin, errcol, rowcount
if ($err["errlin"] == -1)
@@ -108,12 +109,14 @@
$i = "";
$line = substr ($errstmt, 0, strlen ($errstmt)-strlen($i)+1);
$errstmt = substr($i, 1);
- for ($col=0; $col < $err["errcol"]; ++$col)
+ for ($col=0; $col < $err["errcol"]; ++$col) {
echo (substr($line, $col, 1) == "\t") ? "\t" : ".";
+ }
echo "<span class=\"spanred\">\\</span>\n";
echo "<span class=\"normal\">" . htmlspecialchars($line) . "</span>";
- for ($col=0; $col < $err["errcol"]; ++$col)
+ for ($col=0; $col < $err["errcol"]; ++$col) {
echo (substr ($line, $col, 1) == "\t") ? "\t" : ".";
+ }
echo "<span class=\"spanred\">/</span>\n";
}
}