From 7501c4e45bd8e7ca6fc36d83dbc4b3ea1772fddc Mon Sep 17 00:00:00 2001 From: Roger Sayle Date: Sun, 15 Feb 2004 14:30:38 +0000 Subject: [PATCH] c-common.h (GET_DIRECTIVE_LINE): Remove unused macro. * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro. (get_directive_line): Remove unused function prototype. * f/lex.c (ffelex_get_directive_line): Provide a more descriptive comment. Remove reference to non-existant get_directive_line. From-SVN: r77850 --- gcc/ChangeLog | 5 +++++ gcc/c-common.h | 3 --- gcc/f/ChangeLog | 5 +++++ gcc/f/lex.c | 6 +++++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d960d6044a2..3887bbee413 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-02-15 Roger Sayle + + * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro. + (get_directive_line): Remove unused function prototype. + 2004-02-14 Josef Zlomek * tree-inline.c (copy_body_r): Do not replace ret_label. diff --git a/gcc/c-common.h b/gcc/c-common.h index 5529252f6c6..f409e7a3aa7 100644 --- a/gcc/c-common.h +++ b/gcc/c-common.h @@ -931,9 +931,6 @@ extern tree convert_and_check (tree, tree); extern void overflow_warning (tree); extern void unsigned_conversion_warning (tree, tree); -/* Read the rest of the current #-directive line. */ -extern char *get_directive_line (void); -#define GET_DIRECTIVE_LINE() get_directive_line () #define c_sizeof(T) c_sizeof_or_alignof_type (T, SIZEOF_EXPR, 1) #define c_alignof(T) c_sizeof_or_alignof_type (T, ALIGNOF_EXPR, 1) diff --git a/gcc/f/ChangeLog b/gcc/f/ChangeLog index 9893e5287bf..e0471707eee 100644 --- a/gcc/f/ChangeLog +++ b/gcc/f/ChangeLog @@ -1,3 +1,8 @@ +2004-02-15 Roger Sayle + + * lex.c (ffelex_get_directive_line): Provide a more descriptive + comment. Remove reference to non-existant get_directive_line. + 2004-02-15 Roger Sayle PR fortran/14129 diff --git a/gcc/f/lex.c b/gcc/f/lex.c index 8475d2ff2c3..9a38ad5b0bb 100644 --- a/gcc/f/lex.c +++ b/gcc/f/lex.c @@ -920,7 +920,11 @@ ffelex_finish_statement_ (void) } } -/* Copied from gcc/c-common.c get_directive_line. */ +/* Read a preprocessor directive line from file FINPUT. This function + returns either '\n' or EOF to indicate success or failure respectively. + Upon return, TEXT points to the contents of the line, which is stripped + of initial whitespace. The buffer pointed to by TEXT should not be + free'd and is overwritten by subsequent calls to this function. */ static int ffelex_get_directive_line_ (char **text, FILE *finput) -- 2.30.2