freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] Cleaning up ttinterp


From: Behdad Esfahbod
Subject: Re: [ft-devel] Cleaning up ttinterp
Date: Tue, 14 Oct 2014 23:31:41 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2

On 14-10-14 11:25 PM, Werner LEMBERG wrote:
> 
>> Which other ones do you want documented?  I don't see any value in
>> documenting, eg, these, as they are very self-documenting:
> 
> Mhmm.  Just for consistency, I would like to have
> 
> 
>   /*************************************************************************/
>   /*                                                                       */
>   /* FLIPOFF[]:    Set auto-FLIP to OFF                                    */
>   /* Opcode range: 0x4E                                                    */
>   /* Stack: -->                                                            */
>   /*                                                                       */
>   case 0x4E:  /* FLIPOFF */
>     exc->GS.auto_flip = FALSE;
>     break;
>  
>   /*************************************************************************/
>   /*                                                                       */
>   /* DEBUG[]:      DEBUG.  Unsupported.                                    */
>   /* Opcode range: 0x4F                                                    */
>   /* Stack:        uint32 -->                                              */
>   /*                                                                       */
>   /* Note: The original instruction pops a value from the stack.           */
>   /*                                                                       */
>   case 0x4F:  /* DEBUG */
>     exc->error = FT_THROW( Debug_OpCode );
>     break;
> 
>   ...
> 
> As you can see, the comment
> 
>   Note: The original instruction pops a value from the stack.
> 
> would be lost otherwise.

At the end of the day, the push-pop accounting happens elsewhere.

I don't think I'd have time to fixup the rest soon.  If someone wants to
continue that would be nice.  I personally find the six lines of comments per
four lines of code+whitespace too distracting.

-- 
behdad
http://behdad.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]