cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/26/15:30:51

From: "Mikkel K Johnsen" <mjohnsen AT vip DOT cybercity DOT dk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: enum doesn't work?
Date: Tue, 26 May 1998 21:00:40 +0200
Organization: CyberCity Internet
Lines: 28
Message-ID: <6kf3ig$dd8$1@news.cybercity.dk>
References: <356B058B DOT 463C5F37 AT est DOT fib DOT upc DOT es>
NNTP-Posting-Host: 195.8.140.54
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I donīt thik you should use enum that way. Itīs used to enumarete words

enum BOOL {
    false,
    true
};

now false has the value zero and true one.

typedef unsigned long u_long

when you type u_long it is now "unsigned long".

thats have I understand it!.

bye Mikkel

Victor Viudez Gonzalez wrote in message
<356B058B DOT 463C5F37 AT est DOT fib DOT upc DOT es>...
>Why doesnīt work something like this?
>
>typedef enum BOOL{false,true}bool;
>
>It says Error before 'typedef', but before 'typedef' there are nothing!
>Victor
>


- Raw text -


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