@@ -4107,22 +4107,24 @@ LOCAL void FC ratCultO( void)
41074107 // eg DHWHEATER and DHWLOOPHEATER from DHWSYS
41084108 {
41094109 // if (b->isOwnable()) if an ownable-record basAnc: all are, 7-92.
4110- if (xSp > xStk ) // if nested (not top: no owner)
4110+ if (xSp > xStk) // if nested (not top: no owner)
4111+ {
41114112 if ((xSp-1 )->c ->f & NOTOWNED) // if embedding table entry flagged as "not indicating ownership" 11-91
41124113 xSp->cult ->IFLAGS &= ~BEEN_HERE; // clear nxRat's flag so this cult will be returned again when
4113- // accessed by another entry -- may indicate its owner 12-10-91
4114+ // accessed by another entry -- may indicate its owner 12-10-91
41144115 else
41154116 {
41164117 BP ownB = (xSp-1 )->b ; // owner here is embedding basAnc
41174118 if (b->ownB != 0 // if owner already set
4118- && b->ownB != ownB ) // to another owner
4119- per ( MH_S0202, // error message, cuparse.cpp
4119+ && b->ownB != ownB) // to another owner
4120+ per (MH_S0202, // error message, cuparse.cpp
41204121 // "cul.cpp:ratCultO: internal error: bad tables: \n"
41214122 // " '%s' rat at %p is 'owned' by '%s' rat at %p and also '%s' rat at %p",
4122- b->what , b, b->ownB ->what , b->ownB , ownB->what , ownB );
4123+ b->what , b, b->ownB ->what , b->ownB , ownB->what , ownB);
41234124 else
41244125 b->ownB = ownB; // set owner
41254126 }
4127+ }
41264128 }
41274129} // ratCultO
41284130
@@ -4691,23 +4693,26 @@ const char* basAnc::culMbrIdTx( // return record field id from cult table
46914693 }
46924694
46934695 const char * tx = NULL ;
4694- for (CULT *c = NULL ; xnxC (c); ) // loop CULT entries, using xStk[0], making addl xStk entries
4696+ for (CULT* c = NULL ; xnxC (c); ) // loop CULT entries, using xStk[0], making addl xStk entries
4697+ {
46954698 if (
46964699#if 1 // another try, 4-9-2013
46974700 (xSp->b ->rt ==rt // match rt not b so run basAncs, types basAncs work
4698- || xSp->b == this ) // also match b re ambiguous fn (e.g. among surface, door, window)
4701+ || xSp->b == this ) // also match b re ambiguous fn (e.g. among surface, door, window)
46994702#elif 0 // experiment re ambiguous fn (e.g. among surface, door, window), 3-9-2012
47004703x xSp->b == b // seems to work for types basAncs?
47014704#else
47024705x xSp->b->rt==b->rt // (match rt not b so run basAncs, types basAncs work)
47034706 #endif
4704- && c->cs ==DAT
4705- && c-> fn ==fn) // if data entry for desired field of basAnc of desired type
4707+ && c->cs ==DAT && c-> fn ==fn) // if data entry for desired field of basAnc of desired type
4708+ {
47064709 if (!tx) // if first match
47074710 tx = c->id ; // remember it
4708- else if (_stricmp ( tx, c->id )) // additional match: ignore if same name
4709- return strtprintf ( MH_S0276, tx, c->id );
4710- // "[%s or %s: table ambiguity: recode this error message to not use cul.cpp:culMbrId]"
4711+ }
4712+ else if (_stricmp (tx, c->id )) // additional match: ignore if same name
4713+ return strtprintf (MH_S0276, tx, c->id );
4714+ // "[%s or %s: table ambiguity: recode this error message to not use cul.cpp:culMbrId]"
4715+ }
47114716
47124717 if (tx) // if name found
47134718 return tx; // return it. Is unique if here.
0 commit comments