From d36cc78bca5b1fd0ffcd6929304d97f7d1436db5 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Tue, 25 May 2010 06:23:03 +0000 Subject: [PATCH] Removing -x option from astyle command in order to support older versions --- modules/codepad.pl | 2 +- modules/ideone.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/codepad.pl b/modules/codepad.pl index d9127fd8..0e22d95a 100755 --- a/modules/codepad.pl +++ b/modules/codepad.pl @@ -143,7 +143,7 @@ sub pretty { my $code = join '', @_; my $result; - my $pid = open2(\*IN, \*OUT, 'astyle -xUpf'); + my $pid = open2(\*IN, \*OUT, 'astyle -Upf'); print OUT "$code\n"; close OUT; while(my $line = ) { diff --git a/modules/ideone.pl b/modules/ideone.pl index 8e6b26fb..ff363c9e 100755 --- a/modules/ideone.pl +++ b/modules/ideone.pl @@ -767,7 +767,7 @@ sub pretty { my $code = join '', @_; my $result; - my $pid = open2(\*IN, \*OUT, 'astyle -xUpf'); + my $pid = open2(\*IN, \*OUT, 'astyle -Upf'); print OUT "$code\n"; close OUT; while(my $line = ) {