Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e470400

Browse files
committed
This patch fixes a bunch of spelling mistakes in comments throughout the
PostgreSQL source code. Neil Conway
1 parent 081fa24 commit e470400

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+149
-149
lines changed

contrib/dbase/dbf2pg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ usage(void)
199199
}
200200

201201
/* patch submitted by Jeffrey Y. Sue <jysue@aloha.net> */
202-
/* Provides functionallity for substituting dBase-fieldnames for others */
202+
/* Provides functionality for substituting dBase-fieldnames for others */
203203
/* Mainly for avoiding conflicts between fieldnames and SQL-reserved */
204204
/* keywords */
205205

contrib/fulltextindex/fti.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
* nothing in it, then re-populate the fti-table)
8484
*
8585
* can we do something with operator overloading or a seperate function
86-
* that can build the final query automatigally?
86+
* that can build the final query automagically?
8787
*/
8888

8989
#define MAX_FTI_QUERY_LENGTH 8192

contrib/fuzzystrmatch/fuzzystrmatch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ levenshtein(PG_FUNCTION_ARGS)
7676
/*
7777
* Restrict the length of the strings being compared to something
7878
* reasonable because we will have to perform rows * cols
79-
* calcualtions. If longer strings need to be compared, increase
79+
* calculations. If longer strings need to be compared, increase
8080
* MAX_LEVENSHTEIN_STRLEN to suit (but within your tolerance for speed
8181
* and memory usage).
8282
*/
@@ -250,7 +250,7 @@ metaphone(PG_FUNCTION_ARGS)
250250
*------------------------------------------------------------------*/
251251

252252
/* I suppose I could have been using a character pointer instead of
253-
* accesssing the array directly... */
253+
* accessing the array directly... */
254254

255255
/* Look at the next letter in the word */
256256
#define Next_Letter (toupper((unsigned char) word[w_idx+1]))
@@ -421,7 +421,7 @@ _metaphone(
421421
w_idx++)
422422
{
423423
/*
424-
* How many letters to skip because an eariler encoding handled
424+
* How many letters to skip because an earlier encoding handled
425425
* multiple letters
426426
*/
427427
unsigned short int skip_letter = 0;

contrib/intagg/int_aggregate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ int_agg_state(PG_FUNCTION_ARGS)
191191
}
192192

