summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/uptexdir/updvitype.ch
blob: 47297de8a29270fc44dd95c50833a167189e0ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@x
@d banner=='This is pDVItype, Version 3.6-p0.4'
@y
@d banner=='This is upDVItype, Version 3.6-p0.4-u0.28'
@z

@x procedure out_kanji
  if text_ptr>=line_length-3 then flush_text;
  c:=toBUFF(fromDVI(c));
  incr(text_ptr); text_buf[text_ptr]:= Hi(c);
  incr(text_ptr); text_buf[text_ptr]:= Lo(c);
@y
  if text_ptr>=line_length-5 then flush_text;
  c:=toBUFF(fromDVI(c));
  if BYTE1(c)<>0 then begin incr(text_ptr); text_buf[text_ptr]:=BYTE1(c); end;
  if BYTE2(c)<>0 then begin incr(text_ptr); text_buf[text_ptr]:=BYTE2(c); end;
  if BYTE3(c)<>0 then begin incr(text_ptr); text_buf[text_ptr]:=BYTE3(c); end;
                            incr(text_ptr); text_buf[text_ptr]:=BYTE4(c);
@z

@x
      usage ('pdvitype');
@y
      usage ('updvitype');
@z

@x
      usage_help (PDVITYPE_HELP, nil);
@y
      usage_help (UPDVITYPE_HELP, nil);
@z

@x
    write_ln (stderr, 'pdvitype: Need exactly one file argument.');
    usage ('pdvitype');
@y
    write_ln (stderr, 'updvitype: Need exactly one file argument.');
    usage ('updvitype');
@z