[Top][All Lists]

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

Re: [avr-libc-dev] [RFC] Generate compiler warning if not included from

From: Theodore A. Roth
Subject: Re: [avr-libc-dev] [RFC] Generate compiler warning if not included from avr/io.h
Date: Mon, 23 Sep 2002 10:54:21 -0700 (PDT)

D'oh! I sent the wrong patch. This is the correct one.

Ted Roth

On Mon, 23 Sep 2002, Theodore A. Roth wrote:

:) Hi,
:) This patch adds a simple check to each ioXXX.h file to see if the file was
:) included directly or via avr/io.h.
:) The second check is to verify that one and only one ioXXX.h file has been
:) included. This catches the case where a user does something foolish as
:) such (assume -mmcu=at90s8515):
:)   #include <avr/io.h>
:)   #include <avr/iom128.h>
:) This is the first step in moving redundant code from ioXXX.h to io.h
:) Comments?
:) Ted Roth

Attachment: avr-libc-ioXXX-protect.diff
Description: Text document

reply via email to

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