Mercurial > noffle
view src/dynamicstring.h @ 167:7ba337dafb2c noffle
[svn] * TODO,content.c,lock.c,server.c,server.h: Remove bug notice re:
need to do a Cont_write on Lock_closeDatabases in case of unwritten
content changes when releasing the lock. Update content to keep dirty
flag and avoid unnecessary writes, and lock to signal server to re-read
its group content info after the lock is released. Do NOT write content
info on Lock_close if dirty, as the placeholder article in unsubscribed
groups is currently done by adding it to the content when joining the
group and deliberately not saving it unless another content modification
takes place and thus causes the content to be saved.
author | bears |
---|---|
date | Sun, 25 Feb 2001 23:29:50 +0000 |
parents | e612b263934f |
children |
line wrap: on
line source
/* dynamicstring.h String utilities $Id: dynamicstring.h 65 2000-05-12 16:52:41Z enz $ */ #ifndef DYNAMICSTRING_H #define DYNAMICSTRING_H #if HAVE_CONFIG_H #include <config.h> #endif #include <sys/types.h> /* A dynamically growing string */ struct DynStr; typedef struct DynStr DynStr; /* Create new DynStr with given capacity */ DynStr * new_DynStr( int reserve ); /* Delete DynStr */ void del_DynStr( DynStr *self ); /* Return DynStr's length */ int DynStr_len( const DynStr *self ); /* Return DynStr's content ptr */ const char * DynStr_str( const DynStr *self ); /* append C-string to DynStr */ void DynStr_app( DynStr *self, const char *s ); /* append a DynStr to DynStr */ void DynStr_appDynStr( DynStr *self, const DynStr *s ); /* Append C-string + newline to DynStr */ void DynStr_appLn( DynStr *self, const char *s ); /* Append a maximum of n characters from C-string s to DynStr self */ void DynStr_appN( DynStr *self, const char *s, int n ); /* Truncate content of DynString to zero length */ void DynStr_clear( DynStr *self ); #endif