From 2890ed142e99087db341ec515b14b6d1a5c4db5a Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 2 Jun 2014 16:24:32 +0800 Subject: [PATCH] document return code --- src/node.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.c b/src/node.c index b64f0cc..1d809ed 100644 --- a/src/node.c +++ b/src/node.c @@ -166,6 +166,8 @@ int r3_tree_compile(node *n, char **errstr) /** * 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) { char * cpat;