diff options
Diffstat (limited to 'src/backend/utils/adt')
-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 |
4 files changed, 16 insertions, 16 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' == '' |