]> granicus.if.org Git - python/commit
Massive edits. If p is a pointer to a struct, and p->f is a pointer to
authorTim Peters <tim.peters@gmail.com>
Sun, 2 Feb 2003 18:29:33 +0000 (18:29 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 2 Feb 2003 18:29:33 +0000 (18:29 +0000)
commit0bc93f5c8ba8204e1cdd89c20bc0600af4446b5a
tree7cb4e8b64dc04f5582744320c097004a0c41a335
parentac5687a51575dfc14cc8d5b4b8a653b474e48f64
Massive edits.  If p is a pointer to a struct, and p->f is a pointer to
a function, then

    p->f(arg1, arg2, ...)

is semantically the same as

    (*p->f)(arg1, arg2, ...)

Changed all instances of the latter into the former.  Given how often
the code embeds this kind of expression in an if test, the unnecessary
parens and dereferening operator were a real drag on readability.
Modules/cPickle.c