Name: Anonymous 2014-08-06 10:58
c.h
c.c
As you can see C11 allows multiple typedefs of the same type to the same type, a
This avoids the need for include guards but sadly it does not work for structs, not that this is a problem
typedef int i;
extern int shi;
c.c
#include "c.h"
#include "c.h"
#include "c.h"
int shi;
int
main (void)
{
return 0;
}
As you can see C11 allows multiple typedefs of the same type to the same type, a
typedef long i;
would be illegalThis avoids the need for include guards but sadly it does not work for structs, not that this is a problem