From c6082ba4677495086ea16cf1fbebe05ce209fd72 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 11 Mar 2018 19:27:29 -0700 Subject: [PATCH] Fix @INC --- modules/c2english/c2eng.pl | 3 +++ pbot.pl | 1 + 2 files changed, 4 insertions(+) diff --git a/modules/c2english/c2eng.pl b/modules/c2english/c2eng.pl index b53a999d..6f01a1cf 100755 --- a/modules/c2english/c2eng.pl +++ b/modules/c2english/c2eng.pl @@ -7,6 +7,8 @@ use strict; use warnings; +use lib "."; + use Parse::RecDescent; use Getopt::Std; use Data::Dumper; @@ -84,6 +86,7 @@ foreach my $arg (@ARGV) { $output =~ s/the function a generic-selection/the function resulting from a generic-selection/g; $output =~ s/\.\s+Then exit switch block/ and then exit switch block/g; $output =~ s/,\././g; + $output =~ s/of unspecified length //g; while($output =~ s/const const/const/g){}; foreach my $quote (@quotes) { diff --git a/pbot.pl b/pbot.pl index 18f30d77..3c94c991 100755 --- a/pbot.pl +++ b/pbot.pl @@ -15,6 +15,7 @@ my $VERSION = "1.0.0"; use strict; use warnings; +use lib "."; use PBot::PBot; # Be sure to set $bothome to the location PBot was extracted (default assumes ~/pbot).