[Python-Dev] Py_DECREF causes spurious gcc warning (original) (raw)
Zack Weinberg zack at codesourcery.com
Sat Dec 20 14:02:27 EST 2003
- Previous message: [Python-Dev] Py_DECREF causes spurious gcc warning
- Next message: [Python-Dev] Py_DECREF causes spurious gcc warning
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
martin at v.loewis.de (Martin v. Löwis) writes:
"Zack Weinberg" <zack at codesourcery.com> writes:
It does, however, lead to a different problem:
if (condition) PyDECREF (foo); else // oops, syntax error here How so? This expands to if(condition) if(cond2)action1; else action2; else
No, it expands to
if(condition) if(cond2) action1; else action2;; else
-- note the extra semicolon, which provokes a syntax error.
zw
- Previous message: [Python-Dev] Py_DECREF causes spurious gcc warning
- Next message: [Python-Dev] Py_DECREF causes spurious gcc warning
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]