+2004-08-28 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
+
+ * error.c (gfc_error_init_1): Remove blank line in front of
+ function body. Add missing blank.
+ (gfc_buffer_error, error_char, error_string): Remove blank line in
+ front of function body.
+ (show_locus): Add comma in comment.
+ (gfc_clear_warning, gfc_warning_check, gfc_clear_error,
+ gfc_push_error, gfc_pop_error): Remove blank line in front of
+ function body.
+ (gfc_get_errors): Typo fix in comment in front of function. Remove
+ blank line in front of function body.
+
2004-08-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.h (gfc_default_*_kind): Remove prototypes, add extern
void
gfc_error_init_1 (void)
{
-
- terminal_width = gfc_terminal_width();
+ terminal_width = gfc_terminal_width ();
errors = 0;
warnings = 0;
buffer_flag = 0;
void
gfc_buffer_error (int flag)
{
-
buffer_flag = flag;
}
static void
error_char (char c)
{
-
if (buffer_flag)
{
if (use_warning_buffer)
static void
error_string (const char *p)
{
-
while (*p)
error_char (*p++);
}
-/* Show the file, where it was included and the source line give a
+/* Show the file, where it was included and the source line, give a
locus. Calls error_printf() recursively, but the recursion is at
most one level deep. */
void
gfc_clear_warning (void)
{
-
warning_buffer.flag = 0;
}
void
gfc_warning_check (void)
{
-
if (warning_buffer.flag)
{
warnings++;
void
gfc_clear_error (void)
{
-
error_buffer.flag = 0;
}
void
gfc_push_error (gfc_error_buf * err)
{
-
err->flag = error_buffer.flag;
if (error_buffer.flag)
strcpy (err->message, error_buffer.message);
void
gfc_pop_error (gfc_error_buf * err)
{
-
error_buffer.flag = err->flag;
if (error_buffer.flag)
strcpy (error_buffer.message, err->message);
}
-/* Report the number of warnings and errors that occored to the caller. */
+/* Report the number of warnings and errors that occured to the caller. */
void
gfc_get_errors (int *w, int *e)
{
-
if (w != NULL)
*w = warnings;
if (e != NULL)