Date: 12 Apr 2002 04:10:46 -0700 From: Max Okumoto <okumoto@ucsd.edu> To: freebsd-libh@FreeBSD.ORG Subject: cleanup of HSystem (stage 3) Message-ID: <hf8z7t6ukp.fsf@multivac.sdsc.edu>
next in thread | raw e-mail | index | archive | help
* (lib/tcl/HSystem.cc) Created this file will eventually contain all
the code for HSystem which is in tcl_interface_gen.cc
* (lib/tcl/Makefile.inc) Added new lib/tcl/HSystem.cc to objects and
targets in makefile.
--- lib/tcl/Makefile.inc1.new Fri Apr 12 02:59:50 2002
+++ lib/tcl/Makefile.inc1 Fri Apr 12 01:12:32 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 Fri Apr 12 03:03:38 2002
+++ lib/tcl/HSystem.cc Fri Apr 12 01:58:02 2002
@@ -0,0 +1,46 @@
+/*-
+ * 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.
+ */
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?hf8z7t6ukp.fsf>
