]> git.tuebingen.mpg.de Git - lopsub.git/commit
config_file.l: Change default prefix for global symbols.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 11 Jul 2017 19:41:47 +0000 (21:41 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 28 Nov 2017 09:54:24 +0000 (10:54 +0100)
commit825083ef841055965335996771b385e4cb9c62ca
tree9368de90a207d7abb58aa385055b2052e4ab20ce
parent7606d1c3e5626ecd9d6ec8fbf76b3a2507251dd7
config_file.l: Change default prefix for global symbols.

Without this, applications which use flex for their own work might run
into problems due to duplicate symbols when linking against liblopsub.
Since this is an ABI change, we have to increment the ABI version
number.

No changes in the source code are necessary since flex provides macros
which allow to still refer to the variables and functions with the
usual yy prefixed names. However, the command

nm -e liblopsub.a

shows that the external symbols are now prefixed with lls_yy.

Note that the patch only changes config_file.l. We don't bother to
adjust lopsubgen.l in the same way because the object file which
is derived from lopsubgen.l is not part of the library. It is only
linked into the lopsubgen executable.
config_file.l
lopsub-internal.h