3
3
*
4
4
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
5
5
*
6
- * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.49 2006/02/13 14:57:15 tgl Exp $
6
+ * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.50 2006/02/13 17:09:25 momjian Exp $
7
7
*/
8
8
#include "postgres_fe.h"
9
9
@@ -113,7 +113,8 @@ gets_interactive(const char *prompt)
113
113
114
114
115
115
/* Put the line in the history buffer and also add the trailing \n */
116
- void pgadd_history (char * s , PQExpBuffer history_buf )
116
+ void
117
+ pgadd_history (char * s , PQExpBuffer history_buf )
117
118
{
118
119
#ifdef USE_READLINE
119
120
@@ -134,7 +135,8 @@ void pgadd_history(char *s, PQExpBuffer history_buf)
134
135
135
136
136
137
/* Feed the contents of the history buffer to readline */
137
- void pgflush_history (PQExpBuffer history_buf )
138
+ void
139
+ pgflush_history (PQExpBuffer history_buf )
138
140
{
139
141
#ifdef USE_READLINE
140
142
char * s ;
@@ -172,7 +174,8 @@ void pgflush_history(PQExpBuffer history_buf)
172
174
#endif
173
175
}
174
176
175
- void pgclear_history (PQExpBuffer history_buf )
177
+ void
178
+ pgclear_history (PQExpBuffer history_buf )
176
179
{
177
180
#ifdef USE_READLINE
178
181
if (useReadline && useHistory )
@@ -214,7 +217,8 @@ gets_fromFile(FILE *source)
214
217
215
218
216
219
#ifdef USE_READLINE
217
- static void encode_history (void )
220
+ static void
221
+ encode_history (void )
218
222
{
219
223
HIST_ENTRY * cur_hist ;
220
224
char * cur_ptr ;
@@ -226,7 +230,8 @@ static void encode_history(void)
226
230
* cur_ptr = NL_IN_HISTORY ;
227
231
}
228
232
229
- static void decode_history (void )
233
+ static void
234
+ decode_history (void )
230
235
{
231
236
HIST_ENTRY * cur_hist ;
232
237
char * cur_ptr ;
0 commit comments