Reorganized the code a bit.
[rpn.git] / src / include / structs.h
blob09aed434c25c2271a133de2bf0943230d97a5b5f
1 /*******************************************************************************
2 * Reverse Polish Notation calculator. *
3 * Copyright (c) 2007-2008, Samuel Fredrickson <kinghajj@gmail.com> *
4 * All rights reserved. *
5 * *
6 * Redistribution and use in source and binary forms, with or without *
7 * modification, are permitted provided that the following conditions are met: *
8 * * Redistributions of source code must retain the above copyright *
9 * notice, this list of conditions and the following disclaimer. *
10 * * Redistributions in binary form must reproduce the above copyright *
11 * notice, this list of conditions and the following disclaimer in the *
12 * documentation and/or other materials provided with the distribution. *
13 * *
14 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER ``AS IS'' AND ANY EXPRESS *
15 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED *
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE *
17 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY *
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES *
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR *
20 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER *
21 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT *
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY *
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH *
24 * DAMAGE. *
25 ******************************************************************************/
27 /*******************************************************************************
28 * Forward declarations of structures to help with circular dependency woes. *
29 ******************************************************************************/
31 #ifndef RPN_STRUCTS_H
32 #define RPN_STRUCTS_H
34 struct RPNCalculator;
35 typedef struct RPNCalculator RPNCalculator;
37 struct RPNCommands;
38 typedef struct RPNCommands RPNCommands;
40 struct RPNCommand;
41 typedef struct RPNCommand RPNCommand;
43 struct RPNHistory;
44 typedef struct RPNHistory RPNHistory;
46 struct RPNNode;
47 typedef struct RPNNode RPNNode;
49 struct RPNOperator;
50 typedef struct RPNOperator RPNOperator;
52 struct RPNOperators;
53 typedef struct RPNOperators RPNOperators;
55 struct RPNStack;
56 typedef struct RPNStack RPNStack;
58 struct RPNTokens;
59 typedef struct RPNTokens RPNTokens;
61 struct RPNVariable;
62 typedef struct RPNVariable RPNVariable;
64 struct RPNVariables;
65 typedef struct RPNVariables RPNVariables;
67 #endif // RPN_STRUCTS_H