2 * $Id: binary.h,v 1.10.4.1 2007/10/02 18:20:30 sfeam Exp $
5 /* GNUPLOT - binary.h */
8 * Copyright 1986 - 1993, 1998, 2004 Thomas Williams, Colin Kelley
10 * Permission to use, copy, and distribute this software and its
11 * documentation for any purpose with or without fee is hereby granted,
12 * provided that the above copyright notice appear in all copies and
13 * that both that copyright notice and this permission notice appear
14 * in supporting documentation.
16 * Permission to modify the software is granted, but not the right to
17 * distribute the complete modified source code. Modifications are to
18 * be distributed as patches to the released version. Permission to
19 * distribute binaries produced by compiling modified sources is granted,
21 * 1. distribute the corresponding source modifications from the
22 * released version in the form of a patch file along with the binaries,
23 * 2. add special version identification to distinguish your version
24 * in addition to the base release version number,
25 * 3. provide your name and address as the primary contact for the
26 * support of your modified version, and
27 * 4. retain our contact information in regard to use of the base
29 * Permission to distribute the released version of the source code along
30 * with corresponding source modifications in the form of a patch file is
31 * granted with same provisions 2 through 4 for binary distributions.
33 * This software is provided "as is" without express or implied warranty
34 * to the extent permitted by applicable law.
37 #ifndef GNUPLOT_BINARY_H
38 # define GNUPLOT_BINARY_H
43 /* Routines for interfacing with command.c */
44 float GPFAR *alloc_vector __PROTO(( int nl, int nh));
45 float GPFAR *extend_vector __PROTO((float GPFAR *vec, int old_nl, int new_nh));
46 float GPFAR *retract_vector __PROTO((float GPFAR *v, int old_nl, int new_nh));
47 float GPFAR * GPFAR *matrix __PROTO(( int nrl, int nrh, int ncl, int nch));
48 float GPFAR * GPFAR *extend_matrix __PROTO(( float GPFAR * GPFAR *a, int nrl, int nrh, int ncl, int nch, int srh, int sch));
49 float GPFAR * GPFAR *retract_matrix __PROTO(( float GPFAR * GPFAR *a, int nrl, int nrh, int ncl, int nch, int srh, int sch));
50 void free_matrix __PROTO((float GPFAR * GPFAR *m, int nrl, int nrh, int ncl));
51 void free_vector __PROTO((float GPFAR *vec, int nl));
52 int is_binary_file __PROTO((FILE *fp));
53 int fread_matrix __PROTO((FILE *fin, float GPFAR * GPFAR * GPFAR *ret_matrix, int *nr, int *nc, float GPFAR * GPFAR *row_title, float GPFAR * GPFAR *column_title));
54 int fwrite_matrix __PROTO((FILE *fout, float GPFAR * GPFAR *m, int nrl, int nrh, int ncl, int nch, float GPFAR *row_title, float GPFAR *column_title));
55 float GPFAR * GPFAR *convert_matrix __PROTO((float GPFAR *a, int nrl, int nrh, int ncl, int nch));
56 void free_convert_matrix __PROTO((float GPFAR* GPFAR *b, int nrl));
58 #endif /* GNUPLOT_BINARY_H */