View Single Post
  #1 (permalink)  
Old 08-25-2005
acbell acbell is offline
Registered User
 
Name: Andrew Bell
Organization: Iowa State University
Project: National Resources Inventory
 
Join Date: Jan 2005
Location: Ames, IA, USA
Posts: 89
slice2freeze correct header with --output-dir option

Hi,

Here is a patch to 2.1.0 to fix the locations of slice output header files in the source generated by slice2freeze. The 2.1.0 code ignores the --output-dir option when inserting #include directives into its output. This patch corrects this oversight.

This fix assumes that if you use the --output-dir option for slice2freeze, you will use the same option for slice2cpp. This may not be the best assumption, but I believe it's better than what is currently done. This has been tested a little on gcc/Solaris, but it's portable code, so it should work elsewhere.

This patch should also work on version 2.1.2, but this hasn't been tested.

Cheers,

-- Andrew Bell
andrew.bell.ia@gmail.com
Attached Files
File Type: txt patch.txt (2.0 KB, 275 views)
Reply With Quote