]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Add comment to clarify purpose and interface of handle_conditional().
authorBen Schmidt <none@none>
Fri, 20 Apr 2012 00:35:27 +0000 (10:35 +1000)
committerBen Schmidt <none@none>
Fri, 20 Apr 2012 00:35:27 +0000 (10:35 +1000)
src/prepstdreply.c

index 747a59255ddd22871648d2bdcfebef5873ffd581..bd47c5b8d7dae3e444bfa4441d3610f47cba54de 100644 (file)
@@ -722,6 +722,13 @@ static int handle_conditional(text *txt, char **line_p, char **pos_p,
                int neg, enum conditional_target tgt, int multi,
                const char *listdir)
 {
+       /* This function handles a conditional directive and returns a boolean
+        * (0 or 1) representing whether it was successfully handled or not.
+        * The conditional should already have been identified, and the type of
+        * conditional, whether it is negative, whether multiple parameters are
+        * acceptable, and the position of the first parameter should be passed
+        * in.
+       */
        char *line = *line_p;
        char *pos;
        int satisfied = 0;