home *** CD-ROM | disk | FTP | other *** search
/ Dream 45 / Amiga_Dream_45.iso / Amiga / Magazine / Dossier-LaTeX / rtf2latex.lha / latex2rtf / main.h < prev    next >
C/C++ Source or Header  |  1997-02-28  |  1KB  |  57 lines

  1. /*
  2.  * $Id: main.h,v 1.3 1994/07/13 09:27:31 ralf Exp $
  3.  * History:
  4.  * $Log: main.h,v $
  5.  * Revision 1.3  1994/07/13  09:27:31  ralf
  6.  * Corrected fpos/SEEK_SET bug for SunOs 4.3.1 reported by Ulrich Schmid
  7.  * <schmid@dkrz.d400.de>
  8.  *
  9.  * Revision 1.2  1994/06/17  14:19:41  ralf
  10.  * Corrected various bugs, for example interactive read of arguments
  11.  *
  12.  * Revision 1.1  1994/06/17  11:26:29  ralf
  13.  * Initial revision
  14.  *
  15.  */
  16. /*** Main Includefile ***/
  17. /*** global definitons uses in nearly all files ***/
  18.  
  19. #ifndef SEEK_SET
  20. #define SEEK_SET 0
  21. #define SEEK_CUR 1
  22. #endif
  23. #ifdef HAS_NO_FPOS
  24. typedef long fpos_t;
  25. #define fgetpos(file, posptr) (*(posptr) = ftell(file))
  26. #define fsetpos(file, posptr) fseek(file, *(posptr), SEEK_SET)
  27. #endif
  28.  
  29. void numerror(int num);
  30. void error(char * text);
  31. FILE *open_cfg(const char *);
  32.  
  33. typedef int BOOL;
  34. #define TRUE 1
  35. #define FALSE 0
  36.  
  37. #define MAXCOMMANDLEN 100
  38.  
  39. BOOL Convert();  /* main convert routine */
  40. void IgnoreTo(char cEnd);
  41.  
  42. /*** error constants ***/
  43. #define ERR_EOF_INPUT 1
  44. #define ERR_WRONG_COMMAND 2
  45. #define ERR_Param 3
  46. #define ERR_WRONG_COMMAND_IN_TABBING 4
  47.  
  48. /* available values for alignment */
  49. #define LEFT 'l'
  50. #define RIGHT 'r'
  51. #define CENTERED 'c'
  52. #define JUSTIFIED 'j'
  53.  
  54.  
  55.  
  56. #define PATHMAX 255
  57.