From c9de9a6aeb1e5b27deeefd5aa801e38b6042ebde Mon Sep 17 00:00:00 2001 From: galanca Date: Wed, 6 Jul 2022 07:55:06 -0600 Subject: [PATCH 1/8] Convert filename in comments to lowercase. --- src/cse.cpp | 2 +- src/dhwcalc.cpp | 2 +- src/dhwsolar.cpp | 2 +- src/envpak.cpp | 2 +- src/foundation.cpp | 2 +- src/foundation.h | 2 +- src/geometry.cpp | 2 +- src/xiopak.cpp | 2 +- src/xiopak.h | 2 +- src/xmodule.h | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/cse.cpp b/src/cse.cpp index d7d923e29..366f76e0c 100644 --- a/src/cse.cpp +++ b/src/cse.cpp @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// -// CSE.cpp : Main program module +// cse.cpp : Main program module // Defines entry points /////////////////////////////////////////////////////////////////////////////// diff --git a/src/dhwcalc.cpp b/src/dhwcalc.cpp index ed62f8e5a..0d90ae360 100644 --- a/src/dhwcalc.cpp +++ b/src/dhwcalc.cpp @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// -// DHWCalc.cpp -- Domestic Hot Water model implementation +// dhwcalc.cpp -- Domestic Hot Water model implementation /////////////////////////////////////////////////////////////////////////////// #include "cnglob.h" diff --git a/src/dhwsolar.cpp b/src/dhwsolar.cpp index f4f8ff330..f64ea1361 100644 --- a/src/dhwsolar.cpp +++ b/src/dhwsolar.cpp @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// -// DHWSolar.cpp -- Solar Hot Water model implementation +// dhwsolar.cpp -- Solar Hot Water model implementation /////////////////////////////////////////////////////////////////////////////// #include "cnglob.h" diff --git a/src/envpak.cpp b/src/envpak.cpp index 9e2bcbfe8..f4795c7e5 100644 --- a/src/envpak.cpp +++ b/src/envpak.cpp @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file. -// ENVPAK.C: Environment specific routines -- Windows dependent +// envpak.c: Environment specific routines -- Windows dependent /*------------------------------- INCLUDES --------------------------------*/ #include "cnglob.h" diff --git a/src/foundation.cpp b/src/foundation.cpp index 75b2f4f02..0c932cb6e 100644 --- a/src/foundation.cpp +++ b/src/foundation.cpp @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// -// Foundation.cpp -- interface to Kiva +// foundation.cpp -- interface to Kiva /////////////////////////////////////////////////////////////////////////////// #include "cnglob.h" diff --git a/src/foundation.h b/src/foundation.h index ffc22d7e7..eafcefeca 100644 --- a/src/foundation.h +++ b/src/foundation.h @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// -// Foundation.h -- interface to Kiva +// foundation.h -- interface to Kiva /////////////////////////////////////////////////////////////////////////////// #if !defined( _FOUNDATION_H) diff --git a/src/geometry.cpp b/src/geometry.cpp index 888714aed..ce22d3c90 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -1,5 +1,5 @@ //========================================================================== -// Geometry.cpp -- contains different computational geomertic algoritms +// geometry.cpp -- contains different computational geomertic algoritms //============================================================================= // Copyright (c) 2014, ASHRAE. // This work is a product of ASHRAE 1383-RP and draws on code diff --git a/src/xiopak.cpp b/src/xiopak.cpp index 3e0254905..1f934f5f9 100644 --- a/src/xiopak.cpp +++ b/src/xiopak.cpp @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file. -// XIOPAK.CPP: Extended IO and file functions +// xiopak.cpp: Extended IO and file functions /* Department of further improvements (8-24-89) -- diff --git a/src/xiopak.h b/src/xiopak.h index c45cbf5b0..d50a579e2 100644 --- a/src/xiopak.h +++ b/src/xiopak.h @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file. -// XIOPAK.H: Definitions for extended IO package +// xiopak.h: Definitions for extended IO package #if !defined( _XIOPAK_H) #define _XIOPAK_H diff --git a/src/xmodule.h b/src/xmodule.h index 9131f7640..df065119a 100644 --- a/src/xmodule.h +++ b/src/xmodule.h @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// -// XMODULE.h -- interfaces to external DLL/EXE functions +// xmodule.h -- interfaces to external DLL/EXE functions /////////////////////////////////////////////////////////////////////////////// #if !defined( _XMODULE_H) From 21e76526deba12de6272a89524f177d80b8c904c Mon Sep 17 00:00:00 2001 From: galanca Date: Wed, 6 Jul 2022 07:58:02 -0600 Subject: [PATCH 2/8] Change xmodule name in src/Cmakelist.txt. --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a89956d7e..2f3343e32 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -204,8 +204,8 @@ set(headers ) if(USE_XMODULE) # Runtime Share Library interface - Not used since Version 0.899. (Windows only) - list(APPEND source XMODULE.CPP) - list(APPEND headers XMODULE.H) + list(APPEND source xmodule.cpp) + list(APPEND headers xmodule.h) endif() include_directories( From 6d85979b70d237e3c701c916cfa04b8f14371b95 Mon Sep 17 00:00:00 2001 From: galanca Date: Wed, 6 Jul 2022 07:59:37 -0600 Subject: [PATCH 3/8] Change cprint.h lowercase comment. --- src/cprint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cprint.h b/src/cprint.h index ee952fb7e..93a685c49 100644 --- a/src/cprint.h +++ b/src/cprint.h @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file. -/* CPRINT.H: printer defines used externally, for cprint.c +/* cprint.h: printer defines used externally, for cprint.c CSE version derived from prpak.h 8-28-91 */ From c6374f2386f1937870b7ae83b84d2e6a774faabe Mon Sep 17 00:00:00 2001 From: galanca Date: Wed, 6 Jul 2022 12:41:20 -0600 Subject: [PATCH 4/8] Change the case sensitivity in the generation files. --- src/rcdef.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcdef.cpp b/src/rcdef.cpp index 59a2d8fba..54c56c98d 100644 --- a/src/rcdef.cpp +++ b/src/rcdef.cpp @@ -993,7 +993,7 @@ LOCAL void wdtypes( FILE *f) // introductory info fprintf( f, - "/* DTYPES.H: data types include file automatically generated by rcdef.exe. */\n" + "/* dtypes.h: data types include file automatically generated by rcdef.exe. */\n" "\n" " /* this file is #included in cnglob.h. */\n" "\n" @@ -1205,7 +1205,7 @@ LOCAL void wDttab() // write C++ source data types table dttab.cpp // write front of file stuff fprintf( f, - "/* DTTAB.CPP: data types table source file automatically generated by rcdef. */\n" + "/* dttab.cpp: data types table source file automatically generated by rcdef. */\n" "\n" " /* do not edit this file -- it is written over any time rcdef is run --\n" " instead change the input, dtypes.def, and re-run rcdef.exe. */\n" @@ -1443,7 +1443,7 @@ LOCAL void wUntab() // write untab.cpp // head of file comments fprintf( f, - "/* UNTAB.CPP: units table source file automatically generated by rcdef.exe. */\n" + "/* untab.cpp: units table source file automatically generated by rcdef.exe. */\n" "\n" " /* do not edit this file -- it is written over any time rcdef is run --\n" " instead change the input, units.def, and re-run rcdef. */" ); From d0ada4ec7698e139d40fb84f910265c6b8e356d7 Mon Sep 17 00:00:00 2001 From: galanca Date: Wed, 6 Jul 2022 16:57:34 -0600 Subject: [PATCH 5/8] Change other filename comment in other places. --- src/cnah1.cpp | 2 +- src/cncult4.cpp | 2 +- src/cnguts.h | 2 +- src/messages.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cnah1.cpp b/src/cnah1.cpp index 6eb4e4e2d..e0fa2b155 100644 --- a/src/cnah1.cpp +++ b/src/cnah1.cpp @@ -1107,7 +1107,7 @@ x TRUE may enable some autoSizing stuff eg in ztuMode. 7-20-95. */ return RCOK; } // AH::ahCompute //----------------------------------------------------------------------------------------------------------------------------- -// AH member functions called by ahEstimate, ahCompute, etc continue in CNAH2.CPP. +// AH member functions called by ahEstimate, ahCompute, etc continue in cnah2.cpp. //----------------------------------------------------------------------------------------------------------------------------- /****************************************************************************************************************************** diff --git a/src/cncult4.cpp b/src/cncult4.cpp index 0a9ef98b1..08c03891b 100644 --- a/src/cncult4.cpp +++ b/src/cncult4.cpp @@ -148,7 +148,7 @@ LOCAL RC addRep( TI rfi, char *name, RPTYCH rpTy, TI zi, IVLCH freq, SI putAtEnd rp->ownTi = rfi; // reference to report file rp->rpTy = rpTy; // type of report rp->rpFreq = freq; // 0 or frequency of report - rp->rpBtuSf = 1e6f; // energy print scale factor SHOULD MATCH DEFAULT IN CNCULT.C:rpT[] and exT[]. + rp->rpBtuSf = 1e6f; // energy print scale factor SHOULD MATCH DEFAULT IN cncult.c:rpT[] and exT[]. rp->rpCond = 1; // make report print rp->isExport = 0; // is report, not an export rp->putAtEnd = putAtEnd; // put-after-user's-reports request. Only place set, 11-91. diff --git a/src/cnguts.h b/src/cnguts.h index 7fa205f09..14bbc4194 100644 --- a/src/cnguts.h +++ b/src/cnguts.h @@ -194,7 +194,7 @@ extern SI cnRunSerial; // incremented in cgInit; copied to Topi.runSerial in c extern VROUTINFO* UnspoolInfo; // dm array of info re unspooling virtual reports into actual report files. // set up in cncult.cpp; format is for vrUnspool. vrpak.h struct. -//---------------------- CGSOLAR.CPP PUBLIC VARIABLE ------------------------ +//---------------------- cgsolar.cpp PUBLIC VARIABLE ------------------------ extern int slrCalcJDays[13]; // jDay for slr calcs or ausz DT decision for months 1-12. [0] for heat design day. diff --git a/src/messages.h b/src/messages.h index e9c4ad6f9..26dc9742a 100644 --- a/src/messages.h +++ b/src/messages.h @@ -35,7 +35,7 @@ struct MSGTBL // messages.cpp void FC msgClean(); RC msgInit( int erOp); -const char* CDEC msg( char *mBuf, const char *mOrH, ...); // ALSO DECL IN CNGLOB.H +const char* CDEC msg( char *mBuf, const char *mOrH, ...); // ALSO DECL IN cnglob.h RC msgI( int erOp, char* mBuf, size_t mBufSz, int* pMLen, const char* mOrH, va_list ap=NULL); const char* FC msgSec( SEC sec); BOO FC msgIsHan( const char* mOrH); From c9745fd2504881fd596097b79d05260e7003e9d4 Mon Sep 17 00:00:00 2001 From: galanca Date: Wed, 6 Jul 2022 17:17:32 -0600 Subject: [PATCH 6/8] Change other filename comment. --- src/ashwface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ashwface.h b/src/ashwface.h index 75e2ce801..fc5329453 100644 --- a/src/ashwface.h +++ b/src/ashwface.h @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// -// ashwface.h -- defns and decls for ASHWAT interface +// ashwface.h -- defns and decls for ashwat interface /////////////////////////////////////////////////////////////////////////////// #if !defined( _ASHWFACE_H) From 7a502cd3e7bb54d64c57f2adeb59623e6ebe0338 Mon Sep 17 00:00:00 2001 From: Cesar Galan Date: Thu, 7 Jul 2022 09:18:12 -0600 Subject: [PATCH 7/8] Revert ASHWAT case in ashface.h. --- src/ashwface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ashwface.h b/src/ashwface.h index fc5329453..75e2ce801 100644 --- a/src/ashwface.h +++ b/src/ashwface.h @@ -3,7 +3,7 @@ // that can be found in the LICENSE file. /////////////////////////////////////////////////////////////////////////////// -// ashwface.h -- defns and decls for ashwat interface +// ashwface.h -- defns and decls for ASHWAT interface /////////////////////////////////////////////////////////////////////////////// #if !defined( _ASHWFACE_H) From dcbd3010a9b26d273a993a373a778bde87e7910e Mon Sep 17 00:00:00 2001 From: galanca Date: Thu, 7 Jul 2022 11:48:59 -0600 Subject: [PATCH 8/8] Replace other case sensitivity found searching for '.CPP' and '.H' on the entire project. --- src/ancrec.h | 2 +- src/cul.cpp | 2 +- src/impf.h | 2 +- src/srd.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ancrec.h b/src/ancrec.h index b41181f47..73eb3e226 100644 --- a/src/ancrec.h +++ b/src/ancrec.h @@ -50,7 +50,7 @@ typedef basAnc* BP; // basAnc pointer -- formerly used to localize NEARness // class basAnc: base class for application record anchors. //*************************************************************************************************************************** #define RTBRAT 0x2000 /* Old (1992) "Record Array Table" record type bit, now always on here, used in validity checks. - ALSO DEFINED IN SRD.H, MUST MATCH. */ + also defined in srd.h, MUST MATCH!. */ //--- bits for basAnc.flags #define RFSTAT 0x4000 // "static" record basAnc: not reallocable, min subscr 0 not 1. set ancrec.cpp, tested ancrec,cul,cuprobe.cpp. #define RFTYS 0x1000 // is in TYPES sub-basAnc (pted to by a basAnc.tys) diff --git a/src/cul.cpp b/src/cul.cpp index 432d6b61a..7289397cc 100644 --- a/src/cul.cpp +++ b/src/cul.cpp @@ -4426,7 +4426,7 @@ LOCAL void FC NEAR clrBeenHeres( CULT *c) } // clrBeenHeres -// ==================== CUL.CPP ERROR MESSAGE INTERFACES ===================== +// ==================== cul.cpp error message interfaces ===================== // primarily for use from check-functions and run code, eg in cncult.cpp. // Also error functions in cuparse.cpp and cutok.cpp are called directly. */ //----------------------------------------------------------------------------- diff --git a/src/impf.h b/src/impf.h index 18e251665..8d1b8dacb 100644 --- a/src/impf.h +++ b/src/impf.h @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license // that can be found in the LICENSE file. -// IMPF.H header for Import Files for CSE 2-94 +// impf.h header for Import Files for CSE 2-94 // largest field number to accept (expect far fewer fields in a file) diff --git a/src/srd.h b/src/srd.h index 0b009a6b9..0a77492ef 100644 --- a/src/srd.h +++ b/src/srd.h @@ -119,7 +119,7 @@ struct SFIR Hi bits are attributes; lo are type # Individual record types are defined in rctypes.h and are used in .rt, the 1st member of all record structures. */ #define RTBRAT 0x2000 /* "Record Array Table" type: has array of record structure in a DM block. See ancrec.h, .cpp. - ALSO DEFINED IN ANCREC.H, MUST MATCH. */ + also defined in ancrec.h, MUST MATCH!. */ #define RTBHIDE 0x4000 // hide record: omit entire record from probe info report (CSE -p) #ifdef wanted // define here if desired to test outside of rcdef.exe (rcdef defines internally ifndef, 12-91.) w #define RTBSUB 0x8000 /* Substructure type definition, only for nesting in other record types