On 05/31/2016 03:32 PM, John Johansen wrote:
> And a follow-up patch for my ack (it is not conditional on it)
> 
> ---
> 
> commit aa345e8e05fbd979b2f74c0937eec3b7b7f816cf
> Author: John Johansen <[email protected]>
> Date:   Tue May 31 13:30:13 2016 -0700
> 
>     combine SUB_ID and SUB_ID_WS to reduce code duplication
>     
>     Signed-off-by: John Johansen <[email protected]>

Good idea. I wanted to reduce the duplicated code but didn't think of
this obvious-now-that-I-see-it approach.

Acked-by: Tyler Hicks <[email protected]>

I'm going to include this in my set of patches that I push to lp:apparmor

Tyler

> 
> diff --git a/parser/parser_lex.l b/parser/parser_lex.l
> index a59daa6..6e5189f 100644
> --- a/parser/parser_lex.l
> +++ b/parser/parser_lex.l
> @@ -322,15 +322,7 @@ LT_EQUAL <=
>       }
>  }
>  
> -<SUB_ID>{
> -     ({IDS}|{QUOTED_ID}) {
> -             /* Go into separate state to match generic ID strings */
> -             yylval.id =  processid(yytext, yyleng);
> -             POP_AND_RETURN(TOK_ID);
> -     }
> -}
> -
> -<SUB_ID_WS>{
> +<SUB_ID,SUB_ID_WS>{
>       ({IDS}|{QUOTED_ID}) {
>               /* Go into separate state to match generic ID strings */
>               yylval.id =  processid(yytext, yyleng);
> 


Attachment: signature.asc
Description: OpenPGP digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to