comparison libiberty/cp-demint.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
comparison
equal deleted inserted replaced
131:84e7813d76e9 145:1830386684a0
1 /* Demangler component interface functions. 1 /* Demangler component interface functions.
2 Copyright (C) 2004-2018 Free Software Foundation, Inc. 2 Copyright (C) 2004-2020 Free Software Foundation, Inc.
3 Written by Ian Lance Taylor <ian@wasabisystems.com>. 3 Written by Ian Lance Taylor <ian@wasabisystems.com>.
4 4
5 This file is part of the libiberty library, which is part of GCC. 5 This file is part of the libiberty library, which is part of GCC.
6 6
7 This file is free software; you can redistribute it and/or modify 7 This file is free software; you can redistribute it and/or modify
123 123
124 p->type = type; 124 p->type = type;
125 p->u.s_binary.left = left; 125 p->u.s_binary.left = left;
126 p->u.s_binary.right = right; 126 p->u.s_binary.right = right;
127 p->d_printing = 0; 127 p->d_printing = 0;
128 p->d_counting = 0;
128 129
129 return 1; 130 return 1;
130 } 131 }
131 132
132 /* Fill in a DEMANGLE_COMPONENT_BUILTIN_TYPE. */ 133 /* Fill in a DEMANGLE_COMPONENT_BUILTIN_TYPE. */
147 && strcmp (type_name, cplus_demangle_builtin_types[i].name) == 0) 148 && strcmp (type_name, cplus_demangle_builtin_types[i].name) == 0)
148 { 149 {
149 p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE; 150 p->type = DEMANGLE_COMPONENT_BUILTIN_TYPE;
150 p->u.s_builtin.type = &cplus_demangle_builtin_types[i]; 151 p->u.s_builtin.type = &cplus_demangle_builtin_types[i];
151 p->d_printing = 0; 152 p->d_printing = 0;
153 p->d_counting = 0;
152 return 1; 154 return 1;
153 } 155 }
154 } 156 }
155 return 0; 157 return 0;
156 } 158 }
174 && strcmp (opname, cplus_demangle_operators[i].name) == 0) 176 && strcmp (opname, cplus_demangle_operators[i].name) == 0)
175 { 177 {
176 p->type = DEMANGLE_COMPONENT_OPERATOR; 178 p->type = DEMANGLE_COMPONENT_OPERATOR;
177 p->u.s_operator.op = &cplus_demangle_operators[i]; 179 p->u.s_operator.op = &cplus_demangle_operators[i];
178 p->d_printing = 0; 180 p->d_printing = 0;
181 p->d_counting = 0;
179 return 1; 182 return 1;
180 } 183 }
181 } 184 }
182 return 0; 185 return 0;
183 } 186 }