add STACK_TRAP to track stack use on client, will seqfault if exceed limit to see where use is too high, doesn't work with pthread_create()

This commit is contained in:
toddouska
2013-06-03 14:56:37 -07:00
parent baa012b1d9
commit ae84982777
3 changed files with 46 additions and 1 deletions

View File

@@ -137,6 +137,13 @@
#define XGMTIME(c) gmtime((c))
#define XVALIDATE_DATE(d, f, t) ValidateDate((d), (f), (t))
#ifdef STACK_TRAP
/* for stack trap tracking, don't call os gmtime on OS X/linux,
uses a lot of stack spce */
extern time_t time(time_t * timer);
#define XTIME(tl) time((tl))
#endif /* STACK_TRAP */
#else
/* default */
/* uses complete <time.h> facility */