Changeset 609 for branches/GNU/src/binutils/gas/hash.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/gas/hash.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* hash.c -- gas hash table code 2 2 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 3 2000 3 2000, 2001, 2002 4 4 Free Software Foundation, Inc. 5 5 … … 31 31 32 32 #include "as.h" 33 #include "safe-ctype.h" 33 34 #include "obstack.h" 34 35 … … 460 461 gets (answer); 461 462 command = answer[0]; 462 if (isupper (command)) 463 command = tolower (command); /* Ecch! */ 463 command = TOLOWER (command); /* Ecch! */ 464 464 switch (command) 465 465 { … … 548 548 char *description; 549 549 { 550 char *retval;551 char *malloc ();552 553 550 printf (" %s : ", description); 554 551 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); 563 553 } 564 554 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.