]> git.tuebingen.mpg.de Git - lopsub.git/commit
config_file.l: Move helper functions to user code section.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 11 Jul 2017 20:24:10 +0000 (22:24 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 28 Nov 2017 09:54:24 +0000 (10:54 +0100)
commit42ce69710691440c9afc2781124b57447fa18415
tree8ce99f15922f0b208f9165688894d40c36ada201
parent825083ef841055965335996771b385e4cb9c62ca
config_file.l: Move helper functions to user code section.

These functions refer to the global variables yytext and yylen.
Reentrant scanners need to use accessor methods instead of accessing
the global variables directly. But these methods are not available
in the definitions section.

As a preparation for making the scanner reentrant, this patch moves
the three helper functions from the definitions section to the user
code section. Since the functions are called from the actions of the
pattern rules, we need to provide forward declarations.

Pure code movement, no actual changes.
config_file.l