www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/30/12:15:25

Xref: news-dnh.mv.net comp.os.msdos.djgpp:716
Path: news-dnh.mv.net!mv!news.sprintlink.net!cs.utexas.edu!utnut!utgpu!utcsri!newsflash.concordia.ca!news.mcgill.ca!clouso.crim.ca!athena.ulaval.ca!ppp032-stdkn2.ulaval.ca!loiselse
From: loiselse AT ift DOT ulaval DOT ca (Sebastien Loisel)
Newsgroups: comp.os.msdos.djgpp
Subject: Nested inlined functions question
Date: Wed, 28 Jun 1995 15:07:54
Organization: Universite Laval
Lines: 26
Nntp-Posting-Host: ppp032-stdkn2.ulaval.ca
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

Call me lazy if you want, but it seems to me that it's a bit hard to test the 
following. If I have functions declared something like what follows:

extern inline void do_something(void)
  {
  ...
  }

extern inline void do_something_more(void)
  {
  ...
  do_something();
  ...
  }

Assuming do_something() does nothing to prevent it from being inlined, and 
that do_something_more doesn't do anything to prevent it from being inlined 
either, will a call to do_something_more inline both functions? This is 
important to me, because I have several interrelated math functions. It would 
be much easier for maintenance if I could just implement them once and then 
call them and they'd still be inlined. If they're not automatically inlined, I 
have to rewrite them in each math subfunction where I need them.

Sincerely yours,

Sebastien Loisel

- Raw text -


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