2 # This file is part of LyX, the document processor.
3 # Licence details can be found in the file COPYING.
7 # Full author contact details are available in file CREDITS
9 # This sed script is run on the .C file after the main fdfixc.sed has done
10 # its stuff. It ensures that any tmp_str variables inserted by fdfixc.sed
11 # are declared at the top of the appropriate function.
13 # We use a two-pass algorithm like this because a single pass results in
17 # Initialise the hold space at the start of the function.
24 # For all lines within the function...
27 # If it isn't the last line, append it to the hold space.
33 # If it is the last line, paste the contents of the hold space above it,
34 # seach for the string "tmp_str" and, if found, add its declaration to the top
40 /tmp_str/s/\( FL_OBJECT \*\)/ string tmp_str;\