Re: #include <math.h>

From: Joe Wright (joewwright_at_earthlink.net)
Date: 11/26/03


Date: Wed, 26 Nov 2003 00:07:15 GMT

jacob navia wrote:
>
[ snip ]
> This bug is similar to the make utility bug. Tabs are used as
> separator
> in "make", and the makefile will not work if they are substituted by
> spaces!
>
> This makes every novice spend hours trying to find out why two
> makefiles that look the
> same do not work.

I'm not sure I agree that it's a bug but it is annoying. make simply
uses TAB as a separator between the Rule and the Command portions of a
statement. As I use edit.com with tabs set to 3 this annoyed the hell
out of me too. Reading the info file on make one day (I'm surprised how
little I do this and how much I should) I read that ';' semicolon is
also a Rule / Command separator. How 'bout this..

# Use GNU make to build an executable for testing GE.

cc=gcc
obj=ge.o main.o
exe=main.exe
opt=-W -Wall -ansi -pedantic -O2 -c

# Note that semicolon (not TAB) separates Rule from Command on a line.

$(exe) : $(obj) ; $(cc) -s $(obj) -o $(exe)
ge.o : ge.c ; $(cc) $(opt) ge.c
main.o : main.c ge.h ; $(cc) $(opt) main.c

Live and learn.

-- 
Joe Wright                                 http://www.jw-wright.com
"Everything should be made as simple as possible, but not simpler."
                    --- Albert Einstein ---


Relevant Pages

  • Re: Rich Edit tab bug persists
    ... There are several bugs in the RTF control, ... displaying text correctly when ordinary tabs and specialty tabs (ie. ... The bug causes ordinary tabs that occur to the right of specialty ...
    (microsoft.public.win32.programmer.ole)
  • Re: Bug With TabControl Object
    ... this is a known bug in the designer itself. ... "Felipe T." ... > It just Scrambles the order of my Tabs; ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: TabControl page order
    ... I agree that it's a designer bug, but reordering outside of the designer ... > bug in the SetChildIndex function that is not switching the tabs around to ... >> Chris Tacke, eMVP ...
    (microsoft.public.dotnet.framework.compactframework)
  • Rich Edit tab bug persists
    ... There is a known bug in earlier versions of RichEdit that prevent it from ... displaying text correctly when ordinary tabs and specialty tabs (ie. right, ... The bug causes ordinary tabs that occur to the right of specialty tabs to be ...
    (microsoft.public.win32.programmer.ole)
  • Re: while (1) vs. for ( ;; )
    ... > if developers are prone to use tabs in the middle of lines.) ... difference because of a stupid Courier font. ... To go after poorly named variables, I would want to catch and flag all use of ... > to save you the trouble, here's a command for that: ...
    (comp.lang.c)