Sign in to follow this  
sprite_hound

typedef char FAR charf

Recommended Posts

That's a relict from the times of 16bit memory models. The zlib dates back to those days, so it needed to support weird things such like different pointer types for different address ranges. Today it's not necessary anymore (thus it's defined empty as you cited). You can safely ignore it.

Share this post


Link to post
Share on other sites
Some older systems used to use segmented addressing.

Ane example was some of the older 16 bit Intel processors. You could address memory inside a segment using so called "near" pointers (16 bit addresses). To address memory between segments you would need a "far" pointer (which was effectively a 20 bit pointer constructed from two 16 bit values).

On such systems, FAR could be #defined to some compiler-specific way of annotating far pointers.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this