Re: [HACKERS] Minor issues with docs

2011-06-02 Thread Bruce Momjian
Marco Nenciarini wrote:
 While I was working on automatic translation of PostgreSQL's
 documentation from SGML to XML, I found some minor issues.
 
 In the file doc/src/sgml/ecpg.sgml there are many lines of C code
 containing unescaped '' characters.
 
 In the file doc/src/sgml/array.sgml there is a tag which has a case
 mismatch error with its end tag.
 
 Attached you can find the patch, if you want to apply it.

Thanks, applied.

-- 
  Bruce Momjian  br...@momjian.ushttp://momjian.us
  EnterpriseDB http://enterprisedb.com

  + It's impossible for everything to be true. +

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers


[HACKERS] Minor issues with docs

2011-05-25 Thread Marco Nenciarini
While I was working on automatic translation of PostgreSQL's
documentation from SGML to XML, I found some minor issues.

In the file doc/src/sgml/ecpg.sgml there are many lines of C code
containing unescaped '' characters.

In the file doc/src/sgml/array.sgml there is a tag which has a case
mismatch error with its end tag.

Attached you can find the patch, if you want to apply it.

Regards,
Marco

-- 
Marco Nenciarini - 2ndQuadrant Italy
PostgreSQL Training, Services and Support
marco.nenciar...@2ndquadrant.it | www.2ndQuadrant.it
From d22539bdb7cabcb6bfbf0ce1b80a59fbba283ca4 Mon Sep 17 00:00:00 2001
From: Marco Nenciarini marco.nenciar...@2ndquadrant.it
Date: Wed, 25 May 2011 19:35:36 +0200
Subject: [PATCH] Fix minor issues with documentation markup


Signed-off-by: Marco Nenciarini marco.nenciar...@2ndquadrant.it
---
 doc/src/sgml/array.sgml |2 +-
 doc/src/sgml/ecpg.sgml  |   20 ++--
 2 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/doc/src/sgml/array.sgml b/doc/src/sgml/array.sgml
index bb318c5..3508ba3 100644
--- a/doc/src/sgml/array.sgml
+++ b/doc/src/sgml/array.sgml
@@ -369,7 +369,7 @@ UPDATE sal_emp SET pay_by_quarter = ARRAY[25000,25000,27000,27000]
 programlisting
 UPDATE sal_emp SET pay_by_quarter[4] = 15000
 WHERE name = 'Bill';
-/programListing
+/programlisting
 
   or updated in a slice:
 
diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml
index 9c6ca4c..a8ffde5 100644
--- a/doc/src/sgml/ecpg.sgml
+++ b/doc/src/sgml/ecpg.sgml
@@ -4154,7 +4154,7 @@ switch (v.sqltype)
 {
 case ECPGt_char:
 memset(amp;var_buf, 0, sizeof(var_buf));
-memcpy(amp;var_buf, sqldata, (sizeof(var_buf) = sqllen ? sizeof(var_buf) - 1 : sqllen));
+memcpy(amp;var_buf, sqldata, (sizeof(var_buf) lt;= sqllen ? sizeof(var_buf) - 1 : sqllen));
 break;
 
 case ECPGt_int: /* integer */
@@ -4390,7 +4390,7 @@ main(void)
 
 case ECPGt_char:
 memset(amp;var_buf, 0, sizeof(var_buf));
-memcpy(amp;var_buf, sqldata, (sizeof(var_buf) = sqllen ? sizeof(var_buf)-1 : sqllen));
+memcpy(amp;var_buf, sqldata, (sizeof(var_buf) lt;= sqllen ? sizeof(var_buf)-1 : sqllen));
 break;
 
 case ECPGt_int: /* integer */
@@ -5871,39 +5871,39 @@ main(void)
 
 /* create */
 loid = lo_create(conn, 0);
-if (loid  0)
+if (loid lt; 0)
 printf(lo_create() failed: %s, PQerrorMessage(conn));
 
 printf(loid = %d\n, loid);
 
 /* write test */
 fd = lo_open(conn, loid, INV_READ|INV_WRITE);
-if (fd  0)
+if (fd lt; 0)
 printf(lo_open() failed: %s, PQerrorMessage(conn));
 
 printf(fd = %d\n, fd);
 
 rc = lo_write(conn, fd, buf, buflen);
-if (rc  0)
+if (rc lt; 0)
 printf(lo_write() failed\n);
 
 rc = lo_close(conn, fd);
-if (rc  0)
+if (rc lt; 0)
 printf(lo_close() failed: %s, PQerrorMessage(conn));
 
 /* read test */
 fd = lo_open(conn, loid, INV_READ);
-if (fd  0)
+if (fd lt; 0)
 printf(lo_open() failed: %s, PQerrorMessage(conn));
 
 printf(fd = %d\n, fd);
 
 rc = lo_read(conn, fd, buf2, buflen);
-if (rc  0)
+if (rc lt; 0)
 printf(lo_read() failed\n);
 
 rc = lo_close(conn, fd);
-if (rc  0)
+if (rc lt; 0)
 printf(lo_close() failed: %s, PQerrorMessage(conn));
 
 /* check */
@@ -5912,7 +5912,7 @@ main(void)
 
 /* cleanup */
 rc = lo_unlink(conn, loid);
-if (rc  0)
+if (rc lt; 0)
 printf(lo_unlink() failed: %s, PQerrorMessage(conn));
 
 EXEC SQL COMMIT;
-- 
1.7.5.1


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers