⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mc.exec

📁 给出了 zip 压缩算法的完整实现过程。
💻 EXEC
字号:
/* MAKECPIP EXEC      Make program to build a C/370 module           *//*                    Author: George Petrov, 29 Sep 1994             */arg fn . '(' cparms                   /* Filter name                 */'pipe (end ?) < 'fn' makefile',       /* get all source files from   */    '| frlab GLOBALS:'||,    '| drop',    '| strip',    '| var globals'cparms = cparms globalssay ''say 'Compile options : 'cparmssay ''if pos('REB',cparms) > 0 then doparse var cparms cp1 'REB' . ' ' cp2  /* REBuild options specified ? */cparms = cp1||cp2pipe1=,'pipe (end ?) < 'fn' makefile',       /* get all source files from   */    '| nfind *'||,                    /* the makefile and compile    */    '| frlab TEXT:'||,                /* only the those who are      */    '| r: tolab MODULE:'||,           /* changed or never compiled   */    '| drop',    '| o: fanout',    '| chop before str /(/',    '| statew',    '| c: fanout',                    /* compiled                    */    '| specs /Compiling / 1 w1-3 n / .../ n',    '| cons'endelse dopipe1=,'pipe (end ?) < 'fn' makefile',       /* get all source files from   */    '| nfind *'||,                    /* the makefile and compile    */    '| frlab TEXT:'||,                /* only the those who are      */    '| r: tolab MODULE:'||,           /* changed or never compiled   */    '| drop',    '| o: fanout',    '| specs w1 1 /C/ nw w3 nw write w1 1 /TEXT A/ nw',    '| chop before str /(/',    '| statew',    '| change (57 66) / /0/',    '| sort 1.8 d',                  /* sort the date and time      */    '| uniq 1-17 singles',           /* if the first is a source    */    '| sort 1.8 d 64.2 d 57.2 d 60.2 d 66.8 d',    /* sort the date */    '| uniq 1-8 first',          /*    if the first is a source    */    '| locate 9.8 /C      /',         /* program then it has to be   */    '| c: fanout',                    /* compiled                    */    '| specs /Compiling / 1 w1-3 n / .../ n',    '| cons'endpipe2= '?',    'r:',    '| drop',    '| specs w1 1',                 /* save the module name in var  */    '| var module',    '?',    'o:',    '| specs w1 1',    '| join * / /',    '| var texts',                  /* save all the text file names */    '?',                            /* for later include            */    'c:',    '| specs /CC / 1 w1-3 n /(NOTERM 'cparms'/ nw',   /* compile! */    '| err: cms | cons',    '?',    'err:',    '| strip both',    '| nfind 0'||,    '| var err',    '| specs /----> Errors found! RC=/ 1 1-* n',    '| cons'/*  '| g: gate'*/pipe1 pipe2say ''if symbol('err') = 'VAR' & err ^= 0 then do      say 'Errors found in source files - link aborted! RC = 'err      exit errendsay 'Generating module 'module'pipe cms cmod' fn texts' DMSCSL | > 'fn' LINK A''set cmstype ht''state 'fn' LINK A'rcc = rc'set cmstype rt'if rcc = 0 then do   say ''   say 'ERRORS discovered during linking!'   say 'See: 'fn' LINK A for more info'endexit rcerror:say 'Error in REXX detected!'Say 'Syntax error on line' Sigl':' Sourceline(Sigl)Say 'Error was:' Errortext(RC)return rc

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -