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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy