278 }
279 if (is_ccstr()) {
280 const char* cp = get_ccstr();
281 if (cp != NULL) {
282 const char* eol;
283 while ((eol = strchr(cp, '\n')) != NULL) {
284 char format_buffer[FORMAT_BUFFER_LEN];
285 size_t llen = pointer_delta(eol, cp, sizeof(char));
286 jio_snprintf(format_buffer, FORMAT_BUFFER_LEN,
287 "%%." SIZE_FORMAT "s", llen);
288 st->print(format_buffer, cp);
289 st->cr();
290 cp = eol+1;
291 st->print("%5s %-35s += ", "", _name);
292 }
293 st->print("%-16s", cp);
294 }
295 else st->print("%-16s", "");
296 }
297
298 st->print("%-20");
299 print_kind(st);
300
301 if (withComments) {
302 #ifndef PRODUCT
303 st->print("%s", _doc);
304 #endif
305 }
306 st->cr();
307 }
308
309 void Flag::print_kind(outputStream* st) {
310 struct Data {
311 int flag;
312 const char* name;
313 };
314
315 Data data[] = {
316 { KIND_C1, "C1" },
317 { KIND_C2, "C2" },
318 { KIND_ARCH, "ARCH" },
|
278 }
279 if (is_ccstr()) {
280 const char* cp = get_ccstr();
281 if (cp != NULL) {
282 const char* eol;
283 while ((eol = strchr(cp, '\n')) != NULL) {
284 char format_buffer[FORMAT_BUFFER_LEN];
285 size_t llen = pointer_delta(eol, cp, sizeof(char));
286 jio_snprintf(format_buffer, FORMAT_BUFFER_LEN,
287 "%%." SIZE_FORMAT "s", llen);
288 st->print(format_buffer, cp);
289 st->cr();
290 cp = eol+1;
291 st->print("%5s %-35s += ", "", _name);
292 }
293 st->print("%-16s", cp);
294 }
295 else st->print("%-16s", "");
296 }
297
298 st->print("%-20s", " ");
299 print_kind(st);
300
301 if (withComments) {
302 #ifndef PRODUCT
303 st->print("%s", _doc);
304 #endif
305 }
306 st->cr();
307 }
308
309 void Flag::print_kind(outputStream* st) {
310 struct Data {
311 int flag;
312 const char* name;
313 };
314
315 Data data[] = {
316 { KIND_C1, "C1" },
317 { KIND_C2, "C2" },
318 { KIND_ARCH, "ARCH" },
|