LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 07-21-2006, 12:34 PM   #1
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
[C] The FAR in typedef


Hi, I have come across this typedef declaration in the header files of libjpeg62:
Code:
typedef JSAMPLE FAR *JSAMPROW;
Could somebody tell me what "FAR" means in this declaration?

Thanks.
 
Old 07-21-2006, 01:22 PM   #2
jim mcnamara
Member
 
Registered: May 2002
Posts: 964

Rep: Reputation: 33
16 bit systems use a FAR pointer when the pointer references something outside
the sixteen bit address space range. Some old code for Windows 3.1 and for DOS uses that. It is probably a #define in a header.

I would bet if you're on a 32-bit box that
Code:
#define FAR
is in effect ewhen you compile.
 
Old 07-21-2006, 07:37 PM   #3
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Original Poster
Rep: Reputation: 31
Thanks for the answer
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
having problem with typedef TurtleFace Programming 4 03-30-2006 09:18 PM
a question regarding typedef erikash Programming 1 11-10-2005 04:37 AM
Can you help me with typedef? brownstone Programming 3 06-11-2004 10:09 AM
explanation on typedef naren Programming 5 03-09-2004 10:48 PM
sizeof my typedef... jhorvath Programming 7 10-11-2002 05:41 PM


All times are GMT -5. The time now is 02:42 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration