Date: 18 Apr 2002 13:54:49 -0700 From: Max Okumoto <okumoto@ucsd.edu> To: freebsd-libh@FreeBSD.ORG Subject: cleanup of HSystem 2nd try (stage 11) Message-ID: <hf4ri84tie.fsf@multivac.sdsc.edu>
next in thread | raw e-mail | index | archive | help
* 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 <cerrno> +#include <ctime> +#include <fstream> +#include <stdexcept> + +/* + * 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 <cerrno> +#include <ctime> +#include <fstream> +#include <stdexcept> + +/* + * 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?hf4ri84tie.fsf>