X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fmessage.h;h=e0c98cebf78da3f154cc57c01ebfea53fec895e0;hb=ad10c0fc07a3183f0a991b23d7523023baa9a098;hp=d994a369f8ef4411fe555de16268133831470a0b;hpb=72c9c6a2f92e94779b2e55d0726568090411871c;p=pspp diff --git a/src/libpspp/message.h b/src/libpspp/message.h index d994a369f8..e0c98cebf7 100644 --- a/src/libpspp/message.h +++ b/src/libpspp/message.h @@ -23,6 +23,7 @@ #include "libpspp/compiler.h" struct string; +struct substring; /* What kind of message is this? */ enum msg_category @@ -85,6 +86,8 @@ struct msg_point int column; }; +struct msg_point msg_point_advance (struct msg_point, struct substring); + /* Location of the cause of an error. */ struct msg_location { @@ -109,6 +112,11 @@ struct msg_location Both 'start' and 'end' are inclusive, line-wise and column-wise. */ struct msg_point start, end; + + /* Normally, 'start' and 'end' contain column information, then displaying + the message will underline the location. Setting this to true disables + displaying underlines. */ + bool omit_underlines; }; void msg_location_uninit (struct msg_location *);