aboutsummaryrefslogtreecommitdiff
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
commit19c1ef65d7309fbce692396866d54e7ede61e7dd (patch)
tree7a0e7c17558878d7d8468846030ab87cabf7914c /gdb/ada-lex.l
parentcc83d33996dbcc01826c424664eed56a903545c6 (diff)
downloadgdb-19c1ef65d7309fbce692396866d54e7ede61e7dd.zip
gdb-19c1ef65d7309fbce692396866d54e7ede61e7dd.tar.gz
gdb-19c1ef65d7309fbce692396866d54e7ede61e7dd.tar.bz2
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 ca0414c..a7ce816 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)