Home
last modified time | relevance | path

Searched refs:sstrnleft (Results 1 – 2 of 2) sorted by relevance

/system/core/sh/
Dmemalloc.h47 extern int sstrnleft;
67 #define STARTSTACKSTR(p) p = stackblock(), sstrnleft = stackblocksize()
68 #define STPUTC(c, p) (--sstrnleft >= 0? (*p++ = (c)) : (p = growstackstr(), *p++ = (c)))
69 #define CHECKSTRSPACE(n, p) { if (sstrnleft < n) p = makestrspace(); }
70 #define USTPUTC(c, p) (--sstrnleft, *p++ = (c))
71 #define STACKSTRNUL(p) (sstrnleft == 0? (p = growstackstr(), *p = '\0') : (*p = '\0'))
72 #define STUNPUTC(p) (++sstrnleft, --p)
74 #define STADJUST(amount, p) (p += (amount), sstrnleft -= (amount))
75 #define grabstackstr(p) stalloc(stackblocksize() - sstrnleft)
Dmemalloc.c120 int sstrnleft; variable
279 sstrnleft = len - 1; in growstackstr()
283 sstrnleft = stackblocksize() - len - 1; in growstackstr()
294 int len = stackblocksize() - sstrnleft; in makestrspace()
296 sstrnleft = stackblocksize() - len; in makestrspace()
305 sstrnleft = stacknleft - (p - s); in ungrabstackstr()