[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nuke strncpy
From: |
Jim Meyering |
Subject: |
nuke strncpy |
Date: |
Thu, 3 May 2012 23:18:28 +0200 |
I noticed that there were some unnecessary uses of strncpy in bison.
The first patch removes them.
Along the way I noticed a 3-line xmalloc+memcpy+zero-one-byte sequence
that can be replaced by a single-line xstrdup use. That's #2.
And #3 merely regenerates parse-gram.[ch].
[PATCH 1/3] maint: s/strncpy/memcpy/, when equivalent
[PATCH 2/3] maint: simplify parse-gram.y
[PATCH 3/3] maint: regen src/parse-gram.[ch]
- nuke strncpy,
Jim Meyering <=
- [PATCH 1/3] maint: s/strncpy/memcpy/, when equivalent, Jim Meyering, 2012/05/03
- [PATCH 3/3] maint: regen src/parse-gram.[ch], Jim Meyering, 2012/05/03
- [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/03
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Akim Demaille, 2012/05/04
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/04
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/05
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Akim Demaille, 2012/05/06
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/06
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Akim Demaille, 2012/05/06
- Re: [PATCH 2/3] maint: simplify parse-gram.y, Jim Meyering, 2012/05/06