delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/05/06:31:42

From: "Adrian Francis" <adrian DOT francis AT cableinet DOT co DOT uk>
Subject: Re:a variable type
Newsgroups: comp.os.msdos.djgpp
Message-ID: <01bd4827$fe650680$929175c2@ctx>
NNTP-Posting-Host: usr136-wol.cableinet.co.uk
Date: 5 Mar 98 11:28:24 GMT
Organization: "Cable Internet (post doesn't reflect views of Cable Internet)"
Lines: 25
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I use this a lot in my 3D engine code.

fixed is a type definition like this...

typedef long int fixed;

so instead of typing...

long int n;

we can do...

fixed n;

although I prefer...

fix n;

because it's even shorter!

Does that explain it?

-ADRIAN-


- Raw text -


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