#define wpinternalinclude /*so other includes can tell if we've been loaded*/



#undef abs
#include "paige.h"


#undef flvariables

#define pasbool(fl) ((fl)? TRUE : FALSE)


/*variables*/

extern pg_ref wpbuffer;



/*prototypes*/

extern boolean wpsetglobals (void); /*wpengine.c*/

extern boolean wppreedit (void);

extern void wppostedit (boolean);

extern void wpresettyping (void);

extern boolean wppushinsertundo (boolean, boolean);

extern boolean wppushformatundo (void);

extern boolean wpdelete (boolean);

extern boolean wpgetpackedmaxpos (Handle, long *);



#ifdef flvariables


extern boolean wpvariablerecalc (void); /*wpvariables*/

extern boolean wpdeletevariable (bigstring);

extern void wpdisposevariablelist (Handle);

extern boolean wpgetnthvariable (short, bigstring);

extern boolean wpgetvariablevalue (bigstring, bigstring);

extern boolean wpgetvariablevalue (bigstring, bigstring);

extern boolean wpsetvariablevalue (bigstring, bigstring);

extern boolean wpnewvariable (bigstring, bigstring);

extern boolean wppackvariablelist (Handle *);

extern boolean wpunpackvariablelist (Handle);

extern boolean wpgetvariablestring (FormatRec *, bigstring);

extern boolean wpremovevariablestyle (void);

extern boolean wpinsertvariable (bigstring);

extern boolean wpgetevaluate (void);

extern boolean wpsetevaluate (boolean);

extern void wphilitevariables (boolean);

extern void wpvariableinit (void);

#endif


