X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_cstring.hpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_cstring.hpp;h=0000000000000000000000000000000000000000;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hp=8e3e94a62ae2a3189da994391285d6045d8c4700;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36;p=chaz%2Fyoink diff --git a/src/stlplus/persistence/persistent_cstring.hpp b/src/stlplus/persistence/persistent_cstring.hpp deleted file mode 100644 index 8e3e94a..0000000 --- a/src/stlplus/persistence/persistent_cstring.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef STLPLUS_PERSISTENT_CSTRING -#define STLPLUS_PERSISTENT_CSTRING -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -// Persistence of C-style char* strings - -// These are handled differently to other pointer types - -// Warning! This means that pointers to char cannot be supported, since there -// is no type difference between a pointer to char and a C-style array of char. - -// Warning! The restore deletes any old value of the data parameter and -// allocates a new char* which is (just) big enough and assigns it to the data -// field. This is because there is no way of knowing how long a char* is so -// the passed parameter is not safe to use. The allocation is done using -// standard new. If the data field is non-null on entry it will be deleted by -// standard delete. Best to make it null in the first place. - -//////////////////////////////////////////////////////////////////////////////// - -#include "persistence_fixes.hpp" -#include "persistent_contexts.hpp" - -//////////////////////////////////////////////////////////////////////////////// - -namespace stlplus -{ - - void dump_cstring(dump_context&, const char* data) throw(persistent_dump_failed); - void restore_cstring(restore_context&, char*& data) throw(persistent_restore_failed); - -} // end namespace stlplus - - //////////////////////////////////////////////////////////////////////////////// -#endif