| 1 |
– |
/* Copyright (c) 1990 Regents of the University of California */ |
| 2 |
– |
|
| 1 |
|
#ifndef lint |
| 2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
| 2 |
> |
static const char RCSid[] = "$Id$"; |
| 3 |
|
#endif |
| 6 |
– |
|
| 4 |
|
/* |
| 5 |
|
* Translator utilities |
| 6 |
|
* |
| 9 |
|
|
| 10 |
|
#include <stdio.h> |
| 11 |
|
|
| 12 |
+ |
#include <stdlib.h> |
| 13 |
+ |
|
| 14 |
|
#include "trans.h" |
| 15 |
|
|
| 16 |
|
|
| 88 |
|
if (idl->id == NULL) |
| 89 |
|
goto memerr; |
| 90 |
|
} else { /* grow old list */ |
| 91 |
< |
idl->id = (ID *)realloc((char *)idl->id,(idl->nids+1)*sizeof(ID)); |
| 91 |
> |
idl->id = (ID *)realloc((void *)idl->id,(idl->nids+1)*sizeof(ID)); |
| 92 |
|
if (idl->id == NULL) |
| 93 |
|
goto memerr; |
| 94 |
|
for (i = idl->nids; i > upper; i--) { |