~lattis/muon

ref: 1c1ab113103e1a2ebcb7edf3a47f826428f8e124 muon/include/buf_size.h -rw-r--r-- 355 bytes
1c1ab113Stone Tickle extract string.split() 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef MUON_BUF_SIZE_H
#define MUON_BUF_SIZE_H

#define BUF_SIZE_S 255
#define BUF_SIZE_1k 1024
#define BUF_SIZE_2k 2048
#define BUF_SIZE_4k 4096
#define BUF_SIZE_32k (BUF_SIZE_4k * 8)
#define BUF_SIZE_1m 1048576ul
#define MAX_ARGS 64
#define MAX_ENV 16
#define ARG_BUF_SIZE BUF_SIZE_4k

#define ARRAY_LEN(array) (sizeof(array) / sizeof(*array))

#endif