* values.c, value.h: New functions value_{headof,from_vtable_info}.
[deliverable/binutils-gdb.git] / ld / ldmisc.c
index d3671c85db9df2635ec485e7caf0b3dee8b9eeae..9ae7515c1e1630bf32590c98c9f58e917936b127 100644 (file)
@@ -32,7 +32,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "ld.h"
 #include "ldmisc.h"
 #include "ldlang.h"
-
+#include "ldlex.h"
 /* IMPORTS */
 
 extern char *program_name;
@@ -93,7 +93,7 @@ va_dcl
          if (symbol) {
            asection *section = symbol->section;
            if ((symbol->flags & BSF_UNDEFINED) == 0) {
-             char *section_name = section == (asection *)NULL ?
+           CONST char *section_name = section == (asection *)NULL ?
                "absolute" : section->name;
              fprintf(stderr,"%s (%s)", symbol->name, section_name);
            }
@@ -156,21 +156,21 @@ va_dcl
        else {
          int ch;
          int n = 0;
-         fprintf(stderr,"command (before <");
+         fprintf(stderr,"command (just before \"");
          ch = lex_input();
          while (ch != 0 && n < 10) {
            fprintf(stderr, "%c", ch);
            ch = lex_input();
            n++;
          }
-         fprintf(stderr,")");
+         fprintf(stderr,"\")");
            
        }
        break;
       case 'C':
        {
-         char *filename;
-         char *functionname;
+        CONST char *filename;
+        CONST char *functionname;
          unsigned int linenumber;
          bfd *abfd = va_arg(arg, bfd *);
          asection *section = va_arg(arg, asection *);
@@ -235,8 +235,10 @@ unsigned int line;
    whose contents concatenate those of S1, S2, S3.  */
 
 char *
-concat (s1, s2, s3)
-     char *s1, *s2, *s3;
+DEFUN(concat, (s1, s2, s3),
+      CONST char *s1 AND
+      CONST char *s2 AND
+      CONST char *s3)
 {
   size_t len1 = strlen (s1);
   size_t len2 = strlen (s2);
@@ -269,8 +271,8 @@ size_t size;
 
 
 
-char *buystring(x)
-char *x;
+char *DEFUN(buystring,(x),
+           CONST char *CONST x)
 {
   size_t  l = strlen(x)+1;
   char *r = ldmalloc(l);
This page took 0.024008 seconds and 4 git commands to generate.