Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite470400

Browse files
committed
This patch fixes a bunch of spelling mistakes in comments throughout the
PostgreSQL source code.Neil Conway
1 parent081fa24 commite470400

File tree

64 files changed

+149
-149
lines changed

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-
/* Providesfunctionallity for substituting dBase-fieldnames for others */
202+
/* Providesfunctionality 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 queryautomatigally?
86+
* that can build the final queryautomagically?
8787
*/
8888

8989
#defineMAX_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
#defineNext_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 aneariler encoding handled
424+
* How many letters to skip because anearlier encoding handled
425425
* multiple letters
426426
*/
427427
unsigned shortintskip_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 onedimentional integer array */
194+
* collected as a onedimensional 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 copyatribute if you don't need too */
228+
/* Don't copyattribute 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
typedefvoid (*formfloat) (ArrayType*,float*);
134134

135135
/*
136-
**usefull function
136+
**useful function
137137
*/
138138
staticboolisort(int4*a,constintlen);
139139
staticArrayType*new_intArrayType(intnum);
@@ -446,7 +446,7 @@ g_int_decompress(PG_FUNCTION_ARGS)
446446
lenin=ARRNELEMS(in);
447447

448448
if (lenin<2*MAXNUMRANGE||ISLEAFKEY(in))
449-
{/* notcomressed value */
449+
{/* notcompressed value */
450450
if (in!= (ArrayType*)DatumGetPointer(entry->key))
451451
{
452452
retval=palloc(sizeof(GISTENTRY));
@@ -1642,7 +1642,7 @@ typedef struct
16421642
char*buf;
16431643
int4state;
16441644
int4count;
1645-
/* reverse polish notation in list (fortemprorary usage) */
1645+
/* reverse polish notation in list (fortemporary usage) */
16461646
NODE*str;
16471647
/* number in str */
16481648
int4num;
@@ -1747,7 +1747,7 @@ pushquery(WORKSTATE * state, int4 type, int4 val)
17471747
#defineSTACKDEPTH16
17481748

17491749
/*
1750-
* make polishnotaion of query
1750+
* make polishnotation of query
17511751
*/
17521752
staticint4
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
int4state;
4040
int4count;
41-
/* reverse polish notation in list (fortemprorary usage) */
41+
/* reverse polish notation in list (fortemporary usage) */
4242
NODE*str;
4343
/* number in str */
4444
int4num;

‎contrib/oid2name/oid2name.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ voidsql_exec_dumptable(PGconn *, int);
5050
voidsql_exec_searchtable(PGconn*,constchar*);
5151
voidsql_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(intargc,char**argv,structoptions*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 theperpose of updating
5+
It is a function to be called from a trigger for thepurpose 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 theturple of the field we want. args[0]
73+
* This gets the position in thetuple 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 thefeild we aresuppost to update
80+
* This is were we check to see if thefield we aresupposed 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 beallocatd before the string, for example
169+
* An optional header can beallocated 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)

[8]ページ先頭

©2009-2025 Movatter.jp