Index: dmake/configure.in =================================================================== RCS file: /cvs/tools/dmake/configure.in,v retrieving revision 1.29.2.3 diff -u -r1.29.2.3 configure.in --- dmake/configure.in 22 Sep 2007 22:08:27 -0000 1.29.2.3 +++ dmake/configure.in 23 Sep 2007 21:58:09 -0000 @@ -62,6 +62,10 @@ ## The following allows like systems to share settings this is not meant to ## Imply that these OS are the same thing. case "$_os" in + "OS/2") + OS_VERSION=os2 + CASE_INSENSITIVE_FS=true + ;; "SunOS") OS_VERSION=solaris ;; @@ -84,9 +88,6 @@ BUILDINFO="Windows / MS Visual C++" CASE_INSENSITIVE_FS=true ;; - "OS/2") - OS_VERSION=linux - ;; "Darwin") OS_VERSION=macosx # MacOSX is not garuanteed to be case insensitive, assume it's case @@ -175,6 +176,7 @@ startup/unix/linux/Makefile startup/unix/solaris/Makefile \ startup/unix/macosx/Makefile startup/unix/sysvr4/Makefile \ startup/unix/cygwin/Makefile \ + startup/unix/os2/Makefile \ startup/winnt/Makefile startup/winnt/mingw/Makefile \ startup/winnt/msvc6/Makefile \ tests/Makefile) Index: dmake/dmake.c =================================================================== RCS file: /cvs/tools/dmake/dmake.c,v retrieving revision 1.10.4.5 diff -u -r1.10.4.5 dmake.c --- dmake/dmake.c 22 Sep 2007 22:08:30 -0000 1.10.4.5 +++ dmake/dmake.c 23 Sep 2007 21:58:10 -0000 @@ -580,12 +580,7 @@ fil = stdin; } else -#ifdef __EMX__ - /* YD libc06 default is binary mode */ - fil = fopen( name, mode ? "wt":"rt" ); -#else fil = fopen( name, mode ? "w":"r" ); -#endif if( Verbose & V_FILE_IO ) printf( "%s: Openning [%s] for %s", Pname, name, mode?"write":"read" ); Index: dmake/expand.c =================================================================== RCS file: /cvs/tools/dmake/expand.c,v retrieving revision 1.6.16.5 diff -u -r1.6.16.5 expand.c --- dmake/expand.c 22 Sep 2007 22:08:34 -0000 1.6.16.5 +++ dmake/expand.c 23 Sep 2007 21:58:10 -0000 @@ -122,7 +122,7 @@ /* Here we find the next non white space token in the string * and find it's end, with respect to non-significant white space. */ -#ifndef _MPW +#if !defined( _MPW) && !defined(__EMX__) start = DmStrSpn( src, " \t\n" ); #else start = DmStrSpn( src, " \t\r\n" ); Index: dmake/extern.h =================================================================== RCS file: /cvs/tools/dmake/extern.h,v retrieving revision 1.11.4.2 diff -u -r1.11.4.2 extern.h --- dmake/extern.h 14 Sep 2007 03:40:58 -0000 1.11.4.2 +++ dmake/extern.h 23 Sep 2007 21:58:10 -0000 @@ -129,7 +129,7 @@ /* Define some usefull macros. This is done here and not in config.h * to keep this changes usefull even when not using the autotools based * build, i.e. using config.h files that are local to the architecture. */ -#if defined(_WIN32) || defined(__CYGWIN__) || defined(MSDOS) || defined(OS2) +#if defined(_WIN32) || defined(__CYGWIN__) || defined(MSDOS) || defined(OS2) || defined(__EMX__) # define HAVE_DRIVE_LETTERS 1 #endif Index: dmake/make.cmd =================================================================== RCS file: /cvs/tools/dmake/make.cmd,v retrieving revision 1.2.2.1 diff -u -r1.2.2.1 make.cmd --- dmake/make.cmd 22 Sep 2007 22:27:27 -0000 1.2.2.1 +++ dmake/make.cmd 23 Sep 2007 21:58:10 -0000 @@ -1,4 +1,7 @@ echo off + +REM YD This script is deprecated for libc 06x building: run configure.cmd, then make.exe + cls rem *** This is the make command file that is used under OS/2 to make the rem *** first version of dmake. It isn't pretty but it does work, assuming Index: dmake/path.c =================================================================== RCS file: /cvs/tools/dmake/path.c,v retrieving revision 1.4.2.1 diff -u -r1.4.2.1 path.c --- dmake/path.c 24 Jul 2007 23:00:27 -0000 1.4.2.1 +++ dmake/path.c 23 Sep 2007 21:58:10 -0000 @@ -179,14 +179,16 @@ #ifdef HAVE_DRIVE_LETTERS - /* Change all occurences from DirBrkStr to *DirSepStr. */ -#if __CYGWIN__ - for( q = tpath; (q = strchr(q, '\\')) != NIL(char); ) - *q = *DirSepStr; -#else - for( q = tpath; (q = strchr(q, '/')) != NIL(char); ) - *q = *DirSepStr; -#endif + /* Change all occurences from DirBrkStr to *DirSepStr. This assumes + * that when HAVE_DRIVE_LETTERS is set the directory separator is + * either '\' or '/'. */ + if (*DirSepStr == '/') + for( q = tpath; (q = strchr(q, '\\')) != NIL(char); ) + *q = *DirSepStr; + else + for( q = tpath; (q = strchr(q, '/')) != NIL(char); ) + *q = *DirSepStr; + /* The following dosn't trigger often because normalize_path() uses * a cygwin function and bypasses Clean_path() if it encounters a path * with a drive letter. */ Index: dmake/sysintf.c =================================================================== RCS file: /cvs/tools/dmake/sysintf.c,v retrieving revision 1.10.4.10 diff -u -r1.10.4.10 sysintf.c --- dmake/sysintf.c 22 Sep 2007 22:08:38 -0000 1.10.4.10 +++ dmake/sysintf.c 23 Sep 2007 21:58:10 -0000 @@ -572,7 +572,18 @@ Get_current_dir() { static char buf[PATH_MAX+2]; - return(getcwd(buf, sizeof(buf))); + + if( !getcwd(buf, sizeof(buf)) ) + Fatal("Internal Error: Error when calling getcwd()!"); + +#ifdef __EMX__ + char *slash; + slash = buf; + while( (slash=strchr(slash,'/')) ) + *slash = '\\'; +#endif + + return buf; } @@ -619,9 +630,6 @@ mask = umask(0066); fd = mkstemp( *path ); -#ifdef __EMX__ - _setmode( fd, O_TEXT); -#endif umask(mask); #elif defined(HAVE_TEMPNAM) @@ -684,9 +692,6 @@ Def_macro( "TMPFILE", *path, M_MULTI|M_EXPANDED ); /* associate stream with file descriptor */ fp = fdopen(fd, mode); -#ifdef __EMX__ - _setmode( fd, O_TEXT); -#endif } else fp = NIL(FILE); Index: dmake/startup/unix/os2/Makefile.am =================================================================== RCS file: dmake/startup/unix/os2/Makefile.am diff -N dmake/startup/unix/os2/Makefile.am --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ dmake/startup/unix/os2/Makefile.am 23 Sep 2007 21:58:11 -0000 @@ -0,0 +1,6 @@ + +startupdir = $(datadir)/startup/unix/os2 + +startup_DATA = macros.mk + + Index: dmake/startup/unix/os2/Makefile.in =================================================================== RCS file: dmake/startup/unix/os2/Makefile.in diff -N dmake/startup/unix/os2/Makefile.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ dmake/startup/unix/os2/Makefile.in 23 Sep 2007 21:58:11 -0000 @@ -0,0 +1,331 @@ +# Makefile.in generated by automake 1.9.6 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = ../../.. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +INSTALL = @INSTALL@ +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +LIBOBJDIR = +subdir = startup/unix/os2 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(startupdir)" +startupDATA_INSTALL = $(INSTALL_DATA) +DATA = $(startup_DATA) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMDEP_FALSE = @AMDEP_FALSE@ +AMDEP_TRUE = @AMDEP_TRUE@ +AMTAR = @AMTAR@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CYGPATH_W = @CYGPATH_W@ +DBUG_FALSE = @DBUG_FALSE@ +DBUG_TRUE = @DBUG_TRUE@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DMAKEROOT_H_LINE1 = @DMAKEROOT_H_LINE1@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +EXEEXT = @EXEEXT@ +GREP = @GREP@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +LDFLAGS = @LDFLAGS@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +MAINT = @MAINT@ +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ +MAKEINFO = @MAKEINFO@ +OBJEXT = @OBJEXT@ +OSTYPEUNIX_FALSE = @OSTYPEUNIX_FALSE@ +OSTYPEUNIX_TRUE = @OSTYPEUNIX_TRUE@ +OSTYPEWIN32_FALSE = @OSTYPEWIN32_FALSE@ +OSTYPEWIN32_TRUE = @OSTYPEWIN32_TRUE@ +OS_TYPE = @OS_TYPE@ +OS_VERSION = @OS_VERSION@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +RANLIB = @RANLIB@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +STRIP = @STRIP@ +VERSION = @VERSION@ +ac_ct_CC = @ac_ct_CC@ +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host_alias = @host_alias@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +startupdir = $(datadir)/startup/unix/os2 +startup_DATA = macros.mk +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign startup/unix/os2/Makefile'; \ + cd $(top_srcdir) && \ + $(AUTOMAKE) --foreign startup/unix/os2/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +uninstall-info-am: +install-startupDATA: $(startup_DATA) + @$(NORMAL_INSTALL) + test -z "$(startupdir)" || $(mkdir_p) "$(DESTDIR)$(startupdir)" + @list='$(startup_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f=$(am__strip_dir) \ + echo " $(startupDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(startupdir)/$$f'"; \ + $(startupDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(startupdir)/$$f"; \ + done + +uninstall-startupDATA: + @$(NORMAL_UNINSTALL) + @list='$(startup_DATA)'; for p in $$list; do \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(startupdir)/$$f'"; \ + rm -f "$(DESTDIR)$(startupdir)/$$f"; \ + done +tags: TAGS +TAGS: + +ctags: CTAGS +CTAGS: + + +distdir: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ + list='$(DISTFILES)'; for file in $$list; do \ + case $$file in \ + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ + esac; \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + dir="/$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ + else \ + dir=''; \ + fi; \ + if test -d $$d/$$file; then \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ + fi; \ + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) +installdirs: + for dir in "$(DESTDIR)$(startupdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic mostlyclean-am + +distclean: distclean-am + -rm -f Makefile +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +info: info-am + +info-am: + +install-data-am: install-startupDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-info-am uninstall-startupDATA + +.PHONY: all all-am check check-am clean clean-generic distclean \ + distclean-generic distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-startupDATA install-strip installcheck installcheck-am \ + installdirs maintainer-clean maintainer-clean-generic \ + mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ + uninstall-am uninstall-info-am uninstall-startupDATA + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: Index: dmake/startup/unix/os2/macros.mk =================================================================== RCS file: dmake/startup/unix/os2/macros.mk diff -N dmake/startup/unix/os2/macros.mk --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ dmake/startup/unix/os2/macros.mk 23 Sep 2007 21:58:11 -0000 @@ -0,0 +1,60 @@ +# Define additional OS/2 specific macros. +# + +# Process release-specific refinements, if any. +.INCLUDE .NOINFER .IGNORE : $(INCFILENAME:d)$(OSRELEASE)$/macros.mk + +# Execution environment configuration. +# Grab the current setting of COMSPEC. +# +.IMPORT .IGNORE : COMSPEC ROOTDIR + +# First check if SHELL is defined to be something other than COMSPEC. +# If it is assume that SHELL is a Korn compatible shell like MKS's +.IF $(SHELL) == $(NULL) + .IF $(COMSPEC) == $(NULL) + SHELL *:= $(ROOTDIR)$/bin$/sh$E + .ELSE + SHELL *:= $(COMSPEC) + .END +.END +GROUPSHELL *:= $(SHELL) + +# Directory entries are case incensitive +.DIRCACHERESPCASE *:= no + +# Applicable suffix definitions +A *:= .lib # Libraries +E *:= .exe # Executables +F *:= .for # Fortran +O *:= .obj # Objects +P *:= .pas # Pascal +S *:= .asm # Assembler sources +V *:= # RCS suffix + +# Now set the remaining arguments depending on which SHELL we +# are going to use. COMSPEC (assumed to be command.com) or +# MKS Korn shell. +.IF $(SHELL) == $(COMSPEC) + SHELLFLAGS *:= $(SWITCHAR)c + GROUPFLAGS *:= $(SHELLFLAGS) + SHELLMETAS *:= *"?<> + GROUPSUFFIX *:= .bat + DIRSEPSTR *:= \\\ + DIVFILE *= $(TMPFILE:s,/,\,) + RM *= del + RMFLAGS *= + MV *= rename +.ELSE + SHELLFLAGS *:= -c + GROUPFLAGS *:= + SHELLMETAS *:= *"?<>|()&][$$\#`' + GROUPSUFFIX *:= .ksh + .MKSARGS *:= yes + RM *= $(ROOTDIR)$/bin$/rm + RMFLAGS *= -f + MV *= $(ROOTDIR)$/bin$/mv + DIVFILE *= $(TMPFILE:s,/,${__.DIVSEP-sh-${USESHELL}},) + __.DIVSEP-sh-yes !:= \\\ + __.DIVSEP-sh-no !:= \\ +.ENDIF Index: dmake/unix/os2/public.h =================================================================== RCS file: dmake/unix/os2/public.h diff -N dmake/unix/os2/public.h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ dmake/unix/os2/public.h 23 Sep 2007 21:58:11 -0000 @@ -0,0 +1,172 @@ +/* $RCSfile: public.h,v $ +-- $Revision: 1.8 $ +-- last change: $Author: vg $ $Date: 2007/01/18 09:46:22 $ +-- +-- WARNING -- This file is AUTOMATICALLY GENERATED DO NOT EDIT IT +-- +-- +-- SYNOPSIS +-- Local functions exported to be visible by others. +-- +-- DESCRIPTION +-- This file is generated by 'genpub'. Function declarations +-- that appear in this file are extracted by 'genpub' from +-- source files. Any function in the source file whose definition +-- appears like: +-- +-- PUBLIC return_type +-- function( arg_list ); +-- type_expr1 arg1; +-- ... +-- +-- has its definition extracted and a line of the form: +-- +-- return_type function ANSI((type_expr1,type_expr2,...)); +-- +-- entered into the output file. +-- +-- AUTHOR +-- Dennis Vadura, dvadura@dmake.wticorp.com +-- +-- WWW +-- http://dmake.wticorp.com/ +-- +-- COPYRIGHT +-- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. +-- +-- This program is NOT free software; you can redistribute it and/or +-- modify it under the terms of the Software License Agreement Provided +-- in the file /readme/license.txt. +-- +-- LOG +-- Use cvs log to obtain detailed change logs. +*/ + +#ifndef _DMAKE_PUBLIC_h +#define _DMAKE_PUBLIC_h + +#ifdef EXTERN +#undef EXTERN +#endif +#if defined(DEFINE_DMAKE_VARIABLES) +#define EXTERN +#else +#define EXTERN extern +#endif + +/***** genpub: Begin list of generated function headers */ +void Infer_recipe ANSI((CELLPTR, CELLPTR)); +int Make_targets ANSI(()); +int Make ANSI((CELLPTR, CELLPTR)); +int Exec_commands ANSI((CELLPTR)); +void Print_cmnd ANSI((char *, int, int)); +int Push_dir ANSI((char *, char *, int)); +void Pop_dir ANSI((int)); +void Append_line ANSI((char *, int, FILE *, char *, int, int)); +void Stat_target ANSI((CELLPTR, int, int)); +char *Expand ANSI((char *)); +char *Apply_edit ANSI((char *, char *, char *, int, int)); +void Map_esc ANSI((char *)); +char* Apply_modifiers ANSI((int, char *)); +char* Tokenize ANSI((char *, char *, char, int)); +char* ScanToken ANSI((char *, char **, int)); +char *DmStrJoin ANSI((char *, char *, int, int)); +char *DmStrAdd ANSI((char *, char *, int)); +char *DmStrApp ANSI((char *, char *)); +char *DmStrDup ANSI((char *)); +char *DmStrDup2 ANSI((char *)); +char *DmStrPbrk ANSI((char *, char *)); +char *DmStrSpn ANSI((char *, char *)); +char *DmStrStr ANSI((char *, char *)); +char *DmSubStr ANSI((char *, char *)); +uint16 Hash ANSI((char *, uint32 *)); +HASHPTR Get_name ANSI((char *, HASHPTR *, int)); +HASHPTR Search_table ANSI((HASHPTR *, char *, uint16 *, uint32 *)); +HASHPTR Push_macro ANSI((HASHPTR)); +HASHPTR Pop_macro ANSI((HASHPTR)); +HASHPTR Def_macro ANSI((char *, char *, int)); +CELLPTR Def_cell ANSI((char *)); +LINKPTR Add_prerequisite ANSI((CELLPTR, CELLPTR, int, int)); +void Clear_prerequisites ANSI((CELLPTR)); +int Test_circle ANSI((CELLPTR, int)); +STRINGPTR Def_recipe ANSI((char *, STRINGPTR, int, int)); +t_attr Rcp_attribute ANSI((char *)); +int main ANSI((int, char **)); +FILE *Openfile ANSI((char *, int, int)); +FILE *Closefile ANSI(()); +FILE *Search_file ANSI((char *, char **)); +char *Filename ANSI(()); +int Nestlevel ANSI(()); +FILE *TryFiles ANSI((LINKPTR)); +void Fatal ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist))); +void Error ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist))); +void Warning ANSI((ARG (char *,fmt),ARG (va_alist_type, va_alist))); +void No_ram ANSI(()); +void Usage ANSI((int)); +void Version ANSI(()); +char *Get_suffix ANSI((char *)); +char *Basename ANSI((char *)); +char *Filedir ANSI((char *)); +char *Build_path ANSI((char *, char *)); +void Make_rules ANSI(()); +void Create_macro_vars ANSI(()); +time_t Do_stat ANSI((char *, char *, char **, int)); +int Do_touch ANSI((char *, char *, char **)); +void Void_lib_cache ANSI((char *, char *)); +time_t Do_time ANSI(()); +void Do_profile_output ANSI((char *, uint16, CELLPTR)); +int Do_cmnd ANSI((char *, int, int, CELLPTR, t_attr, int)); +char ** Pack_argv ANSI((int, int, char *)); +char *Read_env_string ANSI((char *)); +int Write_env_string ANSI((char *, char *)); +void ReadEnvironment ANSI(()); +void Catch_signals ANSI((void (*)(int))); +void Clear_signals ANSI(()); +void Prolog ANSI((int, char* [])); +void Epilog ANSI((int)); +char *Get_current_dir ANSI(()); +int Set_dir ANSI((char*)); +char Get_switch_char ANSI(()); +FILE* Get_temp ANSI((char **, char *)); +FILE *Start_temp ANSI((char *, CELLPTR, char **)); +void Open_temp_error ANSI((char *, char *)); +void Link_temp ANSI((CELLPTR, FILE *, char *)); +void Close_temp ANSI((CELLPTR, FILE *)); +void Unlink_temp_files ANSI((CELLPTR)); +void Handle_result ANSI((int, int, int, CELLPTR)); +void Update_time_stamp ANSI((CELLPTR)); +int Remove_file ANSI((char *)); +void Parse ANSI((FILE *)); +int Get_line ANSI((char *, FILE *)); +char *Do_comment ANSI((char *, char **, int)); +char *Get_token ANSI((TKSTRPTR, char *, int)); +void Quit ANSI((int)); +const int in_quit ANSI((void)); +void Read_state ANSI(()); +void Write_state ANSI(()); +int Check_state ANSI((CELLPTR, STRINGPTR *, int)); +void Dump ANSI(()); +void Dump_recipe ANSI((STRINGPTR)); +int Parse_macro ANSI((char *, int)); +int Macro_op ANSI((char *)); +int Parse_rule_def ANSI((int *)); +int Rule_op ANSI((char *)); +void Add_recipe_to_list ANSI((char *, int, int)); +void Bind_rules_to_targets ANSI((int)); +int Set_group_attributes ANSI((char *)); +DFALINKPTR Match_dfa ANSI((char *)); +void Check_circle_dfa ANSI(()); +void Add_nfa ANSI((char *)); +char *Exec_function ANSI((char *)); +time_t seek_arch ANSI((char *, char *)); +int touch_arch ANSI(( char *, char *)); +void void_lcache ANSI(( char *, char *)); +int If_root_path ANSI((char *)); +void Remove_prq ANSI((CELLPTR)); +int runargv ANSI((CELLPTR, int, int, t_attr, char *)); +int Wait_for_child ANSI((int, int)); +void Clean_up_processes ANSI(()); +time_t CacheStat ANSI((char *, int)); + + +#endif