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

Commit9a7fccd

Browse files
committed
Add missing extern keyword for a couple of numutils functions
In passing, also remove a few surplus empty lines from pg_ltoa andpg_ulltoa_n in numutils.cReported-by: Andrew GierthDiscussion:https://postgr.es/m/87y2ou3xuh.fsf@news-spur.riddles.org.ukBackpatch-through: 13, where these changes were introduced
1 parent2f48ede commit9a7fccd

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

‎src/backend/utils/adt/numutils.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ pg_ultoa_n(uint32 value, char *a)
413413
void
414414
pg_ltoa(int32value,char*a)
415415
{
416-
417416
uint32uvalue= (uint32)value;
418417
intlen;
419418

@@ -437,7 +436,6 @@ pg_ulltoa_n(uint64 value, char *a)
437436
i=0;
438437
uint32value2;
439438

440-
441439
/* Degenerate case */
442440
if (value==0)
443441
{

‎src/include/utils/builtins.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ extern int32 pg_atoi(const char *s, int size, int c);
4848
externint16pg_strtoint16(constchar*s);
4949
externint32pg_strtoint32(constchar*s);
5050
externvoidpg_itoa(int16i,char*a);
51-
intpg_ultoa_n(uint32l,char*a);
52-
intpg_ulltoa_n(uint64l,char*a);
51+
externintpg_ultoa_n(uint32l,char*a);
52+
externintpg_ulltoa_n(uint64l,char*a);
5353
externvoidpg_ltoa(int32l,char*a);
5454
externvoidpg_lltoa(int64ll,char*a);
5555
externchar*pg_ultostr_zeropad(char*str,uint32value,int32minwidth);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp