This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

__bufp, __buffer, _ptr, and _base : struct FILE access in Cygwin


4 hours later, I am still struggling to get Emacs
compiled for gcc. The Cygwin GCC choked when trying to
compile a file which was attempting to access some
characteristics of the FILE struct. I do not
understand 
exactly what the source code for Emacs is doing here,
so I cannot post an intelligent question asking how
this functionality was aped or overlooked when porting
the GNU tools to Cygwin. I include the C macros below
and would like to know what aspects of a file that
__bufp, __buffer, _ptr, and _base refer to. And of
course I would like to know how this macro might be
rewritten so that it works under cygwin.

#ifdef GNU_LIBRARY_PENDING_OUTPUT_COUNT
#define PENDING_OUTPUT_COUNT
GNU_LIBRARY_PENDING_OUTPUT_COUNT
#else
#undef	PENDING_OUTPUT_COUNT
#define	PENDING_OUTPUT_COUNT(FILE) ((FILE)->__bufp -
(FILE)->__buffer)
#endif
#else /* not __GNU_LIBRARY__ */
#ifndef PENDING_OUTPUT_COUNT
#define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_ptr -
(FILE)->_base)
#endif
#endif


=====
Terrence Brannon
90 St. Mark's Place
Apt. 2E North
Staten Island, NY 10301
914-755-4360

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]