apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bojan Smojver <bo...@rexursive.com>
Subject Re: svn commit: r651704 - in /apr/apr/trunk: file_io/unix/copy.c include/arch/netware/apr_arch_file_io.h include/arch/os2/apr_arch_file_io.h include/arch/unix/apr_arch_file_io.h include/arch/win32/apr_arch_file_io.h
Date Fri, 25 Apr 2008 22:20:54 GMT
On Sat, 2008-04-26 at 08:07 +1000, Bojan Smojver wrote:

> > I'm not sure that is portable C.  Is the compiler guaranteed to  
> > optimize that
> > into a constant?
> I would think so. BUFSIZ is defined as constant, as well as
> APR_FILE_DEFAULT_SIZE. But, I'll check again...

The book says that such expressions _may_ be evaluated during
compilation. So, I guess it is not guaranteed (I would think any modern
compiler would do it, though).

If you wish, I can have the classic #if (the one I did in header files
before) in copy.c. That should make it clear.


View raw message