* 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.
+2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
+
+ 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.
+
2004-06-30 Mark Kettenis <kettenis@gnu.org>
* dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
%{
#include "defs.h"
-#include <string.h>
+#include "gdb_string.h"
#include <ctype.h>
#include "expression.h"
#include "value.h"
static void write_var_from_name (struct block *, struct name_info);
-static LONGEST
-convert_char_literal (struct type *, LONGEST);
+static LONGEST convert_char_literal (struct type *, LONGEST);
%}
%union
break;
case OP_STRING:
- (*pos) += 3
- + BYTES_TO_EXP_ELEM (longest_to_int (exp->elts[pc + 1].longconst) +
- 1);
+ (*pos) += 3
+ + BYTES_TO_EXP_ELEM (longest_to_int (exp->elts[pc + 1].longconst)
+ + 1);
break;
case TERNOP_SLICE:
names (e.g., XVE) are not included here. Currently, the possible suffixes
are given by either of the regular expression:
- (__[0-9]+)?\.[0-9]+ [nested subprogram suffix, on platforms such as Linux]
+ (__[0-9]+)?\.[0-9]+ [nested subprogram suffix, on platforms such
+ as GNU/Linux]
___[0-9]+ [nested subprogram suffix, on platforms such as HP/UX]
(X[nb]*)?((\$|__)[0-9](_?[0-9]+)|___(LJM|X([FDBUP].*|R[^T]?)))?$
*/
}
static int
-parse ()
+parse (void)
{
warnings_issued = 0;
return ada_parse ();
#define ADA_LANG_H 1
struct partial_symbol;
+struct frame_info;
#include "value.h"
#include "gdbtypes.h"
%%
#include <ctype.h>
-#include <string.h>
+#include "gdb_string.h"
/* Initialize the lexer for processing new expression */
void
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)
static void adjust_type_signedness (struct type *);
-static int ada_val_print_stub (PTR args0);
+static int ada_val_print_stub (void *args0);
static int ada_val_print_1 (struct type *, char *, int, CORE_ADDR,
struct ui_file *, int, int, int,
/* Helper for ada_val_print; used as argument to catch_errors to
unmarshal the arguments to ada_val_print_1, which does the work. */
static int
-ada_val_print_stub (PTR args0)
+ada_val_print_stub (void *args0)
{
struct ada_val_print_args *argsp = (struct ada_val_print_args *) args0;
return ada_val_print_1 (argsp->type, argsp->valaddr0,