Commit 91800747 by Graham Stott Committed by Graham Stott

xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.


        * xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
        (PALLOC): Uppercase macro parameter and whitespace.
        (SALLOC): Uppercase macro parameter.
        (SFREE): Uppercase macros parameter, add parenthese and
        whitespace.
        (STREQL): Uppercase macro parameter and whitespace.
        (STRNEQ): Likewise.
        (STRLSS): Likewise.
        (STRLEQ): Likewise.
        (STRGTR): Likewise.
        (STRGEQ): Likewise.

From-SVN: r48633
parent a8086abf
2002-01-08 Graham Stott <grahams@redhat.com>
* xref.c (FILE_NAME_ABSOLUTE_P): Add parenthesis.
(PALLOC): Uppercase macro parameter and whitespace.
(SALLOC): Uppercase macro parameter.
(SFREE): Uppercase macros parameter, add parenthese and
whitespace.
(STREQL): Uppercase macro parameter and whitespace.
(STRNEQ): Likewise.
(STRLSS): Likewise.
(STRLEQ): Likewise.
(STRGTR): Likewise.
(STRGEQ): Likewise.
* call.c (convert_like): Add parenthesis and wrap.
(convert_like_with_context): Likewise.
(ICS_RANK): Whitespace.
(NEED_TEMPORARY_P): Remove parenthesis.
* class.c (VTT_TOP_LEVEL_P): Uppercase macro parameter and
whitespace.
(VTT_MARKED_BINFO_P): Likewise.
* decl.c (BINDING_LEVEL): Add parenthesis.
(DEF_OPERATOR): Likewise.
* errors.c (print_scope_operator): Add parenthesis.
(print_left_paren): Likewise.
(print_right_paren): Likewise.
(print_left_bracket): Likewise.
(print_right_bracket): Likewise.
(print_template_argument_list_start): Likewise.
(print_template_argument_list_end): Likewise.
(print_non_consecutive_character): Likewise.
(print_tree_identifier): Likewise.
(print_identifier): Likewise.
(NEXT_CODE): Uppercase macro parameter.
(ident_fndecl): Delete unused.
(GLOBAL_THING): Likewise.
* mangle.c (MANGLE_TRACE): Add parenthesis.
(MANGLE_TRACE_TREE): Likewise.
(write_signed_number): Likewise.
(write_unsigned_number): Likewise.
* pt.c (ccat): Uppercase macro parameter.
(cat): Likewise
* search.c (SET_BINFO_ACCESS): Add parenthesis.
2002-01-07 Jason Merrill <jason@redhat.com> 2002-01-07 Jason Merrill <jason@redhat.com>
* decl2.c (coerce_new_type): Downgrade error for size_t mismatch * decl2.c (coerce_new_type): Downgrade error for size_t mismatch
......
/* Code for handling XREF output from GNU C++. /* Code for handling XREF output from GNU C++.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2000 Free Software Foundation, Inc. 2000, 2002 Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@cygnus.com) Contributed by Michael Tiemann (tiemann@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -37,7 +37,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -37,7 +37,7 @@ Boston, MA 02111-1307, USA. */
/* Nonzero if NAME as a file name is absolute. */ /* Nonzero if NAME as a file name is absolute. */
#ifndef FILE_NAME_ABSOLUTE_P #ifndef FILE_NAME_ABSOLUTE_P
#define FILE_NAME_ABSOLUTE_P(NAME) (NAME[0] == '/') #define FILE_NAME_ABSOLUTE_P(NAME) ((NAME)[0] == '/')
#endif #endif
/* For cross referencing. */ /* For cross referencing. */
...@@ -57,19 +57,19 @@ int flag_gnu_xref; ...@@ -57,19 +57,19 @@ int flag_gnu_xref;
#define FALSE 0 #define FALSE 0
#endif #endif
#define PALLOC(typ) ((typ *) xcalloc(1,sizeof(typ))) #define PALLOC(TYP) ((TYP *) xcalloc (1, sizeof (TYP)))
/* Return a malloc'd copy of STR. */ /* Return a malloc'd copy of STR. */
#define SALLOC(str) ((char *) ((str) == NULL ? NULL : xstrdup (str))) #define SALLOC(STR) ((char *) ((STR) == NULL ? NULL : xstrdup (STR)))
#define SFREE(str) (str != NULL && (free(str),0)) #define SFREE(STR) ((STR) != NULL && (free (STR), 0))
#define STREQL(s1,s2) (strcmp((s1),(s2)) == 0) #define STREQL(S1,S2) (strcmp ((S1), (S2)) == 0)
#define STRNEQ(s1,s2) (strcmp((s1),(s2)) != 0) #define STRNEQ(S1,S2) (strcmp ((S1), (S2)) != 0)
#define STRLSS(s1,s2) (strcmp((s1),(s2)) < 0) #define STRLSS(S1,S2) (strcmp ((S1), (S2)) < 0)
#define STRLEQ(s1,s2) (strcmp((s1),(s2)) <= 0) #define STRLEQ(S1,S2) (strcmp ((S1), (S2)) <= 0)
#define STRGTR(s1,s2) (strcmp((s1),(s2)) > 0) #define STRGTR(S1,S2) (strcmp ((S1), (S2)) > 0)
#define STRGEQ(s1,s2) (strcmp((s1),(s2)) >= 0) #define STRGEQ(S1,S2) (strcmp ((S1), (S2)) >= 0)
/************************************************************************/ /************************************************************************/
/* */ /* */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment