httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bill Stoddard <>
Subject Re: [PATCH] ApacheCore.def file
Date Tue, 10 Nov 1998 21:31:41 GMT
Martin Kraemer wrote:
> BTW: How would a DLL module find out if it is compatible or not?
> Wouldn't two versions of Apache by default create the same *.def file
> automatically, and doesn't that mean they would automatically be
> "compatible" (maybe without being aware about it)?

Win32 uses ordinals to resolve references to functions in dlls
(ApacheCore.dll). Unless you tell the compiler to assign these ordinals
in a certain way (via a .def file) it is free to assign them however it
wants. VC++ seems to assign ordinals against the sorted (by function
name)list of functions exported by the dll. If you add a new function,
it is inserted into the list sorted by its name, and all following
ordinals get bumped by 1. 

Inserting a new function into the API (and not changing anything else)
should be reason to bump the MODULE_MAGIC_NUMBER_MINOR but it should not
cause modules compiled against the earlier version of the server to

Bill Stoddard

View raw message