www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/15/23:45:55

Date: Tue, 15 Nov 1994 16:31:16 -0500 (CDT)
From: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Subject: Re: exit()
To: milgram AT eng DOT umd DOT edu
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Organization: Rockhurst College; Kansas City, MO

>I notice in djgppstd.h 'exit' is declared 'volatile void'. My understanding
>is that per ANSI 'exit' is just void. Is there some reason for adding the
>'volatile' type in djgpp?

So that GCC won't complain about your function not returning a value.  If this
is really a problem, it generally works to add -Dvolatile= to your flags (I
had to do this to compile nethack, for instance--now I'm trying unsuccessfully
to get it to work with Xlibemu.  It almost does!)

--- 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