Re: Stupid luser question

From: Petr Vandrovec (VANDROVE@vc.cvut.cz)
Date: Tue Oct 01 2002 - 13:30:44 EST


On 1 Oct 02 at 19:14, jbradford@dial.pipex.com wrote:

> Just wondering, what is the purpose of the comment /* { */ which is found in various seemingly random places in the kernel:
>
> # grep -F -r "/* { */" *
>
> drivers/video/font_acorn_8x8.c:/* 7B */ 0x0C, 0x18, 0x18, 0x70, 0x18, 0x18, 0x0C, 0x00, /* { */

Body of character "{"...

> drivers/scsi/scsi_syms.c:#if defined(CONFIG_SCSI_LOGGING) /* { */
> drivers/scsi/scsi.c:#ifdef CONFIG_SCSI_LOGGING /* { */
> drivers/scsi/scsi.c:#ifdef CONFIG_SCSI_LOGGING /* { */
> drivers/message/fusion/mptbase.h:#ifdef __KERNEL__ /* { */
> drivers/message/fusion/mptscsih.c:#ifndef MPT_SCSI_USE_NEW_EH /* { */
> drivers/message/fusion/mptscsih.c:#ifdef MPT_SCSI_USE_NEW_EH /* { */
> drivers/message/fusion/mptscsih.c:#if 0 /* { */
> drivers/message/fusion/mptbase.c:#ifdef CONFIG_PROC_FS /* { */

All these are for cooperation with editors which find matching
brace/bracket/... for you:

#ifdef __KERNEL__ /* { */
...
#endif /* } __KERNEL__ */

and then you can quickly jump from ifdef to endif and back even in
editor which does not know about #if/ifdef/else/elif/ifndef/endif...
                                            Best regards,
                                                        Petr Vandrovec
                                                        vandrove@vc.cvut.cz
                                                                                        
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 07 2002 - 22:00:27 EST