/* Generated with C2C (Cedar To C)*/ /* Copyright (C) 1993 by Xerox Corporation. All rights reserved. */ /* time: January 15, 1993 5:41:40 pm PST */ /* C2C version: October 7, 1992 (native) */ /* ref-counting: off */ /* file: CommanderBasicCommandsImpl, module: CommanderBasicCommandsImpl */ /* switches: bcfhklnouw */ #include #include static char versionStamp[] = "@(#)mob_version [323244771,1882537087] CommanderBasicCommandsImpl"; typedef unsigned word, *ptr; typedef unsigned char byte, *bPt; typedef unsigned short half, *hPt; typedef struct {word f0, f1, f2, f3, f4, f5, f6, f7;} W8; typedef struct {word f0, f1, f2, f3, f4;} W5; typedef struct {W8 f; W5 r;} W13; typedef word (*fPt)(); typedef struct {word f0, f1, f2, f3, f4, f5, f6;} W7; typedef struct {word f0, f1;} W2; typedef struct {word f0, f1, f2;} W3; typedef struct {W8 f; W2 r;} W10; typedef W2 *W2Pt; typedef struct {W8 f; word r;} W9; typedef struct { byte f:1; byte u1:7; } * P1x0b; typedef struct { byte u1:1; byte f:1; byte u2:6; } * P1x1b; typedef struct { byte u1:2; byte f:1; byte u2:5; } * P1x2b; typedef struct {word f0, f1, f2, f3, f4, f5;} W6; #define SOURCE(p, l) /* source p, l */ #define SGNCK(i) ((int) (word) (i) < 0 ? XR_RaiseArithmeticFault(): i ) #define BCK(idx, lim) ( ((unsigned) idx) >= ((unsigned) lim) ? (XR_RaiseBoundsFault()) : (idx) ) static float fc395 = 60.0; static void NoName_Q6732(); static void CommanderBasicCommandsImpl_P0(); static void AbortCommand_P60(); static void AliasCommand_P120(); static word NoName_Q6792(); static void AliasImplProc_P180(); static word UniqueRope_P2652(); static void AliasesCommand_P240(); static word EachCommand_P2952(); static word GetWord_P300(); static word RopeMemb_P360(); static void AnswerbackCommand_P420(); static word NoName_Q6852(); static void CommentCommand_P480(); static void CommanderCommand_P540(); static void DateCommand_P600(); static void EchoCommand_P660(); static void ErrorCommand_P720(); static void FailCommand_P780(); static void FailSkipCommand_P840(); static word IsCommandPrefix_P900(); static void HistoryCommand_P960(); static word NoName_Q6912(); static void IndentCommand_P1020(); static word NoName_Q6972(); static word NoName_Q7032(); static word NoName_Q7092(); static word NoName_Q7152(); static word NoName_Q7212(); static word NoName_Q7272(); static void PriorityCommand_P1080(); static word NoName_Q7332(); static word SpecialChar_P1140(); static void PrevResultCommand_P1200(); static void ResultOfCommand_P1260(); static void PropCommand_P1320(); static word NoName_Q7392(); static void PropertiesCommand_P1380(); static word NoName_Q7452(); static word NoName_Q7512(); static word NoName_Q7572(); static void RedoCommand_P1440(); static void RegisteredHelpCommand_P1500(); static word EachCommand_P4308(); static void ReregisterAsCommand_P1560(); static void SetPropertyCommand_P1620(); static void ShiftCommand_P1680(); static void SleepCommand_P1740(); static word NoName_Q7632(); static void TimeCommand_P1800(); static void UnregisterCommand_P1860(); static void ControlCommand_P1920(); static word FindLastProp_P1980(); static void PrintAny_P2040(); static void VersionCommand_P2100(); static word NoName_Q7692(); static void MapCommand_P2160(); static word NoName_Q7752(); static void PutVersion_P2220(); static void P_P6012(); static word RopeSubst_P2280(); static word NewlineBreak_P2340(); static void Init_P2400(); static void Register_P6072(); static void NoName_Q7812(); static void NoName_Q7872(); static void NoName_Q7932(); static void NoName_Q7992(); static void NoName_Q8052(); static void NoName_Q8112(); static void NoName_Q8172(); static void NoName_Q8232(); static void NoName_Q8292(); static void NoName_Q8352(); static void NoName_Q8412(); static void NoName_Q8472(); static void NoName_Q8532(); static void NoName_Q8592(); static void NoName_Q8652(); static void NoName_Q8712(); static void NoName_Q8772(); static struct {unsigned f; char r[16];} string1 = {851984, "\257\300\363\223\326\161\300\017\164\046\072\104\304\000\000"}; static struct {unsigned f; char r[24];} string2 = {1376277, "\007\000\001\002\007\020\001\002\000\007\036\002\004\003\002\004\014\016\015\003\001\000\000"}; static struct {unsigned f; char r[16];} string3 = {917520, "\216\257\300\363\223\326\161\300\017\164\046\072\104\350\000"}; static struct {unsigned f; char r[4];} string4 = {65537, "\001\000\000"}; static struct {unsigned f; char r[16];} string5 = {851984, "\257\300\311\235\133\064\300\165\175\234\175\100\164\000\000"}; static struct {unsigned f; char r[12];} string6 = {524296, "\011\000\004\000\040\000\004\001\000\000\000"}; static struct {unsigned f; char r[20];} string7 = {1179668, "\260\006\005\146\151\162\163\164\217\005\004\162\145\163\164\214\217\261\000"}; static struct {unsigned f; char r[4];} string8 = {131074, "\004\003\000"}; static struct {unsigned f; char r[48];} string9 = {2883632, "\260\006\005\146\151\162\163\164\216\257\300\363\223\326\161\300\017\164\046\072\104\350\005\004\162\145\163\164\214\216\257\300\363\223\326\161\300\017\164\046\072\104\350\261\000\000\000"}; static struct {unsigned f; char r[4];} string10 = {65540, "\251\000\000"}; static struct {unsigned f; char r[44];} string11 = {2752556, "\260\007\006\154\145\156\147\164\150\210\241\000\200\177\377\005\004\164\145\170\164\254\206\012\011\155\141\170\114\145\156\147\164\150\210\241\000\200\177\377\243\261\000"}; static struct {unsigned f; char r[4];} string12 = {131076, "\216\251\000"}; static struct {unsigned f; char r[16];} string13 = {851984, "\257\300\023\104\122\343\300\160\065\074\177\101\334\000\000"}; static struct {unsigned f; char r[48];} string14 = {2883632, "\260\006\005\146\151\162\163\164\216\257\300\023\104\122\343\300\160\065\074\177\101\334\005\004\162\145\163\164\214\216\257\300\023\104\122\343\300\160\065\074\177\101\334\261\000\000\000"}; static struct {unsigned f; char r[16];} string15 = {851984, "\257\300\023\104\122\343\300\160\065\074\177\100\200\000\000"}; static struct {unsigned f; char r[8];} string16 = {393224, "Alias \000"}; static struct {unsigned f; char r[40];} string17 = {2555944, "bad parameter list for alias definition"}; static struct {unsigned f; char r[28];} string18 = {1638428, "undefined recursive alias\000\000"}; static struct {unsigned f; char r[8];} string19 = {458760, "Failure"}; static struct {unsigned f; char r[4];} string20 = {65540, "\200\000\000"}; static struct {unsigned f; char r[4];} string21 = {65540, "\201\000\000"}; static struct {unsigned f; char r[16];} string22 = {851984, "(formerly *)*\000\000"}; static struct {unsigned f; char r[4];} string23 = {196612, "%g\012"}; static struct {unsigned f; char r[4];} string24 = {131076, "-n\000"}; static struct {unsigned f; char r[4];} string25 = {131076, "-s\000"}; static struct {unsigned f; char r[4];} string26 = {196612, " *\012"}; static struct {unsigned f; char r[8];} string27 = {393224, "Result\000"}; static struct {unsigned f; char r[8];} string28 = {262152, " \011\015\012\000\000\000"}; static struct {unsigned f; char r[12];} string29 = {589836, "Skipped: \000\000"}; static struct {unsigned f; char r[8];} string30 = {393224, "Prompt\000"}; static struct {unsigned f; char r[4];} string31 = {65540, " \000\000"}; static struct {unsigned f; char r[4];} string32 = {131076, "-%\000"}; static struct {unsigned f; char r[4];} string33 = {131076, "+%\000"}; static struct {unsigned f; char r[4];} string34 = {131076, "-d\000"}; static struct {unsigned f; char r[4];} string35 = {131076, "+d\000"}; static struct {unsigned f; char r[4];} string36 = {4, "\000\000\000"}; static struct {unsigned f; char r[8];} string37 = {262152, "seen\000\000\000"}; static struct {unsigned f; char r[4];} string38 = {131076, "% \000"}; static struct {unsigned f; char r[4];} string39 = {131076, "OK\000"}; static struct {unsigned f; char r[24];} string40 = {1507352, "Usage: History "}; static struct {unsigned f; char r[4];} string41 = {65540, "\012\000\000"}; static struct {unsigned f; char r[8];} string42 = {393224, "Indent\000"}; static struct {unsigned f; char r[8];} string43 = {458760, "Usage: "}; static struct {unsigned f; char r[8];} string44 = {458760, "Bad arg"}; static struct {unsigned f; char r[28];} string45 = {1703964, "depth should be in [0..80]\000"}; static struct {unsigned f; char r[12];} string46 = {720908, "PrefixLines"}; static struct {unsigned f; char r[8];} string47 = {393224, "ReadTo\000"}; static struct {unsigned f; char r[12];} string48 = {655372, "Foreground\000"}; static struct {unsigned f; char r[12];} string49 = {655372, "Background\000"}; static struct {unsigned f; char r[8];} string50 = {393224, "Normal\000"}; static struct {unsigned f; char r[24];} string51 = {1310744, "previous Result = %g\000\000\000"}; static struct {unsigned f; char r[12];} string52 = {720908, "Result = %g"}; static struct {unsigned f; char r[4];} string53 = {131076, "-*\000"}; static struct {unsigned f; char r[28];} string54 = {1638428, "CommandFileArgumentVector\000\000"}; static struct {unsigned f; char r[132];} string55 = {8519812, "Give a command a new name. [ -i | -~i ] newname oldname\012 -i newname should be interpreted\012 -~i newname should be uninterpreted\000"}; static struct {unsigned f; char r[24];} string56 = {1441816, "The required property \000"}; static struct {unsigned f; char r[20];} string57 = {1048596, " is not defined.\000\000\000"}; static struct {unsigned f; char r[20];} string58 = {1179668, " is not printable.\000"}; static struct {unsigned f; char r[20];} string59 = {1114132, "ProcessProperties\000\000"}; static struct {unsigned f; char r[24];} string60 = {1310744, "process properties:\012\000\000\000"}; static struct {unsigned f; char r[24];} string61 = {1441816, "commander properties:\012\000"}; static struct {unsigned f; char r[4];} string62 = {131076, "-w\000"}; static struct {unsigned f; char r[4];} string63 = {131076, "-v\000"}; static struct {unsigned f; char r[4];} string64 = {196612, " = "}; static struct {unsigned f; char r[12];} string65 = {524300, "Bad args\000\000\000"}; static struct {unsigned f; char r[44];} string66 = {2687020, "No command in my history begins with \042%q\042\000\000"}; static struct {unsigned f; char r[32];} string67 = {1900576, "Usage: Redo commandNamePrefix\000\000"}; static struct {unsigned f; char r[24];} string68 = {1441816, "Usage: %g pattern ...\012\000"}; static struct {unsigned f; char r[4];} string69 = {65540, "*\000\000"}; static struct {unsigned f; char r[28];} string70 = {1769500, "No matching commands for %g"}; static struct {unsigned f; char r[12];} string71 = {589836, "%L%-20g%L\000\000"}; static struct {unsigned f; char r[4];} string72 = {131076, "bf\000"}; static struct {unsigned f; char r[4];} string73 = {131076, "BF\000"}; static struct {unsigned f; char r[4];} string74 = {131076, "\012\015\000"}; static struct {unsigned f; char r[8];} string75 = {262152, " \000\000\000"}; static struct {unsigned f; char r[4];} string76 = {131076, "-i\000"}; static struct {unsigned f; char r[4];} string77 = {196612, "-~i"}; static struct {unsigned f; char r[12];} string78 = {655372, " not found\000"}; static struct {unsigned f; char r[12];} string79 = {655372, "(formerly \000"}; static struct {unsigned f; char r[4];} string80 = {131076, ") \000"}; static struct {unsigned f; char r[24];} string81 = {1376280, "ListProcessProperties\000\000"}; static struct {unsigned f; char r[8];} string82 = {262152, "List\000\000\000"}; static struct {unsigned f; char r[32];} string83 = {1900576, "Usage: SetProperty key value\012\000\000"}; static struct {unsigned f; char r[4];} string84 = {196612, "NIL"}; static struct {unsigned f; char r[24];} string85 = {1310744, "Usage: Sleep seconds\000\000\000"}; static struct {unsigned f; char r[32];} string86 = {1966112, "Running time: %g seconds (%r)\012\000"}; static struct {unsigned f; char r[28];} string87 = {1638428, "Running time: %g seconds\012\000\000"}; static struct {unsigned f; char r[36];} string88 = {2293796, "Running time: %g seconds (%r.%03g)\012"}; static struct {unsigned f; char r[28];} string89 = {1638428, "Unregister: %g not found\012\000\000"}; static struct {unsigned f; char r[8];} string90 = {458760, "locally"}; static struct {unsigned f; char r[4];} string91 = {131076, "on\000"}; static struct {unsigned f; char r[4];} string92 = {196612, "off"}; static struct {unsigned f; char r[8];} string93 = {393224, "toggle\000"}; static struct {unsigned f; char r[4];} string94 = {65540, "?\000\000"}; static struct {unsigned f; char r[8];} string95 = {458760, "Verbose"}; static struct {unsigned f; char r[8];} string96 = {327688, "Terse\000\000"}; static struct {unsigned f; char r[12];} string97 = {655372, "Statistics\000"}; static struct {unsigned f; char r[12];} string98 = {655372, "HistoryLog\000"}; static struct {unsigned f; char r[8];} string99 = {262152, " on\012\000\000\000"}; static struct {unsigned f; char r[8];} string100 = {327688, " off\012\000\000"}; static struct {unsigned f; char r[176];} string101 = {11337904, "print a property value, providing a default\012args: [ switch ] propname [ defaultvalue ]\012switches: -q => always quote; -s => never quote; -f => fail if property is undefined\000\000"}; static struct {unsigned f; char r[4];} string102 = {196612, "$%g"}; static struct {unsigned f; char r[8];} string103 = {262152, "\042%q\042\000\000\000"}; static struct {unsigned f; char r[12];} string104 = {589836, "RopeList[\000\000"}; static struct {unsigned f; char r[4];} string105 = {131076, ", \000"}; static struct {unsigned f; char r[4];} string106 = {65540, "]\000\000"}; static struct {unsigned f; char r[8];} string107 = {327688, "LIST[\000\000"}; static struct {unsigned f; char r[4];} string108 = {131076, "%g\000"}; static struct {unsigned f; char r[52];} string109 = {3145780, "Star expansion in command position not allowed.\012\000\000\000"}; static struct {unsigned f; char r[4];} string110 = {196612, ".%g"}; static struct {unsigned f; char r[8];} string111 = {458760, "Synonym"}; static struct {unsigned f; char r[8];} string112 = {262152, "Redo\000\000\000"}; static struct {unsigned f; char r[64];} string113 = {4128832, "Redo \030 redoes the last command that begins with string"}; static struct {unsigned f; char r[8];} string114 = {458760, "History"}; static struct {unsigned f; char r[176];} string115 = {11337904, "History