From owner-freebsd-libh Mon Apr 15 23:37:30 2002 Delivered-To: freebsd-libh@freebsd.org Received: from postal.sdsc.edu (postal.sdsc.edu [132.249.20.114]) by hub.freebsd.org (Postfix) with ESMTP id BE2E637B404 for ; Mon, 15 Apr 2002 23:37:25 -0700 (PDT) Received: from multivac.sdsc.edu (multivac.sdsc.edu [132.249.20.57]) by postal.sdsc.edu (8.11.6/8.11.6/server/36) with ESMTP id g3G6bP729084; Mon, 15 Apr 2002 23:37:25 -0700 (PDT) Received: by multivac (8.11.6+Sun/1.11-SolarisClient) id g3G6bOS24172; Mon, 15 Apr 2002 23:37:24 -0700 (PDT) To: freebsd-libh@FreeBSD.ORG Subject: cleanup of HSystem 2nd try (stage 5) From: Max Okumoto Date: 15 Apr 2002 23:37:24 -0700 Message-ID: Lines: 98 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" Sender: owner-freebsd-libh@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Cleanup some more white space =================================================================== --- include/HSystem.hh.stage1 Mon Apr 15 15:26:03 2002 +++ include/HSystem.hh Mon Apr 15 23:33:50 2002 @@ -58,7 +58,7 @@ typedef list Descriptions; typedef set Includes; - typedef list CommandAccessToRegister; + typedef list CommandAccessToRegister; typedef list > StaticMethods; Descriptions descriptions; @@ -72,22 +72,22 @@ * * @param out stream to send text. */ - void gen_header(ostream& out); + void gen_header(ostream &out); - void gen_classes_interfaces(ostream& out); - void gen_register_command_access(ostream& out); + void gen_classes_interfaces(ostream &out); + void gen_register_command_access(ostream &out); /** * Output comment marking end of file. * * @param out stream to send text. */ - void gen_footer(ostream& out); + void gen_footer(ostream &out); - void gen_class_header(ostream& out, const ClassDesc *cd); - void gen_callback_interfaces(ostream& out, const ClassDesc *cd); - void gen_dynamic_methods_interfaces(ostream& out, const ClassDesc *cd); - void gen_static_method_interfaces(ostream& out, const ClassDesc *cd); + void gen_class_header(ostream &out, const ClassDesc *cd); + void gen_callback_interfaces(ostream &out, const ClassDesc *cd); + void gen_dynamic_methods_interfaces(ostream &out, const ClassDesc *cd); + void gen_static_method_interfaces(ostream &out, const ClassDesc *cd); string gen_result_to_obj(MethodDesc::Value t); string gen_method_argument(MethodDesc::Value t, int argno, int method_argno, bool last_arg_in_set_method); @@ -101,14 +101,14 @@ /** * Constructor. */ - HSystem(const string& aName) + HSystem(const string &aName) : name(aName) {} /** * Copy constructor. XXX This is broken! None of the other state is * copied! */ - HSystem(const HSystem& aHSystem) + HSystem(const HSystem &aHSystem) : name(aHSystem.name) {} /** @@ -116,14 +116,14 @@ * * @param rhs Right hand side of the less than operator. */ - bool operator<(const HSystem& rhs) const { return name < rhs.name; } + bool operator<(const HSystem &rhs) const { return name < rhs.name; } /** * Equivilance operator. * * @param rhs Right hand side of the Equivilance operator. */ - bool operator==(const HSystem& rhs) const { return name == rhs.name; } + bool operator==(const HSystem &rhs) const { return name == rhs.name; } /** * Adds the class description and include file to the system definition. @@ -134,7 +134,7 @@ * @see find_classes_descriptions.pl */ void - add_class(const ClassDesc *cd, const string& include_file) + add_class(const ClassDesc *cd, const string &include_file) { descriptions.push_back(cd); includes.insert(include_file); @@ -171,7 +171,7 @@ * @see find_classes_descriptions.pl * @param systems the set of HSystem objects to add the subsystem to */ -void build_systems(Systems& systems); +void build_systems(Systems &systems); //====================================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message