X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fmessage.h;h=7c1110175e052a4ad4ebf3de6475561647772c38;hb=7d34380bb2fddca820a6f414564738cc2f70afc9;hp=e1fc4f5aab1235459b075ddf92e2c704c4561d62;hpb=ddb7b52128d8f1f54d9632dc3a15c7869e0fbcce;p=pspp diff --git a/src/libpspp/message.h b/src/libpspp/message.h index e1fc4f5aab..7c1110175e 100644 --- a/src/libpspp/message.h +++ b/src/libpspp/message.h @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. - Copyright (C) 1997-9, 2000, 2006 Free Software Foundation, Inc. + Copyright (C) 1997-9, 2000, 2006, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -70,8 +70,10 @@ msg_class_from_category_and_severity (enum msg_category category, /* A file location. */ struct msg_locator { - char *file_name; /* File name. */ - int line_number; /* Line number. */ + char *file_name; /* File name (NULL if none). */ + int line_number; /* Line number (0 if none). */ + int first_column; /* 1-based column number (0 if none). */ + int last_column; /* 1-based exclusive last column (0 if none). */ }; /* A message. */ @@ -108,8 +110,14 @@ void msg_disable (void); void msg_push_msg_locator (const struct msg_locator *); void msg_pop_msg_locator (const struct msg_locator *); +bool msg_ui_too_many_errors (void); +void msg_ui_reset_counts (void); +bool msg_ui_any_errors (void); +void msg_ui_disable_warnings (bool); + /* Used in panic situations only. */ void request_bug_report_and_abort (const char *msg) NO_RETURN; + #endif /* message.h */