From: Paul Shirley Newsgroups: comp.os.msdos.djgpp Subject: Re: Inlining Date: Sat, 31 Jan 1998 01:16:22 +0000 Organization: wot? me? Lines: 22 Distribution: world Message-ID: References: <34D23EAA DOT 3609B2B AT worldonline DOT nl> NNTP-Posting-Host: chocolat.foobar.co.uk Mime-Version: 1.0 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <34D23EAA DOT 3609B2B AT worldonline DOT nl>, Reinier Heeres writes >Hi! > >I have the idea that DJGPP isnt't inlining my hline routine in my >program, but I have defined it like this: > >inline void hline(int x1,int x2,int y,unsigned char c) > >and I compile and link with the -finline-fnuctions flag... > >Does anybody have an idea how this might happen (the functions that call >hline() are in the same module) > You need to place the inline functions physically before the invocations in your source. I can't think of another reason this would fail (its always worked for me regardless of the size of inlined functions... till the compiler crashes at least ;) --- Paul Shirley: my email address is 'obvious'ly anti-spammed