document return code

This commit is contained in:
c9s 2014-06-02 16:24:32 +08:00
parent af5a89b3ea
commit 2890ed142e

View file

@ -166,6 +166,8 @@ int r3_tree_compile(node *n, char **errstr)
/** /**
* This function combines ['/foo', '/bar', '/{slug}'] into (/foo)|(/bar)|/([^/]+)} * This function combines ['/foo', '/bar', '/{slug}'] into (/foo)|(/bar)|/([^/]+)}
* *
* Return -1 if error occurs
* Return 0 if success
*/ */
int r3_tree_compile_patterns(node * n, char **errstr) { int r3_tree_compile_patterns(node * n, char **errstr) {
char * cpat; char * cpat;