OSLib 6.11 Released

David Bryan D.J.Bryan at cranfield.ac.uk
Thu Sep 28 22:20:54 BST 2000


Jonathan Coxhead wrote:

>    On 28 Sep 00, David Bryan wrote,
> 
>  | The compiler treats the filename for wimp.h as 
>  | 
>  |  OSLibInclude:oslib.h.wimp
>  | 
>  | When it encounters
>  | 
>  |   #include "os.h"
>  | 
>  | it strips off the "h.wimp", and adds "h.os".  So it will be
>  | looking for
>  | 
>  |  OSLibInclude:oslib.h.os
>  | 
>  | Which it unambiguously finds :-)
> 
>    But it finds "oslib/wimp.h" in "<OSLib$Dir>.User.oslib.h.wimp, so won't 
> it look for "os.h" in there? And fail to find it, and then scan the rest of 
> the -I options (and find it at that point)?

ADFS::Primary.$* type c.test
#include "oslib/wimp.h"
ADFS::Primary.$* cc -IOSLibInclude: -E c.test
Norcroft RISC OS ARM C vsn 5.06 (Acorn Computers Ltd) [May 25 1995]
#line 1 "c.test"
#line 1 "OSLibInclude:oslib.h.wimp"

#line 1 "OSLibInclude:oslib.h.types"

typedef unsigned int                            bits;
typedef int                                     bool;
typedef unsigned char                           byte;

#line 31 "OSLibInclude:oslib.h.wimp"

#line 1 "OSLibInclude:oslib.h.os"

typedef struct os_mode_                         *os_mode;

[... Multiple blank lines folded into one.]

-- 
David Bryan




More information about the oslib-user mailing list