12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

When a macro definition contains argument substitution, and you invoke that macrowith more arguments than needed, the extra arguments you typed up to the next ; , }or newline disappear. However, ifthe macro does not use argument substitution inits definition, text typed following the macro invocation is not thrown away.To see what a macro contains, use the command prdef to print out the macro definition.36.FOURC> prdef comdef com ’on(PRINTER)printf("$*\n")off(PRINTER)’37.FOURC>Notice that the form of the definition, if written to a file, would be suitable for readingback in as a macro definition.The standard macro library is read automatically the first time you run <strong>spec</strong> orwhen you start the program with the -f flag. You can get a listing of all the currentlydefined macros with the command lsdef .37.FOURC> lsdefALPHA (4) bug (275) hklscan (1639) qdo (10)AZIMUTH (4) ca (182) hkradial (334) rplot (10)BETA (4) calcA (7) hlcircle (339) rplot_res (112)CEN (10) calcE (7) hlradial (333) save (432)Escan (1448) calcG (7) hscan (139) savegeo (1121)F_ALPHA (4) calcHKL (7) initdw (42) saveslits (99)F_AZIMUTH (5) calcL (8) initfx (39) saveusr (0)F_BETA (4) calcM (7) initnec (44) savmac (118)F_OMEGA (5) calcZ (7) initoki (39) scan_head (5)F_PHI (5) cat (14) inittemp (33) scan_loop (5)Fheader (0) cd (11) klcircle (339) scan_move (5)Flabel (2) ci (177) klradial (333) scan_on (192)Fout (2) cl (22) kscan (139) scan_plot (0)Ftail (0) com (12) l (16) scan_tail (5)H (4) comment (184) less (15) set (344)K (4) config (109) lm (539) set_E (314)L (4) count (6) lp_plot (674) set_dial (649)LAMBDA (4) ct (47) ls (13) set_lm (349)OMEGA (4) cuts (764) lscan (139) setaz (448)Pheader (0) cz (177) lup (419) setlat (764)Plabel (2) d (12) mail (16) setmode (927)Pout (2) d2scan (564) measuretemp (1) setmono (368)RtoT_0 (162) d3scan (688) mesh (1221) setplot (1119)RtoT_1 (162) debug (212) mk (175) setpowder (867)RtoT_2 (161) do (9) move_E (208) setscans (67)RtoT_3 (163) dscan (95) move_em (8) setsector (1341)TtoR_0 (160) dtscan (143) mv (175) setslit (464)INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION USER MANUAL AND TUTORIALS 23

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!