你遇到过的源代码中最好的注释是什么?


当前回答

long time; /* just seems that way */

其他回答

// Empty constructor to satisfy the stupid compiler
 Public ServletHandlerClass () { } 
// All this code is yours, except gedit()...attempt no modifications there.

在drivers/net/sunhme.c (Linux内核)中:

/* Welcome to Sun Microsystems, can I take your order please? */
if(!hp->happy_flags & HFLAG_FENABLE)
        return happy_meal_bb_write(hp, tregs, reg, value);

/* Would you like fries with that? */
hme_write32(hp, &tregs->frame,
            (FRAME_WRITE | (hp->paddr << 23) |
             ((reg & 0xff) << 18) | (value & 0xffff)));
while(!(hme_read32(hp, &tregs->frame) & 0x10000) && --tries)
        udelay(20);

/* Anything else? */
if(!tries)
        printk(KERN_ERR "happy meal: Aieee, transceiver MIF write bolixed\n");

/* Fifty-two cents is your change, have a nice day. */
catch (Exception ex)
{ 
    // just die already.
}
// BEGIN HACK
...
// END HACK: I feel dirty.