We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example of C code:
#include <stdio.h> int main(){ printf("Eh???/n"); return 0; }
See par.5.2.1.1 "Trigraph sequences" http://www.dii.uchile.cl/~daespino/files/Iso_C_1999_definition.pdf Result of GCC without flag -trigraphs if run gcc -o tri tri.c; ./tri:
-trigraphs
gcc -o tri tri.c; ./tri
tri.c: In function ‘main’: tri.c:3:13: warning: trigraph ??/ ignored, use -trigraphs to enable [-Wtrigraphs] printf("Eh???/n"); ^ Eh???/n
Result of GCC with flag -trigraphs if run gcc -o tri -trigraphs tri.c; ./tri:
gcc -o tri -trigraphs tri.c; ./tri
Eh?
Result of CLANG without flag -trigraphs if run clang -E tri.c:
clang -E tri.c
# 2 "tri.c" 2 int main(){ printf("Eh???/n"); return 0; }
Result of CLANG with flag -trigraphs if run clang -E -trigraphs tri.c:
clang -E -trigraphs tri.c
# 2 "tri.c" 2 int main(){ printf("Eh?\n"); return 0; }
Result of c2go after transpilation:
c2go
func main() { __init() noarch.Printf([]byte("Eh???/n\x00")) return }
Now, Trigraphs are not support in transpiler
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example of C code:
See par.5.2.1.1 "Trigraph sequences" http://www.dii.uchile.cl/~daespino/files/Iso_C_1999_definition.pdf
Result of GCC without flag
-trigraphs
if rungcc -o tri tri.c; ./tri
:Result of GCC with flag
-trigraphs
if rungcc -o tri -trigraphs tri.c; ./tri
:Result of CLANG without flag
-trigraphs
if runclang -E tri.c
:Result of CLANG with flag
-trigraphs
if runclang -E -trigraphs tri.c
:Result of
c2go
after transpilation:Now, Trigraphs are not support in transpiler
The text was updated successfully, but these errors were encountered: