From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 03 09:39:58 2010 Received: (at submit) by debbugs.gnu.org; 3 Jun 2010 13:39:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKAeL-0005mH-D1 for submit@debbugs.gnu.org; Thu, 03 Jun 2010 09:39:58 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKAac-0005bn-Vw for submit@debbugs.gnu.org; Thu, 03 Jun 2010 09:36:22 -0400 Received: from lists.gnu.org ([199.232.76.165]:55008) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OKAaS-0002ET-SD for submit@debbugs.gnu.org; Thu, 03 Jun 2010 09:35:56 -0400 Received: from [140.186.70.92] (port=50945 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKAaI-0003of-RP for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 09:35:56 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, MIME_QP_LONG_LINE, RECEIVED_FROM_WINDOWS_HOST, T_RP_MATCHES_RCVD autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKAa8-0003ch-6Z for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 09:35:42 -0400 Received: from mail.redlinecommunications.com ([66.48.64.165]:65058) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKAa7-0003cM-Sb for bug-gnu-emacs@gnu.org; Thu, 03 Jun 2010 09:35:36 -0400 Received: from RCPDC27.redline.com ([192.168.16.30]) by mail.redlinecommunications.com with Microsoft SMTPSVC(7.0.6001.18000); Thu, 3 Jun 2010 09:37:12 -0400 Received: from RCPDC28.redline.com ([192.168.15.20]) by RCPDC27.redline.com with Microsoft SMTPSVC(7.0.6001.18000); Thu, 3 Jun 2010 09:37:12 -0400 Received: from RCPDC51.redline.com (172.25.100.51) by RCPDC28.redline.com (192.168.15.20) with Microsoft SMTP Server (TLS) id 8.2.247.2; Thu, 3 Jun 2010 09:37:11 -0400 Received: from MAIL1.redline.com ([fe80::7820:c8cc:b14c:e5ea]) by RCPDC51.redline.com ([::1]) with mapi; Thu, 3 Jun 2010 09:36:28 -0400 From: Michael Jin To: "'bug-gnu-emacs@gnu.org'" Date: Thu, 3 Jun 2010 09:32:29 -0400 Subject: RE: 23.2; font-lock-mode not work properly for certain C file content Thread-Topic: 23.2; font-lock-mode not work properly for certain C file content Thread-Index: AcsDHHp8HlSyLSc1SdmAxt2qZImnXwABEOCw Message-ID: <6620B585D24F6A428C911A76DC344E010688CD4EF9@MAIL1.redline.com> References: <6620B585D24F6A428C911A76DC344E010688CD4EF8@MAIL1.redline.com> In-Reply-To: <6620B585D24F6A428C911A76DC344E010688CD4EF8@MAIL1.redline.com> Accept-Language: en-US, en-CA Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-CA Content-Type: multipart/alternative; boundary="_000_6620B585D24F6A428C911A76DC344E010688CD4EF9MAIL1redlinec_" MIME-Version: 1.0 X-OriginalArrivalTime: 03 Jun 2010 13:37:12.0239 (UTC) FILETIME=[DF1FABF0:01CB0321] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP2+, XP SP1+ (seldom 98) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 03 Jun 2010 09:39:54 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.8 (----) This is a multi-part message in MIME format. --_000_6620B585D24F6A428C911A76DC344E010688CD4EF9MAIL1redlinec_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-EC0D2A8E-5CB7-4969-9C36-46D859D137BE-PartID: 038F026E-6966-4B2E-8790-673913CC42BE Sorry, that description only applies for version 21.3. For 23.2, it seems to= have been fixed ( but I did observe it happened once for that file with ful= l content rather than the provided snippet) . Michael From: Michael Jin Sent: Thursday, June 03, 2010 8:59 AM To: 'bug-gnu-emacs@gnu.org' Subject: 23.2; font-lock-mode not work properly for certain C file content *** E-Mail body has been placed on clipboard, please paste it here! *** --=3D-=3D-=3D Content-Type: text Content-Disposition: inline; filename=3Da.c Content-Description: a piece of C code that will trigger malfunction of font-lock-mode /* DESCRIPTION This library provides additional APIs offered by the Network Protocol Toolkit (NPT) architecture. These APIs extend the original release of the MUX interface. A NPT driver is an enhanced END but retains all of the END's functionality. NPT also introduces the term "network service sublayer" or simply "service sublayer" which is the component that interfaces between the network service= (or network protocol) and the MUX. This service sublayer may be built in to the network service or protocol rather than being a separate component. INTERNAL muxTkBind() should be used when the protocol uses callbacks (e.g. receive routine, TX restart routine, etc.), of the NPT style. muxBind() should be used when the protocol uses pre-NPT style callbacks. While muxTkBind() may be used to bind to an END driver device, some protocol= s may choose to call muxBind() instead for such END (non-NPT) style drivers, in order to avoid the wrapper receive function which would intermediate betw= een the END driver's receive callback (muxReceive()) and the NPT-style protocol receive routine which would be used if the protocol bound with muxTkBind(). It is recommended that protocols call muxTkPollSend() and muxTkPollReceive()= instead of muxPollSend() and muxPollReceive(). INCLUDE FILES: vxWorks.h, taskLib.h, stdio.h, errno.herrnoLib.h, lstlib.h, logLib.h, string.h, m2Lib.h, net/if.h, bufLib.h, semlib.h, end.h, muxLib.h, muxTkLib.h, netinet/if_ether.h, net/mbuf.h */ /* includes */ #include #include #include #include #include #include #include #include #include /* Needed for IFF_LOAN flag. */ #include #include #if 0 #include /* Necessary for any END as well as the = MUX */ #include #include #endif #include #include #include /* Needed for in_addr used in if_ether.h */ #include #include #include #ifdef VIRTUAL_STACK #include #include #endif /* VIRTUAL_STACK */ /* defines */ #define STREQ(A, B) (strcmp ( (A), (B)) =3D=3D 0) /* globals */ int muxTkDebug =3D 0; /* locals */ LOCAL UINT32 _muxAnonProtoCount =3D 1; /* forward declarations */ LOCAL int muxEndRcvRtn (void *, long, M_BLK_ID, LL_HDR_INFO *, void *); LOCAL int muxEndSnarfRcvRtn (void *, long, M_BLK_ID, LL_HDR_INFO *, void *);= /***************************************************************************= ** * * muxTkLibInit - initialize NPT extensions to MUX * * This placeholder routine initializes NPT extensions to the MUX. * * RETURNS: OK * * SEE ALSO: muxInit() */ STATUS muxTkLibInit (void) { return OK; } /***************************************************************************= ** * * muxTkDrvCheck - checks if the device is an NPT or an END interface * * This function returns 1 if the driver indicated by is of the * Toolkit (NPT) paradigm, and 0 (zero) if it is an END. This routine is * called by the network service sublayer so that it can discover the driver * type before it binds to it via the MUX. * * INTERNAL: * All network drivers having the same device name but different unit numbers= * are assumed to be of the same type (NPT or END), so passing just the * device name as an argument is sufficient * * We should return a new code for MULTI style drivers, but for backwards * compatibility, we return either 1 or 0. 1 is returned for MULTI style * drivers as for NPT, since MULTI-style drivers are required to provide * an EIOCGNPT ioctl returning OK. * * .IP * Expects a pointer to a string containing the name of the device * * RETURNS: 1 for an NPT driver, 0 for an END or other driver, or ERROR (-1) * if no device is found with the given name * * SEE ALSO: muxTkBind(), muxBind() */ int muxTkDrvCheck ( char * pDevName /* device name */ ) { int result =3D ERROR; END_OBJ * pEnd =3D NULL; /* Pointer to the END_OBJ structure */ int (*ioctlRtn) (END_OBJ*, int, caddr_t); pEnd =3D endFirstUnitFind (pDevName); if (pEnd =3D=3D NULL) return (ERROR); result =3D END_STYLE_END; if (pEnd->pFuncTable !=3D NULL && (ioctlRtn =3D pEnd->pFuncTable->ioctl) !=3D NULL && /* ioctlRtn (pEnd, EIOCGSTYLE, (caddr_t)&result) !=3D OK && */ ioctlRtn (pEnd, EIOCGNPT, NULL) =3D=3D OK) { result =3D END_STYLE_NPT; } return (result); } /***************************************************************************= *** * * muxTkBind - bind an NPT protocol to a driver * * A network protocol, network service, or service sublayer uses this routine= * to bind to a specific driver. This bind routine is valid both for END and= * NPT drivers, but the specified stack routine parameters must use the NPT * function prototypes, which are somewhat different from those used with * muxBind(). * * The driver is specified by the and arguments, (for example,= * ln and 0, ln and 1, or ei and 0). * * .IP 20 * Expects a pointer to a character string that contains the name of the * device that this network service wants to use to send and receive packets.= * .IP * Expects the unit number of the device of the type indicated by . * .IP * Expects a pointer to the function that the MUX will call when it * wants to pass a packet up to the network service. * .IP * Expects a pointer to the function that the MUX will call to * shutdown the network service. For a description of how to write such * a routine, see the section * .I Network Protocol Toolkit Programmer's Guide: Shutting Down an Interface= * .IP * Expects a pointer to the function that the MUX will call after packet * transmission has been suspended, to tell the network service that it can * continue transmitting packets. For a description of how to write this * routine, see the section * .I Network Protocol Toolkit Programmer's Guide: Flow Control * .IP * Expects a pointer to the function that the MUX will call to give errors * to the network service. For a description of how to write this routine, * see the section * .I Network Protocol Toolkit Programmer's Guide: Error Reporting * .IP * Expects a value that indicates the protocol type. The MUX uses this type * to prioritize a network service as well as to modify its capabilities. Fo= r * example, a network service of type MUX_PROTO_SNARF has the highest priorit= y * (see the description of protocol prioritizing provided in * .I Network Protocol Toolkit Programmer's Guide: The Bind Phase) * Aside from MUX_PROTO_SNARF and MUX_PROTO_PROMISC, valid network service * types include any of the values specified in RFC 1700, or can be * user-defined. Within each group (snarf, typed, or promiscuous), protocols * bound earlier have priority over protocols bound later. * * IMPORTANT NOTE: * Though this API can be used to bind to both END and NPT devices, the * prototypes for the four protocol functions being registered are always * the NPT style ones, as shown below. * * NPT protocol callbaks: * BOOL (*stackRcvRtn) (void*, long, M_BLK_ID, void *), * STATUS (*stackShutdownRtn) (void *), * STATUS (*stackTxRestartRtn) (void *) * void (*stackErrorRtn) (void*, END_ERR*) * * This API does not perform any type checking, so it is up to the caller * to make sure the appropriate callback prototypes are present. * * The is called whenever the MUX has a packet of the specified= * type. If the type is MUX_PROTO_PROMISC, the protocol is considered * promiscuous and will get all of the packets that have not been consumed * by any other protocol. If the type is MUX_PROTO_SNARF, it will get all of= * the packets that the MUX sees not consumed by a previous MUX_PROTO_SNARF * protocol. * * If the type is MUX_PROTO_OUTPUT, this network service is an output protoco= l * and all packets that are to be output on this device are first passed to * routine rather than being sent to the device. This can be * used by a network service --=3D-=3D-=3D In GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600) of 2010-05-08 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/incl= ude' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: C/l Minor modes in effect: diff-auto-refine-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: Recent messages: Loading c:/nxml-mode-20041004/rng-auto.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Keep current list of tags tables also? (y or n) [2 times] Loading vc-cvs...done Mark set [2 times] byte-code: Beginning of buffer [7 times] Mark set byte-code: End of buffer [3 times] Mark set Auto-saving...done Load-path shadows: c:/nxml-mode-20041004/xsd-regexp hides c:/emacs-23.2/lisp/nxml/xsd-regexp c:/nxml-mode-20041004/xmltok hides c:/emacs-23.2/lisp/nxml/xmltok c:/nxml-mode-20041004/rng-xsd hides c:/emacs-23.2/lisp/nxml/rng-xsd c:/nxml-mode-20041004/rng-valid hides c:/emacs-23.2/lisp/nxml/rng-valid c:/nxml-mode-20041004/rng-util hides c:/emacs-23.2/lisp/nxml/rng-util c:/nxml-mode-20041004/rng-uri hides c:/emacs-23.2/lisp/nxml/rng-uri c:/nxml-mode-20041004/rng-pttrn hides c:/emacs-23.2/lisp/nxml/rng-pttrn c:/nxml-mode-20041004/rng-parse hides c:/emacs-23.2/lisp/nxml/rng-parse c:/nxml-mode-20041004/rng-nxml hides c:/emacs-23.2/lisp/nxml/rng-nxml c:/nxml-mode-20041004/rng-match hides c:/emacs-23.2/lisp/nxml/rng-match c:/nxml-mode-20041004/rng-maint hides c:/emacs-23.2/lisp/nxml/rng-maint c:/nxml-mode-20041004/rng-loc hides c:/emacs-23.2/lisp/nxml/rng-loc c:/nxml-mode-20041004/rng-dt hides c:/emacs-23.2/lisp/nxml/rng-dt c:/nxml-mode-20041004/rng-cmpct hides c:/emacs-23.2/lisp/nxml/rng-cmpct c:/nxml-mode-20041004/nxml-util hides c:/emacs-23.2/lisp/nxml/nxml-util c:/nxml-mode-20041004/nxml-uchnm hides c:/emacs-23.2/lisp/nxml/nxml-uchnm c:/nxml-mode-20041004/nxml-rap hides c:/emacs-23.2/lisp/nxml/nxml-rap c:/nxml-mode-20041004/nxml-parse hides c:/emacs-23.2/lisp/nxml/nxml-parse c:/nxml-mode-20041004/nxml-outln hides c:/emacs-23.2/lisp/nxml/nxml-outln c:/nxml-mode-20041004/nxml-ns hides c:/emacs-23.2/lisp/nxml/nxml-ns c:/nxml-mode-20041004/nxml-mode hides c:/emacs-23.2/lisp/nxml/nxml-mode c:/nxml-mode-20041004/nxml-maint hides c:/emacs-23.2/lisp/nxml/nxml-maint c:/nxml-mode-20041004/nxml-glyph hides c:/emacs-23.2/lisp/nxml/nxml-glyph c:/nxml-mode-20041004/nxml-enc hides c:/emacs-23.2/lisp/nxml/nxml-enc Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug parse-time cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-cvs regexp-opt etags nxml-enc psvn wid-edit cl cl-19 log-edit ring pcvs-util add-log diff-mode easy-mmode easymenu saveplace paren cus-start cus-load tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) --=3D-=3D-=3D-- IMPORTANT NOTICE: This message is intended only for the use of the individua= l or entity to which it is addressed. The message may contain information th= at is privileged, confidential and exempt from disclosure under applicable l= aw. If the reader of this message is not the intended recipient, or the empl= oyee or agent responsible for delivering the message to the intended recipie= nt, you are notified that any dissemination, distribution or copying of this= communication is strictly prohibited. If you have received this communicati= on in error, please notify Redline immediately by email at postmaster@redlin= ecommunications.com. Thank you. --_000_6620B585D24F6A428C911A76DC344E010688CD4EF9MAIL1redlinec_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-EC0D2A8E-5CB7-4969-9C36-46D859D137BE-PartID: 8892DE7F-D750-485B-8412-EA3590BE1F69

Sorry, that description only applies for version 21.3. For 23= .2, it seems to have been fixed ( but I did observe it happened once for that fi= le with full content rather than the provided snippet) .

Michael

 

 

From: Michael Jin
Sent: Thursday, June 03, 2010 8:59 AM
To: 'bug-gnu-emacs@gnu.org'
Subject: 23.2; font-lock-mode not work properly for certain C file content

 

*** E-Mail body has be= en placed on clipboard, please paste it here! ***

--=3D-=3D-=3D

Content-Type: text

Content-Disposition: inline; filename=3Da.c

Content-Description: a piece of C code that will trigger malfunction of

 font-lock-mode

 

 

 

/*

DESCRIPTION

This library provides additional APIs offered by the Network Protocol

=

Toolkit (NPT) architecture.  These APIs extend the original release = of

the MUX interface.

 

A NPT driver is an enhanced END but retains all of the END's functionalit= y.

NPT also introduces the term "network service sublayer" or simp= ly "service

sublayer" which is the component that interfaces between the network= service

(or network protocol) and the MUX.  This service sublayer may be bui= lt in

to the network service or protocol rather than being a separate component= .

 

INTERNAL

 

muxTkBind() should be used when the protocol uses callbacks (e.g. receive=

routine, TX restart routine, etc.), of the NPT style.

muxBind() should be used when the protocol uses pre-NPT style callbacks.<= /p>

 

While muxTkBind() may be used to bind to an END driver device, some protocols

may choose to call muxBind() instead for such  END (non-NPT) style drivers,

in order to avoid the wrapper receive function which would intermediate between

the END driver's receive callback (muxReceive()) and the NPT-style protoc= ol

receive routine which would be used if the protocol bound with muxTkBind(= ).

 

It is recommended that protocols call muxTkPollSend() and muxTkPollReceiv= e()

instead of muxPollSend() and muxPollReceive().

 

 

INCLUDE FILES: vxWorks.h, taskLib.h, stdio.h, errno.herrnoLib.h, lstlib.h= ,

logLib.h, string.h, m2Lib.h, net/if.h, bufLib.h, semlib.h, end.h, muxLib.= h,

muxTkLib.h, netinet/if_ether.h, net/mbuf.h

*/

 

/* includes */

 

#include <osdep.h>

#include <stdio.h>

#include <stdlib.h>

#include <errnoLib.h>

#include <logLib.h>

#include <tor22port.h>

#include <machdep.h>

 

#include <m2Lib.h>

#include <net/if.h>          =    /* Needed for IFF_LOAN flag. */

#include <end.h>

#include <endLib.h>

#if 0

#include <end.h>          &nb= sp;         /* Necessary for any END as well as the MUX */

#include <endLib.h>

#include <muxLib.h>

#endif

#include <private/muxLibP.h>

#include <muxTkLib.h>

#include <netinet/in.h>    /* Needed for in_addr use= d in if_ether.h */

#include <netinet/if_ether.h>

#include <net/mbuf.h>

#include <syslog.h>

 

#ifdef VIRTUAL_STACK

#include <netinet/vsLib.h>

#include <netinet/vsData.h>

#endif /* VIRTUAL_STACK */

 

/* defines */

 

#define STREQ(A, B) (strcmp ( (A), (B)) =3D=3D 0)

 

/* globals */

 

int muxTkDebug =3D 0;

 

/* locals */

 

LOCAL UINT32 _muxAnonProtoCount =3D 1;

 

/* forward declarations */

 

LOCAL int muxEndRcvRtn (void *, long, M_BLK_ID, LL_HDR_INFO *, void *);

LOCAL int muxEndSnarfRcvRtn (void *, long, M_BLK_ID, LL_HDR_INFO *, void = *);

 

/************************************************************************= *****

*

* muxTkLibInit - initialize NPT extensions to MUX

*

* This placeholder routine initializes NPT extensions to the MUX.

*

* RETURNS: OK

*

* SEE ALSO: muxInit()

*/

 

STATUS muxTkLibInit (void)

    {

    return OK;

    }

 

/************************************************************************= *****

*

* muxTkDrvCheck - checks if the device is an NPT or an END interface

*

* This function returns 1 if the driver indicated by <pDevName> is = of the

* Toolkit (NPT) paradigm, and 0 (zero) if it is an END.  This routin= e is

* called by the network service sublayer so that it can discover the driv= er

* type before it binds to it via the MUX.

*

* INTERNAL:

* All network drivers having the same device name but different unit numb= ers

* are assumed to be of the same type (NPT or END), so passing just the

* device name as an argument is sufficient

*

* We should return a new code for MULTI style drivers, but for backwards<= /p>

* compatibility, we return either 1 or 0. 1 is returned for MULTI style

* drivers as for NPT, since MULTI-style drivers are required to provide

* an EIOCGNPT ioctl returning OK.

*

* .IP <pDevName>

* Expects a pointer to a string containing the name of the device

*

* RETURNS: 1 for an NPT driver, 0 for an END or other driver, or ERROR (-= 1)

* if no device is found with the given name

*

* SEE ALSO: muxTkBind(), muxBind()

*/

 

int muxTkDrvCheck

    (

    char * pDevName   /* device name */

    )

    {

    int result =3D ERROR;

    END_OBJ *    pEnd =3D NULL;    /* Pointer to the END_OBJ structure */

    int (*ioctlRtn) (END_OBJ*, int, caddr_t);

 

    pEnd =3D endFirstUnitFind (pDevName);

 

    if (pEnd =3D=3D NULL)

        return (ERROR);

 

    result =3D END_STYLE_END;

 

    if (pEnd->pFuncTable !=3D NULL &&

      (ioctlRtn =3D pEnd->pFuncTable->ioct= l) !=3D NULL &&

      /* ioctlRtn (pEnd, EIOCGSTYLE, (caddr_t)&result) !=3D OK && */

      ioctlRtn (pEnd, EIOCGNPT, NULL) =3D=3D OK)=

      {

      result =3D END_STYLE_NPT;

      }

 

    return (result);

    }

 

/************************************************************************= ******

*

* muxTkBind - bind an NPT protocol to a driver

*

* A network protocol, network service, or service sublayer uses this rout= ine

* to bind to a specific driver.  This bind routine is valid both for= END and

* NPT drivers, but the specified stack routine parameters must use the NP= T

* function prototypes, which are somewhat different from those used with<= /p>

* muxBind().

*

* The driver is specified by the <pName> and <unit> arguments= , (for example,

* ln and 0, ln and 1, or ei and 0).

*

* .IP <pName> 20

* Expects a pointer to a character string that contains the name of the

* device that this network service wants to use to send and receive packe= ts.

* .IP <unit>

* Expects the unit number of the device of the type indicated by <pName>.

* .IP <stackRcvRtn>

* Expects a pointer to the function that the MUX will call when it

* wants to pass a packet up to the network service. 

* .IP <stackShutdownRtn>

* Expects a pointer to the function that the MUX will call to

* shutdown the network service.  For a description of how to write s= uch

* a routine, see the section

* .I Network Protocol Toolkit Programmer's Guide: Shutting Down an Interf= ace

* .IP <stackTxRestartRtn>

* Expects a pointer to the function that the MUX will call after packet

* transmission has been suspended, to tell the network service that it ca= n

* continue transmitting packets.  For a description of how to write this

* routine, see the section

* .I Network Protocol Toolkit Programmer's Guide: Flow Control

* .IP <stackErrorRtn>

* Expects a pointer to the function that the MUX will call to give errors=

* to the network service.  For a description of how to write this routine,

* see the section

* .I Network Protocol Toolkit Programmer's Guide: Error Reporting

* .IP <type>

* Expects a value that indicates the protocol type.  The MUX uses th= is type

* to prioritize a network service as well as to modify its capabilities.  For

* example, a network service of type MUX_PROTO_SNARF has the highest priority

* (see the description of protocol prioritizing provided in

* .I Network Protocol Toolkit Programmer's Guide: The Bind Phase)

* Aside from MUX_PROTO_SNARF and MUX_PROTO_PROMISC, valid network service=

* types include any of the values specified in RFC 1700, or can be

* user-defined. Within each group (snarf, typed, or promiscuous), protoco= ls

* bound earlier have priority over protocols bound later.

*

* IMPORTANT NOTE:

* Though this API can be used to bind to both END and NPT devices, the

* prototypes for the four protocol functions being registered are always<= /p>

* the NPT style ones, as shown below.

*

* NPT protocol callbaks:

*   BOOL   (*stackRcvRtn) (void*, long, M_BLK_ID, voi= d *),

*   STATUS (*stackShutdownRtn) (void *),

*   STATUS (*stackTxRestartRtn) (void *)

*   void   (*stackErrorRtn) (void*, END_ERR*)

*

* This API does not perform any type checking, so it is up to the caller<= /p>

* to make sure the appropriate callback prototypes are present.

*

* The <stackRcvRtn> is called whenever the MUX has a packet of the specified

* type.  If the type is MUX_PROTO_PROMISC, the protocol is considere= d

* promiscuous and will get all of the packets that have not been consumed=

* by any other protocol.  If the type is MUX_PROTO_SNARF, it will ge= t all of

* the packets that the MUX sees not consumed by a previous MUX_PROTO_SNAR= F

* protocol.

*

* If the type is MUX_PROTO_OUTPUT, this network service is an output protocol

* and all packets that are to be output on this device are first passed t= o

* <stackRcvRtn> routine rather than being sent to the device. = This can be

* used by a network service

 

--=3D-=3D-=3D

 

 

 

 

In GNU Emacs 23.2.1 (i386-mingw-nt5.1.2600)

 of 2010-05-08 on G41R2F1

Windowing system distributor `Microsoft Corp.', version 5.1.2600

configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'

 

Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: ENU

  value of $XMODIFIERS: nil

  locale-coding-system: cp1252

  default enable-multibyte-characters: t

 

Major mode: C/l

 

Minor modes in effect:

  diff-auto-refine-mode: t

  show-paren-mode: t

  tooltip-mode: t

  mouse-wheel-mode: t

  tool-bar-mode: t

  menu-bar-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  blink-cursor-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  column-number-mode: t

  line-number-mode: t

  transient-mark-mode: t

  abbrev-mode: t

 

Recent input:

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse= -1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>

<wheel-down> <double-wheel-down> <triple-wheel-down>

<wheel-up> <help-echo> <help-echo> <wheel-down> <double-wheel-down>

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>

<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>

<help-echo> <help-echo> <help-echo> <menu-bar> <help-menu>

<send-emacs-bug-report>

 

Recent messages:

Loading c:/nxml-mode-20041004/rng-auto.el (source)...done

For information about GNU Emacs and the GNU system, type C-h C-a.

Keep current list of tags tables also? (y or n)  [2 times]

Loading vc-cvs...done

Mark set [2 times]

byte-code: Beginning of buffer [7 times]

Mark set

byte-code: End of buffer [3 times]

Mark set

Auto-saving...done

 

Load-path shadows:

c:/nxml-mode-20041004/xsd-regexp hides c:/emacs-23.2/lisp/nxml/xsd-regexp=

c:/nxml-mode-20041004/xmltok hides c:/emacs-23.2/lisp/nxml/xmltok

c:/nxml-mode-20041004/rng-xsd hides c:/emacs-23.2/lisp/nxml/rng-xsd

c:/nxml-mode-20041004/rng-valid hides c:/emacs-23.2/lisp/nxml/rng-valid

c:/nxml-mode-20041004/rng-util hides c:/emacs-23.2/lisp/nxml/rng-util

=

c:/nxml-mode-20041004/rng-uri hides c:/emacs-23.2/lisp/nxml/rng-uri

c:/nxml-mode-20041004/rng-pttrn hides c:/emacs-23.2/lisp/nxml/rng-pttrn

c:/nxml-mode-20041004/rng-parse hides c:/emacs-23.2/lisp/nxml/rng-parse

c:/nxml-mode-20041004/rng-nxml hides c:/emacs-23.2/lisp/nxml/rng-nxml

=

c:/nxml-mode-20041004/rng-match hides c:/emacs-23.2/lisp/nxml/rng-match

c:/nxml-mode-20041004/rng-maint hides c:/emacs-23.2/lisp/nxml/rng-maint

c:/nxml-mode-20041004/rng-loc hides c:/emacs-23.2/lisp/nxml/rng-loc

c:/nxml-mode-20041004/rng-dt hides c:/emacs-23.2/lisp/nxml/rng-dt

c:/nxml-mode-20041004/rng-cmpct hides c:/emacs-23.2/lisp/nxml/rng-cmpct

c:/nxml-mode-20041004/nxml-util hides c:/emacs-23.2/lisp/nxml/nxml-util

c:/nxml-mode-20041004/nxml-uchnm hides c:/emacs-23.2/lisp/nxml/nxml-uchnm=

c:/nxml-mode-20041004/nxml-rap hides c:/emacs-23.2/lisp/nxml/nxml-rap

=

c:/nxml-mode-20041004/nxml-parse hides c:/emacs-23.2/lisp/nxml/nxml-parse=

c:/nxml-mode-20041004/nxml-outln hides c:/emacs-23.2/lisp/nxml/nxml-outln=

c:/nxml-mode-20041004/nxml-ns hides c:/emacs-23.2/lisp/nxml/nxml-ns

c:/nxml-mode-20041004/nxml-mode hides c:/emacs-23.2/lisp/nxml/nxml-mode

c:/nxml-mode-20041004/nxml-maint hides c:/emacs-23.2/lisp/nxml/nxml-maint=

c:/nxml-mode-20041004/nxml-glyph hides c:/emacs-23.2/lisp/nxml/nxml-glyph=

c:/nxml-mode-20041004/nxml-enc hides c:/emacs-23.2/lisp/nxml/nxml-enc

=

 

Features:

(shadow sort mail-extr message ecomplete rfc822 mml mml-sec

password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231

rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc

time-date mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util

hashcash mail-utils emacsbug parse-time cc-mode cc-fonts cc-menus

cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-cvs regexp-opt

etags nxml-enc psvn wid-edit cl cl-19 log-edit ring pcvs-util add-log

=

diff-mode easy-mmode easymenu saveplace paren cus-start cus-load tooltip<= /p>

ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp

=

w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register

=

page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock

font-lock syntax facemenu font-core frame cham georgian utf-8-lang

misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew

=

greek romanian slovak czech european ethiopic indian cyrillic chinese

=

case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button

minibuffer faces cus-face files text-properties overlay md5 base64

format env code-pages mule custom widget hashtable-print-readable

backquote make-network-process multi-tty emacs)

 

--=3D-=3D-=3D--


IMPORTANT NOTICE: This message is intended only f= or the use of the individual or entity to which it is addressed. The message= may contain information that is privileged, confidential and exempt from di= sclosure under applicable law. If the reader of this message is not the inte= nded recipient, or the employee or agent responsible for delivering the mess= age to the intended recipient, you are notified that any dissemination, dist= ribution or copying of this communication is strictly prohibited. If you hav= e received this communication in error, please notify Redline immediately by= email at
postmaster@redlinecommunications.com
.

Thank = you.

--_000_6620B585D24F6A428C911A76DC344E010688CD4EF9MAIL1redlinec_-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 07 17:48:56 2010 Received: (at 6341-done) by debbugs.gnu.org; 7 Jun 2010 21:48:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLkBj-0003xW-LN for submit@debbugs.gnu.org; Mon, 07 Jun 2010 17:48:56 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OLkBh-0003xQ-VQ for 6341-done@debbugs.gnu.org; Mon, 07 Jun 2010 17:48:54 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OLkBd-0002hZ-JO; Mon, 07 Jun 2010 17:48:49 -0400 To: 6341-done@debbugs.gnu.org Subject: Re: bug#6341: 23.2; font-lock-mode not work properly for certain C file content References: <6620B585D24F6A428C911A76DC344E010688CD4EF8@MAIL1.redline.com> <6620B585D24F6A428C911A76DC344E010688CD4EF9@MAIL1.redline.com> From: Glenn Morris X-Spook: hackers blackjack AFSPC ASPIC Blowfish analyzer chameleon X-Ran: giwns{nP'`xsPJ`r?YLqMgM9"usN'4m1cD3Q&{R'0MfHsTboOVKBB&TG(gp[kHtuM&UKek X-Hue: yellow X-Debbugs-No-Ack: yes X-Attribution: GM Date: Mon, 07 Jun 2010 17:48:49 -0400 In-Reply-To: <6620B585D24F6A428C911A76DC344E010688CD4EF9@MAIL1.redline.com> (Michael Jin's message of "Thu\, 3 Jun 2010 09\:32\:29 -0400") Message-ID: <6jhbleseda.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.1 (------) X-Debbugs-Envelope-To: 6341-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) Michael Jin wrote: > Sorry, that description only applies for version 21.3. For 23.2, it > seems to have been fixed ( but I did observe it happened once for > that file with full content rather than the provided snippet) . If it works in 23.2, I will close this bug. From unknown Sun Jun 22 03:50:47 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 06 Jul 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator