Thiago Adams

Results 69 issues of Thiago Adams

I had to disable warning warning C4389: '==': signed/unsigned mismatch around the macro FD_SET. This is the new code to disable this warning. #ifdef SMTP_IS_WINDOWS #pragma warning( push ) #pragma...

At file scope you can have multiple declarations. ```c typedef int I; I i; int i; int i = 0; ``` In function scope, params only one. except typedefs. ```c...

The line number showed on errors are wrong by 1 in the web version and correct when real files are used. The web version use a string with the source...

Today #embed expand the sequence For instance ```c static const char file_txt[] = { #embed "stdio.h" ,0 }; ``` becomes ```c static const char file_txt[] = { 35,112,113, /*... lot...

enhancement

```c enum E { a, b, c }; void func ( E e ) { switch(e) { case a: case b: //case c:; } } ```

```c enum E1 { a }; enum E2 { b }; int main() { int i = a | b; } ``` https://wg21.link/p1120r0

```c int main() { int i = 1; bool b = true; if (i == b) { } } ```

```c int main() { int i = 0; if (i); // empty controlled statement found; is this the intent? i++; } ```

```c int main() { enum Color: char { red = 0x7e, green, blue }; // 0x7e is too big enum Color2: char { red2 = 0x7d, green2, blue2}; // OK...