[Pvfs2-cvs] commit by pw in pvfs2/src/common/statecomp: emalloc.c
stringtbl.c
CVS commit program
cvs at parl.clemson.edu
Mon May 28 18:09:09 EDT 2007
Update of /projects/cvsroot/pvfs2/src/common/statecomp
In directory parlweb1:/tmp/cvs-serv24605/src/common/statecomp
Removed Files:
emalloc.c stringtbl.c
Log Message:
Remove these unused files harder; they snuck back in with the WALT3 branch merge.
--- emalloc.c 2007-05-28 18:09:09.000000000 -0400
+++ /dev/null 2004-06-24 14:04:38.000000000 -0400
@@ -1,46 +0,0 @@
-/*
- * (C) 2001 Clemson University and The University of Chicago
- *
- * See COPYING in top-level directory.
- */
-
-/** \file
- * \ingroup statecomp
- *
- * Malloc function with error handling capability, used in statecomp.
- *
- * \todo Merge into statecomp.c or something.
- */
-
-#include <stdio.h>
-#include <stdlib.h>
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-
-void *emalloc(unsigned int size);
-
-/** error checking malloc routine
- */
-void *emalloc(unsigned int size)
-{
- void *p;
-
-
- if (!(p = malloc(size)))
- {
- fprintf(stderr,"no more dynamic storage - aborting\n");
- exit(1);
- }
-
- return(p);
-}
-
-/*
- * Local variables:
- * c-indent-level: 4
- * c-basic-offset: 4
- * End:
- *
- * vim: ts=8 sts=4 sw=4 expandtab
- */
--- stringtbl.c 2007-05-28 18:09:09.000000000 -0400
+++ /dev/null 2004-06-24 14:04:38.000000000 -0400
@@ -1,36 +0,0 @@
-/*
- * (C) 2001 Clemson University and The University of Chicago
- *
- * See COPYING in top-level directory.
- */
-
-/** \file
- * \ingroup statecomp
- *
- * String storage routine for statecomp.
- *
- * \todo Merge into statecomp.c.
- */
-
-#include <stdio.h>
-#include <string.h>
-
-void *emalloc(unsigned int size);
-char *enter_string(char *oldstring);
-
-char *enter_string(char *oldstring)
-{
- char *newstring;
- newstring = (char *)emalloc((unsigned)strlen(oldstring)+1);
- strcpy(newstring, oldstring);
- return newstring;
-}
-
-/*
- * Local variables:
- * c-indent-level: 4
- * c-basic-offset: 4
- * End:
- *
- * vim: ts=8 sts=4 sw=4 expandtab
- */
More information about the Pvfs2-cvs
mailing list