33 *
44 * Copyright (c) 2000-2005, PostgreSQL Global Development Group
55 *
6- * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.49 2006/02/1314:57:15 tgl Exp $
6+ * $PostgreSQL: pgsql/src/bin/psql/input.c,v 1.50 2006/02/1317:09:25 momjian Exp $
77 */
88#include "postgres_fe.h"
99
@@ -113,7 +113,8 @@ gets_interactive(const char *prompt)
113113
114114
115115/* 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 )
117118{
118119#ifdef USE_READLINE
119120
@@ -134,7 +135,8 @@ void pgadd_history(char *s, PQExpBuffer history_buf)
134135
135136
136137/* Feed the contents of the history buffer to readline */
137- void pgflush_history (PQExpBuffer history_buf )
138+ void
139+ pgflush_history (PQExpBuffer history_buf )
138140{
139141#ifdef USE_READLINE
140142char * s ;
@@ -172,7 +174,8 @@ void pgflush_history(PQExpBuffer history_buf)
172174#endif
173175}
174176
175- void pgclear_history (PQExpBuffer history_buf )
177+ void
178+ pgclear_history (PQExpBuffer history_buf )
176179{
177180#ifdef USE_READLINE
178181if (useReadline && useHistory )
@@ -214,7 +217,8 @@ gets_fromFile(FILE *source)
214217
215218
216219#ifdef USE_READLINE
217- static void encode_history (void )
220+ static void
221+ encode_history (void )
218222{
219223HIST_ENTRY * cur_hist ;
220224char * cur_ptr ;
@@ -226,7 +230,8 @@ static void encode_history(void)
226230* cur_ptr = NL_IN_HISTORY ;
227231}
228232
229- static void decode_history (void )
233+ static void
234+ decode_history (void )
230235{
231236HIST_ENTRY * cur_hist ;
232237char * cur_ptr ;