1 /*
2 
3 Copyright (C) 2015-2018 Night Dive Studios, LLC.
4 
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14 
15 You should have received a copy of the GNU General Public License
16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 
18 */
19 //
20 // $Source: n:/project/lib/src/2d/RCS/chnfuncs.asm $
21 // $Revision: 1.5 $
22 // $Author: kevin $
23 // $Date: 1994/12/02 21:52:27 $
24 //
25 // The Chain Handler, and attendant data.
26 //
27 // This file is part of the 2D library.
28 //
29 // Revision 1.5  1994/12/02  21:52:27  kevin
30 // Moved chaining globals accessed in gr_set_canvas to grd.c to avoid linking in unused code.
31 //
32 // Revision 1.4  1993/11/16  23:07:04  baf
33 // Added the ability to chain void functions
34 // after the primitive.
35 //
36 // Revision 1.3  1993/11/16  14:32:05  baf
37 // Made over in accordance with Kaboom's
38 // aesthetics. Also fixed a small bug.
39 //
40 // Revision 1.2  1993/11/15  03:29:54  baf
41 // Added support for chained void functions.
42 //
43 // Revision 1.1  1993/11/12  10:06:48  baf
44 // Initial revision
45 //
46 //
47 
48 #include "icanvas.h"
49 #include "chain.h"
50 #include "chnfuncs.h"
51 #include <stdlib.h>
52 
53 
54 // globals
55 grs_func_chain 	*gr_current_chain;
56 short						funcnum;
57 //Ptr							firstfunc;
58 //Ptr							chain_stack[256];
59 //Ptr							chain_stack_ptr;
60 
61 void 						(**chn_primitives[GRD_CANVAS_FUNCS])();
62 int 						gr_current_primitive = GRD_CANVAS_FUNCS;
63