Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/gas/hash.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* hash.c -- gas hash table code
    22   Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999,
    3    2000
     3   2000, 2001, 2002
    44   Free Software Foundation, Inc.
    55
     
    3131
    3232#include "as.h"
     33#include "safe-ctype.h"
    3334#include "obstack.h"
    3435
     
    460461      gets (answer);
    461462      command = answer[0];
    462       if (isupper (command))
    463         command = tolower (command);    /* Ecch!  */
     463      command = TOLOWER (command);      /* Ecch!  */
    464464      switch (command)
    465465        {
     
    548548     char *description;
    549549{
    550   char *retval;
    551   char *malloc ();
    552 
    553550  printf ("   %s : ", description);
    554551  gets (answer);
    555   /* Will one day clean up answer here.  */
    556   retval = malloc (strlen (answer) + 1);
    557   if (!retval)
    558     {
    559       error ("room");
    560     }
    561   (void) strcpy (retval, answer);
    562   return (retval);
     552  return xstrdup (answer);
    563553}
    564554
Note: See TracChangeset for help on using the changeset viewer.