@@ -796,8 +796,8 @@ RECORD WFILE "weatherFile" *RAT // weather file info, one static instance "Wfile
796796 *declare "int wf_IsPacked() const { return wFileFormat==BSGS || wFileFormat==BSGSdemo || wFileFormat==ET1 || wFileFormat==ET2; }"
797797
798798 // Header info: from file hdr decode or computed from hourly
799- *r WFLOC loc // char loc[] Location (for ET, is loc 1 only: city etc).
800- *r WFLID lid // char lid[] Location ID
799+ *r CULSTR loc // Location (for ET, is loc 1 only: city etc).
800+ *r CULSTR lid // Location ID
801801 *r SI yr // Year of weather data (00 - 99, -1 if N/A)
802802 *r SI jd1 // Julian day of first weather record (-1 if not known)
803803 *r SI jdl // Julian day of last weather record (ditto)
@@ -811,7 +811,7 @@ RECORD WFILE "weatherFile" *RAT // weather file info, one static instance "Wfile
811811 *f float tMainsMinYr // annual minimum cold water temp, F
812812 *r SI solartime // TRUE if file is in solar time
813813 //additional header items for ET1 file
814- *r WFLOC2 loc2 // char[] location 2 (state or country, etc)
814+ *r CULSTR loc2 // location 2 (state or country, etc)
815815 *r SI isLeap // non-0 if weather file is for a leap year (Feb 29 counted in dates) -- possible future use
816816 *r SI firstDdm // month 1-12 of first design day in file
817817 *r SI lastDdm // month 1-12 of last design day in file
@@ -832,8 +832,8 @@ RECORD WFILE "weatherFile" *RAT // weather file info, one static instance "Wfile
832832 // *array 12 *r float atmois // monthly aveage atmospheric moisture, for daylight calcs
833833
834834// TDV file header info
835- *f WFLOC wf_TDVFileTimeStamp // timestamp string
836- *f ANAME wf_TDVFileTitle // title string (identifies file CZ, fuel, vintage, )
835+ *f CULSTR wf_TDVFileTimeStamp // timestamp string
836+ *f CULSTR wf_TDVFileTitle // title string (identifies file CZ, fuel, vintage, )
837837
838838 //internal
839839 *r *hide SI hdrBytes // # header bytes before first record (used in wfread for file positioning)
@@ -1939,10 +1939,9 @@ RECORD AUSZ "autoSizing sub" *SUBSTRUCT // AUTOSIZING VARIABLES substructure for
19391939 // *declare "int az_Active() const { return az_active && az_px; }" idea
19401940
19411941 //---setup time members
1942- *declare "static ANAME az_context;" // context text for verbose screen msgs
1943- // (use ANAME has handy known-size char[])
1944- *r BOO az_active // TRUE iff autoSizing this member
1945- *declare "char az_what[ sizeof(ANAME) + 24];" // ID of this AUSZ (e.g. "AH[ah1] cc")
1942+ *declare "static char az_context[];" // context text for verbose screen msgs
1943+ *r BOO az_active // TRUE iff autoSizing this member
1944+ *declare "char az_what[ 100];" // ID of this AUSZ (e.g. "AH[ah1] cc")
19461945
19471946 //---runtime
19481947 // set at initialization
@@ -4663,8 +4662,8 @@ RECORD DHWHEATER "DHWHeater" *RAT // input / runtime DHW heater
46634662 *i WHTYPECH wh_type; // heater type
46644663 // C_WHTYPECH_STRGSML, _STRGLRG, _INSTSML, _INSTLRG,
46654664 // _INSTUEF, _BUILTUP
4666- *i ANAME wh_desc; // probe-able description text
4667- *declare "virtual const char* GetDescription( int /*options*/=0) { return wh_desc; }"
4665+ *i CULSTR wh_desc; // probe-able description text
4666+ *declare "virtual const char* GetDescription( int /*options*/=0) { return wh_desc.CStr() ; }"
46684667 *r INT wh_fcn; // function of this DHWHEATER per whfcnXXX enum
46694668 *declare "enum { whfcnUNKNOWN=0, whfcnPRIMARY, whfcnLOOPHEATER, whfcnSUPPLIESCHDHW=0x10, whfcnSUPPLIESLOOP=0x20, whfcnSUPPLIESLOAD=0x40 };"
46704669 *declare "int wh_SetFunction();"
@@ -7457,16 +7456,6 @@ o *h FLOAT tnatv /* Cur hr nat vent stpt, F; Huge if nat vnt not poss*/
74577456o *h FLOAT tfanv /* Cur hr fan vent stpt, F; Huge if fn vnt not poss */
74587457#endif
74597458
7460- //=============================================================================
7461- #if 0 //ifdef OLDAT // OLD 3-92
7462- o RECORD AHUX "ahu" *RAT // Air handler: currently dummy source of infinite amount of air at a given temp. 10-11-91.
7463- o #ifndef BCPP
7464- o *hide DBN bn // dummy
7465- o *z ANAME name // for LIKEing etc
7466- o #endif
7467- o *h TEMP ahuxTsu // supply temperature (hourly variability)
7468- o *END // AHUX
7469- #endif
74707459//=============================================================================
74717460#if 0 //ifdef OLDAT // OLD 3-92
74727461o RECORD TUX "terminal" *RAT // OLD TERMINAL 3-92
@@ -7482,13 +7471,7 @@ o Local heating Local heating (coil, baseboard)
74827471o Air heating Air heating (air from air handler)
74837472o Air cooling Air cooling (air from air handler) */
74847473o
7485- o #ifndef BCPP
7486- o *hide DBN bn // dummy
7487- o *z ANAME name // for LIKEing etc
7488- o TI ownTi // was zi // ZNI/R rcd subscript of owner zone
7489- o #else
7490- o // ownTi (base class) is ZNI/R rcd subscript of owner zone
7491- o #endif
7474+ o // ownTi (base class) is ZNI/R rcd subscript of owner zone
74927475o TI tuxNxTu // chain: 0 or ss of next TU in current zone chain
74937476o TI tuxZhxx1 // chain head: ss of 1st ZHXX belonging to this TU
74947477o
@@ -7520,12 +7503,8 @@ o // 2. zone natural vent (if present)
75207503o // 3. (future others?)
75217504o // No input-only ZHX rat exists.
75227505o // mbrs set at "RUN" (out of cncult:topCkf); some can vary during simulation
7523- o #ifndef BCPP
7524- o *r TI ownTi // was owni // ss of owner -- ZNR/ZNI ss (ty=ZHX_NATVENT) or TU ss (other tys)
7525- o #else
7526- o // name is ... unused?
7527- o // ownTi is TU ss (other tys) or (future) ZNR/ZNI ss (ty=ZHX_NATVENT) (or use sep mbr???)
7528- o #endif
7506+ o // name is ... unused?
7507+ o // ownTi is TU ss (other tys) or (future) ZNR/ZNI ss (ty=ZHX_NATVENT) (or use sep mbr???)
75297508o *r TI nxZhxx // chain: 0 or ss of next ZHX for this TU. 0 if ty=ZHX_NATVENT.
75307509o *r SI tyZhxx // ZHX type: consts in cndefns.h
75317510o // ZHX_NATVENT zone natural ventilation
0 commit comments