www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/09/00:02:34

Date: Tue, 08 Nov 1994 16:38:02 -0500 (CDT)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: mem.h
To: eliz AT is DOT elta DOT co DOT il
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Organization: Rockhurst College; Kansas City, MO

>> I tried to recompile it with gcc but it requires a mem.h file, and this
>> is due to the TURBO option. I tried other DEFs, but it fails with some
>> "register" declarations.
>
>mem.h is usually included in Turbo C program to use the far heap
>memory allocation functions, and these are not required in gcc.
>I would advise to comment that include out, use the -Wall compiler
>switch and watch for the ``function without prototype'' warnings;
>then create your own mem.h which #define's those functions to call
>djgpp's substitutes (e.g., farmalloc should call malloc, farcoreleft
>should call _go32_dpmi_remaining_physical_memory, etc.).  To force
>the compiler to include your mem.h although it is given as <mem.h> in the
>program, add -I. to the compilation command line.

I think sys/farptr.h does a lot of that--why not make a fake mem.h that does
nothing but include it?

--- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp!
-=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=-
Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: 
 GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ U-(S+)>++++ P+ L>++ 3(-) 
 E-(----) !N>++ K- W(--) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) 
 b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019