delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <20000727215150.2210.qmail@web1301.mail.yahoo.com> |
Date: | Thu, 27 Jul 2000 14:51:50 -0700 (PDT) |
From: | Terrence Brannon <princepawn AT yahoo DOT com> |
Subject: | __bufp, __buffer, _ptr, and _base : struct FILE access in Cygwin |
To: | cygwin AT sources DOT redhat DOT com |
MIME-Version: | 1.0 |
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 AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |