freebasic / fbfrog

FreeBASIC binding creation tool
Other
34 stars 17 forks source link

Comment without newline in .fbfrog file causes error #5

Closed rversteegen closed 3 years ago

rversteegen commented 3 years ago

If a .fbfrog file ends on a # comment with no newline after it something goes wrong, apparently an invalid pointer is followed and it errors out.

> fbfrog test.fbfrog test.h 
[ 1/23] linux-x86
#include "E"
(1): could not open file: '/mnt/common/src/!lang/fbbindings/E'

where test.fbfrog contains a single byte, #, and test.h doesn't even contain any #include lines. The #include filenames I've seen are one or two characters of garbage.

An insignificant bug; I'm just filing it so I can ignore it.