linkchecker/linkcheck/HtmlParser
Marius Gedminas 03dfe3d3a1 Fix "operation on ... may be undefined" [-Wsequence-point] warnings
Fixes a bunch of warnings like

  htmlparse.y:509:25: warning: operation on ‘self->userData->buf’ may be undefined [-Wsequence-point]
  htmlparse.y:518:29: warning: operation on ‘self->userData->tmp_buf’ may be undefined [-Wsequence-point]

which were a result of (macro-expanded) code like this (simplified):

  if ((tmp = (tmp = PyMem_Realloc(...))) == NULL) return NULL;

The PyMem_Resize(p, ...) macro assigns the new value to p before
returning it, so there's no need to assign it again.

See http://bugs.python.org/issue1668036 for evidence (from 2007) that
this is indeed a documented side-effect of the macro API.
2017-02-13 15:20:33 +02:00
..
.gitignore Added .gitignore files 2008-02-08 10:38:29 +00:00
__init__.py More python3 fixes 2014-09-12 21:59:07 +02:00
fixincludes.awk ensure that Python.h gets included before any system headers 2004-09-06 15:19:23 +00:00
htmllex.c Fix "operation on ... may be undefined" [-Wsequence-point] warnings 2017-02-13 15:20:33 +02:00
htmllex.l Fix "operation on ... may be undefined" [-Wsequence-point] warnings 2017-02-13 15:20:33 +02:00
htmllib.py Introduce check plugins, use Python requests for http/s connections, and some code cleanups and improvements. 2014-03-01 00:12:34 +01:00
htmlparse.c Fix "operation on ... may be undefined" [-Wsequence-point] warnings 2017-02-13 15:20:33 +02:00
htmlparse.h Fix "operation on ... may be undefined" [-Wsequence-point] warnings 2017-02-13 15:20:33 +02:00
htmlparse.y Fix "operation on ... may be undefined" [-Wsequence-point] warnings 2017-02-13 15:20:33 +02:00
htmlsax.h Introduce check plugins, use Python requests for http/s connections, and some code cleanups and improvements. 2014-03-01 00:12:34 +01:00
Makefile Fix parser for changes in bison 3.0.x 2015-11-26 12:33:44 +01:00
s_util.c Require and use Python 2.5 2008-04-27 11:39:21 +00:00
s_util.h remove unused include 2006-10-19 19:30:55 +00:00