static.h

Go to the documentation of this file.
00001 #ifndef __STATIC_H__
00002 #define __STATIC_H__
00003 
00004 /*
00005  Copyright (c) 2006-2010 Trevor Williams
00006 
00007  This program is free software; you can redistribute it and/or modify
00008  it under the terms of the GNU General Public License as published by the Free Software
00009  Foundation; either version 2 of the License, or (at your option) any later version.
00010 
00011  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
00012  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00013  See the GNU General Public License for more details.
00014 
00015  You should have received a copy of the GNU General Public License along with this program;
00016  if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00017 */
00018 
00026 #include "defines.h"
00027 
00028 
00030 static_expr* static_expr_gen_unary(
00031   static_expr* stexp,
00032   exp_op_type  op,
00033   int          line,
00034   int          first,
00035   int          last
00036 );
00037 
00039 static_expr* static_expr_gen(
00040   static_expr* right,
00041   static_expr* left,
00042   int          op,
00043   int          line,
00044   int          first,
00045   int          last,
00046   char*        func_name
00047 );
00048 
00050 void static_expr_calc_lsb_and_width_pre(
00051             static_expr*  left,
00052             static_expr*  right,
00053   /*@out@*/ unsigned int* width, 
00054   /*@out@*/ int*          lsb,
00055   /*@out@*/ int*          big_endian
00056 );
00057 
00059 void static_expr_calc_lsb_and_width_post(
00060             static_expr*  left,
00061             static_expr*  right,
00062   /*@out@*/ unsigned int* width,
00063   /*@out@*/ int*          lsb,
00064   /*@out@*/ int*          big_endian
00065 );
00066 
00068 void static_expr_dealloc(
00069   static_expr* stexp,
00070   bool         rm_exp
00071 );
00072 
00073 #endif
00074 
Generated on Sun Nov 21 00:55:36 2010 for Covered by  doxygen 1.6.3