summaryrefslogtreecommitdiff
path: root/idl/util
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 15:33:13 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2000-09-18 15:33:13 +0000
commitee27dd72550ce8815e06e337d3682d5b8d9d7b11 (patch)
treec785600f8cc75cd1191fc9966bee9cb0742bb780 /idl/util
parentc25ec0608a167bcf1d891043f02273761c351701 (diff)
initial import
Diffstat (limited to 'idl/util')
-rw-r--r--idl/util/idlpch.cxx85
-rw-r--r--idl/util/makefile.mk151
-rw-r--r--idl/util/svidl.hdb25
3 files changed, 261 insertions, 0 deletions
diff --git a/idl/util/idlpch.cxx b/idl/util/idlpch.cxx
new file mode 100644
index 000000000000..66b80a176971
--- /dev/null
+++ b/idl/util/idlpch.cxx
@@ -0,0 +1,85 @@
+/*************************************************************************
+ *
+ * $RCSfile: idlpch.cxx,v $
+ *
+ * $Revision: 1.1.1.1 $
+ *
+ * last change: $Author: hr $ $Date: 2000-09-18 16:30:41 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifdef MAC
+#include <string.h>
+#else
+#include <memory.h>
+#endif
+#include <stdlib.h>
+#include <stdio.h>
+#include <ctype.h>
+#include <limits.h>
+
+#include <tlbigint.hxx>
+#include <tlfsys.hxx>
+#include <char.hxx>
+#include <command.hxx>
+#include <hash.hxx>
+#include <lex.hxx>
+#include <attrib.hxx>
+#include <globals.hxx>
+#include <bastype.hxx>
+#include <object.hxx>
+#include <slot.hxx>
+#include <module.hxx>
+#include <database.hxx>
+
+#pragma hdrstop
diff --git a/idl/util/makefile.mk b/idl/util/makefile.mk
new file mode 100644
index 000000000000..b4161ec45e82
--- /dev/null
+++ b/idl/util/makefile.mk
@@ -0,0 +1,151 @@
+#*************************************************************************
+#
+# $RCSfile: makefile.mk,v $
+#
+# $Revision: 1.1.1.1 $
+#
+# last change: $Author: hr $ $Date: 2000-09-18 16:30:41 $
+#
+# The Contents of this file are made available subject to the terms of
+# either of the following licenses
+#
+# - GNU Lesser General Public License Version 2.1
+# - Sun Industry Standards Source License Version 1.1
+#
+# Sun Microsystems Inc., October, 2000
+#
+# GNU Lesser General Public License Version 2.1
+# =============================================
+# Copyright 2000 by Sun Microsystems, Inc.
+# 901 San Antonio Road, Palo Alto, CA 94303, USA
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License version 2.1, as published by the Free Software Foundation.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+#
+# Sun Industry Standards Source License Version 1.1
+# =================================================
+# The contents of this file are subject to the Sun Industry Standards
+# Source License Version 1.1 (the "License"); You may not use this file
+# except in compliance with the License. You may obtain a copy of the
+# License at http://www.openoffice.org/license.html.
+#
+# Software provided under this License is provided on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+# See the License for the specific provisions governing your rights and
+# obligations concerning the Software.
+#
+# The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+#
+# Copyright: 2000 by Sun Microsystems, Inc.
+#
+# All Rights Reserved.
+#
+# Contributor(s): _______________________________________
+#
+#
+#
+#*************************************************************************
+
+PRJ=..
+
+PRJPCH=
+
+PRJNAME=SVIDL
+TARGET=idl
+VERSION=$(UPD)
+
+TARGETTYPE=CUI
+
+# --- Settings -----------------------------------------------------------
+
+.INCLUDE : svpre.mk
+.INCLUDE : settings.mk
+.INCLUDE : sv.mk
+
+# --- Files --------------------------------------------------------------
+
+LIB1TARGET= $(LB)$/$(TARGET).lib
+LIB1FILES = $(LB)$/prj.lib \
+ $(LB)$/objects.lib \
+ $(LB)$/cmptools.lib
+
+.IF "$(GUI)" != "WIN"
+APP1TARGET= svidl
+
+.IF "$(GUI)" != "MAC"
+APP1DEPN= $(L)$/itools.lib
+.ENDIF
+
+APP1STDLIBS=\
+ $(TOOLSLIB)
+
+APP1LIBS= $(LIBPRE) $(LB)$/$(TARGET).lib
+.IF "$(GUI)" != "UNX"
+.IF "$(COM)"=="WTC"
+APP1OBJS= $(OBJ)$/svidl.obj
+.ELSE
+APP1OBJS= $(OBJ)$/svidl.obj \
+ $(OBJ)$/command.obj
+.ENDIF
+.ENDIF
+.IF "$(COM)" == "WTC"
+APP1STACK=32768
+.ENDIF
+.IF "$(GUI)" != "OS2"
+APP1STACK=32768
+.ENDIF
+.ENDIF
+
+.IF "$(OS)"=="LINUX"
+APP1STDLIBS+=-lcrypt
+.ENDIF
+
+# --- Targets ------------------------------------------------------
+
+.INCLUDE : target.mk
+
+# -------------------------------------------------------------------
+# PM2
+# -------------------------------------------------------------------
+
+.IF "$(GUI)" == "OS2"
+
+$(MISC)$/$(APP1TARGET).def : makefile
+ echo NAME SV-IDL WINDOWCOMPAT >$@
+ echo DESCRIPTION 'SV-IDL-Compiler' >>$@
+.IF "$(COM)" != "BLC"
+ echo STUB 'os2STUB.EXE' >>$@
+.ENDIF
+ echo DATA MULTIPLE >>$@
+ echo EXETYPE OS2 >>$@
+ echo PROTMODE >>$@
+ echo HEAPSIZE 16000 >>$@
+ echo STACKSIZE 48000 >>$@
+.ENDIF
+
+# --- Filter-Datei ---
+
+.IF "$(GUI)" != "DOS"
+$(MISC)$/$(SHL1TARGET).flt: makefile
+ @echo ------------------------------
+ @echo Making: $@
+ @echo WEP>$@
+ @echo LIBMAIN>>$@
+ @echo LibMain>>$@
+ @echo Stg>>$@
+.ENDIF
+
diff --git a/idl/util/svidl.hdb b/idl/util/svidl.hdb
new file mode 100644
index 000000000000..d57bedb45373
--- /dev/null
+++ b/idl/util/svidl.hdb
@@ -0,0 +1,25 @@
+write "/*************************************************************************"
+write "* SV.HXX"
+write "* __DATE__"
+write "* (c) 1992-1994 STAR DIVISION"
+write "*************************************************************************/"
+write "#ifndef _SVIDL_HXX"
+write "#define _SVIDL_HXX"
+write "#ifndef _PSTREAM_HXX"
+write "#include <pstream.hxx>"
+write "#endif"
+write "#ifndef _SBX_HXX"
+write "#include <sbx.hxx>"
+write "#endif"
+write "#define IDL_COMPILER /*vorlaeufig immer */"
+file char.hxx
+file hash.hxx
+file lex.hxx
+file bastype.hxx
+file basobj.hxx
+file types.hxx
+file object.hxx
+file slot.hxx
+file module.hxx
+file database.hxx
+write "#endif"