Initial release of Maemo 5 port of gnuplot
[gnuplot] / docs / doc2x.h
1 /*
2  * $Id: doc2x.h,v 1.8 2004/04/13 17:23:31 broeker Exp $
3  *
4  */
5
6 /* GNUPLOT - doc2x.h */
7
8 /*[
9  * Copyright 1986 - 1993, 1998, 2004   Thomas Williams, Colin Kelley
10  *
11  * Permission to use, copy, and distribute this software and its
12  * documentation for any purpose with or without fee is hereby granted,
13  * provided that the above copyright notice appear in all copies and
14  * that both that copyright notice and this permission notice appear
15  * in supporting documentation.
16  *
17  * Permission to modify the software is granted, but not the right to
18  * distribute the complete modified source code.  Modifications are to
19  * be distributed as patches to the released version.  Permission to
20  * distribute binaries produced by compiling modified sources is granted,
21  * provided you
22  *   1. distribute the corresponding source modifications from the
23  *    released version in the form of a patch file along with the binaries,
24  *   2. add special version identification to distinguish your version
25  *    in addition to the base release version number,
26  *   3. provide your name and address as the primary contact for the
27  *    support of your modified version, and
28  *   4. retain our contact information in regard to use of the base
29  *    software.
30  * Permission to distribute the released version of the source code along
31  * with corresponding source modifications in the form of a patch file is
32  * granted with same provisions 2 through 4 for binary distributions.
33  *
34  * This software is provided "as is" without express or implied warranty
35  * to the extent permitted by applicable law.
36 ]*/
37
38 #ifndef DOCS_DOC2X_H
39 # define DOCS_DOC2X_H
40
41 #include "stdfn.h"              /* HBB 990828: safe_strncpy() prototype */
42
43 /* Various defines and macros */
44 #ifndef MAX_LINE_LEN
45 # define MAX_LINE_LEN 1023
46 #endif
47
48 #ifndef MAX_NAME_LEN
49 # define MAX_NAME_LEN 255
50 #endif
51
52 #ifdef HAVE_STRINGIZE
53 # define START_HELP(driver) "C#" #driver ,
54 # define END_HELP(driver)   ,"C#",
55 #else
56 # define START_HELP(driver)     /* nought */
57 # define END_HELP(driver)   ,
58 #endif
59
60 #if defined(DOCS_TERMDOC_MAIN) || defined(DOCS_XREF_MAIN)
61 extern char *termtext[];
62 #else
63
64 /* a complete lie, but they dont need it ! */
65 # define TERM_DRIVER_H
66 # define TERM_HELP
67
68 char *termtext[] = {
69 # ifdef ALL_TERM_DOC
70 #  include "allterm.h"
71 # else
72 #  include "term.h"
73 # endif
74     NULL
75 };
76 #endif /* !DOCS_TERMDOC_MAIN */
77
78 /* From termdoc.c */
79 #ifndef DOCS_TERMDOC_MAIN
80 extern int termdoc_lineno;
81 extern char termdoc_filename[];
82 #endif
83
84 /* We are using the fgets() replacement from termdoc.c */
85 #ifndef DOCS_TERMDOC_MAIN
86 extern
87 #endif
88        char *get_line __PROTO((char *, int, FILE *));
89
90 #endif /* DOCS_DOC2X_H */