void StorageClassDeclaration::stcToCBuffer(OutBuffer *buf, StorageClass stc) { while (stc) { char tmp[20]; const char *p = stcToChars(tmp, stc); if (!p) break; assert(strlen(p) < sizeof(tmp) / sizeof(tmp[0])); buf->writestring(p); buf->writeByte(' '); } }
void StorageClassDeclaration::stcToCBuffer(OutBuffer *buf, StorageClass stc) { while (stc) { const size_t BUFFER_LEN = 20; char tmp[BUFFER_LEN]; const char *p = stcToChars(tmp, stc); if (!p) break; assert(strlen(p) < BUFFER_LEN); buf->writestring(p); buf->writeByte(' '); } }