[Tool/Web/Other] Zeex's PAWN Compiler Patches
#1

Zeex's PAWN Compiler Patches


Introduction
This is a tool that fixes several PAWN compiler bugs and crashes that is made by Zeex. He removed the direct download link and we have to compile the source ourselves. Since many people don't know how to compile the source, or they don't use Linux, I compiled the source on Windows XP SP3 using Visual C++ 2010 and now I'm releasing the files. It should work on all Windows server. I'm not going to compile the Linux version since I don't use it and the files may vary for different Linux OS.

You can visit the page of the project here: https://github.com/Zeex/pawn
He actually provided a tutorial on how to compile the source there. To compile the compiler, you have to set the source path to "source\compiler" directory in CMake, instead of "source" subdirectory. For example, if you put the project files in C:\Pawn, the source directory is C:\Pawn\source\compiler.

Fixes
I think the most important patch of the project is having the line limit increased to 4095, instead of 511. That means you can have 4095 characters per line without causing crashes.

It also fixes triple states crash and multi-dimensional array's initialisation. Stringize and compile time concatenation are supported, but I'm not very sure about what exactly these 3 patches do. If you know, please tell me.

For stringize and compile time concatenation, seems that you can do this (from http://www.compuphase.com/bitboard/i...q_1179971957):
Quote:
Originally Posted by ******
printf("hello " "there");

printf("hello " #there);

#define MAJOR 1
#define MINOR 2
#define BUILD 2342
#define VERSION(%1,%2,%3) "Version: " #%1 "." #%2 "." #%3
printf(VERSION(MAJOR, MINOR, BUILD));

Note: the # token ignores whitespace between it and the first character, otherwise defines like that would print as:

Version: 1. 2. 2342

If that is what you want just add a space in the ".".

This system also ignores unescaped #'s so this:

printf(#hello #there);

would print as:

hello there.
Download
Executables Only
Executables + Full Source(Compiler source + VC++ 2010 Project)

Installation
Simply putting the executables(pawncc.exe and pawnc.dll) into your pawno folder and replace the files.

Credits
  • leong124 - Compiling the files for Windows.
  • Zeex - PAWN Compiler Patches.
Reply


Messages In This Thread
Zeex's PAWN Compiler Patches - by leong124 - 03.11.2013, 14:58
Re: Zeex's PAWN Compiler Patches - by iZN - 03.11.2013, 15:00
Re: Zeex's PAWN Compiler Patches - by im - 08.11.2013, 09:48
Re: Zeex's PAWN Compiler Patches - by Konstantinos - 08.11.2013, 10:05
Re: Zeex's PAWN Compiler Patches - by leong124 - 09.11.2013, 00:48
Re: Zeex's PAWN Compiler Patches - by Gigi-The-Beast - 09.11.2013, 10:33
Re: Zeex's PAWN Compiler Patches - by XProtocol - 09.11.2013, 14:04
Re: Zeex's PAWN Compiler Patches - by coool - 10.11.2013, 04:45
Re: Zeex's PAWN Compiler Patches - by Juniiro3 - 14.11.2013, 18:35
Re: Zeex's PAWN Compiler Patches - by BlueBaron - 14.11.2013, 18:54
Respuesta: Zeex's PAWN Compiler Patches - by Malganys - 15.11.2013, 15:16
Re: Zeex's PAWN Compiler Patches - by kurta999 - 23.11.2013, 21:18
Re: Zeex's PAWN Compiler Patches - by cyber_punk - 04.12.2013, 21:36
Re: Zeex's PAWN Compiler Patches - by Konstantinos - 05.12.2013, 10:31
Re: Zeex's PAWN Compiler Patches - by cyber_punk - 15.01.2014, 04:33
Re: Zeex's PAWN Compiler Patches - by iZN - 16.01.2014, 21:32
Re: Zeex's PAWN Compiler Patches - by xeeZ - 20.01.2014, 16:04
Re: Zeex's PAWN Compiler Patches - by Omar55555 - 20.01.2014, 16:16
Re: Zeex's PAWN Compiler Patches - by kurta999 - 20.01.2014, 16:17
Re: Zeex's PAWN Compiler Patches - by cyber_punk - 29.01.2014, 05:25
Re: Zeex's PAWN Compiler Patches - by iZN - 29.01.2014, 07:52
Respuesta: Re: Zeex's PAWN Compiler Patches - by TheChaoz - 29.01.2014, 13:49
Re: Respuesta: Re: Zeex's PAWN Compiler Patches - by iZN - 29.01.2014, 15:31
Respuesta: Zeex's PAWN Compiler Patches - by TheChaoz - 29.01.2014, 16:34
Re: Zeex's PAWN Compiler Patches - by SimonItaly - 29.01.2014, 16:56
Re: Zeex's PAWN Compiler Patches - by Misiur - 31.01.2014, 14:16
Re: Zeex's PAWN Compiler Patches - by xeeZ - 01.02.2014, 10:53
Re: Zeex's PAWN Compiler Patches - by Konstantinos - 01.02.2014, 11:12
Re: Zeex's PAWN Compiler Patches - by xeeZ - 01.02.2014, 11:37
Re: Zeex\'s PAWN Compiler Patches - by Konstantinos - 01.02.2014, 11:51
Re: Zeex\'s PAWN Compiler Patches - by xeeZ - 01.02.2014, 12:04
Re: Zeex\'s PAWN Compiler Patches - by iJumbo - 01.02.2014, 12:05
Re: Zeex\'s PAWN Compiler Patches - by Konstantinos - 01.02.2014, 12:15
Re: Zeex\'s PAWN Compiler Patches - by xeeZ - 01.02.2014, 12:22
Re: Zeex's PAWN Compiler Patches - by QuaTTrO - 01.02.2014, 13:07
Re: Zeex\'s PAWN Compiler Patches - by Konstantinos - 02.02.2014, 19:30
Re: Zeex\'s PAWN Compiler Patches - by Misiur - 02.02.2014, 19:31
Re: Zeex\'s PAWN Compiler Patches - by Konstantinos - 02.02.2014, 19:35
Re: Zeex\'s PAWN Compiler Patches - by Misiur - 02.02.2014, 19:40
Re: Zeex\'s PAWN Compiler Patches - by Konstantinos - 02.02.2014, 19:48
Re: Zeex's PAWN Compiler Patches - by Misiur - 02.02.2014, 20:51
Re: Zeex's PAWN Compiler Patches - by cyber_punk - 03.02.2014, 02:08
Re: Zeex's PAWN Compiler Patches - by kurta999 - 04.02.2014, 14:18
Re: Zeex's PAWN Compiler Patches - by ZiGGi - 03.12.2016, 04:46
Re: Zeex's PAWN Compiler Patches - by leon44 - 20.10.2017, 19:38
Re: Zeex's PAWN Compiler Patches - by Spmn - 20.10.2017, 19:50
Re: Zeex's PAWN Compiler Patches - by eakwarp - 27.10.2017, 07:10
Re: Zeex's PAWN Compiler Patches - by GamezCEO - 28.10.2017, 06:21
Re: Zeex's PAWN Compiler Patches - by RogerCosta - 08.11.2017, 13:28
Re: Zeex's PAWN Compiler Patches - by DimaShift - 10.11.2017, 15:03
Re: Zeex's PAWN Compiler Patches - by wallee - 10.11.2017, 15:35
Re: Zeex's PAWN Compiler Patches - by VVWVV - 10.11.2017, 15:53
Re: Zeex's PAWN Compiler Patches - by wallee - 11.11.2017, 08:08
Re: Zeex's PAWN Compiler Patches - by Renan157 - 15.01.2018, 00:24
Re: Zeex's PAWN Compiler Patches - by Y_Less - 06.04.2018, 23:19
Re: Zeex's PAWN Compiler Patches - by ForCop - 07.04.2018, 00:07

Forum Jump:


Users browsing this thread: 1 Guest(s)