diff options
author | Ben Murdoch <benm@google.com> | 2011-05-05 14:36:32 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-05-10 15:38:30 +0100 |
commit | f05b935882198ccf7d81675736e3aeb089c5113a (patch) | |
tree | 4ea0ca838d9ef1b15cf17ddb3928efb427c7e5a1 /WebKitTools/android/flex-2.5.4a/MISC/VMS | |
parent | 60fbdcc62bced8db2cb1fd233cc4d1e4ea17db1b (diff) | |
download | external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.zip external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.gz external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.bz2 |
Merge WebKit at r74534: Initial merge by git.
Change-Id: I6ccd1154fa1b19c2ec2a66878eb675738735f1eb
Diffstat (limited to 'WebKitTools/android/flex-2.5.4a/MISC/VMS')
-rw-r--r-- | WebKitTools/android/flex-2.5.4a/MISC/VMS/README.VMS | 83 | ||||
-rw-r--r-- | WebKitTools/android/flex-2.5.4a/MISC/VMS/build.com | 155 | ||||
-rw-r--r-- | WebKitTools/android/flex-2.5.4a/MISC/VMS/descrip.mms | 311 | ||||
-rw-r--r-- | WebKitTools/android/flex-2.5.4a/MISC/VMS/mkskel.tpu | 45 | ||||
-rw-r--r-- | WebKitTools/android/flex-2.5.4a/MISC/VMS/vms-code.c | 152 | ||||
-rw-r--r-- | WebKitTools/android/flex-2.5.4a/MISC/VMS/vms-conf.h | 32 |
6 files changed, 0 insertions, 778 deletions
diff --git a/WebKitTools/android/flex-2.5.4a/MISC/VMS/README.VMS b/WebKitTools/android/flex-2.5.4a/MISC/VMS/README.VMS deleted file mode 100644 index e4a4966..0000000 --- a/WebKitTools/android/flex-2.5.4a/MISC/VMS/README.VMS +++ /dev/null @@ -1,83 +0,0 @@ -Brief instructions for building flex 2.5.x for VMS: - - 0) if you have either MMS (from Digital) or MMK (freeware) for use -as a `make' utility, follow the directions in steps #1 through #5 below. -If not, execute - @BUILD.COM xxxC -where "xxxC" is either "VAXC" or "DECC" or "GNUC", and then skip to -step #5. - - 1) set default to the source directory (not the [.MISC.VMS] subdirectory -where this file is located). - - 2) COPY [.MISC.VMS]DESCRIP.MMS []*.* -(Recursive invocations of `make' for the `bigcheck' test assume that the -makefile will be found as descrip.mms in the current directory.) - -To build with VAX C for VAX/VMS: - 3) MMS /MACRO=("VAXC=1") FLEX.EXE -(The /macro qualifier is optional in this case.) - -To build with GNU C for VAX/VMS: - 2.5) possibly edit descrip.mms to uncomment `SET COMMAND' for GCCINIT, - depending on local site configuration - 3) MMS /MACRO=("GNUC=1") FLEX.EXE - -To build with DEC C for either VAX/VMS or Alpha/VMS: - 3) MMS /MACRO=("DECC=1") FLEX.EXE -(Expect one or two informational messages from the compiler about -implicitly declared functions.) - -Minimal testing of the resulting program: - 4) MMS CHECK -(If `diff' reports no warnings, the test has succeeded.) - -More thorough testing: - 4.5) MMS /MACRO=("xxxC=1") BIGCHECK ! "xxxC=1" as in step #3 above -(If using an older version of MMK rather than MMS, this might fail when -`make' is invoked recursively due to excessive BYTLM usage by MMK.) - -Installation (the VMS makefile does not support an `install' target; -you'll need to do this part manually): - 5) copy flex.exe, flex.doc, flex.skl, flexlib.olb, and FlexLexer.h to -location(s) appropriate for your site. To use flex, define a "foreign" -command by making a DCL symbol whose value begins with a dollar sign -immediately followed by the filename for flex.exe, as in - $ flex :== $local_tools:flex.exe -where `local_tools:' is the logical name pointing to flex.exe's location. -This symbol will ordinarily be a candidate for your login.com. When -invoking flex, upper- or mixed-case command line options must be enclosed -in quotes. For example, - $ flex "-Pxyz" "-L" -t mylexer.l > mylexer.c -(use prefix "xyz" instead of "yy", suppress `#line' compiler directives -in the output, write the output to `stdout', process file mylexer.l, -and capture `stdout' in file mylexer.c). As illustrated here, this VMS -version of flex supports emulation of command line I/O redirection used -by Unix shells. - - flex.exe -- the executable image for the flex program; - flex.doc -- documentation, the "man page" describing flex (flex.1 - processed with `nroff -man' followed by `col -b'); - flex.skl -- a text file containing flex's default skeleton; - with this version of flex, it is for reference only; - flex.exe does not need to know where to find it; - flexlib.olb -- an object library containing some support routines; - you might need to link your generated lexer against - it, depending on how your program is designed; - flex.exe does not access it; it corresponds to - `libfl.a' under Unix; - FlexLexer.h -- header file used for C++ class-based lexers; not - needed for ordinary C lexers. - -Notes: - This VMS port of flex supports only the original Unix command line -interface, not the native DCL interface which was available for flex 2.3. - - build.com -- DCL command procedure as alternative to descrip.mms; - descrip.mms -- 2.5.x makefile for use with MMS or MMK (see step #1); - mkskel.tpu -- TPU program used to make skel.c from flex.skl for full - build from scratch; performs same function as mkskel.sh; - vms-conf.h -- pre-configured `conf.in', copied to [-.-]config.h; - vms-code.c -- VMS-specific support code, copied to [-.-]vms-code.c; - README.VMS -- this file - diff --git a/WebKitTools/android/flex-2.5.4a/MISC/VMS/build.com b/WebKitTools/android/flex-2.5.4a/MISC/VMS/build.com deleted file mode 100644 index dbde55a..0000000 --- a/WebKitTools/android/flex-2.5.4a/MISC/VMS/build.com +++ /dev/null @@ -1,155 +0,0 @@ -$! VMS build procedure for flex 2.5.x; -$ v = 'f$verify(0)' -$! -$! usage: -$! $ @[.MISC.VMS]BUILD.COM compiler parser [test] -$! where `compiler' is either "GNUC" or "DECC" or "VAXC" or empty -$! and `parser' is either "BISON" or "BYACC" or "YACC" or empty -$! and `[test]' is either "CHECK-ONLY" or "NO-CHECK" or empty -$! empty compiler defaults to VAX C (even under Alpha/VMS); -$! special "LINK" compiler value does link without compilation; -$! empty parser defaults to using supplied parse code in [.MISC]; -$! optional test is performed by default. -$! -$ -$! we start from [.MISC.VMS], then move to the main source directory -$ where = f$parse("_._;",f$environ("PROCEDURE")) - "_._;" -$ set default 'where' -$ brkt = f$extract(f$length(where)-1,1,where) -$ if f$locate(".MISC.VMS"+brkt,where).lt.f$length(where) then - - set default 'f$string(f$extract(0,1,f$dir()) + "-.-" + brkt)' -$ -$ p1 := 'p1' -$ p2 := 'p2' -$ p3 := 'p3' -$ if p1.eqs."LINK" then goto link -$ if p3.eqs."CHECK-ONLY" then goto check -$ p2 = p2 - "_PARSER" -$! -$ CDEFS = "/Define=(""VMS"")" ! =(""VMS"",""DEFAULT_CSIZE=256"") -$! -$ if p1.eqs."GNUC" -$ then CC = "gcc" -$ CFLAGS = "/noList/Opt=2/Debug/noVerbose" -$ LIBS = "gnu_cc:[000000]gcclib.olb/Library, sys$library:vaxcrtl.olb/Library" -$ else CC = "cc" -$ if p1.eqs."DECC" -$ then CFLAGS = "/noList/Prefix=All" -$ LIBS = "" -$ if f$trnlnm("DECC$CC_DEFAULT").nes."" then CC = CC + "/DECC" -$ else CFLAGS = "/noList/Optimize=noInline" -$ LIBS = "sys$share:vaxcrtl.exe/Shareable" -$ if f$trnlnm("DECC$CC_DEFAULT").nes."" then CC = CC + "/VAXC" -$ if p1.nes."" .and. p1.nes."VAXC" then exit %x002C -$ endif -$ endif -$! -$ no_parser = 0 -$ if p2.eqs."BISON" -$ then YACC = "bison" -$ YACCFLAGS = "/Defines/Fixed_Outfiles" -$ ALLOCA = ",[]alloca.obj" -$ else -$ YACCFLAGS = "-d" -$ ALLOCA = "" -$ if p2.eqs."BYACC" .or. p2.eqs."YACC" -$ then YACC = f$edit(p2,"LOWERCASE") -$ else YACC = "! yacc" -$ if p2.nes."" .and. p2.nes."NO" .and. p2.nes."NONE" then exit %x002C -$ no_parser = 1 -$ endif -$ endif -$! -$ ECHO = "write sys$output" -$ COPY = "copy_" -$ MOVE = "rename_/New_Vers" -$ MUNG = "search_/Exact/Match=NOR" -$ PURGE = "purge_/noConfirm/noLog" -$ REMOVE = "delete_/noConfirm/noLog" -$ TPU = "edit_/TPU/noJournal/noDisplay/noSection" -$! -$ if v then set verify -$! -$ 'COPY' [.misc.vms]vms-conf.h config.h -$ 'COPY' [.misc.vms]vms-code.c vms-code.c -$ 'COPY' [.misc]flex.man flex.doc -$ if ALLOCA.nes."" then 'COPY' [.MISC]alloca.c alloca.c -$ 'COPY' initscan.c scan.c !make.bootstrap -$! -$ if f$search("skel.c").nes."" then - - if f$cvtime(f$file_attr("skel.c","RDT")).gts. - - f$cvtime(f$file_attr("flex.skl","RDT")) then goto skip_mkskel -$ 'TPU' /Command=[.misc.vms]mkskel.tpu flex.skl /Output=skel.c -$skip_mkskel: -$! -$ if f$search("parse.c").nes."" .and. f$search("parse.h").nes."" then - - if f$cvtime(f$file_attr("parse.c","RDT")).gts. - - f$cvtime(f$file_attr("parse.y","RDT")) then goto skip_yacc -$ if f$search("y_tab.%").nes."" then 'REMOVE' y_tab.%;* -$ if no_parser -$ then 'COPY' [.misc]parse.% sys$disk:[]y_tab.* -$ else 'YACC' 'YACCFLAGS' parse.y -$ endif -$ 'MUNG' y_tab.c "#module","#line" /Output=parse.c -$ 'REMOVE' y_tab.c;* -$ 'MOVE' y_tab.h parse.h -$skip_yacc: -$! -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] ccl.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] dfa.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] ecs.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] gen.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] main.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] misc.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] nfa.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] parse.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] scan.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] skel.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] sym.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] tblcmp.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] yylex.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] vms-code.c -$ if ALLOCA.nes."" then - !bison - 'CC' 'CFLAGS' /Define=("STACK_DIRECTION=-1","xmalloc=yy_flex_xmalloc") alloca.c -$! -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] libmain.c -$ 'CC' 'CFLAGS' 'CDEFS' /Include=[] libyywrap.c -$ library/Obj flexlib.olb/Create libmain.obj,libyywrap.obj/Insert -$ if f$search("flexlib.olb;-1").nes."" then 'PURGE' flexlib.olb -$! -$ open/Write optfile sys$disk:[]crtl.opt -$ write optfile LIBS -$ close optfile -$ if f$search("crtl.opt;-1").nes."" then 'PURGE' crtl.opt -$! -$ version = "# flex ""2.5""" !default, overridden by version.h -$ open/Read/Error=v_h_2 hfile version.h -$ read/End=v_h_1 hfile version -$v_h_1: close/noLog hfile -$v_h_2: version = f$element(1,"""",version) -$ open/Write optfile sys$disk:[]ident.opt -$ write optfile "identification=""flex ''version'""" -$ close optfile -$ if f$search("ident.opt;-1").nes."" then 'PURGE' ident.opt -$! -$link: -$ link/noMap/Exe=flex.exe ccl.obj,dfa.obj,ecs.obj,gen.obj,main.obj,misc.obj,- - nfa.obj,parse.obj,scan.obj,skel.obj,sym.obj,tblcmp.obj,yylex.obj,- - vms-code.obj 'ALLOCA' ,flexlib.olb/Lib,- - sys$disk:[]crtl.opt/Opt,sys$disk:[]ident.opt/Opt -$! -$ if p3.eqs."NO-CHECK" .or. p3.eqs."NOCHECK" then goto done -$ -$check: -$ 'ECHO' "" -$ 'ECHO' " Checking with COMPRESSION=""""" -$ mcr sys$disk:[]flex.exe -t -p scan.l > scan.chk -$ diff_/Output=_NL:/Maximum_Diff=1 scan.c scan.chk -$ if $status -$ then 'ECHO' " Test passed." -$ 'REMOVE' scan.chk;* -$ else 'ECHO' "? Test failed!" -$ endif -$ -$done: -$ exit diff --git a/WebKitTools/android/flex-2.5.4a/MISC/VMS/descrip.mms b/WebKitTools/android/flex-2.5.4a/MISC/VMS/descrip.mms deleted file mode 100644 index 5b2859d..0000000 --- a/WebKitTools/android/flex-2.5.4a/MISC/VMS/descrip.mms +++ /dev/null @@ -1,311 +0,0 @@ -# descrip.mms -- makefile for building `flex' using MMS or MMK on VMS; -# created manually from Makefile.in -# flex 2.5.0 Jan'95 - -MAKEFILE = descrip.mms # from [.MISC.VMS] -MAKE = $(MMS) /Descr=$(MAKEFILE) -MAKEFLAGS = $(MMSQUALIFIERS) - -# Possible values for DEFS: -# "VMS" -- used just to make sure parentheses aren't empty; -# For flex to always generate 8-bit scanners, append -# ,"DEFAULT_CSIZE=256" inside /Define=() of DEFS. - -DEFS = /Define=("VMS") -LDFLAGS = /noMap - -# compiler handling -.ifdef GNUC -CC = gcc -GCCINIT = ! SET COMMAND GNU_CC:[000000]GCC -CFLAGS = /noList/Opt=2/Debug/noVerbose -LIBS = gnu_cc:[000000]gcclib.olb/Library, sys$library:vaxcrtl.olb/Library -C_CHOICE = "GNUC=1" -.else ! not GNU C -CC = cc -GCCINIT = -.ifdef DECC -CFLAGS = /noList/Prefix=All -LIBS = -C_CHOICE = "DECC=1" -.else ! not DEC C; assume VAX C -CFLAGS = /noList/Optimize=noInline -LIBS = sys$share:vaxcrtl.exe/Shareable -C_CHOICE = "VAXC=1" -.endif -.endif - -# parser handling -# mms/macro=("xxxC=1","zzz_parser=1"), where "zzz_parser" is -# either "bison_parser" or "byacc_parser" or "yacc_parser", -# otherwise assumed to be "no_parser"; and where "xxxC=1" is -# either "VAXC=1", "GNUC=1", or "DECC=1" as above -.ifdef bison_parser -YACC = bison -YACCFLAGS = /Defines/Fixed_Outfiles -YACCINIT = set command gnu_bison:[000000]bison -ALLOCA = ,[]alloca.obj # note leading comma -.else -YACCFLAGS = -d -YACCINIT = -ALLOCA = -.ifdef byacc_parser -YACC = byacc -.else -.ifdef yacc_parser -YACC = yacc -.else -# none of bison, byacc, or yacc specified -.ifdef no_parser -.else -no_parser=1 -.endif #<none> -.endif #yacc -.endif #byacc -.endif #bison - -# VMS-specific hackery -ECHO = write sys$output # requires single quoted arg -COPY = copy_ # -MOVE = rename_/New_Vers # within same device only -MUNG = search_/Exact/Match=NOR # to strip unwanted `#module' directive -NOOP = continue # non-empty command that does nothing -PURGE = purge_/noConfirm/noLog # relatively quiet file removal -REMOVE = delete_/noConfirm/noLog # ditto -TOUCH = append_/New _NL: # requires single file arg -TPU = edit_/TPU/noJournal/noDisplay/noSection - -# You can define this to be "lex.exe" if you want to replace lex at your site. -FLEX =flex.exe -# note: there should be no whitespace between `=' and the name, -# or else $(FLEX_EXEC) below will not function properly. -FLEXLIB = flexlib.olb - -# You normally do not need to modify anything below this point. -# ------------------------------------------------------------ - -VMSDIR = [.MISC.VMS] -MISCDIR = [.MISC] -CURDIR = sys$disk:[] - -CPPFLAGS = $(DEFS)/Include=[] -LIBOPT = $(CURDIR)crtl.opt # run-time library(s) -ID_OPT = $(CURDIR)ident.opt # version identification - -.SUFFIXES : # avoid overhead of umpteen built-in rules -.SUFFIXES : .obj .c - -.c.obj : - $(CC)$(CFLAGS)$(CPPFLAGS) $< - -VMSHDRS = $(VMSDIR)vms-conf.h # copied to []config.h -VMSSRCS = $(VMSDIR)vms-code.c # copied to []vms-code.c -VMSOBJS = ,vms-code.obj # note leading comma - -HEADERS = flexdef.h version.h - -SOURCES = ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.y \ - scan.l skel.c sym.c tblcmp.c yylex.c -OBJECTS = ccl.obj,dfa.obj,ecs.obj,gen.obj,main.obj,misc.obj,nfa.obj,parse.obj,\ - scan.obj,skel.obj,sym.obj,tblcmp.obj,yylex.obj $(VMSOBJS) $(ALLOCA) - -LIBSRCS = libmain.c libyywrap.c -LIBOBJS = libmain.obj,libyywrap.obj - -LINTSRCS = ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c \ - scan.c skel.c sym.c tblcmp.c yylex.c - -DISTFILES = README NEWS COPYING INSTALL FlexLexer.h \ - configure.in conf.in Makefile.in mkskel.sh flex.skl \ - $(HEADERS) $(SOURCES) $(LIBSRCS) MISC \ - flex.1 scan.c install.sh mkinstalldirs configure - -DIST_NAME = flex - -# flex options to use when generating scan.c from scan.l -COMPRESSION = -PERF_REPORT = -p -# which "flex" to use to generate scan.c from scan.l -FLEX_EXEC = mcr $(CURDIR)$(FLEX) -FLEX_FLAGS = -t $(PERF_REPORT) #$(COMPRESSION) - -MARKER = make.bootstrap - -##### targets start here ##### - -all : $(FLEX) flex.doc - @ $(NOOP) - -install : $(FLEX) flex.doc flex.skl $(FLEXLIB) FlexLexer.h - @ $(ECHO) "-- Installation must be done manually." - @ $(ECHO) " $+" - -.ifdef GCCINIT -.FIRST - $(GCCINIT) - -.endif #GCCINIT - -flex : $(FLEX) - @ $(NOOP) - -$(FLEX) : $(MARKER) $(OBJECTS) $(FLEXLIB) $(LIBOPT) $(ID_OPT) - $(LINK)/Exe=$(FLEX) $(LDFLAGS)\ - $(OBJECTS),$(FLEXLIB)/Lib,$(LIBOPT)/Opt,$(ID_OPT)/Opt - -$(MARKER) : initscan.c - @- if f$search("scan.c").nes."" then $(REMOVE) scan.c;* - $(COPY) initscan.c scan.c - @ $(TOUCH) $(MARKER) - -parse.c : parse.y - @- if f$search("y_tab.%").nes."" then $(REMOVE) y_tab.%;* -.ifdef no_parser - $(COPY) $(MISCDIR)parse.% $(CURDIR)y_tab.* -.else - $(YACCINIT) - $(YACC) $(YACCFLAGS) parse.y -.endif - $(MUNG) y_tab.c "#module","#line" /Output=parse.c - @- $(REMOVE) y_tab.c;* - $(MOVE) y_tab.h parse.h - -parse.h : parse.c - @ $(TOUCH) parse.h - -scan.c : scan.l - $(FLEX_EXEC) $(FLEX_FLAGS) $(COMPRESSION) scan.l > scan.c - -scan.obj : scan.c parse.h flexdef.h config.h -yylex.obj : yylex.c parse.h flexdef.h config.h - -skel.c : flex.skl $(VMSDIR)mkskel.tpu - $(TPU) /Command=$(VMSDIR)mkskel.tpu flex.skl /Output=skel.c - -main.obj : main.c flexdef.h config.h version.h -ccl.obj : ccl.c flexdef.h config.h -dfa.obj : dfa.c flexdef.h config.h -ecs.obj : ecs.c flexdef.h config.h -gen.obj : gen.c flexdef.h config.h -misc.obj : misc.c flexdef.h config.h -nfa.obj : nfa.c flexdef.h config.h -parse.obj : parse.c flexdef.h config.h -skel.obj : skel.c flexdef.h config.h -sym.obj : sym.c flexdef.h config.h -tblcmp.obj : tblcmp.c flexdef.h config.h -vms-code.obj : vms-code.c flexdef.h config.h - -[]alloca.obj : alloca.c - $(CC)$(CFLAGS)/Define=("STACK_DIRECTION=-1","xmalloc=yy_flex_xmalloc") alloca.c - -alloca.c : $(MISCDIR)alloca.c - $(COPY) $(MISCDIR)alloca.c alloca.c - -config.h : $(VMSDIR)vms-conf.h - $(COPY) $(VMSDIR)vms-conf.h config.h - -vms-code.c : $(VMSDIR)vms-code.c - $(COPY) $(VMSDIR)vms-code.c vms-code.c - -test : check - @ $(NOOP) -check : $(FLEX) - @ $(ECHO) "" - @ $(ECHO) " Checking with COMPRESSION="$(COMPRESSION)"" - $(FLEX_EXEC) $(FLEX_FLAGS) $(COMPRESSION) scan.l > scan.chk - diff_/Output=_NL:/Maximum_Diff=1 scan.c scan.chk - -bigcheck : - @- if f$search("scan.c").nes."" then $(REMOVE) scan.c;* - $(MAKE)$(MAKEFLAGS) /Macro=($(C_CHOICE),"COMPRESSION=""-C""") check - @- $(REMOVE) scan.c;* - $(MAKE)$(MAKEFLAGS) /Macro=($(C_CHOICE),"COMPRESSION=""-Ce""") check - @- $(REMOVE) scan.c;* - $(MAKE)$(MAKEFLAGS) /Macro=($(C_CHOICE),"COMPRESSION=""-Cm""") check - @- $(REMOVE) scan.c;* - $(MAKE)$(MAKEFLAGS) /Macro=($(C_CHOICE),"COMPRESSION=""-f""") check - @- $(REMOVE) scan.c;* - $(MAKE)$(MAKEFLAGS) /Macro=($(C_CHOICE),"COMPRESSION=""-Cfea""") check - @- $(REMOVE) scan.c;* - $(MAKE)$(MAKEFLAGS) /Macro=($(C_CHOICE),"COMPRESSION=""-CFer""") check - @- $(REMOVE) scan.c;* - $(MAKE)$(MAKEFLAGS) /Macro=($(C_CHOICE),"COMPRESSION=""-l""","PERF_REPORT=") check - @- $(REMOVE) scan.c;*,scan.chk;* - $(MAKE)$(MAKEFLAGS) $(FLEX) - @- $(PURGE) scan.obj - @ $(ECHO) "All checks successful" - -$(FLEXLIB) : $(LIBOBJS) - library/Obj $(FLEXLIB)/Create $(LIBOBJS)/Insert - @ if f$search("$(FLEXLIB);-1").nes."" then $(PURGE) $(FLEXLIB) - -# We call it .doc instead of .man, to lessen culture shock. :-} -# If MISC/flex.man is out of date relative to flex.1, there's -# not much we can do about it with the tools readily available. -flex.doc : flex.1 - @ if f$search("$(MISCDIR)flex.man").eqs."" then \ - $(COPY) flex.1 $(MISCDIR)flex.man - $(COPY) $(MISCDIR)flex.man flex.doc - -# -# This is completely VMS-specific... -# - -# Linker options file specifying run-time library(s) to link against; -# choice depends on which C compiler is used, and might be empty. -$(LIBOPT) : $(MAKEFILE) - @ open/Write optfile $(LIBOPT) - @ write optfile "$(LIBS)" - @ close optfile - -# Linker options file putting the version number where the ANALYZE/IMAGE -# command will be able to find and report it; assumes that the first line -# of version.h has the version number enclosed within the first and second -# double quotes on it [as in ``#define FLEX_VERSION "2.5.0"'']. -$(ID_OPT) : version.h - @ version = "# flex ""2.5""" !default, overridden by version.h - @- open/Read hfile version.h - @- read hfile version - @- close/noLog hfile - @ version = f$element(1,"""",version) - @ open/Write optfile $(ID_OPT) - @ write optfile "identification=""flex ''version'""" - @ close optfile - - -# -# This is the only stuff moderately useful from the remainder -# of Makefile.in... -# - -mostlyclean : - @- if f$search("scan.chk").nes."" then $(REMOVE) scan.chk;* - @- if f$search("*.obj;-1").nes."" then $(PURGE) *.obj - @- if f$search("*.exe;-1").nes."" then $(PURGE) *.exe - @- if f$search("*.opt;-1").nes."" then $(PURGE) *.opt - -clean : mostlyclean - @- if f$search("*.obj").nes."" then $(REMOVE) *.obj;* - @- if f$search("parse.h").nes."" then $(REMOVE) parse.h;* - @- if f$search("parse.c").nes."" then $(REMOVE) parse.c;* - @- if f$search("alloca.c").nes."" .and.- - f$search("$(MISCDIR)alloca.c").nes."" then $(REMOVE) alloca.c;* - @- if f$search("$(LIBOPT)").nes."" then $(REMOVE) $(LIBOPT);* - @- if f$search("$(ID_OPT)").nes."" then $(REMOVE) $(ID_OPT);* - -distclean : clean - @- if f$search("$(MARKER)").nes."" then $(REMOVE) $(MARKER);* - @- if f$search("$(FLEX)").nes."" then $(REMOVE) $(FLEX);* - @- if f$search("$(FLEXLIB)").nes."" then $(REMOVE) $(FLEXLIB);* - @- if f$search("flex.doc").nes."" then $(REMOVE) flex.doc;* - @- if f$search("scan.c").nes."" then $(REMOVE) scan.c;* - @- if f$search("vms-code.c").nes."" .and.- - f$search("$(VMSDIR)vms-code.c").nes."" then $(REMOVE) vms-code.c;* - @- if f$search("config.h").nes."" .and.- - f$search("$(VMSDIR)vms-conf.h").nes."" then $(REMOVE) config.h;* -# @- if f$search("descrip.mms").nes."" .and.- -# f$search("$(VMSDIR)descrip.mms").nes."" then $(REMOVE) descrip.mms;* - -realclean : distclean - @- if f$search("skel.c").nes."" then $(REMOVE) skel.c;* - diff --git a/WebKitTools/android/flex-2.5.4a/MISC/VMS/mkskel.tpu b/WebKitTools/android/flex-2.5.4a/MISC/VMS/mkskel.tpu deleted file mode 100644 index e20a0eb..0000000 --- a/WebKitTools/android/flex-2.5.4a/MISC/VMS/mkskel.tpu +++ /dev/null @@ -1,45 +0,0 @@ -! mkskel.tpu -! usage: -! edit/TPU/noDisplay/noSection/Command=mkskel.tpu flex.skl /Output=skel.c -! -! Create a C source file from the flex skeleton data. Copy the file, -! changing backslash (\) to doubled backslash (\\) and quote (") -! to backslash quote (\"). For each line, insert space+space+quote -! at the beginning and quote+comma at the end. Bracket the updated -! text with several lines of prologue and epilogue. -! - skelfile := CREATE_BUFFER("file", GET_INFO(COMMAND_LINE, "file_name")); - SET(NO_WRITE, skelfile); - target := '"' | '\'; !do this once, outside loops - POSITION(BEGINNING_OF(skelfile)); !start here - rest_of_line := CREATE_RANGE(MARK(NONE), MARK(NONE)); !also outside loops - LOOP - EXITIF MARK(NONE) = END_OF(skelfile); !are we done yet? - COPY_TEXT(' "'); start_pos := MARK(NONE); - POSITION(LINE_END); end_pos := MARK(NONE); - MODIFY_RANGE(rest_of_line, start_pos, end_pos); - LOOP - next_match := SEARCH_QUIETLY(target, FORWARD, EXACT, rest_of_line); - EXITIF next_match = 0; - POSITION(BEGINNING_OF(next_match)); - COPY_TEXT('\'); MOVE_HORIZONTAL(1); !past the matched character - MODIFY_RANGE(rest_of_line, MARK(NONE), end_pos); - ENDLOOP; - POSITION(LINE_END); COPY_TEXT('",'); - MOVE_VERTICAL(1); POSITION(LINE_BEGIN); !go to next line - ENDLOOP; - - POSITION(BEGINNING_OF(skelfile)); !insert five line prologue - COPY_TEXT('/* File created from flex.skl via mkskel.tpu */'); SPLIT_LINE; - SPLIT_LINE; - COPY_TEXT('#include "flexdef.h"'); SPLIT_LINE; - SPLIT_LINE; - COPY_TEXT('const char *skel[] = {'); SPLIT_LINE; - - POSITION(END_OF(skelfile)); !append two line epilogue - COPY_TEXT(' 0'); SPLIT_LINE; - COPY_TEXT('};'); !! SPLIT_LINE; - - WRITE_FILE(skelfile, GET_INFO(COMMAND_LINE, "output_file")); - QUIT -!--<eof>-- diff --git a/WebKitTools/android/flex-2.5.4a/MISC/VMS/vms-code.c b/WebKitTools/android/flex-2.5.4a/MISC/VMS/vms-code.c deleted file mode 100644 index 825a6b3..0000000 --- a/WebKitTools/android/flex-2.5.4a/MISC/VMS/vms-code.c +++ /dev/null @@ -1,152 +0,0 @@ -/* vms-code.c -- additional VMS-specific support code for flex - */ - -#include "flexdef.h" - -static const char *original_arg0; -static const char default_arg0[] = "flex.exe"; - -#define IN_FD 0 -#define OUT_FD 1 -#define ERR_FD 2 - -static char *fix_arg0 PROTO((const char *)); - -/* Command line arguments fixup -- simplify argv[0], and handle `>' - output redirection request; called first thing from main(). */ - -void argv_fixup( iargc, iargv ) -int *iargc; -char ***iargv; -{ - const char *mode[3], *rfm[3], *name[3]; - char *p; - int i, oargc, punct, which, append, alt_rfm; - - /* - * Get original argv[0] supplied by run-time library startup code, - * then replace it with a stripped down one. - */ - original_arg0 = (*iargv)[0]; - (*iargv)[0] = fix_arg0(original_arg0); - - /* - * Check command line arguments for redirection request(s). - * For simplicity, if multiple attempts are made, the last one wins. - */ - name[0] = name[1] = name[2] = 0; - oargc = 1; /* number of args caller will see; count includes argv[0] */ - for (i = 1; i < *iargc; i++) { - p = (*iargv)[i]; - switch (*p) { - case '<': - /* might be "<dir>file"; then again, perhaps "<<dir>file" */ - punct = (strchr(p, '>') != 0); - if (p[1] == '<') { - if (!punct || p[2] == '<') - flexerror("<<'sentinel' input not supported."); - punct = 0; - } - if (punct) /* the '<' seems to be directory punctuation */ - goto arg; /*GOTO*/ - mode[IN_FD] = "r"; - rfm[IN_FD] = 0; - name[IN_FD] = ++p; - if (!*p && (i + 1) < *iargc) - name[IN_FD] = (*iargv)[++i]; - break; - case '>': - append = (p[1] == '>'); - if (append) ++p; - alt_rfm = (p[1] == '$'); - if (alt_rfm) ++p; - which = (p[1] == '&' ? ERR_FD : OUT_FD); - if (which == ERR_FD) ++p; - mode[which] = append ? "a" : "w"; - rfm[which] = alt_rfm ? "rfm=var" : "rfm=stmlf"; - name[which] = ++p; - if (!*p && (i + 1) < *iargc) - name[which] = (*iargv)[++i]; - break; - case '|': - flexerror("pipe output not supported."); - /*NOTREACHED*/ - break; - default: - arg: /* ordinary option or argument */ - (*iargv)[oargc++] = p; - break; - } - } - /* perform any requested redirection; don't bother with SYS$xxx logicals */ - if (name[IN_FD]) - if (!freopen(name[IN_FD], mode[IN_FD], stdin)) - lerrsf("failed to redirect `stdin' from \"%s\"", name[IN_FD]); - if (name[OUT_FD]) - if (!freopen(name[OUT_FD], mode[OUT_FD], stdout, - rfm[OUT_FD], "rat=cr", "mbc=32", "shr=nil")) - lerrsf("failed to redirect `stdout' to \"%s\"", name[OUT_FD]); - if (name[ERR_FD]) /* likely won't see message if this fails; oh well... */ - if (!freopen(name[ERR_FD], mode[ERR_FD], stderr, - rfm[ERR_FD], "rat=cr")) - lerrsf("failed to redirect `stderr' to \"%s\"", name[ERR_FD]); - /* remove any excess arguments (used up from redirection) */ - while (*iargc > oargc) - (*iargv)[--*iargc] = 0; - /* all done */ - return; -} - -/* Pick out the basename of a full filename, and return a pointer - to a modifiable copy of it. */ - -static char *fix_arg0( arg0 ) -const char *arg0; -{ - char *p, *new_arg0; - - if (arg0) { - /* strip off the path */ - if ((p = strrchr(arg0, ':')) != 0) /* device punctuation */ - arg0 = p + 1; - if ((p = strrchr(arg0, ']')) != 0) /* directory punctuation */ - arg0 = p + 1; - if ((p = strrchr(arg0, '>')) != 0) /* alternate dir punct */ - arg0 = p + 1; - } - if (!arg0 || !*arg0) - arg0 = default_arg0; - /* should now have "something.exe;#"; make a modifiable copy */ - new_arg0 = copy_string(arg0); - - /* strip off ".exe" and/or ";#" (version number), - unless it ended up as the whole name */ - if ((p = strchr(new_arg0, '.')) != 0 && (p > new_arg0) - && (p[1] == 'e' || p[1] == 'E') - && (p[2] == 'x' || p[2] == 'X') - && (p[3] == 'e' || p[3] == 'E') - && (p[4] == ';' || p[4] == '.' || p[4] == '\0')) - *p = '\0'; - else if ((p = strchr(new_arg0, ';')) != 0 && (p > new_arg0)) - *p = '\0'; - - return new_arg0; -} - - -#include <ssdef.h> -#include <stsdef.h> - -#ifdef exit -#undef exit -extern void exit PROTO((int)); /* <stdlib.h> ended up prototyping vms_exit */ -#endif - -/* Convert zero to VMS success and non-zero to VMS failure. The latter - does not bother trying to distinguish between various failure reasons. */ - -void vms_exit( status ) -int status; -{ - exit( status == 0 ? SS$_NORMAL : (SS$_ABORT | STS$M_INHIB_MSG) ); -} diff --git a/WebKitTools/android/flex-2.5.4a/MISC/VMS/vms-conf.h b/WebKitTools/android/flex-2.5.4a/MISC/VMS/vms-conf.h deleted file mode 100644 index 65aa477..0000000 --- a/WebKitTools/android/flex-2.5.4a/MISC/VMS/vms-conf.h +++ /dev/null @@ -1,32 +0,0 @@ -/* config.h manually constructed for VMS */ - -/* Define to empty if the keyword does not work. */ -#undef const - -/* Define to `unsigned' if <sys/types.h> doesn't define. */ -#undef size_t - -/* Define if you have the ANSI C header files. */ -#define STDC_HEADERS - -/* Define if you have the <malloc.h> header file. */ -#undef HAVE_MALLOC_H - -/* Define if you have the <string.h> header file. */ -#define HAVE_STRING_H - -/* Define if you have the <sys/types.h> header file. */ -#ifndef __GNUC__ -#undef HAVE_SYS_TYPES_H -#else -#define HAVE_SYS_TYPES_H -#endif - -/* Define if you have <alloca.h> and it should be used (not on Ultrix). */ -#undef HAVE_ALLOCA_H - -/* Extra platform-specific command line handling. */ -#define NEED_ARGV_FIXUP - -/* Override default exit behavior. */ -#define exit vms_exit |