File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ begin
139139 /seta charvals 0 get readonly def
140140 /setb charvals 1 get readonly def
141141 /setc charvals 2 get readonly def
142+ /charvals charvals readonly def
142143
143144 %
144145 % Maps for row indicators and symbol checksums
Original file line number Diff line number Diff line change 9999 [ 26 40 1 2 38 1 1 ]
100100 [ 26 48 1 2 42 1 1 ]
101101 [ 26 64 1 4 50 1 1 ]
102- ] def
102+ ] readonly def
103103
104104%
105105% Special characters and encoding values
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ begin
144144
145145 //dotcode.latevars begin
146146
147- /rsalog [ 1 112 { dup 3 mul 113 mod } repeat ] def
147+ /rsalog [ 1 112 { dup 3 mul 113 mod } repeat ] readonly def
148148
149149 % Invert charmaps to give character to value maps for each state
150150 /charvals [ 113 dict 117 dict 113 dict ] def
@@ -166,6 +166,7 @@ begin
166166 Bvals //dotcode.mac 100 put
167167 /Bvals Bvals readonly def
168168 /Cvals charvals 2 get readonly def
169+ /charvals charvals readonly def
169170
170171 /BINvals <<
171172 102 [ //dotcode.sc2 //dotcode.sc3 //dotcode.sc4 //dotcode.sc5 //dotcode.sc6 //dotcode.sc7 //dotcode.tma //dotcode.tmb //dotcode.tmc //dotcode.tms ] {exch 1 add dup} forall pop
Original file line number Diff line number Diff line change @@ -228,6 +228,7 @@ begin
228228 /setc charvals 2 get readonly def
229229 /setd charvals 3 get readonly def
230230 /sete charvals 4 get readonly def
231+ /charvals charvals readonly def
231232
232233 %
233234 % Calculate the Reed-Solomon log and anti-log tables for GF(64)
Original file line number Diff line number Diff line change 6868%
6969/micropdf417.m05 -12 def /micropdf417.m06 -13 def
7070
71- /micropdf417.textsubmodes [ micropdf417.a micropdf417.l micropdf417.m micropdf417.p ] def
71+ /micropdf417.textsubmodes [ micropdf417.a micropdf417.l micropdf417.m micropdf417.p ] readonly def
7272
7373%
7474% Character maps for each state
@@ -499,7 +499,7 @@ begin
499499 %
500500 % Calculate the Reed-Solomon log and anti-log tables
501501 %
502- /rsalog [ 1 928 {dup 3 mul 929 mod} repeat ] def
502+ /rsalog [ 1 928 {dup 3 mul 929 mod} repeat ] readonly def
503503 /rslog 929 array def
504504 1 1 928 {dup rsalog exch get exch rslog 3 1 roll put} for
505505 /rslog rslog readonly def
Original file line number Diff line number Diff line change 6262 /ncrmod11 { ncrmod11 } bind
6363 /mod1110 { mod11 mod10 } bind
6464 /ncrmod1110 { ncrmod11 mod10 } bind
65- >> def
65+ >> readonly def
6666
6767/msi {
6868
Original file line number Diff line number Diff line change 6666%
6767% States
6868%
69- /pdf417.textsubmodes [ pdf417.a pdf417.l pdf417.m pdf417.p ] def
69+ /pdf417.textsubmodes [ pdf417.a pdf417.l pdf417.m pdf417.p ] readonly def
7070
7171%
7272% Character maps for each state
@@ -420,7 +420,7 @@ begin
420420 %
421421 % Calculate the Reed-Solomon log and anti-log tables
422422 %
423- /rsalog [ 1 928 {dup 3 mul 929 mod} repeat ] def
423+ /rsalog [ 1 928 {dup 3 mul 929 mod} repeat ] readonly def
424424 /rslog 929 array def
425425 1 1 928 {dup rsalog exch get exch rslog 3 1 roll put} for
426426 /rslog rslog readonly def
Original file line number Diff line number Diff line change 6767%
6868% Encoding function names
6969%
70- /qrcode.encfuncs [ /encN /encA /encB /encK /encE ] def
70+ /qrcode.encfuncs [ /encN /encA /encB /encK /encE ] readonly def
7171
7272/qrcode.fn1 -1 def
7373
@@ -582,7 +582,7 @@ begin
582582 %
583583 % Calculate the Reed-Solomon log and anti-log tables
584584 %
585- /rsalog [ 1 255 { dup 2 mul dup 256 ge {285 xor} if } repeat ] def
585+ /rsalog [ 1 255 { dup 2 mul dup 256 ge {285 xor} if } repeat ] readonly def
586586 /rslog 256 array def
587587 1 1 255 {dup rsalog exch get exch rslog 3 1 roll put} for
588588 /rslog rslog readonly def
Original file line number Diff line number Diff line change 6969 (right) { pixx th sub } bind (top) { pixy } bind
7070 (offright) { pixx nudge add } bind (above) { pixy tw add nudge add } bind
7171 >>
72- >> def
72+ >> readonly def
7373
7474/rendertext {
7575
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ begin
131131
132132 //ultracode.latevars begin
133133
134- /rsalog [ 1 282 {dup 3 mul 283 mod} repeat ] def
134+ /rsalog [ 1 282 {dup 3 mul 283 mod} repeat ] readonly def
135135 /rslog 283 array def
136136 1 1 282 {dup rsalog exch get exch rslog 3 1 roll put} for
137137 /rslog rslog readonly def
You can’t perform that action at this time.
0 commit comments