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

Commit562f63b

Browse files
committed
Fix build failure when not USE_READLINE. Sergey E. Koposov
1 parent589b67d commit562f63b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/bin/psql/input.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.48 2006/02/12 05:24:38 momjian Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.49 2006/02/13 14:57:15 tgl Exp $
77
*/
88
#include"postgres_fe.h"
99

@@ -213,7 +213,8 @@ gets_fromFile(FILE *source)
213213
}
214214

215215

216-
staticvoidencode_history()
216+
#ifdefUSE_READLINE
217+
staticvoidencode_history(void)
217218
{
218219
HIST_ENTRY*cur_hist;
219220
char*cur_ptr;
@@ -225,7 +226,7 @@ static void encode_history()
225226
*cur_ptr=NL_IN_HISTORY;
226227
}
227228

228-
staticvoiddecode_history()
229+
staticvoiddecode_history(void)
229230
{
230231
HIST_ENTRY*cur_hist;
231232
char*cur_ptr;
@@ -236,6 +237,7 @@ static void decode_history()
236237
if (*cur_ptr==NL_IN_HISTORY)
237238
*cur_ptr='\n';
238239
}
240+
#endif/* USE_READLINE */
239241

240242

241243
/*
@@ -290,7 +292,6 @@ initializeInput(int flags)
290292
}
291293

292294

293-
294295
bool
295296
saveHistory(char*fname)
296297
{
@@ -311,7 +312,6 @@ saveHistory(char *fname)
311312
}
312313

313314

314-
315315
staticvoid
316316
#ifdefHAVE_ATEXIT
317317
finishInput(void)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp