2 * $Id: parse.h,v 1.14.2.1 2008/04/08 19:00:44 sfeam Exp $
5 /* GNUPLOT - parse.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.
41 # include "gp_types.h"
45 /* externally usable types defined by parse.h */
47 /* exported variables of parse.c */
49 /* The choice of dummy variables, as set by 'set dummy', 'set polar'
50 * and 'set parametric' */
51 extern char set_dummy_var[MAX_NUM_VAR][MAX_ID_LEN+1];
52 /* the currently used 'dummy' variables. Usually a copy of
53 * set_dummy_var, but may be changed by the '(s)plot' command
54 * containing an explicit range (--> 'plot [phi=0..pi]') */
55 extern char c_dummy_var[MAX_NUM_VAR][MAX_ID_LEN+1];
57 /* This is used by the using_spec parsing code in plot_option_using() */
58 extern int at_highest_column_used;
60 /* Prototypes of exported functions in parse.c */
63 struct value * const_string_express __PROTO((struct value *valptr));
65 struct value * const_express __PROTO((struct value *valptr));
66 char* string_or_express __PROTO((struct at_type **atptr));
67 struct at_type * temp_at __PROTO((void));
68 struct at_type * perm_at __PROTO((void));
69 struct udvt_entry * add_udv __PROTO((int t_num));
70 struct udft_entry * add_udf __PROTO((int t_num));
71 void cleanup_udvlist __PROTO((void));