From owner-freebsd-libh Thu Apr 18 13:55:17 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 2625337B417 for ; Thu, 18 Apr 2002 13:54:54 -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/37) with ESMTP id g3IKsnh12307; Thu, 18 Apr 2002 13:54:49 -0700 (PDT) Received: by multivac (8.11.6+Sun/1.11-SolarisClient) id g3IKsnL12355; Thu, 18 Apr 2002 13:54:49 -0700 (PDT) To: freebsd-libh@FreeBSD.ORG Subject: cleanup of HSystem 2nd try (stage 11) From: Max Okumoto Date: 18 Apr 2002 13:54:49 -0700 Message-ID: Lines: 141 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 * Created new file lib/tcl/HSystem.cc, it just contains a few includes and a copyright stuff. * Modifed lib/tcl/Makefile.inc1 to compile new file diff -u lib/tcl/Makefile.inc1 lib/tcl/Makefile.inc1.stagex =========================================================== --- lib/tcl/Makefile.inc1 Sun Apr 14 20:14:03 2002 +++ lib/tcl/Makefile.inc1.stagex Sun Apr 14 20:13:53 2002 @@ -44,11 +44,12 @@ -I$S/include/$(HSYSTEM) -I${.OBJDIR} TCL_INGEN_OBJ= tcl_interface_gen.o +HSYSTEM_OBJ= HSystem.o CLEANFILES+= tcl_interface_gen_$(HSYSTEM) \ build_systems_$(HSYSTEM).cc build_systems_$(HSYSTEM).o \ LibTclInterface_$(HSYSTEM).cc LibTclInterface_$(HSYSTEM).o \ - $(TCL_INGEN_OBJ) + $(TCL_INGEN_OBJ) $(HSYSTEM_OBJ) # ------------ DEPENDENCIES --- @@ -57,12 +58,16 @@ LibTclInterface_$(HSYSTEM).cc: tcl_interface_gen_$(HSYSTEM) ./tcl_interface_gen_$(HSYSTEM) $(HSYSTEM) $@ -tcl_interface_gen_$(HSYSTEM): $(TCL_INGEN_OBJ) build_systems_$(HSYSTEM).o $(LIBH_LIBS) - $(CXX) $(CFLAGS) $(TCL_INGEN_OBJ) build_systems_$(HSYSTEM).o \ +tcl_interface_gen_$(HSYSTEM): $(TCL_INGEN_OBJ) $(HSYSTEM_OBJ) build_systems_$(HSYSTEM).o $(LIBH_LIBS) + $(CXX) $(CFLAGS) $(TCL_INGEN_OBJ) $(HSYSTEM_OBJ) build_systems_$(HSYSTEM).o \ -o tcl_interface_gen_$(HSYSTEM) $(LIBH_LIBS) $(LDADD) $(TCL_INGEN_OBJ): $(CXX) $(CFLAGS) -c $S/lib/tcl/tcl_interface_gen.cc -o ${TCL_INGEN_OBJ} + +$(HSYSTEM_OBJ): + $(CXX) $(CFLAGS) -c $S/lib/tcl/HSystem.cc -o ${HSYSTEM_OBJ} + # build_system_*.cc dependencies diff -u /dev/null lib/tcl/HSystem.cc =========================================================== --- /dev/null Thu Apr 18 03:02:05 2002 +++ lib/tcl/HSystem.cc Wed Apr 17 22:50:04 2002 @@ -0,0 +1,92 @@ +/*- + * Copyright (c) 1998-2002 The FreeBSD Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD PROJECT OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation + * are those of the authors and should not be interpreted as representing + * official policies, either expressed or implied, of the FreeBSD Project. + * + * $FreeBSD$ + */ + +// $Id$ + +#include "HSystem.hh" +#include "String.hh" + +#include +#include +#include +#include + +/* + * The HSystem code will move out of tcl_interface_gen.cc and into + * this file in stage 2 of this commit. + */ +/*- + * Copyright (c) 1998-2002 The FreeBSD Project + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD PROJECT OR + * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + * + * The views and conclusions contained in the software and documentation + * are those of the authors and should not be interpreted as representing + * official policies, either expressed or implied, of the FreeBSD Project. + * + * $FreeBSD$ + */ + +// $Id$ + +#include "HSystem.hh" +#include "String.hh" + +#include +#include +#include +#include + +/* + * The HSystem code will move out of tcl_interface_gen.cc and into + * this file in stage X of this commit. + */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-libh" in the body of the message