tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] How TCC handlse the scope


From: Anton
Subject: Re: [Tinycc-devel] How TCC handlse the scope
Date: Sat, 23 Jun 2007 01:39:28 +0400
User-agent: Opera Mail/9.00 (Win32)

   Rob:
     Actually, this is fairly straightforward C. If you use a
     function that there hasn't been a prototype for yet, you
     get the default prototype for that function.

   Hmmm. So is there a way to make part of a unit's functions
   invisible from the outside (== not to "export"  them)?  In
   Pascal you could access a function only  if  it  had  been
   explicitly imported from another unit  (uses...),  wherein
   it had been explicitly exported (through declaring  it  in
   the interface section). In C everything  is  visible  from
   anywhere (I mean functions not variables which do  require
   an extern statement).

   Is there a way to follow the right structured programming,
   exporting only  the interface  part and leaving  the rest
   private?

Anton




reply via email to

[Prev in Thread] Current Thread [Next in Thread]