Lines Matching refs:VFP

160 #define	vfpGetModifiedLen(VFP)						\  argument
161 (size_t)(((VFP)->_vfpHighWater > (VFP)->_vfpCurr) ? \
162 (((ptrdiff_t)(VFP)->_vfpHighWater - \
163 (ptrdiff_t)(VFP)->_vfpStart)) : \
164 (((ptrdiff_t)(VFP)->_vfpCurr - \
165 (ptrdiff_t)(VFP)->_vfpStart)))
171 #define vfpIncCurrPtrBy(VFP, INC) \ argument
173 ((VFP)->_vfpCurr) += (INC); \
174 if (((VFP)->_vfpCurr) > ((VFP)->_vfpEnd)) { \
175 (VFP)->_vfpCurr = (VFP)->_vfpEnd; \
176 (VFP)->_vfpOverflow = 1; \
178 if ((VFP)->_vfpHighWater < (VFP)->_vfpCurr) { \
179 (VFP)->_vfpHighWater = (VFP)->_vfpCurr; \
184 #define vfpGetPath(VFP) ((VFP)->_vfpPath) argument
187 #define vfpGets(VFP, PTR, LEN) \ argument
191 while ((*(VFP)->_vfpCurr != '\0') && \
192 (*(VFP)->_vfpCurr != '\n')) { \
194 *XXpXX++ = *(VFP)->_vfpCurr; \
197 (VFP)->_vfpCurr++; \
200 if (*(VFP)->_vfpCurr != '\0') { \
201 (VFP)->_vfpCurr++; \
206 #define vfpGetBytesRemaining(VFP) \ argument
207 (((((VFP)->_vfpHighWater) <= ((VFP)->_vfpCurr))) ? 0 : \
208 ((((ptrdiff_t)(VFP)->_vfpHighWater)-((ptrdiff_t)(VFP)->_vfpCurr))))
211 #define vfpGetBytesAvailable(VFP) \ argument
212 (((((VFP)->_vfpEnd) <= ((VFP)->_vfpCurr))) ? 0 : \
213 ((((ptrdiff_t)(VFP)->_vfpEnd)-((ptrdiff_t)(VFP)->_vfpCurr))))
216 #define vfpPutc(VFP, C) \ argument
218 (*(VFP)->_vfpCurr) = ((char)(C)); \
219 vfpIncCurrPtrBy((VFP), 1); \
223 #define vfpPutInteger(VFP, NUMBER) vfpPutFormat((VFP), "%d", (NUMBER)) argument
226 #define vfpPutLong(VFP, NUMBER) vfpPutFormat((VFP), "%ld", (NUMBER)) argument
229 #define vfpGetc(VFP) (*(VFP)->_vfpCurr++) argument
232 #define vfpGetcNoInc(VFP) (*(VFP)->_vfpCurr) argument
235 #define vfpGetCurrCharPtr(VFP) ((VFP)->_vfpCurr) argument
238 #define vfpIncCurrPtr(VFP) vfpIncCurrPtrBy((VFP), 1) argument
241 #define vfpDecCurrPtr(VFP) ((VFP)->_vfpCurr--) argument
244 #define vfpGetFirstCharPtr(VFP) ((VFP)->_vfpStart) argument
247 #define vfpGetLastCharPtr(VFP) ((VFP)->_vfpHighWater) argument
250 #define vfpSetCurrCharPtr(VFP, PTR) \ argument
251 if ((VFP)->_vfpCurr > (VFP)->_vfpHighWater) { \
252 (VFP)->_vfpHighWater = (VFP)->_vfpCurr; \
254 ((VFP)->_vfpCurr = (PTR))
257 #define vfpSetLastCharPtr(VFP, PTR) \ argument
258 if ((PTR) >= (VFP)->_vfpStart) { \
259 (VFP)->_vfpHighWater = (PTR); \
260 if ((VFP)->_vfpCurr > (VFP)->_vfpHighWater) { \
261 (VFP)->_vfpCurr = (VFP)->_vfpHighWater; \
266 #define vfpSeekToEnd(VFP) ((VFP)->_vfpCurr = ((VFP)->_vfpHighWater)+1) argument
269 #define vfpGetCurrPtrDelta(VFP, P) \ argument
270 (((ptrdiff_t)(P))-((ptrdiff_t)(VFP)->_vfpCurr))
273 #define vfpPuts(VFP, S) \ argument
277 xxLen = vfpGetBytesAvailable((VFP)); \
278 xxResult = strlcpy(((VFP)->_vfpCurr), (S), xxLen); \
279 vfpIncCurrPtrBy((VFP), xxResult); \
283 #define vfpPutBytes(VFP, PTR, LEN) \ argument
286 xxLen = vfpGetBytesAvailable((VFP)); \
290 (VFP)->_vfpOverflow = 1; \
292 memcpy((VFP)->_vfpCurr, (PTR), (xxLen)); \
293 vfpIncCurrPtrBy((VFP), (xxLen)); \
297 #define vfpPutFormat(VFP, FORMAT, ARG) \ argument
301 vfpPuts((VFP), xxTeMpXX); \