diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/kamal/setups.h |
Initial commit
Diffstat (limited to 'support/kamal/setups.h')
-rw-r--r-- | support/kamal/setups.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/support/kamal/setups.h b/support/kamal/setups.h new file mode 100644 index 0000000000..c0509e3663 --- /dev/null +++ b/support/kamal/setups.h @@ -0,0 +1,68 @@ +/* setup file */ + +#include <stdio.h> +#ifdef MSC +#include <string.h> +#include <stdlib.h> /* for type declarations */ +#include <io.h> /* for type declarations */ +#else +#include <strings.h> +#include <sys/ioctl.h> +#include <sgtty.h> +#endif + +#define MAXLEN 1048576 /* maximum number of chars in a document */ +#define MAXWORD 100 /* maximum word length */ +#define MAXLINE 250 /* maximum line length */ +#define MAXENV 50 /* maximum number of environments */ + +extern char *malloc(); + +#ifdef IN_TM /* can only declare globals once */ +#else +extern +#endif +struct environment { + char *env_name; /* name of environment */ + int env_beg; /* counter for \begin{environment} */ + int env_end; /* counter for \end{environment} */ + int beg_line; /* line number for \beging{environment} */ + } env[MAXENV]; + +#ifdef ANSI +int begin_to_end(char*,char*); +int command(char*,char*); +int comm_file(FILE*,int*); +int comment(char*); +int def(char*,char*); +int def_file(FILE*,int*); +int display(char*); +int dollar(char*,FILE*); +int formula(char*); +int get_buf_word(char*,char*); +int getenv_file(FILE*,int*); +int get_file_word(FILE*,char*,int*,int*); +int is_new_env(char*,int); +int one_dollar(char*); +void scrbuf(FILE*,FILE*); +void tmpbuf(FILE*,char*); +int two_dollars(char*,FILE*); +#else +int begin_to_end(); +int command(); +int comm_file(); +int comment(); +int def(); +int def_file(); +int display(); +int dollar(); +int formula(); +int get_buf_word(); +int getenv_file(); +int get_file_word(); +int is_new_env(); +int one_dollar(); +void scrbuf(); +void tmpbuf(); +int two_dollars(); +#endif |