[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: RFC: don't use strncmp
From: |
Akim Demaille |
Subject: |
Re: RFC: don't use strncmp |
Date: |
Fri, 9 Mar 2012 07:39:44 +0100 |
Le 23 févr. 2012 à 20:22, Akim Demaille a écrit :
> From 53645905ea763faa4ec9d28260894c476a19b38e Mon Sep 17 00:00:00 2001
> From: Akim Demaille <address@hidden>
> Date: Thu, 23 Feb 2012 20:14:42 +0100
> Subject: [PATCH] avoid direct strncmp calls.
>
> Before this change, bison would accept either .tab and _tab equivalently,
> whatever the current platform. Besides, it was not obeying everywhere
> to the possible definition of TAB_EXT to something else than .tab.
>
> For consistency, handle only TAB_EXT (".tab" on non DJGPP platforms).
> Support for "_tab" is neither documented, nor tested.
>
> * src/system.h (STRNCMP_LIT): New.
> From Jim Meyering.
> (STRPREFIX_LIT): New.
> * src/files.c, src/getargs.c: Use it.
Installed in master.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: RFC: don't use strncmp,
Akim Demaille <=