isl_printer: save copy of prefix/suffix
commitfac322b834bde76b8456e1379865b593c3bed5d8
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 8 Feb 2014 13:26:38 +0000 (8 14:26 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 2 Mar 2014 19:02:24 +0000 (2 20:02 +0100)
tree042cf03a48e8154670ed59cb5c1f9cee7de9fb80
parenteb3c5524dc11925d3940f9341ca8203e76d47682
isl_printer: save copy of prefix/suffix

The original implementation would simply copy the pointer passed
to isl_printer_set_prefix or isl_printer_set_suffix, which is unsafe
since the caller could release the corresponding memory after calling
these functions.  Keep a copy of the strings instead.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_printer.c
isl_printer_private.h