]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
BBHandler: Improve IN_PYTHON_EOF handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Dec 2015 13:21:14 +0000 (13:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 22 Dec 2015 00:01:48 +0000 (00:01 +0000)
commite0f05871c2a6f1e86ae19ad343c7c6f822ddb67e
treee64170cc204534a38c35dfa3884b2fa1da964543
parent0fd04ede3fda6894d97a5ef830b79dbbc9c6cf51
BBHandler: Improve IN_PYTHON_EOF handling

Now we're actively using the line numbers for other thins, having
magic values like IN_PYTHON_EOF causes problems, in particular, 32
bit overflow on 32 bit machines.

There is a neater way to signal eof to feeder(), just using an extra
parameter so use this instead and drop the IN_PYTHON_EOF magic values.

This has the added bonus that line numbers are then correct for
python functions at the end of files.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/parse/parse_py/BBHandler.py