Commit 1b735d01 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Remove now unused replacements.

parent 4249c532
......@@ -290,8 +290,6 @@ src/pio_util.c -text
src/pio_util.h -text
src/pkgconfig/cdi.pc.in -text
src/pkgconfig/cdipio.pc.in -text
src/proprietarySystemWorkarounds.c -text
src/proprietarySystemWorkarounds.h -text
src/referenceCounting.c -text
src/referenceCounting.h -text
src/resource_handle.c -text
......
......@@ -67,8 +67,6 @@ libcdi_la_SOURCES = \
namespace.h \
serialize.h \
serialize.c \
proprietarySystemWorkarounds.c \
proprietarySystemWorkarounds.h \
referenceCounting.c \
referenceCounting.h \
resource_handle.c\
......
......@@ -176,7 +176,6 @@ am__libcdi_la_SOURCES_DIST = basetime.c basetime.h binary.c binary.h \
gribapi_utilities.h grid.c grid.h ieg.h ieglib.c input_file.c \
input_file.h institution.c institution.h model.c model.h \
namespace.c namespace.h serialize.h serialize.c \
proprietarySystemWorkarounds.c proprietarySystemWorkarounds.h \
referenceCounting.c referenceCounting.h resource_handle.c \
resource_handle.h service.h servicelib.c stream_cdf.c \
stream_cdf.h stream_cgribex.c stream_cgribex.h stream_ext.c \
......@@ -198,9 +197,8 @@ am_libcdi_la_OBJECTS = basetime.lo binary.lo calendar.lo cdf.lo \
extralib.lo file.lo gaussgrid.lo gribapi.lo \
gribapi_utilities.lo grid.lo ieglib.lo input_file.lo \
institution.lo model.lo namespace.lo serialize.lo \
proprietarySystemWorkarounds.lo referenceCounting.lo \
resource_handle.lo servicelib.lo stream_cdf.lo \
stream_cgribex.lo stream_ext.lo stream_grb.lo \
referenceCounting.lo resource_handle.lo servicelib.lo \
stream_cdf.lo stream_cgribex.lo stream_ext.lo stream_grb.lo \
stream_gribapi.lo stream_history.lo stream_ieg.lo \
stream_fcommon.lo cdi_int.lo stream_record.lo stream_srv.lo \
stream_var.lo table.lo taxis.lo timebase.lo tsteps.lo util.lo \
......@@ -504,19 +502,18 @@ libcdi_la_SOURCES = basetime.c basetime.h binary.c binary.h calendar.c \
gribapi.c gribapi.h gribapi_utilities.c gribapi_utilities.h \
grid.c grid.h ieg.h ieglib.c input_file.c input_file.h \
institution.c institution.h model.c model.h namespace.c \
namespace.h serialize.h serialize.c \
proprietarySystemWorkarounds.c proprietarySystemWorkarounds.h \
referenceCounting.c referenceCounting.h resource_handle.c \
resource_handle.h service.h servicelib.c stream_cdf.c \
stream_cdf.h stream_cgribex.c stream_cgribex.h stream_ext.c \
stream_ext.h stream_grb.c stream_grb.h stream_gribapi.c \
stream_gribapi.h stream_history.c stream_ieg.c stream_ieg.h \
stream_fcommon.c stream_fcommon.h cdi_int.c cdi_int.h \
stream_record.c stream_srv.c stream_srv.h stream_var.c swap.h \
table.c table.h tablepar.h taxis.c taxis.h timebase.c \
timebase.h tsteps.c util.c varscan.c varscan.h version.c \
vlist.c vlist.h vlist_att.c vlist_att.h vlist_var.c \
vlist_var.h zaxis.c zaxis.h stream.c swap.c $(am__append_2)
namespace.h serialize.h serialize.c referenceCounting.c \
referenceCounting.h resource_handle.c resource_handle.h \
service.h servicelib.c stream_cdf.c stream_cdf.h \
stream_cgribex.c stream_cgribex.h stream_ext.c stream_ext.h \
stream_grb.c stream_grb.h stream_gribapi.c stream_gribapi.h \
stream_history.c stream_ieg.c stream_ieg.h stream_fcommon.c \
stream_fcommon.h cdi_int.c cdi_int.h stream_record.c \
stream_srv.c stream_srv.h stream_var.c swap.h table.c table.h \
tablepar.h taxis.c taxis.h timebase.c timebase.h tsteps.c \
util.c varscan.c varscan.h version.c vlist.c vlist.h \
vlist_att.c vlist_att.h vlist_var.c vlist_var.h zaxis.c \
zaxis.h stream.c swap.c $(am__append_2)
libcdiresunpack_la_SOURCES = \
resource_unpack.c
......@@ -721,7 +718,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pio_serialize.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pio_server.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pio_util.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/proprietarySystemWorkarounds.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/referenceCounting.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource_handle.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/resource_unpack.Plo@am__quote@
......
......@@ -116,7 +116,6 @@ files="basetime.c \
iterator_grib.c \
model.c \
namespace.c \
proprietarySystemWorkarounds.c \
referenceCounting.c \
resource_handle.c \
serialize.c \
......
#include "proprietarySystemWorkarounds.h"
#include "dmemory.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>
#include <errno.h>
char* myStrDup(const char* string)
{
char* result = xmalloc(strlen(string) + 1);
if(result)
{
strcpy(result, string);
}
else
{
errno = ENOMEM;
}
return result;
}
char* myAsprintf(char* format, ...)
{
va_list args;
int size = 64;
char *buffer = xmalloc(size);
int nchars;
//Try to print in the allocated space.
va_start(args, format);
nchars = vsnprintf(buffer, size, format, args);
va_end(args);
if (nchars >= size)
{
//Reallocate buffer now that we know how much space is needed.
size = nchars + 1;
buffer = xrealloc(buffer, size);
va_start(args, format);
vsnprintf(buffer, size, format, args);
va_end(args);
}
return buffer;
}
#ifndef INCLUDE_GUARD_CDI_PROPRIETARY_SYSTEM_WORKAROUNDS_H
#define INCLUDE_GUARD_CDI_PROPRIETARY_SYSTEM_WORKAROUNDS_H
char* myStrDup(const char* string); //This exactly implements the standardized behavior of strdup().
char* myAsprintf(char* format, ...) __attribute__((format(printf, 1, 2))); //This implementation differs from standard asprintf() function in the way the resulting string pointer is returned.
#endif
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment