proof.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. #define NPAGES 500
  10. #define NFONT 33
  11. #define NSIZE 40
  12. #define MINSIZE 4
  13. #define DEFMAG (10.0/11.0) /* was (10.0/11.0), then 1 */
  14. #define MAXVIEW 40
  15. #define ONES ~0
  16. extern char devname[];
  17. extern double mag;
  18. extern int nview;
  19. extern int hpos, vpos, curfont, cursize;
  20. extern int DIV, res;
  21. extern int Mode;
  22. extern Point offset; /* for small pages within big page */
  23. extern Point xyoffset; /* for explicit x,y move */
  24. extern Cursor deadmouse;
  25. extern char libfont[];
  26. void mapscreen(void);
  27. void clearscreen(void);
  28. char *getcmdstr(void);
  29. void readmapfile(char *);
  30. void dochar(Rune*);
  31. void bufput(void);
  32. void loadfontname(int, char *);
  33. void allfree(void);
  34. void readpage(void);
  35. int isspace(int);
  36. extern int getc(void);
  37. extern int getrune(void);
  38. extern void ungetc(void);
  39. extern uint32_t offsetc(void);
  40. extern uint32_t seekc(uint32_t);
  41. extern char* rdlinec(void);
  42. #define dprint if (dbg) fprint
  43. extern int dbg;
  44. extern int resized;