avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] HowTo split a program into several files ?


From: Bernard Fouché
Subject: Re: [avr-chat] HowTo split a program into several files ?
Date: Tue, 13 Sep 2005 09:45:14 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Till Harbaum wrote:

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.
You're right, I simplified a bit ;-)




reply via email to

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