2002-10-01 18:24:06

by Eli Carter

[permalink] [raw]
Subject: Re: Stupid luser question

[email protected] 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, /* { */
[snip]

Probably folding... possibly from vim/gvim.

If you're curious, look at: http://vim.sourceforge.net/htmldoc/fold.html
:set foldmethod=marker
:set foldmarker={,}
:set foldcolumn=6
Gets folding "mostly right" for C/C++ code. Manually added folds add in
a C comment containing the foldmarker, in this case "/* { */"
and "/* } */"

emacs probably has this feature as well, but I'm a vim person myself. :)

If you are not familiar with folding, look into it. I find it very
useful when dealing with unfamiliar code or looking at program structure.

HTH,

Eli
--------------------. "If it ain't broke now,
Eli Carter \ it will be soon." -- crypto-gram
eli.carter(a)inet.com `-------------------------------------------------