summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorRobert Haas2012-04-24 02:43:09 +0000
committerRobert Haas2012-04-24 02:43:09 +0000
commit5d4b60f2f25bedee257aaf6f2f4ac77028629b87 (patch)
treef0f7fa40b63a23b10e9d03ea47f97020565a66f6 /src/interfaces
parent7ab9b2f3b79177e501a1ef90ed004cc68788abaf (diff)
Lots of doc corrections.
Josh Kupershmidt
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/ecpglib/descriptor.c2
-rw-r--r--src/interfaces/ecpg/ecpglib/prepare.c4
-rw-r--r--src/interfaces/ecpg/pgtypeslib/dt_common.c4
-rw-r--r--src/interfaces/ecpg/pgtypeslib/timestamp.c2
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.trailer2
-rw-r--r--src/interfaces/ecpg/preproc/pgc.l2
-rw-r--r--src/interfaces/libpq/fe-exec.c2
-rw-r--r--src/interfaces/libpq/fe-print.c2
-rw-r--r--src/interfaces/libpq/win32.c2
9 files changed, 11 insertions, 11 deletions
diff --git a/src/interfaces/ecpg/ecpglib/descriptor.c b/src/interfaces/ecpg/ecpglib/descriptor.c
index 73c79703ca..b2990cab28 100644
--- a/src/interfaces/ecpg/ecpglib/descriptor.c
+++ b/src/interfaces/ecpg/ecpglib/descriptor.c
@@ -479,7 +479,7 @@ ECPGget_desc(int lineno, const char *desc_name, int index,...)
memset(&stmt, 0, sizeof stmt);
stmt.lineno = lineno;
- /* desparate try to guess something sensible */
+ /* desperate try to guess something sensible */
stmt.connection = ecpg_get_connection(NULL);
ecpg_store_result(ECPGresult, index, &stmt, &data_var);
diff --git a/src/interfaces/ecpg/ecpglib/prepare.c b/src/interfaces/ecpg/ecpglib/prepare.c
index 1bddf215af..e49ae3763c 100644
--- a/src/interfaces/ecpg/ecpglib/prepare.c
+++ b/src/interfaces/ecpg/ecpglib/prepare.c
@@ -124,7 +124,7 @@ prepare_common(int lineno, struct connection * con, const char *name, const char
stmt->command = ecpg_strdup(variable, lineno);
stmt->inlist = stmt->outlist = NULL;
- /* if we have C variables in our statment replace them with '?' */
+ /* if we have C variables in our statement replace them with '?' */
replace_variables(&(stmt->command), lineno);
/* add prepared statement to our list */
@@ -463,7 +463,7 @@ AddStmtToCache(int lineno, /* line # of statement */
return (entNo);
}
-/* handle cache and preparation of statments in auto-prepare mode */
+/* handle cache and preparation of statements in auto-prepare mode */
bool
ecpg_auto_prepare(int lineno, const char *connection_name, const int compat, char **name, const char *query)
{
diff --git a/src/interfaces/ecpg/pgtypeslib/dt_common.c b/src/interfaces/ecpg/pgtypeslib/dt_common.c
index ff53340079..6b89e4a67e 100644
--- a/src/interfaces/ecpg/pgtypeslib/dt_common.c
+++ b/src/interfaces/ecpg/pgtypeslib/dt_common.c
@@ -310,7 +310,7 @@ static datetkn datetktbl[] = {
#if 0
phst
#endif
- {"pht", TZ, POS(32)}, /* Phillipine Time */
+ {"pht", TZ, POS(32)}, /* Philippine Time */
{"pkt", TZ, POS(20)}, /* Pakistan Time */
{"pm", AMPM, PM},
{"pmdt", DTZ, NEG(8)}, /* Pierre & Miquelon Daylight Time */
@@ -2342,7 +2342,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
*/
tmask = 0;
- /* No preceeding date? Then quit... */
+ /* No preceding date? Then quit... */
if ((fmask & DTK_DATE_M) != DTK_DATE_M)
return -1;
diff --git a/src/interfaces/ecpg/pgtypeslib/timestamp.c b/src/interfaces/ecpg/pgtypeslib/timestamp.c
index 1eaf715c47..36f101bb1c 100644
--- a/src/interfaces/ecpg/pgtypeslib/timestamp.c
+++ b/src/interfaces/ecpg/pgtypeslib/timestamp.c
@@ -342,7 +342,7 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
/*
* Since it's difficult to test for noresult, make sure errno is 0 if no
- * error occured.
+ * error occurred.
*/
errno = 0;
return result;
diff --git a/src/interfaces/ecpg/preproc/ecpg.trailer b/src/interfaces/ecpg/preproc/ecpg.trailer
index 35bbe5414e..8258ce2f7d 100644
--- a/src/interfaces/ecpg/preproc/ecpg.trailer
+++ b/src/interfaces/ecpg/preproc/ecpg.trailer
@@ -1104,7 +1104,7 @@ opt_output: SQL_OUTPUT { $$ = mm_strdup("output"); }
/*
* dynamic SQL: descriptor based access
- * originall written by Christof Petig <christof.petig@wtal.de>
+ * originally written by Christof Petig <christof.petig@wtal.de>
* and Peter Eisentraut <peter.eisentraut@credativ.de>
*/
diff --git a/src/interfaces/ecpg/preproc/pgc.l b/src/interfaces/ecpg/preproc/pgc.l
index 92ea37e6f6..4d31f3bbe4 100644
--- a/src/interfaces/ecpg/preproc/pgc.l
+++ b/src/interfaces/ecpg/preproc/pgc.l
@@ -344,7 +344,7 @@ cppinclude_next {space}*#{include_next}{space}*
/* take care of cpp lines, they may also be continuated */
/* first a general line for all commands not starting with "i" */
/* and then the other commands starting with "i", we have to add these
- * seperately because the cppline production would match on "include" too */
+ * separately because the cppline production would match on "include" too */
cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.*{newline}
/*
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index 86f157c338..c643b8e69c 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -218,7 +218,7 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status)
*
* Set the attributes for a given result. This function fails if there are
* already attributes contained in the provided result. The call is
- * ignored if numAttributes is is zero or attDescs is NULL. If the
+ * ignored if numAttributes is zero or attDescs is NULL. If the
* function fails, it returns zero. If the function succeeds, it
* returns a non-zero value.
*/
diff --git a/src/interfaces/libpq/fe-print.c b/src/interfaces/libpq/fe-print.c
index 6695492c7f..94ef40d3bc 100644
--- a/src/interfaces/libpq/fe-print.c
+++ b/src/interfaces/libpq/fe-print.c
@@ -57,7 +57,7 @@ static void fill(int length, int max, char filler, FILE *fp);
*
* Format results of a query for printing.
*
- * PQprintOpt is a typedef (structure) that containes
+ * PQprintOpt is a typedef (structure) that contains
* various flags and options. consult libpq-fe.h for
* details
*
diff --git a/src/interfaces/libpq/win32.c b/src/interfaces/libpq/win32.c
index 2e79818b5c..92e1c9ba98 100644
--- a/src/interfaces/libpq/win32.c
+++ b/src/interfaces/libpq/win32.c
@@ -277,7 +277,7 @@ struct MessageDLL
* to find it in the lookup table, and if that fails, tries
* to load any of the winsock dlls to find that message.
* The DLL thing works from Nt4 (spX ?) up, but some special
- * versions of winsock might have this aswell (seen on Win98 SE
+ * versions of winsock might have this as well (seen on Win98 SE
* special install) / Magnus Naeslund (mag@fbab.net)
*
*/