2 * label - label handling routines
4 * Copyright (C) 1999-2007 David I. Bell
6 * Calc is open software; you can redistribute it and/or modify it under
7 * the terms of the version 2.1 of the GNU Lesser General Public License
8 * as published by the Free Software Foundation.
10 * Calc is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
13 * Public License for more details.
15 * A copy of version 2.1 of the GNU Lesser General Public License is
16 * distributed with calc under the filename COPYING-LGPL. You should have
17 * received a copy with calc; if not, write to Free Software Foundation, Inc.
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 * @(#) $Revision: 30.1 $
21 * @(#) $Id: label.h,v 30.1 2007/03/16 11:09:46 chongo Exp $
22 * @(#) $Source: /usr/local/src/bin/calc/RCS/label.h,v $
24 * Under source code control: 1990/02/15 01:48:33
25 * File existed as early as: before 1990
27 * Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/
31 #if !defined(__LABEL_H__)
35 #if defined(CALC_SRC) /* if we are building from the calc source tree */
38 # include <calc/zmath.h>
42 #define NULL_LABEL ((LABEL *) 0)
49 long l_offset
; /* offset into code of label */
50 long l_chain
; /* offset into code of undefined chain */
51 char *l_name
; /* name of label if any */
55 E_FUNC
void initlabels(void);
56 E_FUNC
void definelabel(char *name
);
57 E_FUNC
void addlabel(char *name
);
58 E_FUNC
void clearlabel(LABEL
*lp
);
59 E_FUNC
void setlabel(LABEL
*lp
);
60 E_FUNC
void uselabel(LABEL
*lp
);
61 E_FUNC
void checklabels(void);
64 #endif /* !__LABEL_H__ */