File: fit.h

package info (click to toggle)
gnuplot 3.5beta6.347-3
  • links: PTS
  • area: main
  • in suites: slink
  • size: 5,032 kB
  • ctags: 4,235
  • sloc: ansic: 42,086; makefile: 561; asm: 539; sh: 386; objc: 379; csh: 297; pascal: 194; perl: 138; lisp: 88
file content (64 lines) | stat: -rw-r--r-- 1,555 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/* $Id: fit.h,v 1.13 1998/06/22 12:24:51 ddenholm Exp $ */

/*
 *	Header file: public functions in fit.c
 *
 *
 *	Copyright of this module:   Carsten Grammes, 1993
 *      Experimental Physics, University of Saarbruecken, Germany
 *
 *	Internet address: cagr@rz.uni-sb.de
 *
 *	Permission to use, copy, and distribute this software and its
 *	documentation for any purpose with or without fee is hereby granted,
 *	provided that the above copyright notice appear in all copies and
 *	that both that copyright notice and this permission notice appear
 *	in supporting documentation.
 *
 *      This software is provided "as is" without express or implied warranty.
 */


#ifndef FIT_H		/* avoid multiple inclusions */
#define FIT_H

#ifdef EXT
#undef EXT
#endif

#ifdef FIT_MAIN
#define EXT
#else
#define EXT extern
#endif

#include "type.h"
#include "plot.h"

#include "ansichek.h"

#define FIT_SKIP "FIT_SKIP"

EXT char    *fit_index;
EXT char    fitbuf[256];


/******* public functions ******/

EXT char    *get_next_word __PROTO((char **s, char *subst));

EXT void    init_fit __PROTO((void));
EXT void    setvar __PROTO((char *varname, struct value data));
EXT int     getivar __PROTO((char *varname));
EXT void    update __PROTO((char *pfile, char *npfile));
EXT void    do_fit __PROTO((void));

/********* Macros *********/

#define Eex(a)	    {sprintf (fitbuf+9, a);	error_ex ();}
#define Eex2(a,b)   {sprintf (fitbuf+9, a,b);	error_ex ();}
#define Eex3(a,b,c) {sprintf (fitbuf+9, a,b,c); error_ex ();}

EXT void error_ex __PROTO((void));

#endif