• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/gettext-0.17/gettext-tools/gnulib-lib/

Lines Matching defs:new_attr

1117 		 attributes_t old_attr, attributes_t new_attr)
1123 if ((new_attr.color == COLOR_DEFAULT && old_attr.color != COLOR_DEFAULT)
1124 || (new_attr.bgcolor == COLOR_DEFAULT && old_attr.bgcolor != COLOR_DEFAULT))
1155 && new_attr.posture == POSTURE_NORMAL
1163 && new_attr.underline == UNDERLINE_OFF
1171 && new_attr.weight == WEIGHT_NORMAL)
1173 && new_attr.posture == POSTURE_NORMAL
1176 && new_attr.underline == UNDERLINE_OFF
1191 if (new_attr.color != old_attr.color
1192 || (cleared_attributes && new_attr.color != COLOR_DEFAULT))
1195 assert (new_attr.color != COLOR_DEFAULT);
1199 assert (new_attr.color >= 0 && new_attr.color < 8);
1202 color_bgr (new_attr.color)),
1205 tputs (tparm (stream->set_foreground, new_attr.color),
1211 assert (new_attr.color >= 0 && new_attr.color < 8);
1215 bytes[2] = '3'; bytes[3] = '0' + new_attr.color;
1222 assert (new_attr.color >= 0 && new_attr.color < 16);
1226 if (new_attr.color < 8)
1228 bytes[2] = '3'; bytes[3] = '0' + new_attr.color;
1232 bytes[2] = '9'; bytes[3] = '0' + (new_attr.color - 8);
1240 assert (new_attr.color >= 0 && new_attr.color < 88);
1248 if (new_attr.color >= 10)
1249 *p++ = '0' + (new_attr.color / 10);
1250 *p++ = '0' + (new_attr.color % 10);
1257 assert (new_attr.color >= 0 && new_attr.color < 256);
1265 if (new_attr.color >= 100)
1266 *p++ = '0' + (new_attr.color / 100);
1267 if (new_attr.color >= 10)
1268 *p++ = '0' + ((new_attr.color % 100) / 10);
1269 *p++ = '0' + (new_attr.color % 10);
1279 if (new_attr.bgcolor != old_attr.bgcolor
1280 || (cleared_attributes && new_attr.bgcolor != COLOR_DEFAULT))
1283 assert (new_attr.bgcolor != COLOR_DEFAULT);
1287 assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8);
1290 color_bgr (new_attr.bgcolor)),
1293 tputs (tparm (stream->set_background, new_attr.bgcolor),
1299 assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 8);
1303 bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor;
1310 assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 16);
1314 if (new_attr.bgcolor < 8)
1316 bytes[2] = '4'; bytes[3] = '0' + new_attr.bgcolor;
1324 bytes[4] = '0' + (new_attr.bgcolor - 8); bytes[5] = 'm';
1331 assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 88);
1339 if (new_attr.bgcolor >= 10)
1340 *p++ = '0' + (new_attr.bgcolor / 10);
1341 *p++ = '0' + (new_attr.bgcolor % 10);
1348 assert (new_attr.bgcolor >= 0 && new_attr.bgcolor < 256);
1356 if (new_attr.bgcolor >= 100)
1357 *p++ = '0' + (new_attr.bgcolor / 100);
1358 if (new_attr.bgcolor >= 10)
1359 *p++ = '0' + ((new_attr.bgcolor % 100) / 10);
1360 *p++ = '0' + (new_attr.bgcolor % 10);
1371 if (new_attr.weight != old_attr.weight
1372 || (cleared_attributes && new_attr.weight != WEIGHT_DEFAULT))
1375 assert (new_attr.weight != WEIGHT_DEFAULT);
1377 assert (new_attr.weight == WEIGHT_BOLD);
1380 if (new_attr.posture != old_attr.posture
1381 || (cleared_attributes && new_attr.posture != POSTURE_DEFAULT))
1384 assert (new_attr.posture != POSTURE_DEFAULT);
1386 assert (new_attr.posture == POSTURE_ITALIC);
1389 if (new_attr.underline != old_attr.underline
1390 || (cleared_attributes && new_attr.underline != UNDERLINE_DEFAULT))
1393 assert (new_attr.underline != UNDERLINE_DEFAULT);
1395 assert (new_attr.underline == UNDERLINE_ON);