On Sat, Oct 13, 2007 at 02:47:20PM +0000, Johannes Schindelin wrote:g"), files"), t git already knows about"), tat() informations in the index"), n=20 =20 adding a trailing comma does not add a NULL after that, it's ignored, you're confused. =E2=94=8C=E2=94=80(17:00)=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=94[artemis] cat a.c #include <stdio.h> int main(void) { const char * const arr[] =3D { "1", "2", }; printf("%d\n", sizeof(arr) / sizeof(arr[0])); return 0; }; =E2=94=8C=E2=94=80(17:00)=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=94[artemis] ./a 2 Very few compilers do not grok trailing commas, I always put them because it avoids spurious diffs for nothing, and that you can reorder lines easily too. Note that I don't really like using ARRAY_SIZE either, I kept it that way, but my taste would rather be to have an "empty" option, and explicitely mark the end of the array. --=20 =C2=B7O=C2=B7 Pierre Habouzit =C2=B7=C2=B7O madcoder@debia= n.org OOO http://www.madism.org
| James Bottomley | Breakage caused by unreviewed patch in x86 tree |
| Andrew Morton | Re: POHMELFS high performance network filesystem. Transactions, failover, performa... |
| Randy Dunlap | Re: 2.6.25-rc5-mm1 (paravirt/vsmp/no PCI) |
| Arnd Hannemann | 2.6.24-rc8 hangs at mfgpt-timer |
| Theodore Ts'o | Re: SVGA-alphanum. modes |
| Joseph R. Pannon | More install questions |
| Paul Richards | Header files |
| Les Andrzejewski | X386/WD90C31/SUMSUNG SYNC MASTER 4 |
git: | |
| David Miller | Re: [BUG] New Kernel Bugs |
| David Miller | Re: iptables very slow after commit784544739a25c30637397ace5489eeb6e15d7d49 |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
