'inline' in sieve/bc_emit.c

Paul Boven p.boven at chello.nl
Tue Aug 29 07:44:57 EDT 2006

Hi everyone,

The file sieve/bc_emit.c contains an inline function declaration in line 
48 (version cyrus-imap-2.2.13):

inline int write_int (int fd, int x)
     int y=htonl(x);
     return (write(fd, &y, sizeof(int)));

I would like to suggest turning this into a 'static inline', for 
portability. The current bc_emit.c causes linker problems when building 
it with the Sun Studio compiler. As the function is only used in this 
single c-file, using static should not make a difference.

Regards, Paul Boven.

More information about the Info-cyrus mailing list