Annotation of OpenXM_contrib/gnuplot/fit.h, Revision 1.1.1.3
1.1.1.3 ! ohara 1: /* $Id: fit.h,v 1.9.2.1 2002/01/31 21:22:37 lhecking Exp $ */
! 2:
! 3: /* GNUPLOT - fit.h */
! 4:
! 5: /* NOTICE: Change of Copyright Status
! 6: *
! 7: * The author of this module, Carsten Grammes, has expressed in
! 8: * personal email that he has no more interest in this code, and
! 9: * doesn't claim any copyright. He has agreed to put this module
! 10: * into the public domain.
! 11: *
! 12: * Lars Hecking 15-02-1999
! 13: */
1.1 maekawa 14:
15: /*
16: * Header file: public functions in fit.c
17: *
18: *
19: * Copyright of this module: Carsten Grammes, 1993
20: * Experimental Physics, University of Saarbruecken, Germany
21: *
22: * Internet address: cagr@rz.uni-sb.de
23: *
24: * Permission to use, copy, and distribute this software and its
25: * documentation for any purpose with or without fee is hereby granted,
26: * provided that the above copyright notice appear in all copies and
27: * that both that copyright notice and this permission notice appear
28: * in supporting documentation.
29: *
30: * This software is provided "as is" without express or implied warranty.
31: */
32:
33:
1.1.1.3 ! ohara 34: #ifndef GNUPLOT_FIT_H /* avoid multiple inclusions */
! 35: #define GNUPLOT_FIT_H
1.1 maekawa 36:
37: #ifdef EXT
38: #undef EXT
39: #endif
40:
41: #ifdef FIT_MAIN
42: #define EXT
43: #else
44: #define EXT extern
45: #endif
46:
47: #include "plot.h"
48:
49: #include "ansichek.h"
50:
51: #define FIT_SKIP "FIT_SKIP"
52:
53: EXT char *fit_index;
54: EXT char fitbuf[256];
55:
56: /*****************************************************************
57: Useful macros
58: We avoid any use of varargs/stdargs (not good style but portable)
59: *****************************************************************/
60:
61: #define Dblf(a) {fprintf (STANDARD,a); fprintf (log_f,a);}
62: #define Dblf2(a,b) {fprintf (STANDARD,a,b); fprintf (log_f,a,b);}
63: #define Dblf3(a,b,c) {fprintf (STANDARD,a,b,c); fprintf (log_f,a,b,c);}
64: #define Dblf5(a,b,c,d,e) \
65: {fprintf (STANDARD,a,b,c,d,e); fprintf (log_f,a,b,c,d,e);}
66: #define Dblf6(a,b,c,d,e,f) \
67: {fprintf (STANDARD,a,b,c,d,e,f); fprintf (log_f,a,b,c,d,e,f);}
68:
69: #define Eex(a) {sprintf (fitbuf+9, (a)); error_ex ();}
70: #define Eex2(a,b) {sprintf (fitbuf+9, (a),(b)); error_ex ();}
71: #define Eex3(a,b,c) {sprintf (fitbuf+9, (a),(b),(c)); error_ex ();}
72:
73: EXT void error_ex __PROTO((void));
74:
75: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>