[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lib-src/yow.c
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lib-src/yow.c |
Date: |
Sat, 15 Feb 2003 05:52:52 -0500 |
Index: emacs/lib-src/yow.c
diff -c emacs/lib-src/yow.c:1.17 emacs/lib-src/yow.c:1.18
*** emacs/lib-src/yow.c:1.17 Tue Feb 4 09:06:56 2003
--- emacs/lib-src/yow.c Sat Feb 15 05:52:52 2003
***************
*** 50,59 ****
&res;})
#endif
- #ifndef HAVE_STDLIB_H
- char *malloc __P ((size_t size))), *realloc __P ((POINTER_TYPE *ptr, size_t
size));
- #endif
-
void yow();
void setup_yow();
--- 50,55 ----
***************
*** 158,164 ****
}
bufsize = BUFSIZE;
! buf = malloc(bufsize);
if (buf == (char *)0) {
fprintf(stderr, "yow: virtual memory exhausted\n");
exit (3);
--- 154,160 ----
}
bufsize = BUFSIZE;
! buf = (char *) malloc(bufsize);
if (buf == (char *)0) {
fprintf(stderr, "yow: virtual memory exhausted\n");
exit (3);
***************
*** 171,177 ****
if (i == bufsize-1) {
/* Yow! Is this quotation too long yet? */
bufsize *= 2;
! buf = realloc(buf, bufsize);
if (buf == (char *)0) {
fprintf(stderr, "yow: virtual memory exhausted\n");
exit (3);
--- 167,173 ----
if (i == bufsize-1) {
/* Yow! Is this quotation too long yet? */
bufsize *= 2;
! buf = (char *) realloc(buf, bufsize);
if (buf == (char *)0) {
fprintf(stderr, "yow: virtual memory exhausted\n");
exit (3);