www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/04/23:32:45

From: bd733 AT rgfn DOT epcc DOT edu (Jason M. Daniels)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help!
Date: 4 Jul 1997 23:25:34 GMT
Organization: The Rio Grande Free-Net, El Paso Community College, El Paso, TX
Lines: 30
Message-ID: <5pk0pe$qnk@news.epcc.edu>
References: <01bc88b2$d1dfe9c0$1f3963c3 AT rossa>
NNTP-Posting-Host: rgfn.epcc.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Ross Boast (Rossa AT btinternet DOT com) wrote:
> Hi,
>    Can anyone help me with this line :
> _fmemset (video_buffer,(char)3,SCREEN_WIDTH*SCREEN_HEIGHT+1);

> i have defined these varibles and have allocated the mem (in 13h mode) i
> get :
> parse error before 'unsigned' 
> which is weird coz i has no unsigned things in there!.

I can't find _fmemset in my libc reference. Is this a function of your 
own?

> Also Why doesn't this
> line work under both C and C++?

> char far *video_buffer = (char far)0xA0000000L;

> i have to remove the * and the 'far' to make it work why?.

Hmmm, gee, I dunno... maybe because there's no such thing as 'far' in 
gcc? Did you even bother to take a look at the FAQ? Section 17.7 would've 
explained that 'far' doesn't exist in DJGPP, and sections 10.2 and 18.4 
would've explained some alternate ways of doing this.

--
Jason Daniels -- bd733 AT rgfn DOT epcc DOT edu
---> BELIEVE THE LIE <---
Linux: The choice of a GNU generation.
Winblows 95: The world's best-selling computer virus.

- Raw text -


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