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

Commit9ea4191

Browse files
committed
Fix for HAVE_LONG bug in snprintf.c.
1 parenta4c8fa7 commit9ea4191

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎src/backend/port/snprintf.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#include<sys/param.h>
5050

5151
/* IRIX doesn't do 'long long' in va_arg(), so use a typedef */
52-
#ifdefHAVE_LONG_INT_64
52+
#ifdefHAVE_LONG_LONG_INT_64
5353
typedeflong longlong_long;
5454
#endif
5555

@@ -75,7 +75,7 @@ typedef long long long_long;
7575
* causing nast effects.
7676
**************************************************************/
7777

78-
/*static char _id[] = "$Id: snprintf.c,v 1.10.2.1 1998/12/12 21:31:20 momjian Exp $";*/
78+
/*static char _id[] = "$Id: snprintf.c,v 1.10.2.2 1998/12/18 07:03:29 momjian Exp $";*/
7979
staticchar*end;
8080
staticintSnprfOverflow;
8181

@@ -122,7 +122,7 @@ vsnprintf(char *str, size_t count, const char *fmt,...)
122122

123123
staticvoidfmtstr__P((char*value,intljust,intlen,intzpad,intmaxwidth));
124124

125-
#ifndefHAVE_LONG_INT_64
125+
#ifndefHAVE_LONG_LONG_INT_64
126126
staticvoidfmtnum__P((longvalue,intbase,intdosign,intljust,intlen,intzpad));
127127
#else
128128
staticvoidfmtnum__P((long_longvalue,intbase,intdosign,intljust,intlen,intzpad));
@@ -136,7 +136,7 @@ static void
136136
dopr(char*buffer,constchar*format,...)
137137
{
138138
intch;
139-
#ifdefHAVE_LONG_INT_64
139+
#ifdefHAVE_LONG_LONG_INT_64
140140
long_longvalue;
141141
#else
142142
longvalue;
@@ -215,7 +215,7 @@ dopr(char *buffer, const char *format,...)
215215
/* fmtnum(value,base,dosign,ljust,len,zpad) */
216216
if (longflag)
217217
{
218-
#ifdefHAVE_LONG_INT_64
218+
#ifdefHAVE_LONG_LONG_INT_64
219219
if (longlongflag)
220220
value=va_arg(args,long_long);
221221
else
@@ -231,7 +231,7 @@ dopr(char *buffer, const char *format,...)
231231
/* fmtnum(value,base,dosign,ljust,len,zpad) */
232232
if (longflag)
233233
{
234-
#ifdefHAVE_LONG_INT_64
234+
#ifdefHAVE_LONG_LONG_INT_64
235235
if (longlongflag)
236236
value=va_arg(args,long_long);
237237
else
@@ -246,7 +246,7 @@ dopr(char *buffer, const char *format,...)
246246
case'D':
247247
if (longflag)
248248
{
249-
#ifdefHAVE_LONG_INT_64
249+
#ifdefHAVE_LONG_LONG_INT_64
250250
if (longlongflag)
251251
value=va_arg(args,long_long);
252252
else
@@ -260,7 +260,7 @@ dopr(char *buffer, const char *format,...)
260260
case'x':
261261
if (longflag)
262262
{
263-
#ifdefHAVE_LONG_INT_64
263+
#ifdefHAVE_LONG_LONG_INT_64
264264
if (longlongflag)
265265
value=va_arg(args,long_long);
266266
else
@@ -274,7 +274,7 @@ dopr(char *buffer, const char *format,...)
274274
case'X':
275275
if (longflag)
276276
{
277-
#ifdefHAVE_LONG_INT_64
277+
#ifdefHAVE_LONG_LONG_INT_64
278278
if (longlongflag)
279279
value=va_arg(args,long_long);
280280
else
@@ -350,7 +350,7 @@ intljust,
350350

351351
staticvoid
352352
fmtnum(value,base,dosign,ljust,len,zpad)
353-
#ifdefHAVE_LONG_INT_64
353+
#ifdefHAVE_LONG_LONG_INT_64
354354
long_longvalue;
355355
#else
356356
longvalue;
@@ -362,7 +362,7 @@ intbase,
362362
zpad;
363363
{
364364
intsignvalue=0;
365-
#ifdefHAVE_LONG_INT_64
365+
#ifdefHAVE_LONG_LONG_INT_64
366366
unsigned long longuvalue;
367367
#else
368368
unsigned longuvalue;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp