diff options
author | rws <empty> | 1994-03-30 16:42:39 +0000 |
---|---|---|
committer | rws <empty> | 1994-03-30 16:42:39 +0000 |
commit | 49004641e5f9038ef47e67e4f7e302d6a0b1ee4f (patch) | |
tree | b4b066b3d39aeffca6d23af651d2847a06d9f2a1 /xc/lib/XIE | |
parent | 29f462587443e823e5b42df07720d80f4e718c95 (diff) |
change XREAD_INTO_SCRATCH to use _XAllocTemp for MT safeness,
define FINISH_WITH_SCRATCH to mark end of use for it
Diffstat (limited to 'xc/lib/XIE')
-rw-r--r-- | xc/lib/XIE/XIElibint.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xc/lib/XIE/XIElibint.h b/xc/lib/XIE/XIElibint.h index b234e6e00..a0b8ec480 100644 --- a/xc/lib/XIE/XIElibint.h +++ b/xc/lib/XIE/XIElibint.h @@ -1,4 +1,4 @@ -/* $XConsortium: XIElibint.h,v 1.3 93/10/28 15:23:15 rws Exp $ */ +/* $XConsortium: XIElibint.h,v 1.4 94/03/18 10:29:54 mor Exp $ */ /****************************************************************************** Copyright 1993 by the Massachusetts Institute of Technology, @@ -262,9 +262,11 @@ typedef struct _XieTechFuncRec { */ #define XREAD_INTO_SCRATCH(_display, _pBuf, _numBytes) \ - _pBuf = (char *) _XAllocScratch (_display, _numBytes); \ + _pBuf = (char *) _XAllocTemp (_display, _numBytes); \ _XRead (_display, _pBuf, _numBytes); +#define FINISH_WITH_SCRATCH(_display, _pBuf, _numBytes) \ + _XFreeTemp (_display, _pBuf, _numBytes); /* |