]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
bitbake: 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:02:05 +0000 (00:02 +0000)
commitc61c1eb26a082c81473a45977cad5f811d2cf598
tree724a642220d015c43f34b01df0c36382e923f11b
parent2a941943d9d97ea2b09260f9138964d2a56152d2
bitbake: 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.

(Bitbake rev: e0f05871c2a6f1e86ae19ad343c7c6f822ddb67e)

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