1
2
3
4
5
6
7
8
9
10
11
12
13
14 dcl ssu_$abort_line entry() options(variable);
15 dcl ssu_$abort_subsystem entry() options(variable);
16 dcl ssu_$arg_ptr entry (ptr, fixed bin, ptr, fixed bin(21));
17 dcl ssu_$execute_line entry (ptr, ptr, fixed bin(21), fixed bin(35));
18 dcl ssu_$execute_string entry (ptr, char(*), fixed bin(35));
19 dcl ssu_$get_info_ptr entry (ptr) returns(ptr);
20 dcl ssu_$get_request_name entry (ptr) returns(char(32));
21 dcl ssu_$get_subsystem_name entry (ptr) returns(char(32));
22 dcl ssu_$get_subsystem_and_request_name entry (ptr) returns(char(72) var);
23 dcl ssu_$print_message entry() options(variable);
24 dcl ssu_$return_arg entry (ptr, fixed bin, bit(1) aligned, ptr, fixed bin(21));
25
26 dcl (F init("0"b), T init("1"b)) bit(1) aligned int static options(constant);
27
28
29 dcl argCount fixed bin;
30 dcl argI fixed bin init (0);
31
32 dcl arg char(argL) based(argP),
33 argL fixed bin(21),
34 argP ptr;
35
36 dcl af_ret char (af_retL) varying based(af_retP),
37 af_retL fixed bin (21),
38 af_retP ptr;
39
40 dcl code fixed bin(35);
41
42 dcl isAF bit(1) aligned;
43
44 dcl AsciP ptr;
45
46
47
48
49
50
51
52
53 arg_setup:
54 proc (AsciP);
55
56 dcl AsciP ptr;
57
58 call ssu_$return_arg (AsciP, argCount, isAF, af_retP, af_retL);
59 if args_remain() then if isControlArg ("-test") then;
60
61 end arg_setup;
62
63
64 args_remain:
65 proc () returns (bit (1) aligned);
66 return (argI < argCount);
67 end args_remain;
68
69
70 isControlArg:
71 proc (Aarg) returns (bit(1) aligned);
72
73 dcl Aarg char(*);
74 dcl argFirst char(1) defined(Aarg);
75 dcl length builtin;
76
77 if length(Aarg) = 0 then return(F);
78 if argFirst ^= "-" then return(F);
79 return(T);
80 end isControlArg;
81
82