Initial release of Maemo 5 port of gnuplot
[gnuplot] / src / fit.h
1 /*
2  * $Id: fit.h,v 1.12 2004/04/13 17:23:53 broeker Exp $
3  */
4
5 /* GNUPLOT - fit.h */
6
7 /*  NOTICE: Change of Copyright Status
8  *
9  *  The author of this module, Carsten Grammes, has expressed in
10  *  personal email that he has no more interest in this code, and
11  *  doesn't claim any copyright. He has agreed to put this module
12  *  into the public domain.
13  *
14  *  Lars Hecking  15-02-1999
15  */
16
17 /*
18  *      Header file: public functions in fit.c
19  *
20  *
21  *      Previous copyright of this module:   Carsten Grammes, 1993
22  *      Experimental Physics, University of Saarbruecken, Germany
23  *
24  *      Internet address: cagr@rz.uni-sb.de
25  *
26  *      Permission to use, copy, and distribute this software and its
27  *      documentation for any purpose with or without fee is hereby granted,
28  *      provided that the above copyright notice appear in all copies and
29  *      that both that copyright notice and this permission notice appear
30  *      in supporting documentation.
31  *
32  *      This software is provided "as is" without express or implied warranty.
33  */
34
35
36 #ifndef GNUPLOT_FIT_H           /* avoid multiple inclusions */
37 #define GNUPLOT_FIT_H
38
39 /* #if... / #include / #define collection: */
40
41 #include "syscfg.h"
42 #include "stdfn.h"
43
44 /* compatible with gnuplot philosophy */
45 #define STANDARD stderr
46
47 /* Suffix of a backup file */
48 #define BACKUP_SUFFIX ".old"
49
50 /*****************************************************************
51     Useful macros
52     We avoid any use of varargs/stdargs (not good style but portable)
53 *****************************************************************/
54 #define Eex(a)      {sprintf (fitbuf+9, (a));         error_ex ();}
55 #define Eex2(a,b)   {sprintf (fitbuf+9, (a),(b));     error_ex ();}
56 #define Eex3(a,b,c) {sprintf (fitbuf+9, (a),(b),(c)); error_ex ();}
57
58 /* Type definitions */
59
60 /* Exported Variables of fit.c */
61
62 extern char fitbuf[];
63 extern char *fitlogfile;
64
65 #ifdef GP_FIT_ERRVARS
66 /* NEW 20030131: should we place parameter errors into user-defined
67  * variables?  */
68 extern TBOOLEAN fit_errorvariables;
69 #endif /* GP_FIT_ERRVARS */
70
71
72 /* Prototypes of functions exported by fit.c */
73
74 void error_ex __PROTO((void));
75 void init_fit __PROTO((void));
76 void update __PROTO((char *pfile, char *npfile));
77 void fit_command __PROTO((void));
78 size_t wri_to_fil_last_fit_cmd __PROTO((FILE *fp));
79 /* HBB/H.Harders NEW 20020927 */
80 char *getfitlogfile __PROTO((void));
81
82 #endif /* GNUPLOT_FIT_H */