2 * $Id: fit.h,v 1.12 2004/04/13 17:23:53 broeker Exp $
7 /* NOTICE: Change of Copyright Status
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.
14 * Lars Hecking 15-02-1999
18 * Header file: public functions in fit.c
21 * Previous copyright of this module: Carsten Grammes, 1993
22 * Experimental Physics, University of Saarbruecken, Germany
24 * Internet address: cagr@rz.uni-sb.de
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.
32 * This software is provided "as is" without express or implied warranty.
36 #ifndef GNUPLOT_FIT_H /* avoid multiple inclusions */
39 /* #if... / #include / #define collection: */
44 /* compatible with gnuplot philosophy */
45 #define STANDARD stderr
47 /* Suffix of a backup file */
48 #define BACKUP_SUFFIX ".old"
50 /*****************************************************************
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 ();}
58 /* Type definitions */
60 /* Exported Variables of fit.c */
63 extern char *fitlogfile;
66 /* NEW 20030131: should we place parameter errors into user-defined
68 extern TBOOLEAN fit_errorvariables;
69 #endif /* GP_FIT_ERRVARS */
72 /* Prototypes of functions exported by fit.c */
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));
82 #endif /* GNUPLOT_FIT_H */