Lines Matching defs:dsg
159 const struct iso2022_designation *dsg;
183 for (dsg = CONFIG_DESIGNATIONS; dsg->mark; dsg++) {
185 encoded = dsg->encoder(&c, &length);
196 encoded = dsg->encoder(&c, &length);
206 if (!dsg->mark)
208 assert(dsg->width == 1 || dsg->width == 2);
210 switch (dsg->plane) {
217 if (STATE_G0 != dsg->mark) {
218 if (dsg->width == 1) {
219 WRITEBYTE3(ESC, '(', ESCMARK(dsg->mark));
220 STATE_SETG0(dsg->mark);
223 else if (dsg->mark == CHARSET_JISX0208) {
224 WRITEBYTE3(ESC, '$', ESCMARK(dsg->mark));
225 STATE_SETG0(dsg->mark);
230 ESCMARK(dsg->mark));
231 STATE_SETG0(dsg->mark);
237 if (STATE_G1 != dsg->mark) {
238 if (dsg->width == 1) {
239 WRITEBYTE3(ESC, ')', ESCMARK(dsg->mark));
240 STATE_SETG1(dsg->mark);
244 WRITEBYTE4(ESC, '$', ')', ESCMARK(dsg->mark));
245 STATE_SETG1(dsg->mark);
260 if (dsg->width == 1) {
358 const struct iso2022_designation *dsg;
360 for (dsg = CONFIG_DESIGNATIONS; dsg->mark; dsg++) {
361 if (dsg->mark == charset)
364 if (!dsg->mark)
486 const struct iso2022_designation *dsg;
504 dsg = dsgcache;
506 for (dsg = CONFIG_DESIGNATIONS;
507 dsg->mark != charset
509 && dsg->mark != '\0'
511 ; dsg++)
515 assert(dsg->mark != '\0');
516 dsgcache = dsg;
519 REQUIRE_INBUF(dsg->width);
520 decoded = dsg->decoder(*inbuf);
522 return dsg->width;
533 NEXT_IN(dsg->width);