Date: Tue, 05 Nov 1996 00:28:07 GMT Server: NCSA/1.5 Content-type: text/html Last-modified: Thu, 05 Oct 1995 03:22:39 GMT Content-length: 1688
The following conventions are recommended. Thanks due to Prof. Fischer and Ranjani Ramamurthy. (Admittedly, they are not followed in Minibase to the extent they should be.)
For example:
class RecoveryManager{ };
Public methods and variables :: same rules as naming classes ::
For example:
Status AddEntry(lsn_t lsn, int xid); lsn_t RecLSN;
Private variables/methods :: no capitals at all. All variables and methods start with an underscore.
For example :
int _pgid_array[100]; Status _restart_undo(RecXactTbl* xact_tbl);
minibase_
( Basically the system name).
The variable itself can begin with small letters.
minibase_bufmgr ==> Global buffer manager variable.
minibase_
Let the function name ( after minibase_
) begin with capitals
and break multi words with underscores.
example :: minibase_Print_Routine();
MINIBASE_
whatever..