repo.or.cz
/
unicorn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
unicorn_http: small cleanups and size reduction
[unicorn.git]
/
ext
/
unicorn_http
/
ext_help.h
blob
8220600e2efa0d827194b108abaf681b50634c3f
1
#ifndef ext_help_h
2
#define ext_help_h
3
4
#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
5
6
#ifndef RSTRING_PTR
7
#define RSTRING_PTR(s) (RSTRING(s)->ptr)
8
#endif
9
#ifndef RSTRING_LEN
10
#define RSTRING_LEN(s) (RSTRING(s)->len)
11
#endif
12
13
#endif