]>
git.refcnt.org Git - colorize.git/blob - lib/Colorize/Common.pm
1 package Colorize
::Common
;
6 use constant true
=> 1;
8 use File
::Temp
qw(tempfile);
10 our (@EXPORT_OK, %EXPORT_TAGS);
13 @defaults = qw($source $compiler);
14 @EXPORT_OK = (qw($compiler_flags %BUF_SIZE $valgrind_command $write_to_tmpfile), @defaults);
15 %EXPORT_TAGS = ('defaults' => [ @defaults ]);
17 our ($source, $compiler, $compiler_flags, %BUF_SIZE, $valgrind_command, $write_to_tmpfile);
23 $source = 'colorize.c';
25 $compiler_flags = '-ansi -pedantic -Wall -Wextra -Wformat -Wswitch-default -Wuninitialized -Wunused -Wno-unused-function -Wno-unused-parameter';
30 $valgrind_command = 'valgrind';
31 $write_to_tmpfile = sub
35 my ($fh, $tmpfile) = tempfile(UNLINK => true);