summaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
diff options
context:
space:
mode:
authorPaul N. Hilfinger <hilfinger@adacore.com>2004-07-01 10:11:11 +0000
committerPaul N. Hilfinger <hilfinger@adacore.com>2004-07-01 10:11:11 +0000
commit3b455754646cc4398a46e60b7a9079bb0955b077 (patch)
tree9ffacfa57d95e6895c2eb70f261555ef74493437 /gdb/ada-lex.l
parent93ee0dfb53306c906e824226a0f32d830418da70 (diff)
downloadgdb-3b455754646cc4398a46e60b7a9079bb0955b077.tar.gz
Address complaints from gdb_ari.sh:
* ada-exp.y: Include gdb_string.h rather than string.h. (convert_char_literal): Reformat declaration. * ada-lang.h: Include opaque struct declaration for struct frame_info. * ada-lex.l: Change use of free to xfree (the macro would do so anyway, but this is harmless). Include gdb_string.h rather than string.h. * ada-valprint.c (ada_val_print_stub): Change PTR => void*. * ada-lang.c (parse): Remove K&Rism in parameter list. (is_name_suffix): Correct Linux => GNU/Linux in comment.
Diffstat (limited to 'gdb/ada-lex.l')
-rw-r--r--gdb/ada-lex.l4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lex.l b/gdb/ada-lex.l
index ca0414c501f..a7ce81639aa 100644
--- a/gdb/ada-lex.l
+++ b/gdb/ada-lex.l
@@ -331,7 +331,7 @@ xor { return XOR; }
%%
#include <ctype.h>
-#include <string.h>
+#include "gdb_string.h"
/* Initialize the lexer for processing new expression */
void
@@ -724,7 +724,7 @@ name_lookup (char *name0, char *err_name, int *token_type, int depth)
strlen (renaming) + len0
- yylval.ssym.stoken.length + 1);
strcpy (new_name, renaming);
- free (renaming);
+ xfree (renaming);
strcat (new_name, name0 + yylval.ssym.stoken.length);
result = name_lookup (new_name, err_name, token_type, depth - 1);
if (result > segments)