WoutProvost / pawn-const-correctness-fixer

Perl script that fixes all occurrences of the const correctness warning 214 in a pawn script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pawn-const-correctness-fixer

When you have Perl installed (Linux has this installed by default), execute the following command in a command prompt to fix all occurrences of warning 214 in your script. Replace SOURCE with the name of the file you want to fix and DESTINATION with the name of the file that will store the fixed version.

perl ./warning_214_fixer.pl SOURCE DESTINATION

An example script test_input.pwn has been provided, which produces the output shown in test_output.pwn and produces the following message:

perl ./warning_214_fixer.pl ./test_input.pwn ./test_output.pwn
Fixed warning 214 a total of 6 times.

About

Perl script that fixes all occurrences of the const correctness warning 214 in a pawn script


Languages

Language:Perl 71.1%Language:Pawn 28.9%