|
[MinGW-cvs] utils/redir Makefile.am,1.1,1.2 redir.c,1.1,1.2
From: <jrfonseca@us...> - 2002-09-29 23:31
|
Update of /cvsroot/mingw/utils/redir
In directory usw-pr-cvs1:/tmp/cvs-serv25758/redir
Modified Files:
Makefile.am redir.c
Log Message:
Removed files which are autogenerated and shouldn't be in CVS.
Switched to the new versions of autotools.
Fixing to the #endif preprocessing symbols of dos2unix/unix2dos to make gcc happy.
Removed the dependency of libliberty from the redir source.
Index: Makefile.am
===================================================================
RCS file: /cvsroot/mingw/utils/redir/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Makefile.am 20 May 2002 20:49:29 -0000 1.1
--- Makefile.am 29 Sep 2002 23:31:47 -0000 1.2
***************
*** 1,3 ****
bin_PROGRAMS = redir
redir_SOURCES = redir.c
- redir_LDADD = -liberty
--- 1,3 ----
bin_PROGRAMS = redir
+
redir_SOURCES = redir.c
Index: redir.c
===================================================================
RCS file: /cvsroot/mingw/utils/redir/redir.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** redir.c 20 May 2002 20:49:30 -0000 1.1
--- redir.c 29 Sep 2002 23:31:47 -0000 1.2
***************
*** 23,26 ****
--- 23,27 ----
#include <process.h>
#include <stdio.h>
+ #include <stdlib.h>
#include <string.h>
***************
*** 31,36 ****
link with CRT_noglob.o! */
! extern void *xmalloc(size_t);
! extern void *xrealloc(void *, size_t);
int display_exit_code=0;
--- 32,69 ----
link with CRT_noglob.o! */
! void xmalloc_failed(size_t size)
! {
! fprintf(stderr, "Out of memory allocating %lu bytes\n", (unsigned long) size);
! exit(1);
! }
!
! void *xmalloc (size_t size)
! {
! void *newmem;
!
! if (size == 0)
! size = 1;
! newmem = malloc (size);
! if (!newmem)
! xmalloc_failed (size);
!
! return (newmem);
! }
!
! void *xrealloc(void *oldmem, size_t size)
! {
! void *newmem;
!
! if (size == 0)
! size = 1;
! if (!oldmem)
! newmem = malloc (size);
! else
! newmem = realloc (oldmem, size);
! if (!newmem)
! xmalloc_failed (size);
!
! return (newmem);
! }
int display_exit_code=0;
|
| Thread | Author | Date |
|---|---|---|
| [MinGW-cvs] utils/redir Makefile.am,1.1,1.2 redir.c,1.1,1.2 | <jrfonseca@us...> |