httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: [PATCH] let ap_open() work on Win9x
Date Mon, 20 Mar 2000 21:04:05 GMT
I agree on the internal-vs.-external issue.

Another thought I had on how to handle the differences between
various flavors of Windows (or AIX or whatever) in one executable
is to have an os-specific function that filled in a vector of stuff

  struct os_capabilities {
    unsigned int hasFeature1 : 1; 
    unsigned int hasFeature2 : 1;

This is definitely internal-to-apr stuff and is probably 
only needed on Win32 for the forseeable future.  The code
that wants to open a file only needs to know whether or not
a certain feature is available.  It doesn't need to figure
out for itself when that feature is available.  A common
piece of code can look at the windows version (and perhaps
in bizarre cases at what service pack is applied) to figure
that out.

Jeff Trawick | | PGP public key at web site:
          Born in Roswell... married an alien...

View raw message