(file) Return to cimmof.y CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Compiler

Diff for /pegasus/src/Pegasus/Compiler/cimmof.y between version 1.3 and 1.4

version 1.3, 2001/03/04 22:18:00 version 1.4, 2001/03/05 21:54:29
Line 223 
Line 223 
              | classDeclaration              | classDeclaration
                  { cimmofParser::Instance()->addClass($1); }                  { cimmofParser::Instance()->addClass($1); }
              | instanceDeclaration              | instanceDeclaration
                  { cimmofParser::Instance()->addInstance($1);                   { cimmofParser::Instance()->addInstance($1); } ;
                    delete $1; } ;  
  
 classDeclaration: classHead  classBody classDeclaration: classHead  classBody
 { {
Line 491 
Line 490 
  
 instanceDeclaration: instanceHead instanceBody instanceDeclaration: instanceHead instanceBody
 { {
   $$ = $1;    $$ = g_currentInstance;
   if (g_currentAlias != String::EMPTY)   if (g_currentAlias != String::EMPTY)
     cimmofParser::Instance()->addInstanceAlias(g_currentAlias, $1, true);     cimmofParser::Instance()->addInstanceAlias(g_currentAlias, $1, true);
 }; };
Line 501 
Line 500 
   if (g_currentInstance)   if (g_currentInstance)
     delete g_currentInstance;     delete g_currentInstance;
   g_currentAlias = *$5;   g_currentAlias = *$5;
   g_currentInstance = new CIMInstance(*$4);    g_currentInstance = cimmofParser::Instance()->newInstance(*$4);
   delete $4;  
   $$ = g_currentInstance;   $$ = g_currentInstance;
   g_qualifierList.apply($$);   g_qualifierList.apply($$);
     delete $4;
   delete $5;   delete $5;
 } ; } ;
  
Line 528 
Line 527 
   const CIMProperty *oldprop = cp->PropertyFromInstance(*g_currentInstance,   const CIMProperty *oldprop = cp->PropertyFromInstance(*g_currentInstance,
                                                         *$2);                                                         *$2);
   const CIMValue *oldv = cp->ValueFromProperty(*oldprop);   const CIMValue *oldv = cp->ValueFromProperty(*oldprop);
   //const CIMValue *oldv = cp->PropertyValueFromInstance(*g_currentInstance,  
   //                                           *$2);  
   //   3. create the new Value object of the same type   //   3. create the new Value object of the same type
   CIMValue *v = valueFactory::createValue(oldv->getType(), $3, $5);   CIMValue *v = valueFactory::createValue(oldv->getType(), $3, $5);
   //   4. create a clone property with the new value   //   4. create a clone property with the new value


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2