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

The compiler crashes for me suddenly. It doesn't crashes with the original compiler. Is there any possibility of checking what could be the issue?
Reply
#22

Quote:
Originally Posted by iZN
View Post
The compiler crashes for me suddenly. It doesn't crashes with the original compiler. Is there any possibility of checking what could be the issue?
If you're using sqlitei from Slice it crash with this compiler (the only time this compiler crash for me was while using this include).
Reply
#23

Quote:
Originally Posted by the_chaoz
View Post
If you're using sqlitei from Slice it crash with this compiler (the only time this compiler crash for me was while using this include).
No, I don't use SQLite. I'm using BlueG's plugin R35, sscanf, foreach , CTime plugin (RyDeR`), Teprey's CSTL vector plugin, Incognito's Streamer, IRC and GVar plugin. Slice's TimerFix include and Sorting multi-dimensional arrays (md-sort) include.
Reply
#24

Try to remove parts of the script till you find the line(s) that make this compiler crash, otherwise just use the default one.
Reply
#25

Quote:

Added #pragma naked
Added #pragma warning (enable|disable) XXX
Added #pragma warning (push|pop)
Added __line constant
Added #warning directive

Some documentation about those new features would be really appreciated.

EDIT #1: the new compiler crashes with my gamemode. I'm doing some tests right now.
EDIT #2: the compiler seems to crash by compiling with the "-d3 -r -v" tags. Without them it works, but it gives me some new, weird errors.
Code:
C:\pawno\include\a_http.inc(22) : error 021: symbol already defined: "HTTP"
C:\pawno\include\YSI\y_scriptinit.inc(305) : warning 201: redefinition of constant/macro (symbol "OnScriptInit")
C:\pawno\include\YSI\y_scriptinit.inc(326) : error 084: state conflict: one of the states is already assigned to another implementation (symbol "_ScriptInit_FixState")
C:\pawno\include\YSI\y_scriptinit.inc(330) : error 084: state conflict: one of the states is already assigned to another implementation (symbol "_ScriptInit_FixState")
C:\pawno\include\YSI\y_debug.inc(379) : error 021: symbol already defined: "ScriptInit_OnScriptInit"
C:\pawno\include\foreach.inc(663) : error 021: symbol already defined: "ScriptInit_OnFilterScriptInit"
C:\pawno\include\foreach.inc(760) : error 021: symbol already defined: "ScriptInit_OnGameModeInit"
C:\Users\Simone\Desktop\0.3x\gamemodes\sfrp_sql.pwn(31148) : error 021: symbol already defined: "ScriptInit_OnGameModeExit"
Pawn compiler 3.2.3664.samp	 	 	Copyright © 1997-2006, ITB CompuPhase


7 Errors.
Reply
#26

You have to keep in mind that this include removes standard builtin include guards. If your includes include something, then it'll get included twice (yo dawg, I heard you like includes). YSI also has problem with that - https://github.com/Y-Less/YSI-Includ...f2b155e7b8c008 - that's quite fresh commit from YSI 4 branch, check it out.
Reply
#27

Quote:
Originally Posted by DarkSlyder
View Post
Some documentation about those new features would be really appreciated.
I've made a new Wiki page describing all the new features and other changes:

https://github.com/Zeex/pawn/wiki/What's-new%3F
Reply
#28

I tried the new version but it doesn't output anything in the 'PAWN Compiler Output' box. Even though, the file will be compiled fine.



I tried with and without the pawn.cfg (-d3) and it is still the same.
Reply
#29

Does it show output in another editor or at the command line?
Reply
#30

I don\'t use any other editor other than pawno so I can test it.

How to use pawncc.exe + file name with the command line?
Reply
#31

Code:
pawncc.exe -;+ ;(+ -ipath\to\pawno\include your_script.pwn
Reply
#32

Is working good for me.. thanks
Reply
#33

Is there a problem that the server package is in D: hard disk? I cannot get it working through command prompt.
Reply
#34

Do you have spaces in path?
Reply
#35

Quote:
Originally Posted by kurta999
View Post
Very nice!

Please, add __TIME__ macro, like in C++. Would be very useful.
+1. Anyway this compiler rocks!
Reply
#36

I did have spaces in the path, I renamed it, I moved it to C: disk and it shows:

I used the older version of that patch and worked (still does) fine but I can\'t get it working with the newest one.
Reply
#37

You have to escape the bracket in "-(+", so use "-\(+". Affects windows only I guess
Reply
#38

I executed it like that and it shows the same thing. By the way if you notice, the Header/Code/Data size is 0 bytes.
Reply
#39

Oh. The -i flag takes includes folder to be used instead default "./include", not your pwn, so:
Quote:

pawncc.exe -\)+ -;+ -d3 -v2 "C:\Yourpathtopwn\file.pwn"

Reply
#40

It compiled fine after using the above:
pawn Code:
C:\samp\pawno>pawncc.exe -\)+ -;+ -d3 -v2 "C:\samp\filterscripts\pnetstats2.pwn"

Pawn compiler 3.2.3664.samp                     Copyright (c) 1997-2006, ITB CompuPhase

Header size:            636 bytes
Code size:             2568 bytes
Data size:              840 bytes
Stack/heap size:      16384 bytes; estimated max. usage=1536 cells (6144 bytes)
Total requirements:   20428 bytes

Done.


But that\'s the only way to compile and get those extra information? Whenever I compile directly from the editor, the PAWN Compiler Output box is empty (there\'s a picture 12 posts above).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)