lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] struct netif


From: christiaan . simons
Subject: [lwip-devel] struct netif
Date: Fri, 29 Oct 2004 15:20:23 +0200




Hi all,

I'm a bit confused about a "forward declaration" in src/include/ipv4/ip.h.

The
struct netif;

on line 43
creates a new (empty) type since it is a redeclaration from the struct  in
netif.h.
I think it needs to be removed OR there is a problem in the includes
somewhere (header cycle?).

Our Tasking compiler gives an error on this redeclaration.
I've also checked two other compilers with the following simple test

struct test; /* normal forward declaration */
struct test
{
   int bla;
};
struct test; /* backward, ANSI violation */

GCC accepts this construct, even with -pedantic -ansi -Wall,
but it does violate ANSI C (page 213 in the reference manual).
M$ visual C++ rejects this as the Tasking c166/st10 cc does.

I believe someone complained about this problem before:
http://lists.gnu.org/archive/html/lwip-users/2003-11/msg00076.html


Bye,

Christiaan Simons

Software Engineer
Axon Digital Design

+31 (0)13 511 66 66
+31 (0)13 511 41 51

address@hidden
http://www.axon.tv



The information contained in this communication is confidential and is
intended solely for the use of the individual or entity to whom it is
addressed. Axon Digital Design Group is neither liable for the proper nor
for the complete transmission of the information contained in this
communication nor for any delay in its receipt. Axon Digital Design Group
does not guarantee that the integrity of this communication has been
maintained nor that the communication is free of viruses, interceptions or
interference. If you are not the intended recipient of this communication,
you are hereby notified that reading, disseminating, distributing or
copying this message is strictly prohibited. In that case please return the
communication to the sender and delete and destroy all copies. In carrying
out its engagements, Axon Digital Design Group applies general terms and
conditions, which contain a clause that limits its liability. A copy of
these terms and conditions is available on request free of charge.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]