home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / useful / dist / text / tex / pastex / macros / latex / nfss2 / psmetrics / vpltovpl.h < prev   
C/C++ Source or Header  |  1993-07-29  |  2KB  |  70 lines

  1. #include <stdio.h>
  2. #ifdef MSDOS
  3. #include <string.h>
  4. #include <stdlib.h>
  5. #define SEARCH strchr
  6. #else
  7. #define remove(file) unlink(file)
  8. #ifdef SYSV
  9. #include <string.h>
  10. #define SEARCH strchr
  11. #else
  12. #define SEARCH index
  13. #include <strings.h>
  14. #endif
  15. #endif
  16.  
  17. #define GRAVE "O 0"
  18. #define ACUTE "O 1"
  19. #define CIRCUMFLEX "O 2"
  20. #define TILDE "O 3"
  21. #define DIERESIS "O 4"
  22. #define HUNGARUMLAUT "O 5"
  23. #define RING "O 6"
  24. #define CARON "O 7"
  25. #define BREVE "O 10"
  26. #define MACRON "O 11"
  27. #define DOTACCENT "O 12"
  28. #define CEDILLA "O 13"
  29. #define OGONEK "O 14"
  30. #define QUOTE "O 47"
  31. #define BAR "O 25"
  32.  
  33. /* extra amount to raise accents above small caps */
  34. #define SC_ACCENT_RAISE 170
  35.  
  36. #define LINELENGTH 256
  37. #define MAXCHARS 300
  38. #define MAXENTRY 20000   /* they can get pretty big! eg ligtable entries */
  39.  
  40. extern  struct character *findchar();
  41. extern  float width(char *key);
  42. extern  float height(char *key);
  43. extern  float depth(char *key);
  44. extern  float charic(char *key);
  45. #ifndef MSDOS
  46. extern  float max(float a,float b); 
  47. #endif
  48. extern  void error(char *s);
  49. extern  char *mymalloc();
  50. extern  char *namespace(void );
  51. extern  struct character *anewchar();
  52. extern  int count(char *line);
  53. extern  void vchar(int charnum,char *charname,double charwd,double charht,double chardp,double charic,char *oldchar,char *accent,double moveright,double moveup,int WhichFont);
  54. extern  void upperacc(int number,char *c,char *accent,char *name);
  55. extern  void loweracc(int number,char *c,char *accent,char *name,double movedown);
  56. extern  int generatenormal(void );
  57. extern  int generatespecial(void );
  58. extern  int getentry(void );
  59. extern  void process(void );
  60. extern  void generateligs(void );
  61. extern  int main(int argc,char * *argv);
  62. #ifndef ALLOC_RETURN_TYPE
  63. #ifdef DOS
  64. #define ALLOC_RETURN_TYPE void
  65. #else
  66. #define ALLOC_RETURN_TYPE char
  67. #endif /* not DOS */
  68. #endif /* not ALLOC_RETURN_TYPE */
  69. extern ALLOC_RETURN_TYPE *calloc (), *malloc (), *realloc ();
  70.