Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit e46e3ba

Browse files
committed
amxdbg: BUG fix in finding the correct symbol when it is defined in multiple files (issue #10).
pawndbg: BUG fix in command "step out" (of function): the stack frame of the current function must be saved after giving the step-out command (issue #11). amxstring: BUG fix in strcmp() in which it returns the difference in string lengths if the strings match up to the shortest string (but it should only return -1, 0 or 1) (issue #13). sc1: BUG fix in array declarations with 3 dimensions (or more) and only variable dimensions; where the last dimension may be set to a fixed size due to an incorrect "optimization" (issue #12). ARM Thumb implementations support both the original Thumb instructions as well as Thumb2. Compiler: collect state transitions to include them in the report. Compiler: support "#ifdef" and "#ifndef", for compatibility with C. Compiler: extension .i is now also implicitly checked for (.i is now preferred to .inc). Compiler: constant literal strings that appear multiple times in the source code are merged (to save space). Some code clean-up as suggested by cppcheck. Some compatibility changes for 64-bit systems.
1 parent ef9a688 commit e46e3ba

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+47847
-49668
lines changed

amx/amx.c

Lines changed: 3798 additions & 3798 deletions
Large diffs are not rendered by default.

amx/amx.h

Lines changed: 543 additions & 543 deletions
Large diffs are not rendered by default.

amx/amxDGram.rc

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
#include <windows.h>
2-
#if defined WIN32 || defined _WIN32 || defined __WIN32__
3-
# include <winver.h>
4-
#else
5-
# include <ver.h>
6-
#endif
7-
8-
/* Version information
9-
*
10-
* All strings MUST have an explicit \0. See the Windows SDK documentation
11-
* for details on version information and the VERSIONINFO structure.
12-
*/
13-
#define VERSION 4
14-
#define REVISION 0
15-
#define BUILD 0
16-
#define VERSIONSTR "4.0.0\0"
17-
#define VERSIONNAME "amxDGram.dll\0"
18-
#define VERSIONDESCRIPTION "Pawn AMX: network datagram\0"
19-
#define VERSIONCOMPANYNAME "ITB CompuPhase\0"
20-
#define VERSIONPRODUCTNAME "amxDGram\0"
21-
#define VERSIONCOPYRIGHT "Copyright \251 2007-2011 ITB CompuPhase\0"
22-
23-
VS_VERSION_INFO VERSIONINFO
24-
FILEVERSION VERSION, REVISION, BUILD, 0
25-
PRODUCTVERSION VERSION, REVISION, BUILD, 0
26-
FILEFLAGSMASK 0x0000003FL
27-
FILEFLAGS 0
28-
#if defined(WIN32)
29-
FILEOS VOS__WINDOWS32
30-
#else
31-
FILEOS VOS__WINDOWS16
32-
#endif
33-
FILETYPE VFT_DLL
34-
BEGIN
35-
BLOCK "StringFileInfo"
36-
BEGIN
37-
BLOCK "040904E4"
38-
BEGIN
39-
VALUE "CompanyName", VERSIONCOMPANYNAME
40-
VALUE "FileDescription", VERSIONDESCRIPTION
41-
VALUE "FileVersion", VERSIONSTR
42-
VALUE "InternalName", VERSIONNAME
43-
VALUE "LegalCopyright", VERSIONCOPYRIGHT
44-
VALUE "OriginalFilename", VERSIONNAME
45-
VALUE "ProductName", VERSIONPRODUCTNAME
46-
VALUE "ProductVersion", VERSIONSTR
47-
END
48-
END
49-
50-
BLOCK "VarFileInfo"
51-
BEGIN
52-
VALUE "Translation", 0x409, 1252
53-
END
54-
END
1+
#include <windows.h>
2+
#if defined WIN32 || defined _WIN32 || defined __WIN32__
3+
# include <winver.h>
4+
#else
5+
# include <ver.h>
6+
#endif
7+
8+
/* Version information
9+
*
10+
* All strings MUST have an explicit \0. See the Windows SDK documentation
11+
* for details on version information and the VERSIONINFO structure.
12+
*/
13+
#define VERSION 4
14+
#define REVISION 0
15+
#define BUILD 0
16+
#define VERSIONSTR "4.0.0\0"
17+
#define VERSIONNAME "amxDGram.dll\0"
18+
#define VERSIONDESCRIPTION "Pawn AMX: network datagram\0"
19+
#define VERSIONCOMPANYNAME "ITB CompuPhase\0"
20+
#define VERSIONPRODUCTNAME "amxDGram\0"
21+
#define VERSIONCOPYRIGHT "Copyright \251 2007-2016 ITB CompuPhase\0"
22+
23+
VS_VERSION_INFO VERSIONINFO
24+
FILEVERSION VERSION, REVISION, BUILD, 0
25+
PRODUCTVERSION VERSION, REVISION, BUILD, 0
26+
FILEFLAGSMASK 0x0000003FL
27+
FILEFLAGS 0
28+
#if defined(WIN32)
29+
FILEOS VOS__WINDOWS32
30+
#else
31+
FILEOS VOS__WINDOWS16
32+
#endif
33+
FILETYPE VFT_DLL
34+
BEGIN
35+
BLOCK "StringFileInfo"
36+
BEGIN
37+
BLOCK "040904E4"
38+
BEGIN
39+
VALUE "CompanyName", VERSIONCOMPANYNAME
40+
VALUE "FileDescription", VERSIONDESCRIPTION
41+
VALUE "FileVersion", VERSIONSTR
42+
VALUE "InternalName", VERSIONNAME
43+
VALUE "LegalCopyright", VERSIONCOPYRIGHT
44+
VALUE "OriginalFilename", VERSIONNAME
45+
VALUE "ProductName", VERSIONPRODUCTNAME
46+
VALUE "ProductVersion", VERSIONSTR
47+
END
48+
END
49+
50+
BLOCK "VarFileInfo"
51+
BEGIN
52+
VALUE "Translation", 0x409, 1252
53+
END
54+
END

amx/amxFile.rc

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
#include <windows.h>
2-
#if defined WIN32 || defined _WIN32 || defined __WIN32__
3-
# include <winver.h>
4-
#else
5-
# include <ver.h>
6-
#endif
7-
8-
/* Version information
9-
*
10-
* All strings MUST have an explicit \0. See the Windows SDK documentation
11-
* for details on version information and the VERSIONINFO structure.
12-
*/
13-
#define VERSION 4
14-
#define REVISION 0
15-
#define BUILD 0
16-
#define VERSIONSTR "4.0.0\0"
17-
#define VERSIONNAME "amxFile.dll\0"
18-
#define VERSIONDESCRIPTION "Pawn AMX: File I/O support\0"
19-
#define VERSIONCOMPANYNAME "ITB CompuPhase\0"
20-
#define VERSIONPRODUCTNAME "amxFile\0"
21-
#define VERSIONCOPYRIGHT "Copyright \251 2004-2013 ITB CompuPhase\0"
22-
23-
VS_VERSION_INFO VERSIONINFO
24-
FILEVERSION VERSION, REVISION, BUILD, 0
25-
PRODUCTVERSION VERSION, REVISION, BUILD, 0
26-
FILEFLAGSMASK 0x0000003FL
27-
FILEFLAGS 0
28-
#if defined(WIN32)
29-
FILEOS VOS__WINDOWS32
30-
#else
31-
FILEOS VOS__WINDOWS16
32-
#endif
33-
FILETYPE VFT_DLL
34-
BEGIN
35-
BLOCK "StringFileInfo"
36-
BEGIN
37-
BLOCK "040904E4"
38-
BEGIN
39-
VALUE "CompanyName", VERSIONCOMPANYNAME
40-
VALUE "FileDescription", VERSIONDESCRIPTION
41-
VALUE "FileVersion", VERSIONSTR
42-
VALUE "InternalName", VERSIONNAME
43-
VALUE "LegalCopyright", VERSIONCOPYRIGHT
44-
VALUE "OriginalFilename", VERSIONNAME
45-
VALUE "ProductName", VERSIONPRODUCTNAME
46-
VALUE "ProductVersion", VERSIONSTR
47-
END
48-
END
49-
50-
BLOCK "VarFileInfo"
51-
BEGIN
52-
VALUE "Translation", 0x409, 1252
53-
END
54-
END
1+
#include <windows.h>
2+
#if defined WIN32 || defined _WIN32 || defined __WIN32__
3+
# include <winver.h>
4+
#else
5+
# include <ver.h>
6+
#endif
7+
8+
/* Version information
9+
*
10+
* All strings MUST have an explicit \0. See the Windows SDK documentation
11+
* for details on version information and the VERSIONINFO structure.
12+
*/
13+
#define VERSION 4
14+
#define REVISION 0
15+
#define BUILD 0
16+
#define VERSIONSTR "4.0.0\0"
17+
#define VERSIONNAME "amxFile.dll\0"
18+
#define VERSIONDESCRIPTION "Pawn AMX: File I/O support\0"
19+
#define VERSIONCOMPANYNAME "ITB CompuPhase\0"
20+
#define VERSIONPRODUCTNAME "amxFile\0"
21+
#define VERSIONCOPYRIGHT "Copyright \251 2004-2016 ITB CompuPhase\0"
22+
23+
VS_VERSION_INFO VERSIONINFO
24+
FILEVERSION VERSION, REVISION, BUILD, 0
25+
PRODUCTVERSION VERSION, REVISION, BUILD, 0
26+
FILEFLAGSMASK 0x0000003FL
27+
FILEFLAGS 0
28+
#if defined(WIN32)
29+
FILEOS VOS__WINDOWS32
30+
#else
31+
FILEOS VOS__WINDOWS16
32+
#endif
33+
FILETYPE VFT_DLL
34+
BEGIN
35+
BLOCK "StringFileInfo"
36+
BEGIN
37+
BLOCK "040904E4"
38+
BEGIN
39+
VALUE "CompanyName", VERSIONCOMPANYNAME
40+
VALUE "FileDescription", VERSIONDESCRIPTION
41+
VALUE "FileVersion", VERSIONSTR
42+
VALUE "InternalName", VERSIONNAME
43+
VALUE "LegalCopyright", VERSIONCOPYRIGHT
44+
VALUE "OriginalFilename", VERSIONNAME
45+
VALUE "ProductName", VERSIONPRODUCTNAME
46+
VALUE "ProductVersion", VERSIONSTR
47+
END
48+
END
49+
50+
BLOCK "VarFileInfo"
51+
BEGIN
52+
VALUE "Translation", 0x409, 1252
53+
END
54+
END

amx/amxFixed.rc

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
#include <windows.h>
2-
#if defined WIN32 || defined _WIN32 || defined __WIN32__
3-
# include <winver.h>
4-
#else
5-
# include <ver.h>
6-
#endif
7-
8-
/* Version information
9-
*
10-
* All strings MUST have an explicit \0. See the Windows SDK documentation
11-
* for details on version information and the VERSIONINFO structure.
12-
*/
13-
#define VERSION 4
14-
#define REVISION 0
15-
#define BUILD 0
16-
#define VERSIONSTR "4.0.0\0"
17-
#define VERSIONNAME "amxFixed.dll\0"
18-
#define VERSIONDESCRIPTION "Pawn AMX: Fixed Point support\0"
19-
#define VERSIONCOMPANYNAME "ITB CompuPhase\0"
20-
#define VERSIONPRODUCTNAME "amxFixed\0"
21-
#define VERSIONCOPYRIGHT "Copyright \251 2003-2013 ITB CompuPhase\0"
22-
23-
VS_VERSION_INFO VERSIONINFO
24-
FILEVERSION VERSION, REVISION, BUILD, 0
25-
PRODUCTVERSION VERSION, REVISION, BUILD, 0
26-
FILEFLAGSMASK 0x0000003FL
27-
FILEFLAGS 0
28-
#if defined(WIN32)
29-
FILEOS VOS__WINDOWS32
30-
#else
31-
FILEOS VOS__WINDOWS16
32-
#endif
33-
FILETYPE VFT_DLL
34-
BEGIN
35-
BLOCK "StringFileInfo"
36-
BEGIN
37-
BLOCK "040904E4"
38-
BEGIN
39-
VALUE "CompanyName", VERSIONCOMPANYNAME
40-
VALUE "FileDescription", VERSIONDESCRIPTION
41-
VALUE "FileVersion", VERSIONSTR
42-
VALUE "InternalName", VERSIONNAME
43-
VALUE "LegalCopyright", VERSIONCOPYRIGHT
44-
VALUE "OriginalFilename", VERSIONNAME
45-
VALUE "ProductName", VERSIONPRODUCTNAME
46-
VALUE "ProductVersion", VERSIONSTR
47-
END
48-
END
49-
50-
BLOCK "VarFileInfo"
51-
BEGIN
52-
VALUE "Translation", 0x409, 1252
53-
END
54-
END
1+
#include <windows.h>
2+
#if defined WIN32 || defined _WIN32 || defined __WIN32__
3+
# include <winver.h>
4+
#else
5+
# include <ver.h>
6+
#endif
7+
8+
/* Version information
9+
*
10+
* All strings MUST have an explicit \0. See the Windows SDK documentation
11+
* for details on version information and the VERSIONINFO structure.
12+
*/
13+
#define VERSION 4
14+
#define REVISION 0
15+
#define BUILD 0
16+
#define VERSIONSTR "4.0.0\0"
17+
#define VERSIONNAME "amxFixed.dll\0"
18+
#define VERSIONDESCRIPTION "Pawn AMX: Fixed Point support\0"
19+
#define VERSIONCOMPANYNAME "ITB CompuPhase\0"
20+
#define VERSIONPRODUCTNAME "amxFixed\0"
21+
#define VERSIONCOPYRIGHT "Copyright \251 2003-2016 ITB CompuPhase\0"
22+
23+
VS_VERSION_INFO VERSIONINFO
24+
FILEVERSION VERSION, REVISION, BUILD, 0
25+
PRODUCTVERSION VERSION, REVISION, BUILD, 0
26+
FILEFLAGSMASK 0x0000003FL
27+
FILEFLAGS 0
28+
#if defined(WIN32)
29+
FILEOS VOS__WINDOWS32
30+
#else
31+
FILEOS VOS__WINDOWS16
32+
#endif
33+
FILETYPE VFT_DLL
34+
BEGIN
35+
BLOCK "StringFileInfo"
36+
BEGIN
37+
BLOCK "040904E4"
38+
BEGIN
39+
VALUE "CompanyName", VERSIONCOMPANYNAME
40+
VALUE "FileDescription", VERSIONDESCRIPTION
41+
VALUE "FileVersion", VERSIONSTR
42+
VALUE "InternalName", VERSIONNAME
43+
VALUE "LegalCopyright", VERSIONCOPYRIGHT
44+
VALUE "OriginalFilename", VERSIONNAME
45+
VALUE "ProductName", VERSIONPRODUCTNAME
46+
VALUE "ProductVersion", VERSIONSTR
47+
END
48+
END
49+
50+
BLOCK "VarFileInfo"
51+
BEGIN
52+
VALUE "Translation", 0x409, 1252
53+
END
54+
END

0 commit comments

Comments
 (0)