]> git.ozlabs.org Git - ccan/blobdiff - ccan/deque/_info
base64: fix for unsigned chars (e.g. ARM).
[ccan] / ccan / deque / _info
index b1a47bbbb8e6f5d832f1b79f0a621562451e1aa3..1c5460f932b2b11976f143ac14980d431f4939db 100644 (file)
@@ -16,7 +16,7 @@
  * Example:
  *     // Evaluates arithmetic expressions using Dijkstra's two-stack algorithm.
  *     // Original: http://algs4.cs.princeton.edu/13stacks/EvaluateDeluxe.java.html
  * Example:
  *     // Evaluates arithmetic expressions using Dijkstra's two-stack algorithm.
  *     // Original: http://algs4.cs.princeton.edu/13stacks/EvaluateDeluxe.java.html
- *     #define _XOPEN_SOURCE 700
+ *     #define _XOPEN_SOURCE 700 // only for getline(3) in this demo
  *     #include <stdio.h>
  *     #include <stdlib.h>
  *     #include <ctype.h>
  *     #include <stdio.h>
  *     #include <stdlib.h>
  *     #include <ctype.h>
@@ -136,5 +136,13 @@ int main(int argc, char *argv[])
                return 0;
        }
 
                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;
 }
        return 1;
 }