Accept 16-bit addresses.
[deliverable/binutils-gdb.git] / gdb / language.h
index 0ead9f8dba9716bca88780ace4b3908b000efebf..2f27cb120e3a5f9f7da103d7c6db4ffe9b5691e3 100644 (file)
@@ -1,5 +1,5 @@
 /* Source-language-related definitions for GDB.
-   Copyright 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1991, 1992, 2000 Free Software Foundation, Inc.
    Contributed by the Department of Computer Science at the State University
    of New York at Buffalo.
 
 #if !defined (LANGUAGE_H)
 #define LANGUAGE_H 1
 
-#ifdef __STDC__                        /* Forward decls for prototypes */
+/* Forward decls for prototypes */
 struct value;
 struct objfile;
 struct expression;
 /* enum exp_opcode;     ANSI's `wisdom' didn't include forward enum decls. */
-#endif
 
 /* This used to be included to configure GDB for one or more specific
    languages.  Now it is shortcutted to configure for all of them.  FIXME.  */
@@ -152,29 +151,31 @@ struct language_defn
     struct value *(*evaluate_exp) PARAMS ((struct type *, struct expression *,
                                           int *, enum noside));
 
-    void (*la_printchar) PARAMS ((int ch, GDB_FILE * stream));
+    void (*la_printchar) (int ch, struct ui_file * stream);
 
-    void (*la_printstr) PARAMS ((GDB_FILE * stream, char *string,
-                                unsigned int length, int width,
-                                int force_ellipses));
+    void (*la_printstr) (struct ui_file * stream, char *string,
+                        unsigned int length, int width,
+                        int force_ellipses);
 
-    void (*la_emitchar) PARAMS ((int ch, GDB_FILE * stream, int quoter));
+    void (*la_emitchar) (int ch, struct ui_file * stream, int quoter);
 
     struct type *(*la_fund_type) PARAMS ((struct objfile *, int));
 
     /* Print a type using syntax appropriate for this language. */
 
-    void (*la_print_type) PARAMS ((struct type *, char *, GDB_FILE *, int, int));
+    void (*la_print_type) (struct type *, char *, struct ui_file *, int,
+                          int);
 
     /* Print a value using syntax appropriate for this language. */
 
-    int (*la_val_print) PARAMS ((struct type *, char *, int, CORE_ADDR, GDB_FILE *,
-                                int, int, int, enum val_prettyprint));
+    int (*la_val_print) (struct type *, char *, int, CORE_ADDR,
+                        struct ui_file *, int, int, int,
+                        enum val_prettyprint);
 
     /* Print a top-level value using syntax appropriate for this language. */
 
-    int (*la_value_print) PARAMS ((struct value *, GDB_FILE *,
-                                  int, enum val_prettyprint));
+    int (*la_value_print) (struct value *, struct ui_file *,
+                          int, enum val_prettyprint);
 
     /* Base 2 (binary) formats. */
 
@@ -361,16 +362,28 @@ extern char *
 extern char *
   local_hex_format_custom PARAMS ((char *));   /* language.c */
 
+/* Return a string that contains the hex digits of the number.  No preceeding
+   "0x" */
+
+extern char *
+  longest_raw_hex_string PARAMS ((LONGEST));
+
 /* Return a string that contains a number formatted in one of the local
    (language-specific) formats.  Result is static and is overwritten by
-   the next call.  Takes printf options like "08" or "l".  */
+   the next call.  Takes printf options like "08l" or "l".  */
 
 extern char *
   local_hex_string PARAMS ((unsigned long));   /* language.c */
 
+extern char *
+  longest_local_hex_string PARAMS ((LONGEST)); /* language.c */
+
 extern char *
   local_hex_string_custom PARAMS ((unsigned long, char *));    /* language.c */
 
+extern char *
+  longest_local_hex_string_custom PARAMS ((LONGEST, char *));  /* language.c */
+
 /* Type predicates */
 
 extern int
This page took 0.025165 seconds and 4 git commands to generate.