Skip to content
Snippets Groups Projects
Commit 027dda4e10bf authored by Daniel Veillard's avatar Daniel Veillard
Browse files

applied patch from Craig A. Berry for the VMS port. Daniel

* vms/build_xslt.com libxslt/xsltconfig.h.in libxslt/xsltutils.c:
  applied patch from Craig A. Berry for the VMS port.
Daniel
parent 7488130af364
Branches
No related tags found
No related merge requests found
Sun Dec 22 22:54:04 CET 2002 Daniel Veillard <daniel@veillard.com>
* vms/build_xslt.com libxslt/xsltconfig.h.in libxslt/xsltutils.c:
applied patch from Craig A. Berry for the VMS port.
Wed Dec 18 15:41:21 CET 2002 Daniel Veillard <daniel@veillard.com> Wed Dec 18 15:41:21 CET 2002 Daniel Veillard <daniel@veillard.com>
* libxslt/xsltInternals.h: increase the max number of cascaded * libxslt/xsltInternals.h: increase the max number of cascaded
......
...@@ -76,6 +76,11 @@ ...@@ -76,6 +76,11 @@
#if @WITH_TRIO@ #if @WITH_TRIO@
#define XSLT_NEED_TRIO #define XSLT_NEED_TRIO
#endif #endif
#ifdef __VMS
#ifndef XSLT_NEED_TRIO
#define XSLT_NEED_TRIO
#endif
#endif
/** /**
* WITH_XSLT_DEBUGGER: * WITH_XSLT_DEBUGGER:
......
...@@ -46,6 +46,13 @@ ...@@ -46,6 +46,13 @@
#endif /* _MS_VER */ #endif /* _MS_VER */
#endif /* WIN32 */ #endif /* WIN32 */
#ifdef XSLT_NEED_TRIO
#include "trio.h"
#ifdef __VMS
# define vsnprintf trio_vsnprintf
#endif
#endif
/************************************************************************ /************************************************************************
* * * *
* Convenience function * * Convenience function *
...@@ -254,10 +261,6 @@ ...@@ -254,10 +261,6 @@
* * * *
************************************************************************/ ************************************************************************/
#ifdef XSLT_NEED_TRIO
#define vsnprintf trio_vsnprintf
#endif
#define XSLT_GET_VAR_STR(msg, str) { \ #define XSLT_GET_VAR_STR(msg, str) { \
int size; \ int size; \
int chars; \ int chars; \
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
$! $!
$! This procedure creates the object libraries $! This procedure creates the object libraries
$! $!
$! XMLOLB:LIBXSLT.OLB $! XML_LIBDIR:LIBXSLT.OLB
$! XMLOLB:LIBEXSLT.OLB $! XML_LIBDIR:LIBEXSLT.OLB
$! $!
$! and the program $! and the program
$! $!
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
$! After the library is built, you can link these routines into $! After the library is built, you can link these routines into
$! your code with the command $! your code with the command
$! $!
$! LINK your_modules,XMLOLB:LIBEXSLT/LIB,LIBXSLT/LIBRARY,LIBXML/LIB $! LINK your_modules,XML_LIBDIR:LIBEXSLT/LIB,LIBXSLT/LIBRARY,LIBXML/LIB
$! $!
$! Change History $! Change History
$! -------------- $! --------------
...@@ -33,5 +33,7 @@ ...@@ -33,5 +33,7 @@
$! $!
$!- compile command. $!- compile command.
$! $!
$ cc_opts = "/INCLUDE=([],XML_SRCDIR:,[-.libxslt])/NAMES=(SHORTENED)/FLOAT=IEEE/IEEE_MODE=DENORM_RESULTS"
$!
$ if p1.eqs."DEBUG" $ if p1.eqs."DEBUG"
$ then $ then
...@@ -36,5 +38,5 @@ ...@@ -36,5 +38,5 @@
$ if p1.eqs."DEBUG" $ if p1.eqs."DEBUG"
$ then $ then
$ debug = "y" $ debug = "Y"
$ cc_command = "CC/DEBUG/NOOPT" $ cc_command = "CC''cc_opts'/DEBUG/NOOPTIMIZE/LIST/SHOW=ALL"
$ else $ else
...@@ -40,6 +42,6 @@ ...@@ -40,6 +42,6 @@
$ else $ else
$ debug = "n" $ debug = "N"
$ cc_command = "CC" $ cc_command = "CC''cc_opts'"
$ endif $ endif
$! $!
$!- configure multiple build passes for each library. ------------------------- $!- configure multiple build passes for each library. -------------------------
...@@ -67,7 +69,7 @@ ...@@ -67,7 +69,7 @@
$ src_1 = "xslt.c xsltutils.c pattern.c templates.c variables.c keys.c" $ src_1 = "xslt.c xsltutils.c pattern.c templates.c variables.c keys.c"
$ src_1 = src_1 + " numbers.c extensions.c extra.c functions.c" $ src_1 = src_1 + " numbers.c extensions.c extra.c functions.c"
$ src_1 = src_1 + " namespaces.c imports.c attributes.c documents.c" $ src_1 = src_1 + " namespaces.c imports.c attributes.c documents.c"
$ src_1 = src_1 + " preproc.c transform.c" $ src_1 = src_1 + " preproc.c transform.c security.c"
$! $!
$!- pass 2 - library LIBEXSLT $!- pass 2 - library LIBEXSLT
$! $!
...@@ -76,7 +78,7 @@ ...@@ -76,7 +78,7 @@
$ progname_2 = "" $ progname_2 = ""
$! $!
$ ! see "libexslt_la_SOURCES" in [.libexslt]makefile.in $ ! see "libexslt_la_SOURCES" in [.libexslt]makefile.in
$ src_2 = "exslt.c common.c math.c sets.c functions.c strings.c date.c saxon.c" $ src_2 = "exslt.c common.c math.c sets.c functions.c strings.c date.c saxon.c dynamic.c"
$! $!
$!- pass 3 - program XSLTPROC $!- pass 3 - program XSLTPROC
$! $!
...@@ -89,6 +91,7 @@ ...@@ -89,6 +91,7 @@
$! $!
$!- set up and check logicals ----------------------------------------------- $!- set up and check logicals -----------------------------------------------
$! $!
$! XMLOLB - object library directory $! XML_LIBDIR - object library directory
$! XML_SRCDIR - top-level build directory of libxml package -- needed for config.h and trio.h
$! LIBXML - source directory containing .h files for libxml package $! LIBXML - source directory containing .h files for libxml package
$! $!
...@@ -93,5 +96,9 @@ ...@@ -93,5 +96,9 @@
$! LIBXML - source directory containing .h files for libxml package $! LIBXML - source directory containing .h files for libxml package
$! $!
$ if f$trnlnm("XMLOLB").eqs."" $ if f$trnlnm("XML_LIBDIR").eqs.""
$ then
$ on error then continue
$ globfile = f$search("[--...]libxml.olb")
$ if globfile.eqs.""
$ then $ then
$ write sys$output "" $ write sys$output ""
...@@ -96,9 +103,9 @@ ...@@ -96,9 +103,9 @@
$ then $ then
$ write sys$output "" $ write sys$output ""
$ write sys$output " You need to define a XMLOLB logical directory to" $ write sys$output " You need to define the XML_LIBDIR logical name to"
$ write sys$output " point to the directory containing your CMS object" $ write sys$output " point to the directory containing your object"
$ write sys$output " libraries. This should already contain LIBXML.OLB" $ write sys$output " libraries. This should already contain LIBXML.OLB"
$ write sys$output " from the libxml package, and will be the directory" $ write sys$output " from the libxml package, and will be the directory"
$ write sys$output " the new LIBXSLT.OLB library will be placed in" $ write sys$output " the new LIBXSLT.OLB library will be placed in"
$ write sys$output "" $ write sys$output ""
$ exit $ exit
...@@ -100,8 +107,13 @@ ...@@ -100,8 +107,13 @@
$ write sys$output " libraries. This should already contain LIBXML.OLB" $ write sys$output " libraries. This should already contain LIBXML.OLB"
$ write sys$output " from the libxml package, and will be the directory" $ write sys$output " from the libxml package, and will be the directory"
$ write sys$output " the new LIBXSLT.OLB library will be placed in" $ write sys$output " the new LIBXSLT.OLB library will be placed in"
$ write sys$output "" $ write sys$output ""
$ exit $ exit
$ else
$ srcdir = f$parse(globfile,,,"DEVICE") + f$parse(globfile,,,"DIRECTORY")
$ define/process XML_LIBDIR "''srcdir'"
$ write sys$output "Defining XML_LIBDIR as ""''srcdir'"""
$ endif
$ endif $ endif
$! $!
$ if f$trnlnm("libxml").eqs."" $ if f$trnlnm("libxml").eqs.""
...@@ -124,6 +136,20 @@ ...@@ -124,6 +136,20 @@
$ endif $ endif
$ endif $ endif
$! $!
$ if f$trnlnm("XML_SRCDIR").eqs.""
$ then
$ globfile = f$search("[--...]globals.c")
$ if globfile.eqs.""
$ then
$ write sys$output "Can't locate globals.c. You need to manually define a XML_SRCDIR logical"
$ exit
$ else
$ srcdir = f$parse(globfile,,,"DEVICE") + f$parse(globfile,,,"DIRECTORY")
$ define/process XML_SRCDIR "''srcdir'"
$ write sys$output "Defining XML_SRCDIR as ""''srcdir'"""
$ endif
$ endif
$!
$!- set up some working logicals ------------------- $!- set up some working logicals -------------------
$! $!
$ pass_no = 1 $ pass_no = 1
...@@ -208,7 +234,7 @@ ...@@ -208,7 +234,7 @@
$ if libname.nes."" $ if libname.nes.""
$ then $ then
$ logname = "''libname'_SRCDIR" $ logname = "''libname'_SRCDIR"
$ pass_description = "the XMLOLB:''libname'.OLB object library" $ pass_description = "the XML_LIBDIR:''libname'.OLB object library"
$ else $ else
$ logname = "''progname'_SRCDIR" $ logname = "''progname'_SRCDIR"
$ pass_description = "the programs in ''progname'" $ pass_description = "the programs in ''progname'"
...@@ -219,5 +245,5 @@ ...@@ -219,5 +245,5 @@
$! $!
$ if libname.nes."" $ if libname.nes.""
$ then $ then
$ if f$search("XMLOLB:''libname'.OLB").eqs."" $ if f$search("XML_LIBDIR:''libname'.OLB").eqs.""
$ then $ then
...@@ -223,6 +249,6 @@ ...@@ -223,6 +249,6 @@
$ then $ then
$ write sys$output "Creating new object library XMLOLB:''libname'.OLB..." $ write sys$output "Creating new object library XML_LIBDIR:''libname'.OLB..."
$ library/create XMLOLB:'libname'.OLB $ library/create XML_LIBDIR:'libname'.OLB
$ endif $ endif
$ endif $ endif
$! $!
...@@ -234,7 +260,7 @@ ...@@ -234,7 +260,7 @@
$! $!
$ if libname.nes."" $ if libname.nes.""
$ then $ then
$ lib_command = "LIBRARY/REPLACE XMLOLB:''libname'.OLB" $ lib_command = "LIBRARY/REPLACE XML_LIBDIR:''libname'.OLB"
$ link_command = "" $ link_command = ""
$ else $ else
$ lib_command = "" $ lib_command = ""
...@@ -253,8 +279,4 @@ ...@@ -253,8 +279,4 @@
$ next_source = f$element (S_no," ",src) $ next_source = f$element (S_no," ",src)
$ if next_source.nes."" .and. next_source.nes." " $ if next_source.nes."" .and. next_source.nes." "
$ then $ then
$ if link_command.nes."" .or. next_source.eqs."xsltutils.c"
$ then
$ call build 'next_source' /IEEE_MODE=UNDERFLOW_TO_ZERO/FLOAT=IEEE
$ else
$ call build 'next_source' $ call build 'next_source'
...@@ -260,5 +282,4 @@ ...@@ -260,5 +282,4 @@
$ call build 'next_source' $ call build 'next_source'
$ endif
$ s_no = s_no + 1 $ s_no = s_no + 1
$ goto source_loop $ goto source_loop
$ endif $ endif
...@@ -287,7 +308,7 @@ ...@@ -287,7 +308,7 @@
$ on warning then goto EXIT_BUILD $ on warning then goto EXIT_BUILD
$ source_file = p1 $ source_file = p1
$ name = f$element(0,".",source_file) $ name = f$element(0,".",source_file)
$ object_file = f$fao("XMLOLB:!AS.OBJ",name) $ object_file = f$fao("XML_LIBDIR:!AS.OBJ",name)
$! $!
$!- compile $!- compile
$ write sys$output "Compiling ",p1,p2,"..." $ write sys$output "Compiling ",p1,p2,"..."
...@@ -310,9 +331,9 @@ ...@@ -310,9 +331,9 @@
$ dbgopts = "" $ dbgopts = ""
$ if debug then dbgopts = "/DEBUG" $ if debug then dbgopts = "/DEBUG"
$ link_command'dbgopts' 'object_file',- $ link_command'dbgopts' 'object_file',-
XMLOLB:libexslt/lib,- XML_LIBDIR:libexslt/lib,-
XMLOLB:libxslt/lib,- XML_LIBDIR:libxslt/lib,-
XMLOLB:libxml/library XML_LIBDIR:libxml/library
$ endif $ endif
$! $!
$EXIT_BUILD: $EXIT_BUILD:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment