On Friday, December 13, 2002, at 10:05 AM, <[EMAIL PROTECTED]> wrote:
They are in apr_private.h.

Yes, but they are also in apr.h.

pigmy:~/apr/include - 9:57AM% grep "_IS_GLOBAL" apr.h
#define APR_PROCESS_LOCK_IS_GLOBAL 0
#define APR_PROC_MUTEX_IS_GLOBAL 0
pigmy:~/apr/include - 9:57AM% cd arch/unix
pigmy:~/apr/include/arch/unix - 9:57AM% grep "_IS_GLOBAL" apr_private.h
/* #undef POSIXSEM_IS_GLOBAL */
/* #undef SYSVSEM_IS_GLOBAL */
/* #undef FCNTL_IS_GLOBAL */
/* #undef FLOCK_IS_GLOBAL */
pigmy:~/apr/include/arch/unix - 9:57AM%



So, why are they in apr.h at all?

Because they are used in public header files, and we don't want to pollute the public header files with symbols from the private headers.

[EMAIL PROTECTED] grep -lr _IS_GLOBAL . | grep \.h\$
./acconfig.h
./include/apr.h
./include/apr_global_mutex.h
./include/apr_portable.h
./include/arch/unix/apr_private.h
./include/arch/unix/proc_mutex.h

-aaron



Reply via email to