diff options
Diffstat (limited to 'src/backend/utils')
-rw-r--r-- | src/backend/utils/adt/formatting.c | 16 | ||||
-rw-r--r-- | src/backend/utils/adt/name.c | 4 | ||||
-rw-r--r-- | src/backend/utils/adt/pg_lzcompress.c | 8 | ||||
-rw-r--r-- | src/backend/utils/adt/varlena.c | 4 | ||||
-rw-r--r-- | src/backend/utils/mb/conv.c | 4 | ||||
-rw-r--r-- | src/backend/utils/mb/encnames.c | 6 | ||||
-rw-r--r-- | src/backend/utils/mb/mbutils.c | 10 | ||||
-rw-r--r-- | src/backend/utils/misc/database.c | 4 |
8 files changed, 28 insertions, 28 deletions
diff --git a/src/backend/utils/adt/formatting.c b/src/backend/utils/adt/formatting.c index bebccbdfdc6..6a5f0af138e 100644 --- a/src/backend/utils/adt/formatting.c +++ b/src/backend/utils/adt/formatting.c @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------- * formatting.c * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.57 2002/11/08 20:23:56 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/formatting.c,v 1.58 2003/03/10 22:28:18 tgl Exp $ * * * Portions Copyright (c) 1999-2002, PostgreSQL Global Development Group @@ -264,7 +264,7 @@ typedef struct int pre, /* (count) numbers before decimal */ post, /* (count) numbers after decimal */ lsign, /* want locales sign */ - flag, /* number parametrs */ + flag, /* number parameters */ pre_lsign_num, /* tmp value for lsign */ multi, /* multiplier for 'V' */ zero_start, /* position of first zero */ @@ -488,7 +488,7 @@ static KeySuffix DCH_suff[] = { * it is not good. * * (!) - * - Position for the keyword is simular as position in the enum DCH/NUM_poz. + * - Position for the keyword is similar as position in the enum DCH/NUM_poz. * (!) * * For fast search is used the 'int index[]', index is ascii table from position @@ -776,7 +776,7 @@ static int DCH_index[KeyWord_INDEX_SIZE] = { /* 0 1 2 3 4 5 6 7 8 9 */ - /*---- first 0..31 chars are skiped ----*/ + /*---- first 0..31 chars are skipped ----*/ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, @@ -838,9 +838,9 @@ typedef struct NUMProc read_post; /* to_number - number of dec. digit */ char *number, /* string with number */ - *number_p, /* pointer to current number pozition */ + *number_p, /* pointer to current number position */ *inout, /* in / out buffer */ - *inout_p, /* pointer to current inout pozition */ + *inout_p, /* pointer to current inout position */ *last_relevant, /* last relevant number after decimal * point */ @@ -3753,7 +3753,7 @@ NUM_numpart_to_char(NUMProc *Np, int id) else { /* - * Write Decinal point + * Write Decimal point */ if (*Np->number_p == '.') { @@ -3934,7 +3934,7 @@ NUM_processor(FormatNode *node, NUMDesc *Num, char *inout, char *number, { Np->sign_pos = Np->num_count + (Np->num_pre ? 1 : 0); - if (IS_DECIMAL(Np->Num)) /* decimal point correctio */ + if (IS_DECIMAL(Np->Num)) /* decimal point correction */ ++Np->sign_pos; } else if (IS_ZERO(Np->Num) && Np->num_pre > Np->Num->zero_start) diff --git a/src/backend/utils/adt/name.c b/src/backend/utils/adt/name.c index 154a2067ec9..746254add59 100644 --- a/src/backend/utils/adt/name.c +++ b/src/backend/utils/adt/name.c @@ -12,7 +12,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.42 2003/02/09 06:56:28 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/name.c,v 1.43 2003/03/10 22:28:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -46,7 +46,7 @@ namein(PG_FUNCTION_ARGS) int len; char *ermsg; - /* veryfy encoding */ + /* verify encoding */ len = strlen(s); if ((ermsg = pg_verifymbstr(s, len))) elog(ERROR, "%s", ermsg); diff --git a/src/backend/utils/adt/pg_lzcompress.c b/src/backend/utils/adt/pg_lzcompress.c index a22c57cb4c8..cf42f4f3a63 100644 --- a/src/backend/utils/adt/pg_lzcompress.c +++ b/src/backend/utils/adt/pg_lzcompress.c @@ -1,7 +1,7 @@ /* ---------- * pg_lzcompress.c - * - * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_lzcompress.c,v 1.16 2002/11/23 03:59:08 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/pg_lzcompress.c,v 1.17 2003/03/10 22:28:18 tgl Exp $ * * This is an implementation of LZ compression for PostgreSQL. * It uses a simple history table and generates 2-3 byte tags @@ -98,7 +98,7 @@ * makes total limits of 1-4095 for offset and 3-273 for length. * * Now that we have successfully decoded a tag. We simply copy - * the output that occured <offset> bytes back to the current + * the output that occurred <offset> bytes back to the current * output location in the specified <length>. Thus, a * sequence of 200 spaces (think about bpchar fields) could be * coded in 4 bytes. One literal space and a three byte tag to @@ -419,7 +419,7 @@ pglz_find_match(PGLZ_HistEntry **hstart, char *input, char *end, * bytes, it's worth the call overhead to use memcmp() to check if * this match is equal for the same size. After that we must * fallback to character by character comparison to know the exact - * position where the diff occured. + * position where the diff occurred. */ thislen = 0; if (len >= 16) @@ -783,7 +783,7 @@ pglz_get_next_decomp_char_from_lzdata(PGLZ_DecompState *dstate) /* * This decompression method saves time only, if we stop near the * beginning of the data (maybe because we're called by a - * comparision function and a difference occurs early). Otherwise, + * comparison function and a difference occurs early). Otherwise, * all the checks, needed here, cause too much overhead. * * Thus we decompress the entire rest at once into the temporary diff --git a/src/backend/utils/adt/varlena.c b/src/backend/utils/adt/varlena.c index e98a2dfe0e3..974e7f8fc67 100644 --- a/src/backend/utils/adt/varlena.c +++ b/src/backend/utils/adt/varlena.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.94 2002/12/06 05:20:17 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.95 2003/03/10 22:28:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1663,7 +1663,7 @@ byteacmp(PG_FUNCTION_ARGS) /* * replace_text - * replace all occurences of 'old_sub_str' in 'orig_str' + * replace all occurrences of 'old_sub_str' in 'orig_str' * with 'new_sub_str' to form 'new_str' * * returns 'orig_str' if 'old_sub_str' == '' or 'orig_str' == '' diff --git a/src/backend/utils/mb/conv.c b/src/backend/utils/mb/conv.c index a41f9abe9dd..0337692d88c 100644 --- a/src/backend/utils/mb/conv.c +++ b/src/backend/utils/mb/conv.c @@ -6,7 +6,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/mb/conv.c,v 1.43 2002/09/04 20:31:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/mb/conv.c,v 1.44 2003/03/10 22:28:18 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -335,7 +335,7 @@ compare2(const void *p1, const void *p2) * UTF-8 ---> local code * * utf: input UTF-8 string. Its length is limited by "len" parameter - * or a null terminater. + * or a null terminator. * iso: pointer to the output. * map: the conversion map. * size: the size of the conversion map. diff --git a/src/backend/utils/mb/encnames.c b/src/backend/utils/mb/encnames.c index dc6623b09c1..7c62d8c4abb 100644 --- a/src/backend/utils/mb/encnames.c +++ b/src/backend/utils/mb/encnames.c @@ -2,7 +2,7 @@ * Encoding names and routines for work with it. All * in this file is shared bedween FE and BE. * - * $Id: encnames.c,v 1.11 2002/12/05 23:21:07 momjian Exp $ + * $Id: encnames.c,v 1.12 2003/03/10 22:28:18 tgl Exp $ */ #ifdef FRONTEND #include "postgres_fe.h" @@ -25,7 +25,7 @@ /* ---------- * All encoding names, sorted: *** A L P H A B E T I C *** * - * All names must be without irrelevan chars, search routines use + * All names must be without irrelevant chars, search routines use * isalnum() chars only. It means ISO-8859-1, iso_8859-1 and Iso8859_1 * are always converted to 'iso88591'. All must be lower case. * @@ -52,7 +52,7 @@ pg_encname pg_encname_tbl[] = { "eucjp", PG_EUC_JP }, /* EUC-JP; Extended UNIX Code fixed Width - * for Japanese, stdandard OSF */ + * for Japanese, standard OSF */ { "euckr", PG_EUC_KR }, /* EUC-KR; Extended Unix Code for Korean , diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c index 560dffa8581..588aefc61c4 100644 --- a/src/backend/utils/mb/mbutils.c +++ b/src/backend/utils/mb/mbutils.c @@ -4,7 +4,7 @@ * (currently mule internal code (mic) is used) * Tatsuo Ishii * - * $Header: /cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v 1.38 2003/02/19 14:31:26 ishii Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/mb/mbutils.c,v 1.39 2003/03/10 22:28:18 tgl Exp $ */ #include "postgres.h" @@ -41,7 +41,7 @@ static int cliplen(const unsigned char *str, int len, int limit); static bool need_to_init_client_encoding = -1; /* - * Set the client encoding and save fmgrinfo for the converion + * Set the client encoding and save fmgrinfo for the conversion * function if necessary. if encoding conversion between client/server * encoding is not supported, returns -1 */ @@ -60,7 +60,7 @@ SetClientEncoding(int encoding, bool doit) if (!PG_VALID_FE_ENCODING(encoding)) return (-1); - /* If we cannot actualy set client encoding info, remeber it + /* If we cannot actually set client encoding info, remember it * so that we could set it using InitializeClientEncoding() * in InitPostgres() */ @@ -164,7 +164,7 @@ pg_get_client_encoding_name(void) * warn and returns src. We cannot raise an error, since it will cause * an infinit loop in error message sending. * - * In the case of no coversion, src is returned. + * In the case of no conversion, src is returned. * * XXX We assume that storage for converted result is 4-to-1 growth in * the worst case. The rate for currently supported encoding pares are within 3 @@ -281,7 +281,7 @@ pg_convert2(PG_FUNCTION_ARGS) elog(ERROR, "Encoding conversion failed"); /* - * build text data type structre. we cannot use textin() here, since + * build text data type structure. we cannot use textin() here, since * textin assumes that input string encoding is same as database * encoding. */ diff --git a/src/backend/utils/misc/database.c b/src/backend/utils/misc/database.c index 8cf58799228..981d7ea7dcc 100644 --- a/src/backend/utils/misc/database.c +++ b/src/backend/utils/misc/database.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.54 2002/11/08 20:23:57 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/misc/Attic/database.c,v 1.55 2003/03/10 22:28:19 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -33,7 +33,7 @@ static bool PhonyHeapTupleSatisfiesNow(HeapTupleHeader tuple); * pg_database.datpath) to a full absolute path for further consumption. * NULL means an error, which the caller should process. One reason for * such an error would be an absolute alternative path when no absolute - * paths are alllowed. + * paths are allowed. */ char * |