home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 241,958 of 243,242   
   Kaz Kylheku to Richard Harnden   
   Re: Attributes on functions/variables (s   
   14 Nov 25 18:05:17   
   
   From: 643-408-1753@kylheku.com   
      
   On 2025-11-14, Richard Harnden  wrote:   
   > I don't think I've ever had a non-static function prototype early in my   
   > code, then it being used, and then it's static defininition later.   
   >   
   > I've always had the static definition just before it's used and no   
   > prototype, static or not, at all.  Dunno if that's normal, or just the   
   > style I learnt.   
      
   Things happen in big(ger) projects. You think that the identifer   
   foo_parse is free for the taking. You put it into the "foo.h" header of   
   the foo module as an external declaration. Oops! There is already a   
   static helper called foo_parse in foo.c. Or somewhere else.   
      
   --   
   TXR Programming Language: http://nongnu.org/txr   
   Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal   
   Mastodon: @Kazinator@mstdn.ca   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca