[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] HowTo split a program into several files ?
From: |
Till Harbaum |
Subject: |
Re: [avr-chat] HowTo split a program into several files ? |
Date: |
Mon, 12 Sep 2005 20:29:23 +0200 |
User-agent: |
KMail/1.8 |
Hi,
On Monday 12 September 2005 19:30, Bernard Fouché wrote:
> - Of course you locate all #define's in .h files
All?
Why would you place #defines that are used only within one single source file
of your project in a header file? If it's e.g. a configurable part: ok, but
then put it e.g. in a file named config.h. Otherwise, why don't you just put
it on top of the file it's being used in? Otherwise i'd expect it to be of
interest for other things than the single source file that uses it.
If e.g. your framework headers contain #defines, then i'd assume that they are
part of the interface and that my app may e.g. rely on them.
Till
--
Dr.Ing. Till Harbaum, address@hidden
- [avr-chat] HowTo split a program into several files ?, Vincent Trouilliez, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Andy Warner, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Francisco Silva, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Vincent Trouilliez, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Vincent Trouilliez, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Till Harbaum, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Vincent Trouilliez, 2005/09/12
- Message not available
- Re: [avr-chat] HowTo split a program into several files ?, Vincent Trouilliez, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Joerg Wunsch, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Vincent Trouilliez, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, Vincent Trouilliez, 2005/09/12
- Message not available
- Re: [avr-chat] HowTo split a program into several files ?, Vincent Trouilliez, 2005/09/12
- Re: [avr-chat] HowTo split a program into several files ?, David Kelly, 2005/09/12