193193
/* This is the final function used for the integer aggregator. It returns all the integers
194-
* collected as a one dimentional integer array */
194+
* collected as a one dimensional integer array */
195195
Datum
196196
int_agg_final_array(PG_FUNCTION_ARGS)
197197
{
@@ -225,7 +225,7 @@ int_enum(PG_FUNCTION_ARGS)
225225
/* Allocate a working context */
226226
pc = (CTX *) palloc(sizeof(CTX));
227227

228-
/* Don't copy atribute if you don't need too */
228+
/* Don't copy attribute if you don't need too */
229229
if (VARATT_IS_EXTENDED(p))
230230
{
231231
/* Toasted!!! */

contrib/intarray/_int.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ typedef ArrayType *(*formarray) (ArrayType *, ArrayType *);
133133
typedef void (*formfloat) (ArrayType *, float *);
134134

135135
/*
136-
** usefull function
136+
** useful function
137137
*/
138138
static bool isort(int4 *a, const int len);
139139
static ArrayType *new_intArrayType(int num);
@@ -446,7 +446,7 @@ g_int_decompress(PG_FUNCTION_ARGS)
446446
lenin = ARRNELEMS(in);
447447

448448
if (lenin < 2 * MAXNUMRANGE || ISLEAFKEY(in))
449-
{ /* not comressed value */
449+
{ /* not compressed value */
450450
if (in != (ArrayType *) DatumGetPointer(entry->key))
451451
{
452452
retval = palloc(sizeof(GISTENTRY));
@@ -1642,7 +1642,7 @@ typedef struct
16421642
char *buf;
16431643
int4 state;
16441644
int4 count;
1645-
/* reverse polish notation in list (for temprorary usage) */
1645+
/* reverse polish notation in list (for temporary usage) */
16461646
NODE *str;
16471647
/* number in str */
16481648
int4 num;
@@ -1747,7 +1747,7 @@ pushquery(WORKSTATE * state, int4 type, int4 val)
17471747
#define STACKDEPTH 16
17481748

17491749
/*
1750-
* make polish notaion of query
1750+
* make polish notation of query
17511751
*/
17521752
static int4
17531753
makepol(WORKSTATE * state)

contrib/ltree/ltxtquery_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ typedef struct
3838
char *buf;
3939
int4 state;
4040
int4 count;
41-
/* reverse polish notation in list (for temprorary usage) */
41+
/* reverse polish notation in list (for temporary usage) */
4242
NODE *str;
4343
/* number in str */
4444
int4 num;

contrib/oid2name/oid2name.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void sql_exec_dumptable(PGconn *, int);
5050
void sql_exec_searchtable(PGconn *, const char *);
5151
void sql_exec_searchoid(PGconn *, int);
5252

53-
/* fuction to parse command line options and check for some usage errors. */
53+
/* function to parse command line options and check for some usage errors. */
5454
void
5555
get_opts(int argc, char **argv, struct options * my_opts)
5656
{

contrib/pgcrypto/random.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2727
* SUCH DAMAGE.
2828
*
29-
* $Id: random.c,v 1.5 2001/11/05 17:46:23 momjian Exp $
29+
* $Id: random.c,v 1.6 2003/03/10 22:28:17 tgl Exp $
3030
*/
3131

3232

@@ -115,7 +115,7 @@ px_get_random_bytes(uint8 *dst, unsigned count)
115115

116116
/*
117117
* OpenSSL random should re-feeded occasionally. From /dev/urandom
118-
* preferrably.
118+
* preferably.
119119
*/
120120

121121
res = RAND_bytes(dst, count);

contrib/spi/moddatetime.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
moddatetime.c
33
44
What is this?
5-
It is a function to be called from a trigger for the perpose of updating
5+
It is a function to be called from a trigger for the purpose of updating
66
a modification datetime stamp in a record when that record is UPDATEd.
77
88
Credits
@@ -70,14 +70,14 @@ moddatetime(PG_FUNCTION_ARGS)
7070
Int32GetDatum(-1));
7171

7272
/*
73-
* This gets the position in the turple of the field we want. args[0]
73+
* This gets the position in the tuple of the field we want. args[0]
7474
* being the name of the field to update, as passed in from the
7575
* trigger.
7676
*/
7777
attnum = SPI_fnumber(tupdesc, args[0]);
7878

7979
/*
80-
* This is were we check to see if the feild we are suppost to update
80+
* This is were we check to see if the field we are supposed to update
8181
* even exits. The above function must return -1 if name not found?
8282
*/
8383
if (attnum < 0)

contrib/string/string_io.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ string_output(unsigned char *data, int size)
166166
*
167167
* This function accepts a C string in input and copies it into a new
168168
* object allocated with palloc() translating all escape sequences.
169-
* An optional header can be allocatd before the string, for example
169+
* An optional header can be allocated before the string, for example
170170
* to hold the length of a varlena object.
171171
* This function is not necessary for input from sql commands because
172172
* the parser already does escape translation, all data input routines

contrib/tablefunc/tablefunc.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static bool compatCrosstabTupleDescs(TupleDesc tupdesc1, TupleDesc tupdesc2);
4444
static bool compatConnectbyTupleDescs(TupleDesc tupdesc1, TupleDesc tupdesc2);
4545
static void get_normal_pair(float8 *x1, float8 *x2);
4646
static TupleDesc make_crosstab_tupledesc(TupleDesc spi_tupdesc,
47-
int num_catagories);
47+
int num_categories);
4848
static Tuplestorestate *connectby(char *relname,
4949
char *key_fld,
5050
char *parent_key_fld,
@@ -373,9 +373,9 @@ crosstab(PG_FUNCTION_ARGS)
373373
elog(ERROR, "Wrong number of arguments specified for function");
374374
else
375375
{
376-
int num_catagories = PG_GETARG_INT32(1);
376+
int num_categories = PG_GETARG_INT32(1);
377377

378-
tupdesc = make_crosstab_tupledesc(spi_tupdesc, num_catagories);
378+
tupdesc = make_crosstab_tupledesc(spi_tupdesc, num_categories);
379379
}
380380
}
381381
else if (functyptype == 'b')
@@ -1034,7 +1034,7 @@ compatCrosstabTupleDescs(TupleDesc ret_tupdesc, TupleDesc sql_tupdesc)
10341034
}
10351035

10361036
static TupleDesc
1037-
make_crosstab_tupledesc(TupleDesc spi_tupdesc, int num_catagories)
1037+
make_crosstab_tupledesc(TupleDesc spi_tupdesc, int num_categories)
10381038
{
10391039
Form_pg_attribute sql_attr;
10401040
Oid sql_atttypid;
@@ -1046,10 +1046,10 @@ make_crosstab_tupledesc(TupleDesc spi_tupdesc, int num_catagories)
10461046

10471047
/*
10481048
* We need to build a tuple description with one column for the
1049-
* rowname, and num_catagories columns for the values. Each must be of
1049+
* rowname, and num_categories columns for the values. Each must be of
10501050
* the same type as the corresponding spi result input column.
10511051
*/
1052-
natts = num_catagories + 1;
1052+
natts = num_categories + 1;
10531053
tupdesc = CreateTemplateTupleDesc(natts, false);
10541054

10551055
/* first the rowname column */
@@ -1063,11 +1063,11 @@ make_crosstab_tupledesc(TupleDesc spi_tupdesc, int num_catagories)
10631063
TupleDescInitEntry(tupdesc, attnum, attname, sql_atttypid,
10641064
-1, 0, false);
10651065

1066-
/* now the catagory values columns */
1066+
/* now the category values columns */
10671067
sql_attr = spi_tupdesc->attrs[2];
10681068
sql_atttypid = sql_attr->atttypid;
10691069

1070-
for (i = 0; i < num_catagories; i++)
1070+
for (i = 0; i < num_categories; i++)
10711071
{
10721072
attnum++;
10731073

contrib/tsearch/morph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ lemmatize(char *word, int *len, int type)
187187
int oldlen = *len;
188188
char *newword = (*(dict->lemmatize)) (dictobjs[nd], word, len);
189189

190-
/* word is recognized by distionary */
190+
/* word is recognized by dictionary */
191191
if (newword != word || *len != oldlen)
192192
{
193193
if (dict->is_stemstoplemm &&

contrib/tsearch/query.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ typedef struct
7979
char *buf;
8080
int4 state;
8181
int4 count;
82-
/* reverse polish notation in list (for temprorary usage) */
82+
/* reverse polish notation in list (for temporary usage) */
8383
NODE *str;
8484
/* number in str */
8585
int4 num;
@@ -247,7 +247,7 @@ pushval_morph(QPRS_STATE * state, int typeval, char *strval, int lenval)
247247

248248
#define STACKDEPTH 32
249249
/*
250-
* make polish notaion of query
250+
* make polish notation of query
251251
*/
252252
static int4
253253
makepol(QPRS_STATE * state, void (*pushval) (QPRS_STATE *, int, char *, int))

contrib/tsearch/rewrite.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ freetree(NODE * node)
116116

117117
/*
118118
* clean tree for ! operator.
119-
* It's usefull for debug, but in
119+
* It's useful for debug, but in
120120
* other case, such view is used with search in index.
121121
* Operator ! always return TRUE
122122
*/

src/backend/access/gist/gist.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.101 2003/02/24 00:57:17 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/gist/gist.c,v 1.102 2003/03/10 22:28:18 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -465,7 +465,7 @@ gistlayerinsert(Relation r, BlockNumber blkno,
465465
/*
466466
* After this call: 1. if child page was splited, then itup
467467
* contains keys for each page 2. if child page wasn't splited,
468-
* then itup contains additional for adjustement of current key
468+
* then itup contains additional for adjustment of current key
469469
*/
470470
ret = gistlayerinsert(r, nblkno, itup, len, res, giststate);
471471

@@ -551,7 +551,7 @@ gistlayerinsert(Relation r, BlockNumber blkno,
551551
ItemPointerSet(&((*res)->pointerData), blkno, l);
552552

553553
if (*len > 1)
554-
{ /* previos insert ret & SPLITED != 0 */
554+
{ /* previous insert ret & SPLITED != 0 */
555555
int i;
556556

557557
/*

src/backend/access/hash/hashovfl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.33 2002/06/20 20:29:24 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/hash/hashovfl.c,v 1.34 2003/03/10 22:28:18 tgl Exp $
1212
*
1313
* NOTES
1414
* Overflow pages look like ordinary relation pages.
@@ -452,7 +452,7 @@ _hash_initbitmap(Relation rel,
452452
/*
453453
* _hash_squeezebucket(rel, bucket)
454454
*
455-
* Try to squeeze the tuples onto pages occuring earlier in the
455+
* Try to squeeze the tuples onto pages occurring earlier in the
456456
* bucket chain in an attempt to free overflow pages. When we start
457457
* the "squeezing", the page from which we start taking tuples (the
458458
* "read" page) is the last bucket in the bucket chain and the page

src/backend/access/hash/hashstrat.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*-------------------------------------------------------------------------
22
*
33
* hashstrat.c
4-
* Srategy map entries for the hash indexed access method
4+
* Strategy map entries for the hash indexed access method
55
*
66
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.21 2002/06/20 20:29:24 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/hash/Attic/hashstrat.c,v 1.22 2003/03/10 22:28:18 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/

src/backend/access/transam/xact.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.141 2003/01/10 22:03:27 petere Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.142 2003/03/10 22:28:18 tgl Exp $
1212
*
1313
* NOTES
1414
* Transaction aborts can now occur two ways:
@@ -91,7 +91,7 @@
9191
* CommitTransactionBlock
9292
* AbortTransactionBlock
9393
*
94-
* These are invoked only in responce to a user "BEGIN WORK", "COMMIT",
94+
* These are invoked only in response to a user "BEGIN WORK", "COMMIT",
9595
* or "ROLLBACK" command. The tricky part about these functions
9696
* is that they are called within the postgres main loop, in between
9797
* the StartTransactionCommand() and CommitTransactionCommand().
@@ -236,7 +236,7 @@ static void *_RollbackData = NULL;
236236
* SetTransactionFlushEnabled()
237237
*
238238
* These are used to test and set the "TransactionFlushState"
239-
* varable. If this variable is true (the default), then
239+
* variable. If this variable is true (the default), then
240240
* the system will flush all dirty buffers to disk at the end
241241
* of each transaction. If false then we are assuming the
242242
* buffer pool resides in stable main memory, in which case we

src/backend/commands/comment.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Copyright (c) 1996-2001, PostgreSQL Global Development Group
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/comment.c,v 1.61 2002/10/09 16:26:46 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/comment.c,v 1.62 2003/03/10 22:28:18 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -389,7 +389,7 @@ CommentAttribute(List *qualname, char *comment)
389389
*
390390
* This routine is used to add/drop any user-comments a user might
391391
* have regarding the specified database. The routine will check
392-
* security for owner permissions, and, if succesful, will then
392+
* security for owner permissions, and, if successful, will then
393393
* attempt to find the oid of the database specified. Once found,
394394
* a comment is added/dropped using the CreateComments() routine.
395395
*/
@@ -427,7 +427,7 @@ CommentDatabase(List *qualname, char *comment)
427427
*
428428
* This routine is used to add/drop any user-comments a user might
429429
* have regarding the specified namespace. The routine will check
430-
* security for owner permissions, and, if succesful, will then
430+
* security for owner permissions, and, if successful, will then
431431
* attempt to find the oid of the namespace specified. Once found,
432432
* a comment is added/dropped using the CreateComments() routine.
433433
*/
@@ -579,7 +579,7 @@ CommentRule(List *qualname, char *comment)
579579
* have regarding a TYPE. The type is specified by name
580580
* and, if found, and the user has appropriate permissions, a
581581
* comment will be added/dropped using the CreateComments() routine.
582-
* The type's name and the comments are the paramters to this routine.
582+
* The type's name and the comments are the parameters to this routine.
583583
*/
584584
static void
585585
CommentType(List *typename, char *comment)

0 commit comments

Comments
 (0)