summaryrefslogtreecommitdiffstats
path: root/src/build/ifcompiler/initRpn.C
diff options
context:
space:
mode:
authorAndrew Geissler <andrewg@us.ibm.com>2011-11-15 16:49:58 -0600
committerMIKE J. JONES <mjjones@us.ibm.com>2011-11-17 16:14:31 -0600
commit610b9837c7586d6ae39b20492fd9383e2c35e70a (patch)
tree656917fc1dd3a3824dceb9f3b585f284b4878a7b /src/build/ifcompiler/initRpn.C
parentd7f4265a6a3f73e98024e9d9c7f9cc36d4d27b9d (diff)
downloadblackbird-hostboot-610b9837c7586d6ae39b20492fd9383e2c35e70a.tar.gz
blackbird-hostboot-610b9837c7586d6ae39b20492fd9383e2c35e70a.zip
Initfile - Support for multi-dimensional arrays
- Fix compile issue (forgot new file) - Explicitly define array size - Code review comment to replace #define with const - More changes for const police Change-Id: Ib5964c6bd266f9d74f4810d7884e5d63754eb3fb Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/497 Tested-by: Jenkins Server Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Diffstat (limited to 'src/build/ifcompiler/initRpn.C')
-rw-r--r--[-rwxr-xr-x]src/build/ifcompiler/initRpn.C14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/build/ifcompiler/initRpn.C b/src/build/ifcompiler/initRpn.C
index bd1b8b1a1..39af931a1 100755..100644
--- a/src/build/ifcompiler/initRpn.C
+++ b/src/build/ifcompiler/initRpn.C
@@ -22,6 +22,7 @@
// andrewg 05/24/11 Port over for VPL/PgP
// andrewg 09/19/11 Updates based on review
// camvanng 11/08/11 Added support for attribute enums
+// andrewg 11/09/11 Multi-dimensional array and move to common fapi include
// End Change Log *********************************************************************************
/**
@@ -207,7 +208,7 @@ void Rpn::push_array_index(std::string &i_array_idx)
uint32_t rpn_id = iv_symbols->find_numeric_array_lit(l_array_val,4);
iv_rpnstack.push_back(rpn_id);
- //printf("Array Index: %s decimal:%u rpn_id:0x%8X\n",l_idx.c_str(),l_array_val,rpn_id);
+ // printf("Array Index: %s decimal:%u rpn_id:0x%8X\n",l_idx.c_str(),l_array_val,rpn_id);
}
@@ -240,10 +241,10 @@ bool Rpn::isFalse() const //dg003a
//-------------------------------------------------------------------------------------------------
-Rpn * Rpn::push_op(RPN_OP op)
+Rpn * Rpn::push_op(IfRpnOp op)
{
uint32_t v = op;
- if(op == Rpn::LIST) // calculate list size
+ if(op == LIST) // calculate list size
{
uint32_t count = 0;
for(RPNSTACK::const_reverse_iterator r = iv_rpnstack.rbegin(); r != iv_rpnstack.rend(); ++r)
@@ -261,7 +262,7 @@ Rpn * Rpn::push_op(RPN_OP op)
//-------------------------------------------------------------------------------------------------
// @post i_rpn is deleted
-Rpn * Rpn::push_merge(Rpn * i_rpn, RPN_OP op)
+Rpn * Rpn::push_merge(Rpn * i_rpn, IfRpnOp op)
{
//dg003a begin
Rpn * result = this;
@@ -628,10 +629,9 @@ std::string Rpn::listing(const char * i_desc, const std::string & spyname, bool
if(i_final)
{
uint32_t val = iv_symbols->get_tag(*i);
- uint32_t type = val & Symbols::TYPE_MASK;
+ uint32_t type = val & IF_TYPE_MASK;
- if (type == Symbols::LIT_TYPE ||
- type == Symbols::VAR_TYPE)
+ if (type == IF_ATTR_TYPE)
{
rpn_byte_size += 2;
oss << "0x" << std::setw(4) << val << "\t\t" << "PUSH " << name << std::endl;
OpenPOWER on IntegriCloud