Mail Archives: djgpp/1998/01/31/09:18:14

From: Paul Shirley <Paul AT chocolat DOT obvious DOT fake DOT foobar DOT co DOT uk>
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>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <34D23EAA DOT 3609B2B AT worldonline DOT nl>, Reinier Heeres
<rwh AT worldonline DOT nl> writes
>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

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019