Author: rinrab Date: Sat Sep 21 11:09:50 2024 New Revision: 1920823 URL: http://svn.apache.org/viewvc?rev=1920823&view=rev Log: fs-loader: Moving importing of initfunc declarations from header (fs-loader.h) to the source (fs-loader.c).
fs-loader.h is a header which should be included into all implementations of FS libraries, where we should not have initfuncs of other modules, while fs-loader.c is the only source file using them. * subversion/libsvn_fs/fs-loader.h (include of initfuncs): from here... * subversion/libsvn_fs/fs-loader.c (includes): Move there. Modified: subversion/trunk/subversion/libsvn_fs/fs-loader.c subversion/trunk/subversion/libsvn_fs/fs-loader.h Modified: subversion/trunk/subversion/libsvn_fs/fs-loader.c URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs/fs-loader.c?rev=1920823&r1=1920822&r2=1920823&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs/fs-loader.c (original) +++ subversion/trunk/subversion/libsvn_fs/fs-loader.c Sat Sep 21 11:09:50 2024 @@ -52,6 +52,18 @@ #include "fs-loader.h" +/* Here are the declarations for the FS module init functions. If we + are using DSO loading, they won't actually be linked into + libsvn_fs. Note that these private functions have a common_pool + parameter that may be used for fs module scoped variables such as + the bdb cache. This will be the same common_pool that is passed + to the create and open functions and these init functions (as well + as the open and create functions) are globally serialized so that + they have exclusive access to the common_pool. */ +#include "../libsvn_fs_base/fs_init.h" +#include "../libsvn_fs_fs/fs_init.h" +#include "../libsvn_fs_x/fs_init.h" + /* This is defined by configure on platforms which use configure, but we need to define a fallback for Windows. */ #ifndef DEFAULT_FS_TYPE Modified: subversion/trunk/subversion/libsvn_fs/fs-loader.h URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs/fs-loader.h?rev=1920823&r1=1920822&r2=1920823&view=diff ============================================================================== --- subversion/trunk/subversion/libsvn_fs/fs-loader.h (original) +++ subversion/trunk/subversion/libsvn_fs/fs-loader.h Sat Sep 21 11:09:50 2024 @@ -183,18 +183,6 @@ typedef svn_error_t *(*fs_init_func_t)(c fs_library_vtable_t **vtable, apr_pool_t* common_pool); -/* Here are the declarations for the FS module init functions. If we - are using DSO loading, they won't actually be linked into - libsvn_fs. Note that these private functions have a common_pool - parameter that may be used for fs module scoped variables such as - the bdb cache. This will be the same common_pool that is passed - to the create and open functions and these init functions (as well - as the open and create functions) are globally serialized so that - they have exclusive access to the common_pool. */ -#include "../libsvn_fs_base/fs_init.h" -#include "../libsvn_fs_fs/fs_init.h" -#include "../libsvn_fs_x/fs_init.h" - /*** vtable types for the abstract FS objects ***/