Lines Matching refs:VFP

162 #define	vfpGetModifiedLen(VFP)						\  argument
163 (size_t)(((VFP)->_vfpHighWater > (VFP)->_vfpCurr) ? \
164 (((ptrdiff_t)(VFP)->_vfpHighWater - \
165 (ptrdiff_t)(VFP)->_vfpStart)) : \
166 (((ptrdiff_t)(VFP)->_vfpCurr - \
167 (ptrdiff_t)(VFP)->_vfpStart)))
173 #define vfpIncCurrPtrBy(VFP, INC) \ argument
175 ((VFP)->_vfpCurr) += (INC); \
176 if (((VFP)->_vfpCurr) > ((VFP)->_vfpEnd)) { \
177 (VFP)->_vfpCurr = (VFP)->_vfpEnd; \
178 (VFP)->_vfpOverflow = 1; \
180 if ((VFP)->_vfpHighWater < (VFP)->_vfpCurr) { \
181 (VFP)->_vfpHighWater = (VFP)->_vfpCurr; \
186 #define vfpGetPath(VFP) ((VFP)->_vfpPath) argument
189 #define vfpGets(VFP, PTR, LEN) \ argument
193 while ((*(VFP)->_vfpCurr != '\0') && \
194 (*(VFP)->_vfpCurr != '\n')) { \
196 *XXpXX++ = *(VFP)->_vfpCurr; \
199 (VFP)->_vfpCurr++; \
202 if (*(VFP)->_vfpCurr != '\0') { \
203 (VFP)->_vfpCurr++; \
208 #define vfpGetBytesRemaining(VFP) \ argument
209 (((((VFP)->_vfpHighWater) <= ((VFP)->_vfpCurr))) ? 0 : \
210 ((((ptrdiff_t)(VFP)->_vfpHighWater)-((ptrdiff_t)(VFP)->_vfpCurr))))
213 #define vfpGetBytesAvailable(VFP) \ argument
214 (((((VFP)->_vfpEnd) <= ((VFP)->_vfpCurr))) ? 0 : \
215 ((((ptrdiff_t)(VFP)->_vfpEnd)-((ptrdiff_t)(VFP)->_vfpCurr))))
218 #define vfpPutc(VFP, C) \ argument
220 (*(VFP)->_vfpCurr) = ((char)(C)); \
221 vfpIncCurrPtrBy((VFP), 1); \
225 #define vfpPutInteger(VFP, NUMBER) vfpPutFormat((VFP), "%d", (NUMBER)) argument
228 #define vfpPutLong(VFP, NUMBER) vfpPutFormat((VFP), "%ld", (NUMBER)) argument
231 #define vfpGetc(VFP) (*(VFP)->_vfpCurr++) argument
234 #define vfpGetcNoInc(VFP) (*(VFP)->_vfpCurr) argument
237 #define vfpGetCurrCharPtr(VFP) ((VFP)->_vfpCurr) argument
240 #define vfpIncCurrPtr(VFP) vfpIncCurrPtrBy((VFP), 1) argument
243 #define vfpDecCurrPtr(VFP) ((VFP)->_vfpCurr--) argument
246 #define vfpGetFirstCharPtr(VFP) ((VFP)->_vfpStart) argument
249 #define vfpGetLastCharPtr(VFP) ((VFP)->_vfpHighWater) argument
252 #define vfpSetCurrCharPtr(VFP, PTR) \ argument
253 if ((VFP)->_vfpCurr > (VFP)->_vfpHighWater) { \
254 (VFP)->_vfpHighWater = (VFP)->_vfpCurr; \
256 ((VFP)->_vfpCurr = (PTR))
259 #define vfpSetLastCharPtr(VFP, PTR) \ argument
260 if ((PTR) >= (VFP)->_vfpStart) { \
261 (VFP)->_vfpHighWater = (PTR); \
262 if ((VFP)->_vfpCurr > (VFP)->_vfpHighWater) { \
263 (VFP)->_vfpCurr = (VFP)->_vfpHighWater; \
268 #define vfpSeekToEnd(VFP) ((VFP)->_vfpCurr = ((VFP)->_vfpHighWater)+1) argument
271 #define vfpGetCurrPtrDelta(VFP, P) \ argument
272 (((ptrdiff_t)(P))-((ptrdiff_t)(VFP)->_vfpCurr))
275 #define vfpPuts(VFP, S) \ argument
279 xxLen = vfpGetBytesAvailable((VFP)); \
280 xxResult = strlcpy(((VFP)->_vfpCurr), (S), xxLen); \
281 vfpIncCurrPtrBy((VFP), xxResult); \
285 #define vfpPutBytes(VFP, PTR, LEN) \ argument
288 xxLen = vfpGetBytesAvailable((VFP)); \
292 (VFP)->_vfpOverflow = 1; \
294 memcpy((VFP)->_vfpCurr, (PTR), (xxLen)); \
295 vfpIncCurrPtrBy((VFP), (xxLen)); \
299 #define vfpPutFormat(VFP, FORMAT, ARG) \ argument
303 vfpPuts((VFP), xxTeMpXX); \