Mail Archives: djgpp/1995/11/18/03:22:20
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:3313
|
Path: | news-dnh.mv.net!mv!news.sprintlink.net!news.heurikon.com!daffy!uwvax!newssinet!news.nc.u-tokyo.ac.jp!tkyex1.phys.s.u-tokyo.ac.jp!news.tisn.ad.jp!nova.geo.bosai.go.jp!statky2.stanet!news.imnet.ad.jp!usenet.seri.re.kr!news.kreonet.re.kr!news.dacom.co.kr!newsfeed.internetmci.com!in2.uu.net!newsfeed.ACO.net!fstgal00.tu-graz.ac.at!not-for-mail
|
From: | kremser AT sbox DOT tu-graz DOT ac DOT at (Herbert Kremser)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Question about DJGPP C syntax
|
Date: | 17 Nov 1995 15:30:00 GMT
|
Organization: | Graz University of Technology, Austria
|
Lines: | 38
|
References: | <DI2txE DOT FLq AT jade DOT mv DOT net>
|
Nntp-Posting-Host: | freelove.tu-graz.ac.at
|
To: | djgpp AT sun DOT soe DOT clarkson DOT edu
|
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Teng Yong Jeffrey (93602081 AT neptune DOT np DOT ac DOT sg) wrote:
: I recently downloaded a public-domain text windowing package
: in the form of c-winsrc.txt from garbo.uwasa.fi
:
: I unzipped the files inside and try compiling them, but
: somehow I couldn't get DJGPP to recognize the "far"
: declarations - what's the problem?
:
: the code is ...
: .... ScrRestoreRect (...)
: {
: ....;
: unsigned char far *fpBuf;
: ...;
: }
:
: I've been searching for documentation on the syntax of C
: as allowed by DJGPP and the documentation for the C
: functions. Where can they be found?
: I can't seem to find them anywhere (and I've downloaded
: gcc263dc.zip)
DJGPP doesn't allow any special syntax. It's just the usual gcc features,
which are in some points wider than ANSI-C.
You best use the info pages which come with DJGPP. (command: info)
far isn't a keyword in C, so every program using it isn't ANSI.
Afaik far is used by 16bit DOS C Compilers. DJGPP is 32bit Compiler,
and needs no distinction between far and near calls.
Maybe you should check which Compilers are necessary for this package.
You can also try to just delete any far calls and hope for the best,
but there can be some other BorlandC or MSC or whatever, specific things.
Herbert
--
Herbert Kremser | "On the Internet,
kremser AT flinux DOT tu-graz DOT ac DOT at | nobody knows
kremser AT sbox DOT tu-graz DOT ac DOT at | you're a dog."
- Raw text -