rexxhelp.c
资源名称:unzip540.zip [点击查看]
上传用户:andy_li
上传日期:2007-01-06
资源大小:1019k
文件大小:7k
源码类别:
压缩解压
开发平台:
MultiPlatform
- /* rexxhelp.c */
- #if defined(API_DOC) && defined(OS2DLL)
- #define UNZIP_INTERNAL
- #include "../unzip.h"
- #include "../version.h"
- APIDocStruct REXXDetails[] = {
- { "UZDROPFUNCS" , "UZDropFuncs" ,
- "call UZDropFuncs",
- "Use this function to drop all the loaded UnZip functions.n"
- "ttOnce this function is processed by a REXX program, then"
- "ttUnZip functions are not accessible in any OS/2 sessions.n" },
- { "UZLOADFUNCS" , "UZLoadFuncs" ,
- "call UZLoadFuncs",
- "Use this function to make all of the UnZip functionsn"
- " in this package available to all OS/2 sessions.nn"
- " Example: call RxFuncAdd 'UZLoadFuncs', 'UNZIPAPI', 'UZLoadFuncs'n"
- " call UZLoadFuncsn" },
- { "UZFILETREE" , "UZFileTree" ,
- "rc = UZFileTree(zipfile, stem, [include], [exclude], [options])nn"
- " zipfile - Name of ZIP file to searchn"
- " stem - Name of the stem variable for resultsn"
- " Note: stem.0 contains the number of files found.n"
- " include - Optional stem variable specifying a list of files (includingn"
- " wildcards) to include. stem.0 must indicate number of items.n"
- " exclude - Optional stem variable specifying a list of files (includingn"
- " wildcards) to exclude. stem.0 must indicate number of items.n"
- " NOTE: If lists are not needed, filespec strings may be passed.n"
- " options - One of the following:n"
- " 'O' - Give file names only. This is the default.n"
- " 'F' - Give file statistics in the form:n"
- " Length Date Time Namen"
- " 'Z' - Also give ZIP statistics in the form:n"
- " Length Method Size Ratio Date Time CRC-32 Name",
- "Finds all files in the specified ZIP with the specifiedn"
- " filespec and places their descriptions in a stem variable.nn"
- " rc: Return codesn"
- " 0 Successfuln"
- " 2 Error. Not enough memory.nn"
- " Examples:n"
- " /* Return a list of all .NDX files in pcboard.qwk */n"
- " rc = UZFileTree('pcboard.qwk', 'stem.', '*.ndx')nn"
- " /* Return a list of all files except *.NDX and *.DAT */n"
- " exc.0 = 2; exc.1 = '*.ndx'; exc.2 = '*.dat'n"
- " rc = UZFileTree('pcboard.qwk', 'stem.',,'exc.')n" },
- { "UZUNZIP" , "UZUnZip" ,
- "rc = UZUnZip('parameters', [stem])nn"
- " parameters - The entire list of parameters you would use fromn"
- " the command-linen"
- " stem - The name of an optional stem variable where anyn"
- " output should be redirected.n"
- " NOTE: If a stem is not specified, all output willn"
- " go to the console.",
- "Provide a direct entry point to the command line interface.nn"
- " rc: UnZip return codenn"
- " Examples: /* Test the archive 'unzip51s.zip' and return output in stem.*/n"
- " rc = UZUnZip('-t unzip51s.zip','stem.')n"
- " /* Extract the archive, display output on screen */n"
- " call UZUnZip 'doom.zip'n"
- " /* Extract all .NDX files from the archive */n"
- " call UZUnZip 'pcboard.qwk *.ndx','stem.'n" },
- { "UZUNZIPTOVAR" , "UZUnZipToVar" ,
- "rc = UZUnZipToVar('zipfile', 'filename', [stem])nn"
- " zipfile - Name of ZIP file to searchn"
- " filename - Name of file to extract from zipfilen"
- " stem - Optional stem variable to extract the file to.n"
- " If you specify a stem variable, the file will be extractedn"
- " to the variable, one line per index, stem.0 containing an"
- " line count. In this case, 0 will be returned in rc.n"
- " If NO stem variable is specified, the entire file will ben"
- " extracted to rc.",
- "Unzip one file to a variable.nn"
- " rc: If no stem variable is specified, rc contains the contents ofn"
- " the extracted file if successful or an error-code if not.n"
- " If a stem variable IS specified, rc contains 0 if successful.n"},
- /* GRR: "include" and "exclude" used to be identified as stem variables
- * (Daniel H bug report)
- */
- { "UZUNZIPTOSTEM", "UZUnZipToStem",
- "rc = UZUnZipToStem(zipfile, stem, [include], [exclude], [mode])n"
- " zipfile - Name of ZIP file to searchn"
- " stem - Stem variable used to store the extracted filesn"
- " include - Optional string variable specifying a list of files (includingn"
- " wildcards) to include. stem.0 must indicate number of items.n"
- " exclude - Optional string variable specifying a list of files (includingn"
- " wildcards) to exclude. stem.0 must indicate number of items.n"
- " NOTE: If lists are not needed, filespec strings may be passed.n"
- " mode - Optional mode parameter specifies either 'F'lat (the default)n"
- " or 'T'ree mode.n"
- " -- In flat mode, each file is stored in stem.fullname i.e.n"
- " stem.os2/dll/unzipapi.c. A list of files is created inn"
- " stem.<index>n"
- " -- In tree mode, slashes are converted to periods in then"
- " pathname thus the above file would have been stored inn"
- " stem.OS2.DLL.unzipapi.c and an index stored for eachn"
- " directory, i.e. stem.OS2.DLL.<index> = "unzipapi.c",n"
- " stem.OS2.<index> = "DLL/", stem.<index> = "OS2/"",
- "Unzip files to a stem variable.nn"
- " Example: Assuming a file unzip.zip containing:n"
- " unzip.c, unshrink.c, extract.c,n"
- " os2/makefile.os2, os2/os2.cn"
- " os2/dll/dll.def, os2/dll/unzipapi.cnn"
- " rc = UZUnZipToStem('unzip.zip', 'stem.')n"
- " Returns: stem.0 = 7n"
- " stem.1 = unzip.cn"
- " stem.2 = unshrink.cn"
- " stem.3 = extract.cn"
- " stem.4 = os2/makefile.os2n"
- " stem.5 = os2/os2.cn"
- " stem.6 = os2/dll/dll.defn"
- " stem.7 = os2/dll/unzipapi.cn"
- " And the following contain the contents of then"
- " various files:n"
- " stem.unzip.cn"
- " stem.unshrink.cn"
- " stem.extract.cn"
- " stem.os2/makefile.os2n"
- " stem.os2/os2.cn"
- " stem.os2/dll/dll.defn"
- " stem.os2/dll/unzipapi.cnn"
- " rc = UZUnZipToStem('unzip.zip', 'stem.',,,'TREE')n"
- " Returns: stem.0 = 4n"
- " stem.1 = unzip.cn"
- " stem.2 = unshrink.cn"
- " stem.3 = extract.cn"
- " stem.4 = OS2/n"
- " stem.OS2.0 = 3n"
- " stem.OS2.1 = makefile.os2n"
- " stem.OS2.2 = os2.cn"
- " stem.OS2.3 = DLL/n"
- " stem.OS2.DLL.0 = 2n"
- " stem.OS2.DLL.1 = defn"
- " stem.OS2.DLL.2 = unzipapi.cn"
- "n"
- " And the following contain the contents of then"
- " various programs:n"
- " stem.unzip.cn"
- " stem.unshrink.cn"
- " stem.extract.cn"
- " stem.OS2.makefile.os2n"
- " stem.OS2.os2.cn"
- " stem.OS2.DLL.dll.defn"
- " stem.OS2.DLL.unzipapi.cn" },
- { "UZVER" , "UZVer" ,
- "rc = UZVer([option])nn"
- " rc String containing UnZip version info in the form 'x.xx'n"
- " If option is 'L' then info is in the form 'x.xx of <date>",
- "Returns the version number of UnZipn" },
- { "UZAPIVER" , "UZAPIVer" ,
- "rc = UZAPIVer([option])nn"
- " rc String containing API version info in the form 'x.xx'n"
- " If option is 'L' then info is in the form 'x.xx of <date>",
- "Returns the version number of the APIn" },
- { 0 }
- };
- char *REXXBrief = "
- REXX functions:n
- UZDropFuncs -- Makes all functions in this package unknown to REXXn
- UZLoadFuncs -- Makes all functions in this package known to REXXn
- UZFileTree -- Searches for files matching a given filespecn
- UZUnZip -- UnZip command-line entry pointn
- UZUnZipToVar -- Unzip one file to a variablen
- UZUnZipToStem -- Unzip files to a variable arrayn
- UZVer -- Returns the UnZip version numbern
- UZAPIVer -- Returns the API version numbern";
- #endif /* API_DOC && OS2DLL */