Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
s_cnstrct.m
Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
00004 
00005   This program is free software; you can redistribute it and/or modify it
00006   under the terms of version 2 of the GNU General Public License as
00007   published by the Free Software Foundation.
00008 
00009   This program is distributed in the hope that it would be useful, but
00010   WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 
00013   Further, this software is distributed without any warranty that it is
00014   free of the rightful claim of any third person regarding infringement 
00015   or the like.  Any license provided herein, whether implied or 
00016   otherwise, applies only to this software file.  Patent licenses, if 
00017   any, provided herein do not apply to combinations of this program with 
00018   other software, or any other product whatsoever.  
00019 
00020   You should have received a copy of the GNU General Public License along
00021   with this program; if not, write the Free Software Foundation, Inc., 59
00022   Temple Place - Suite 330, Boston MA 02111-1307, USA.
00023 
00024   Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
00025   Mountain View, CA 94043, or:
00026 
00027   http://www.sgi.com
00028 
00029   For further information regarding this notice, see:
00030 
00031   http://oss.sgi.com/projects/GenInfo/NoticeExplan
00032 
00033 */
00034 
00035 
00036 /* USMID:  "\n@(#)5.0_pl/macros/s_cnstrct.m     5.3     06/11/99 08:54:22\n" */
00037 
00038 
00039 /*****************\
00040 |* MISCELLANEOUS *|
00041 \*****************/
00042 
00043 
00044 /********************\
00045 |* SIZES AND LIMITS *|
00046 \********************/
00047 
00048 # define CONSTRUCTOR_GUESS_SIZE         1000
00049 
00050 
00051 /******************************\
00052 |* OBJECT REPLACEMENT STRINGS *|
00053 \******************************/
00054 
00055 /***********************************\
00056 |* CONDITIONAL REPLACEMENT STRINGS *|
00057 \***********************************/
00058 
00059 
00060 # define        LCV_CONST(ATTR, IDX)    attr_tbl[ATTR].wd[IDX]
00061 
00062 
00063 /***********************************************\
00064 |* STATEMENT/FUNCTION-LIKE REPLACEMENT STRINGS *|
00065 \***********************************************/
00066 
00067 # define SAVE_ENV                                                       \
00068         save.words_in_constructor       = words_in_constructor;         \
00069         save.bits_in_constructor        = bits_in_constructor;          \
00070         save.char_result_len            = char_result_len;              \
00071         save.char_result_offset         = char_result_offset;           \
00072         save.the_cn_bit_offset          = the_cn_bit_offset;            \
00073         save.the_cn_idx                 = the_cn_idx;                   \
00074         save.bcast_cn_bit_offset        = bcast_cn_bit_offset;          \
00075         save.no_result_value            = no_result_value;              \
00076         save.unequal_char_lens          = unequal_char_lens;            \
00077         save.do_constructor_init        = do_constructor_init;          \
00078         save.check_type_conversion      = check_type_conversion;        \
00079         save.target_type_idx            = target_type_idx;              \
00080         save.target_char_len_idx        = target_char_len_idx;          \
00081         save.single_value_array         = single_value_array;           \
00082         save.single_value_opnd          = single_value_opnd;            \
00083         COPY_OPND(save.init_target_opnd, init_target_opnd);
00084 
00085 # define RESTORE_ENV                                                    \
00086         words_in_constructor            = save.words_in_constructor;    \
00087         bits_in_constructor             = save.bits_in_constructor;     \
00088         char_result_len                 = save.char_result_len;         \
00089         char_result_offset              = save.char_result_offset;      \
00090         the_cn_bit_offset               = save.the_cn_bit_offset;       \
00091         the_cn_idx                      = save.the_cn_idx;              \
00092         bcast_cn_bit_offset             = save.bcast_cn_bit_offset;     \
00093         no_result_value                 = save.no_result_value;         \
00094         unequal_char_lens               = save.unequal_char_lens;       \
00095         do_constructor_init             = save.do_constructor_init;     \
00096         check_type_conversion           = save.check_type_conversion;   \
00097         target_type_idx                 = save.target_type_idx;         \
00098         target_char_len_idx             = save.target_char_len_idx;     \
00099         single_value_array              = save.single_value_array;      \
00100         single_value_opnd               = save.single_value_opnd;       \
00101         COPY_OPND(init_target_opnd, save.init_target_opnd);
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines