]> git.ozlabs.org Git - ccan/blobdiff - tools/ccanlint/ccanlint.h
Enhance file_analysis preprocessor a little more, use in idempotent test.
[ccan] / tools / ccanlint / ccanlint.h
index 804f80249d9204b362032e592c29a52d5e7b66b6..16a410a98aecb3b3fa864d865515854f0e7ec572 100644 (file)
@@ -108,11 +108,16 @@ enum line_compiled {
        MAYBE_COMPILED,
 };
 
-/* Simple evaluator: if this pre-processor symbol is defined to this
- * value, is this line compiled? (Other symbols assumed undefined) */
+/* Simple evaluator.  If symbols are set this way, is this condition true?
+ * NULL values mean undefined, NULL symbol terminates. */
 enum line_compiled get_ccan_line_pp(struct pp_conditions *cond,
                                    const char *symbol,
-                                   unsigned int value);
+                                   const unsigned int *value, ...);
+
+/* Get token if it's equal to token. */
+bool get_token(const char **line, const char *token);
+/* Talloc copy of symbol token, or NULL.  Increment line. */
+char *get_symbol_token(void *ctx, const char **line);
 
 /* Similarly for ->doc_sections */
 struct list_head *get_ccan_file_docs(struct ccan_file *f);