Back to index

lightning-sunbird  0.9+nobinonly
Defines
nsStringUtil.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NS_ALLOC_CHAR_BUF(aBuf, aSize, aActualSize)
#define NS_FREE_CHAR_BUF(aBuf)

Define Documentation

#define NS_ALLOC_CHAR_BUF (   aBuf,
  aSize,
  aActualSize 
)
Value:
int _ns_tmpActualSize = aActualSize;              \
  char _ns_smallBuffer[aSize];                      \
  char * const aBuf = _ns_tmpActualSize <= aSize ? _ns_smallBuffer : new char[_ns_tmpActualSize];

Definition at line 51 of file nsStringUtil.h.

#define NS_FREE_CHAR_BUF (   aBuf)
Value:
if (aBuf != _ns_smallBuffer) \
   delete[] aBuf;

Definition at line 56 of file nsStringUtil.h.