6
6
*
7
7
*
8
8
* IDENTIFICATION
9
- * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.77 1999/05/25 16:08:19 momjian Exp $
9
+ * $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.78 1999/05/26 12:55:10 momjian Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -73,14 +73,14 @@ static int lineno;
73
73
/*
74
74
* Internal communications functions
75
75
*/
76
- inline void CopySendData (void * databuf , int datasize , FILE * fp );
77
- inline void CopySendString (char * str , FILE * fp );
78
- inline void CopySendChar (char c , FILE * fp );
79
- inline void CopyGetData (void * databuf , int datasize , FILE * fp );
80
- inline int CopyGetChar (FILE * fp );
81
- inline int CopyGetEof (FILE * fp );
82
- inline int CopyPeekChar (FILE * fp );
83
- inline void CopyDonePeek (FILE * fp , int c , int pickup );
76
+ static void CopySendData (void * databuf , int datasize , FILE * fp );
77
+ static void CopySendString (char * str , FILE * fp );
78
+ static void CopySendChar (char c , FILE * fp );
79
+ static void CopyGetData (void * databuf , int datasize , FILE * fp );
80
+ static int CopyGetChar (FILE * fp );
81
+ static int CopyGetEof (FILE * fp );
82
+ static int CopyPeekChar (FILE * fp );
83
+ static void CopyDonePeek (FILE * fp , int c , int pickup );
84
84
85
85
/*
86
86
* CopySendData sends output data either to the file
@@ -92,7 +92,7 @@ inline void CopyDonePeek(FILE *fp, int c, int pickup);
92
92
*
93
93
* NB: no data conversion is applied by these functions
94
94
*/
95
- inline void
95
+ static void
96
96
CopySendData (void * databuf , int datasize , FILE * fp )
97
97
{
98
98
if (!fp )
@@ -101,13 +101,13 @@ CopySendData(void *databuf, int datasize, FILE *fp)
101
101
fwrite (databuf , datasize , 1 , fp );
102
102
}
103
103
104
- inline void
104
+ static void
105
105
CopySendString (char * str , FILE * fp )
106
106
{
107
107
CopySendData (str , strlen (str ), fp );
108
108
}
109
109
110
- inline void
110
+ static void
111
111
CopySendChar (char c , FILE * fp )
112
112
{
113
113
CopySendData (& c , 1 , fp );
@@ -123,7 +123,7 @@ CopySendChar(char c, FILE *fp)
123
123
*
124
124
* NB: no data conversion is applied by these functions
125
125
*/
126
- inline void
126
+ static void
127
127
CopyGetData (void * databuf , int datasize , FILE * fp )
128
128
{
129
129
if (!fp )
@@ -132,7 +132,7 @@ CopyGetData(void *databuf, int datasize, FILE *fp)
132
132
fread (databuf , datasize , 1 , fp );
133
133
}
134
134
135
- inline int
135
+ static int
136
136
CopyGetChar (FILE * fp )
137
137
{
138
138
if (!fp )
@@ -147,7 +147,7 @@ CopyGetChar(FILE *fp)
147
147
return getc (fp );
148
148
}
149
149
150
- inline int
150
+ static int
151
151
CopyGetEof (FILE * fp )
152
152
{
153
153
if (!fp )
@@ -164,7 +164,7 @@ CopyGetEof(FILE *fp)
164
164
* CopyDonePeek will either take the peeked char off the steam
165
165
* (if pickup is != 0) or leave it on the stream (if pickup == 0)
166
166
*/
167
- inline int
167
+ static int
168
168
CopyPeekChar (FILE * fp )
169
169
{
170
170
if (!fp )
@@ -173,7 +173,7 @@ CopyPeekChar(FILE *fp)
173
173
return getc (fp );
174
174
}
175
175
176
- inline void
176
+ static void
177
177
CopyDonePeek (FILE * fp , int c , int pickup )
178
178
{
179
179
if (!fp )
0 commit comments