home *** CD-ROM | disk | FTP | other *** search
/ swCHIP 1991 January / swCHIP_95-1.bin / utility / gs333ini / gs3.33 / font2c.ps < prev    next >
Text File  |  1995-12-09  |  19KB  |  647 lines

  1. %    Copyright (C) 1992, 1993, 1994, 1995 Aladdin Enterprises.  All rights reserved.
  2. % This file is part of Aladdin Ghostscript.
  3. % Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. % or distributor accepts any responsibility for the consequences of using it,
  5. % or for whether it serves any particular purpose or works at all, unless he
  6. % or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. % License (the "License") for full details.
  8. % Every copy of Aladdin Ghostscript must include a copy of the License,
  9. % normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. % the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. % under certain conditions described in the License.  Among other things, the
  12. % License requires that the copyright notice and this notice be preserved on
  13. % all copies.
  14.  
  15. % font2c.ps
  16. % Write out a PostScript Type 0 or Type 1 font as C code
  17. % that can be linked with the interpreter.
  18. % This even works on protected fonts, if you use the -dWRITESYSTEMDICT
  19. % switch in the command line.  The code is reentrant and location-
  20. % independent and has no external references, so it can be put into
  21. % a sharable library even on VMS.
  22.  
  23. % Define the maximum string length that all compilers will accept.
  24. % This must be approximately
  25. %    min(max line length, max string literal length) / 4 - 5.
  26.  
  27. /font2cdict 100 dict dup begin
  28.  
  29. /max_wcs 50 def
  30.  
  31. % Define a temporary file for writing out procedures.
  32. /wtempname (_.tmp) def
  33.  
  34. % ------ Protection utilities ------ %
  35.  
  36. % Protection values are represented by a mask:
  37. /a_noaccess 0 def
  38. /a_executeonly 1 def
  39. /a_readonly 3 def
  40. /a_all 7 def
  41. /prot_names
  42.  [ (0) (a_execute) null (a_readonly) null null null (a_all)
  43.  ] def
  44. /prot_opers
  45.  [ {noaccess} {executeonly} {} {readonly} {} {} {} {}
  46.  ] def
  47.  
  48. % Get the protection of an object.
  49.    /getpa
  50.     { dup wcheck
  51.        { pop a_all }
  52.        {    % Check for executeonly or noaccess objects in protected.
  53.          dup protected exch known
  54.       { protected exch get }
  55.       { pop a_readonly }
  56.      ifelse
  57.        }
  58.       ifelse
  59.     } bind def
  60.  
  61. % Get the protection appropriate for (all the) values in a dictionary.
  62.    /getva
  63.     { a_noaccess exch
  64.        { exch pop
  65.          dup type dup /stringtype eq 1 index /arraytype eq or
  66.      exch /packedarraytype eq or
  67.       { getpa a_readonly and or }
  68.       { pop pop a_all exit }
  69.      ifelse
  70.        }
  71.       forall
  72.     } bind def
  73.  
  74. % Keep track of executeonly and noaccess objects,
  75. % but don't let the protection actually take effect.
  76. .currentglobal
  77. false .setglobal    % so protected can reference local objs
  78. /protected        % do first so // will work
  79.   systemdict wcheck { 1500 dict } { 1 dict } ifelse
  80. def
  81. systemdict wcheck not
  82.  { (Warning: you will not be able to convert protected fonts.\n) print
  83.    (If you need to convert a protected font, please\n) print
  84.    (restart the program and specify the -dWRITESYSTEMDICT switch.\n) print
  85.    flush
  86.    (%end) .skipeof
  87.  }
  88. if
  89. userdict begin
  90.   /executeonly
  91.    { dup //protected exch //a_executeonly put readonly
  92.    } bind def
  93.   /noaccess
  94.    { dup //protected exch //a_noaccess put readonly
  95.    } bind def
  96. end
  97. true .setglobal
  98. systemdict begin
  99.   /executeonly
  100.    { userdict /executeonly get exec
  101.    } bind odef
  102.   /noaccess
  103.    { userdict /noaccess get exec
  104.    } bind odef
  105. end
  106. %end
  107. .setglobal
  108.  
  109. % ------ Output utilities ------ %
  110.  
  111. % By convention, the output file is named cfile.
  112.  
  113. % Define some utilities for writing the output file.
  114.    /wtstring 100 string def
  115.    /wb {cfile exch write} bind def
  116.    /ws {cfile exch writestring} bind def
  117.    /wl {ws (\n) ws} bind def
  118.    /wt {wtstring cvs ws} bind def
  119.  
  120. % Write a C string.  Some compilers have unreasonably small limits on
  121. % the length of a string literal or the length of a line, so every place
  122. % that uses wcs must either know that the string is short,
  123. % or be prepared to use wcca instead.
  124.    /wbx
  125.     { 8#1000 add 8 (0000) cvrs dup 0 (\\) 0 get put ws
  126.     } bind def
  127.    /wcst
  128.     [
  129.       32 { /wbx load } repeat
  130.       95 { /wb load } repeat
  131.       129 { /wbx load } repeat
  132.     ] def
  133.    ("\\) { wcst exch { (\\) ws wb } put } forall
  134.    /wcs
  135.     { (") ws { dup wcst exch get exec } forall (") ws
  136.     } bind def
  137.    /can_wcs    % Test if can use wcs
  138.     { length max_wcs le
  139.     } bind def
  140.    /wncs    % name -> C string
  141.     { wtstring cvs wcs
  142.     } bind def
  143. % Write a C string as an array of character values.
  144. % We only need this because of line and literal length limitations.
  145.    /wca        % string prefix suffix ->
  146.     { 0 4 -2 roll exch
  147.        { exch ws
  148.          exch dup 19 ge { () wl pop 0 } if 1 add
  149.      exch dup 32 ge 1 index 126 le and
  150.       { 39 wb dup 39 eq 1 index 92 eq or { 92 wb } if wb 39 wb }
  151.           { wt }
  152.          ifelse (,)
  153.        } forall
  154.       pop pop ws
  155.     } bind def
  156.    /wcca
  157.     { ({\n) (}) wca
  158.     } bind def
  159.  
  160. % Write object protection attributes.  Note that dictionaries are
  161. % the only objects that can be writable.
  162.    /wpa
  163.     { dup xcheck { (a_executable|) ws } if
  164.       dup type /dicttype eq { getpa } { getpa a_readonly and } ifelse
  165.       prot_names exch get ws
  166.     } bind def
  167.    /wva
  168.     { getva prot_names exch get ws
  169.     } bind def
  170.  
  171. % ------ Object writing ------ %
  172.  
  173.    /wnstring 128 string def
  174.  
  175. % Write a string/name or null as an element of a string/name/null array. */
  176.    /wsn
  177.     { dup null eq
  178.        { pop (\t255,255,) wl
  179.        }
  180.        { dup type /nametype eq { wnstring cvs } if
  181.          dup length 256 idiv wt (,) ws
  182.      dup length 256 mod wt
  183.      (,) (,\n) wca
  184.        }
  185.       ifelse
  186.     } bind def
  187. % Write a packed string/name/null array.
  188.    /wsna    % <name> <(string|name|null)*> wsna -
  189.     { (\tstatic const char ) ws exch wt ([] = {) wl
  190.       { wsn } forall
  191.       (\t0\n};) wl
  192.     } bind def
  193.  
  194. % Write a number or an array of numbers, as refs.
  195. /isnumber
  196.  { type dup /integertype eq exch /realtype eq or
  197.  } bind def
  198. /wnums
  199.  { dup isnumber
  200.     { (real_v\() ws wt (\),) ws }
  201.     { { wnums } forall }
  202.    ifelse
  203.  } bind def
  204.  
  205. % Test whether a procedure element can be written (printed).
  206. /iswx 4 dict dup begin
  207.   /arraytype { { iswproc } isall } def
  208.   /nametype { pop true } def
  209.   /operatortype { pop true } def    % assume it has been bound in
  210.   /packedarraytype /arraytype load def
  211. end def
  212. /iswnx 4 dict dup begin
  213.   /integertype { pop true } def
  214.   /nametype { pop true } def
  215.   /realtype { pop true } def
  216.   /stringtype { pop true } def
  217. end def
  218. /iswproc    % <obj> isproc <bool>
  219.  { dup xcheck { iswx } { iswnx } ifelse
  220.    1 index type .knownget { exec } { pop false } ifelse
  221.  } bind def
  222.  
  223. % Write a printable procedure (one for which iswproc returns true).
  224. /wproca 3 dict dup begin
  225.   /arraytype
  226.    { 1 index ({) writestring
  227.       { 1 index ( ) writestring 1 index exch wproc } forall
  228.      (}) writestring
  229.    } bind def
  230.   /packedarraytype /arraytype load def
  231.   /operatortype { .writecvs } bind def    % assume binding would work
  232. end def
  233. /wproc        % <file> <proc> wproc -
  234.  { dup type wproca exch .knownget { exec } { write==only } ifelse
  235.  } bind def
  236.  
  237. % Write a named object.  Return true if this was possible.
  238. % Legal types are: boolean, integer, name, real, string,
  239. % array of (integer, integer+real, name, null+string),
  240. % and certain procedures (see iswproc above).
  241. % All other objects are either handled specially or ignored.
  242.    /isall    % <array> <proc> isall <bool>
  243.     { true 3 -1 roll
  244.        { 2 index exec not { pop false exit } if }
  245.       forall exch pop
  246.     } bind def
  247.    /wott 8 dict dup begin
  248.       /arraytype
  249.        { woatt
  250.           { aload pop 2 index 2 index exec
  251.          { exch pop exec exit }
  252.          { pop pop }
  253.         ifelse
  254.       }
  255.      forall
  256.        } bind def
  257.       /booleantype
  258.        { { (\tmake_true\(&) } { (\tmake_false\(&) } ifelse ws
  259.          wt (\);) wl true
  260.        } bind def
  261.       /integertype
  262.        { (\tmake_int\(&) ws exch wt (, ) ws
  263.          wt (\);) wl true
  264.        } bind def
  265.       /nametype
  266.        { (\tcode = (*pprocs->name_create)\(&) ws exch wt
  267.          (, ) ws wnstring cvs wcs    % OK, names are short
  268.      (\);) wl
  269.      (\tif ( code < 0 ) return code;) wl
  270.      true
  271.        } bind def
  272.       /packedarraytype
  273.     /arraytype load def
  274.       /realtype
  275.        { (\tmake_real\(&) ws exch wt (, ) ws
  276.          wt (\);) wl true
  277.        } bind def
  278.       /stringtype
  279.        { ({\tstatic const char s_[] = ) ws
  280.          dup dup can_wcs { wcs } { wcca } ifelse
  281.      (;) wl
  282.      (\tmake_const_string\(&) ws exch wt
  283.      (, a_readonly, ) ws length wt (, (const byte *)s_\);) wl
  284.      (}) wl true
  285.        } bind def
  286.    end def
  287. % Write some other kind of object, if known.
  288.    /wother
  289.     { dup otherobjs exch known
  290.        { otherobjs exch get (\t) ws exch wt ( = ) ws wt (;) wl true }
  291.        { pop pop false }
  292.       ifelse
  293.     } bind def
  294. % Top-level procedure.
  295.    /wo        % name obj -> OK
  296.     { dup type wott exch .knownget { exec } { wother } ifelse
  297.     } bind def
  298.  
  299. % Write an array (called by wo).
  300.    /wap        % <name> <array> wap -
  301.     { dup xcheck not 1 index wcheck not and 1 index rcheck and
  302.        { pop pop }
  303.        { (\tr_set_attrs\(&) ws exch wt (, ) ws wpa (\);) wl }
  304.       ifelse
  305.     } bind def
  306.    /wnuma    % name array C_type type_v ->
  307.     { ({\tstatic const ref_\() ws exch ws
  308.       (\) a_[] = {) wl exch
  309.       dup length 0 eq
  310.        { (\t0) wl
  311.        }
  312.        { dup
  313.           { (\t) ws 2 index ws (\() ws wt (\),) wl
  314.       } forall
  315.        }
  316.       ifelse
  317.       (\t};) wl exch pop
  318.       (\tmake_const_array\(&) ws exch wt
  319.       (, avm_foreign|) ws dup wpa (, ) ws length wt
  320.       (, (const ref *)a_\);) wl
  321.       (}) wl
  322.     } bind def
  323.    /woatt [
  324.     % Integers
  325.      { { { type /integertype eq } isall }
  326.        { (long) (integer_v) wnuma true }
  327.      }
  328.     % Integers + reals
  329.      { { { type dup /integertype eq exch /realtype eq or } isall }
  330.        { (float) (real_v) wnuma true }
  331.      }
  332.     % Strings + nulls
  333.      { { { type dup /nulltype eq exch /stringtype eq or } isall }
  334.        { ({) ws dup (sa_) exch wsna
  335.      (\tcode = (*pprocs->string_array_create)\(&) ws exch wt
  336.      (, sa_, ) ws dup length wt (, ) ws wpa (\);) wl
  337.      (\tif ( code < 0 ) return code;) wl
  338.      (}) wl true
  339.        }
  340.      }
  341.     % Names
  342.      { { { type /nametype eq } isall }
  343.        { ({) ws dup (na_) exch wsna
  344.      (\tcode = (*pprocs->name_array_create)\(&) ws 1 index wt
  345.      (, na_, ) ws dup length wt (\);) wl
  346.      (\tif ( code < 0 ) return code;) wl
  347.      wap (}) wl true
  348.        }
  349.      }
  350.     % Procedure
  351.      { { iswproc }
  352.        {    % We'd like to use == and write directly to a string,
  353.         % but we can't do the former because of operators,
  354.         % and we can't do the latter because we can't predict
  355.         % how long the string would have to be....
  356.      wtempname (w) file 2 copy wproc closefile
  357.      wtempname status pop pop pop exch pop string
  358.      wtempname (r) file dup 3 -1 roll readstring pop exch closefile
  359.         % Stack: name proc string
  360.      ({\tstatic const char s_[] = ) ws
  361.          dup dup can_wcs { wcs } { wcca } ifelse
  362.      (;) wl
  363.      (\tcode = (*pprocs->ref_from_string)\(&) ws 2 index wt
  364.      (, s_, ) ws length wt (\);) wl
  365.      (\tif ( code < 0 ) return code;) wl
  366.      wap (}) wl true
  367.      wtempname deletefile
  368.        }
  369.      }
  370.     % Default
  371.      { { pop true }
  372.        { wother }
  373.      }
  374.    ] def
  375.  
  376. % Write a named dictionary.  We assume the ref is already declared.
  377.    /wd        % <name> <dict> <extra> wd -
  378.     { 3 1 roll
  379.       ({) ws
  380.       (\tref v_[) ws dup length wt (];) wl
  381.       dup [ exch
  382.        { counttomark 2 sub wtstring cvs
  383.          (v_[) exch concatstrings (]) concatstrings exch wo not
  384.           { (Skipping ) print ==only (....\n) print }
  385.      if
  386.        } forall
  387.       ]
  388.         % Stack: array of keys (names)
  389.       ({) ws dup (str_keys_) exch wsna
  390.       (\tstatic const cfont_dict_keys keys_ =) wl
  391.       (\t { 0, 0, ) ws length wt (, ) ws 3 -1 roll wt (, ) ws
  392.       dup wpa (, ) ws dup wva ( };) wl pop
  393.       (\tcode = \(*pprocs->ref_dict_create\)\(&) ws wt
  394.       (, &keys_, str_keys_, v_\);) wl
  395.       (\tif (code < 0) return code;) wl
  396.       (}) wl
  397.       (}) wl
  398.     } bind def
  399.  
  400. % Write character dictionary keys.
  401. % We save a lot of space by abbreviating keys which appear in
  402. % StandardEncoding or ISOLatin1Encoding.
  403. % Writes code to declare and initialize enc_keys_, str_keys, and keys_.
  404. /wcdkeys    % <dict> wcdkeys -
  405.  {    % Write keys present in StandardEncoding or ISOLatin1Encoding,
  406.     % pushing other keys on the o-stack.
  407.    (static const charindex enc_keys_[] = {) wl
  408.    dup [ exch 0 exch
  409.     { pop decoding 1 index known
  410.        { decoding exch get ({) ws dup -8 bitshift wt
  411.      (,) ws 255 and wt (}, ) ws
  412.      1 add dup 5 mod 0 eq { (\n) ws } if
  413.        }
  414.        { exch }
  415.       ifelse
  416.     }
  417.    forall pop
  418.    ]
  419.    ({0,0}\n};) wl
  420.     % Write other keys.
  421.    (str_keys_) exch wsna
  422.     % Write the declaration for keys_.
  423.    (static const cfont_dict_keys keys_ = {) wl
  424.    (\tenc_keys_, countof\(enc_keys_\) - 1,) wl
  425.    (\t) ws dup length wt ( - \(countof\(enc_keys_\) - 1\), 0, ) ws
  426.    dup wpa (, ) ws wva () wl
  427.    (};) wl
  428.  } bind def
  429.  
  430. % Enumerate character dictionary values in the same order that
  431. % the keys appear in enc_keys_ and str_keys_.
  432. % <proc> is called with each value in turn.
  433. /cdforall    % <dict> <proc> cdforall -
  434.  { 2 copy
  435.     { decoding 3 index known
  436.        { 3 -1 roll pop exec }
  437.        { pop pop pop }
  438.       ifelse
  439.     }
  440.    /exec cvx 3 packedarray cvx
  441.    /forall cvx
  442.    5 -2 roll
  443.     { decoding 3 index known
  444.        { pop pop pop }
  445.        { 3 -1 roll pop exec }
  446.       ifelse
  447.     }
  448.    /exec cvx 3 packedarray cvx
  449.    /forall cvx
  450.    6 packedarray cvx exec
  451.  } bind def
  452.  
  453. % ------ Writers for special objects ------ %
  454.  
  455. /writespecial 10 dict dup begin
  456.  
  457.    /FontInfo { 0 wd } def
  458.  
  459.    /Private { 0 wd } def
  460.  
  461.    /CharStrings
  462.     { ({) wl
  463.       dup wcdkeys
  464.       (static const char values_[] = {) wl
  465.        { wsn } cdforall
  466.       (\t0\n};) wl
  467.       (\tcode = \(*pprocs->string_dict_create\)\(&) ws wt
  468.       (, &keys_, str_keys_, values_\);) wl
  469.       (\tif ( code < 0 ) return code;) wl
  470.       (}) wl
  471.     } bind def
  472.  
  473.    /Metrics
  474.     { ({) wl
  475.       dup wcdkeys
  476.       (static const ref_(float) values_[] = {) wl
  477.       dup { (\t) ws wnums () wl } cdforall
  478.       (\t0\n};) wl
  479.       (static const char lengths_[] = {) wl
  480.        { (\t) ws dup isnumber
  481.       { pop 0 }
  482.       { length 1 add }
  483.      ifelse wt (,) wl
  484.        } cdforall
  485.       (\t0\n};) wl
  486.       (\tcode = \(*pprocs->num_dict_create\)\(&) ws wt
  487.       (, &keys_, str_keys_, (const ref *)values_, lengths_\);) wl
  488.       (\tif ( code < 0 ) return code;) wl
  489.       (}) wl
  490.     } bind def
  491.  
  492.    /Metrics2 /Metrics load def
  493.  
  494.    /FDepVector pop    % (converted to a list of font names)
  495.  
  496. end def
  497.  
  498. % ------ The main program ------ %
  499.  
  500. % Construct an inverse dictionary of encodings.
  501. [ /StandardEncoding /ISOLatin1Encoding
  502.   /SymbolEncoding /DingbatsEncoding
  503.   /KanjiSubEncoding
  504. ]
  505. dup length dict begin
  506.  { mark exch dup { .findencoding exch def } stopped cleartomark
  507.  } forall
  508. currentdict end /encodingnames exch def
  509.  
  510. % Invert the StandardEncoding and ISOLatin1Encoding vectors.
  511. 512 dict begin
  512.   0 1 255 { dup ISOLatin1Encoding exch get exch 256 add def } for
  513.   0 1 255 { dup StandardEncoding exch get exch def } for
  514. currentdict end /decoding exch def
  515.  
  516. /writefont        % cfilename procname -> [writes the current font]
  517.  { (gsf_) exch concatstrings
  518.      /fontprocname exch def
  519.    /cfname exch def
  520.    /cfile cfname (w) file def
  521.  
  522. % Remove unwanted keys from the font.
  523.    currentfont dup length dict begin { def } forall
  524.     { /FID /MIDVector /CurMID } { currentdict exch undef } forall
  525.    /Font currentdict end def
  526.  
  527. % Replace the FDepVector with a list of font names.
  528.    Font /FDepVector .knownget
  529.     { [ exch { /FontName get } forall ]
  530.       Font /FDepVector 3 -1 roll put
  531.     }
  532.    if
  533.  
  534. % Find all the special objects we know about.
  535. % wo uses this to write out references to otherwise intractable objects.
  536.    /otherobjs writespecial length dict dup begin
  537.      writespecial
  538.       { pop Font 1 index .knownget { exch def } { pop } ifelse
  539.       }
  540.      forall
  541.    end def
  542.  
  543. % Define a dummy FontInfo, in case the font doesn't have one.
  544.    /FontInfo 0 dict def
  545.  
  546. % Write out the boilerplate.
  547.    Font begin
  548.    (/* Portions of this file are subject to the following notice: */) wl
  549.    (/*) wl
  550.    ( * ) ws systemdict /copyright get wl
  551.    ( */) wl
  552.    FontInfo /Notice known
  553.     { (/* Portions of this file are also subject to the following notice: */) wl
  554.       (/****************************************************************) wl
  555.       FontInfo /Notice get wl
  556.       ( ****************************************************************/) wl
  557.     } if
  558.    () wl
  559.    (/* ) ws cfname ws ( */) wl
  560.    (/* This file was created by the ) ws product ws ( font2c utility. */) wl
  561.    () wl
  562.    (#include "ccfont.h") wl
  563.    () wl
  564.  
  565. % Write the procedure prologue.
  566.    (#ifdef __PROTOTYPES__) wl
  567.    (int huge) wl
  568.    fontprocname ws ((const cfont_procs *pprocs, ref *pfont)) wl
  569.    (#else) wl
  570.    (int huge) wl
  571.    fontprocname ws ((pprocs, pfont) const cfont_procs *pprocs; ref *pfont;) wl
  572.    (#endif) wl
  573.    ({\tint code;) wl
  574.    (\tref Font;) wl
  575.    otherobjs
  576.     { exch pop (\tref ) ws wt (;) wl }
  577.    forall
  578.  
  579. % Write out the special objects.
  580.    otherobjs
  581.     { exch writespecial 2 index get exec
  582.     }
  583.    forall
  584.  
  585. % Write out the main font dictionary.
  586. % If possible, substitute the encoding name for the encoding;
  587. % PostScript code will fix this up.
  588.     { /Encoding /PrefEnc }
  589.     { Font 1 index .knownget
  590.        { encodingnames exch .knownget { def } { pop } ifelse }
  591.        { pop }
  592.       ifelse
  593.     }
  594.    forall
  595.    (Font) Font FontType 0 eq { 5 } { 1 } ifelse wd
  596.  
  597. % Finish the procedural initialization code.
  598.    (\t*pfont = Font;) wl
  599.    (\treturn 0;) wl
  600.    (}) wl
  601.    end                % Font
  602.  
  603.    cfile closefile
  604.  
  605.  } bind def
  606.  
  607. end def            % font2cdict
  608.  
  609. % Compute the procedure name from the font name.
  610. /makefontprocname    % fontname -> procname
  611.  { =string cvs
  612.    dup length 1 sub -1 0
  613.     { dup =string exch get 45 eq { =string exch 95 put } { pop } ifelse
  614.     }
  615.    for 
  616.  } def
  617.  
  618. /writefont { font2cdict begin writefont end } def
  619.  
  620. % If the program was invoked from the command line, run it now.
  621. [ shellarguments
  622.  { counttomark dup 2 eq exch 3 eq or
  623.     { counttomark -1 roll cvn
  624.       (Converting ) print dup =only ( font.\n) print flush
  625.       dup FontDirectory exch known { dup FontDirectory exch undef } if
  626.       findfont setfont
  627.       (FontName is ) print currentfont /FontName get ==only (.\n) print flush
  628.       counttomark 1 eq
  629.        {    % Construct the procedure name from the file name.
  630.          currentfont /FontName get makefontprocname
  631.        }
  632.       if
  633.       writefont
  634.       (Done.\n) print flush
  635.     }
  636.     { cleartomark
  637.       (Usage: font2c fontname cfilename.c [shortname]\n) print
  638.       ( e.g.: font2c Courier cour.c\n) print flush
  639.       mark
  640.     }
  641.    ifelse
  642.  }
  643. if pop
  644.