]> git.ozlabs.org Git - ccan/blobdiff - ccan/ccan_tokenizer/_info
ccanlint: Move ccanlint test options from _info comments to code
[ccan] / ccan / ccan_tokenizer / _info
index ee1477a9c31d6dc16359b0dabd54a13b9a4700d4..f5116b4fc80103957d6e74feb7ee1ac8b7def9c3 100644 (file)
  * }
  *
  * License: BSD (3 clause)
- *
- * Ccanlint:
- *     // We actually depend on the LGPL dependencies
- *     license_depends_compat FAIL
- *     // We don't put the license line in all files.
- *     license_comment FAIL
  */
 int main(int argc, char *argv[])
 {
@@ -101,5 +95,13 @@ int main(int argc, char *argv[])
                return 0;
        }
 
+       if (strcmp(argv[1], "ccanlint") == 0) {
+               /* We actually depend on the LGPL dependencies */
+               printf("license_depends_compat FAIL\n");
+               /* We don't put the license line in all files. */
+               printf("license_comment FAIL\n");
+               return 0;
+       }
+
        return 1;
 }