ccanlint: Move ccanlint test options from _info comments to code
[ccan] / ccan / deque / _info
index 63687b7421e96ef8e68336ea42e93318b7c788f2..1c5460f932b2b11976f143ac14980d431f4939db 100644 (file)
  *
  * License: APACHE-2
  * Author: Dan Good <dan@dancancode.com>
- *
- * Ccanlint:
- *     // uses statement expressions
- *     // supported by gcc, clang, icc, and some others, but not msvc
- *     // (see https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html)
- *     objects_build_without_features FAIL
  */
 int main(int argc, char *argv[])
 {
@@ -142,5 +136,13 @@ int main(int argc, char *argv[])
                return 0;
        }
 
+       if (strcmp(argv[1], "ccanlint") == 0) {
+               /* uses statement expressions
+                * supported by gcc, clang, icc, and some others, but not msvc
+                * (see https://gcc.gnu.org/onlinedocs/gcc/Statement-Exprs.html) */
+               printf("objects_build_without_features FAIL\n");
+               return 0;
+       }
+
        return 1;
 }