Commit Graph

215 Commits

Author SHA1 Message Date
582df637ce Compiler: Add __FILE__, remove __BINARY_PATH__ and rename __BINARY_NAME__ to __BINARY__ (#546)
* Compiler: Add __FILE__ and remove __BINARY_PATH__ constants

* Compiler: Rename __BINARY_NAME__ to __BINARY__
2018-09-03 21:28:28 +02:00
80cf45d234 Adjust version for manual build and update VS projects (#543) 2018-09-02 20:34:40 +02:00
651745b1d4 Updated compiler exitcodes (#486) 2018-07-10 12:27:27 +02:00
1a56577f7a Fix inc/dec operators not returning an iEXPRESSION (#429)
* Fix inc/dec operators not returning an iEXPRESSION

* Fix inc/dec operators in return statement
2017-04-29 23:33:09 +02:00
faa9f6ea9f Fix returning strings from variadic functions (lost changes) (#399) 2017-01-09 20:40:28 +01:00
446a1a5108 Fix compilation error for GCC 6.1
Fix compilation error due -Wmisleading-indentation
2016-05-04 15:01:29 +02:00
79a6dc9501 Fix shift-negative-value warning on newer compiler versions.
error: shifting a negative signed value is undefined
2016-03-17 15:12:26 -04:00
19dd940b22 Fix pointer-bool-conversion warning on newer compiler versions.
error: address of array 'lval->sym->name' will always evaluate to 'true'
2016-03-17 15:10:55 -04:00
2c73268668 Fix issue where native functions returning an array would not compile 2016-02-22 23:37:09 +01:00
e502e12e07 Normalize line endings and whitespace 2016-01-16 21:15:52 -03:00
f796df783c Avoiding directives that split up parts of statements. 2015-12-24 12:42:34 -03:00
6d9fe60608 Fix shifted warning messages from compiler due to missing comma in array 2015-11-12 20:13:54 +01:00
c0b9b91a06 Remove MakeFile 2015-07-14 00:13:24 +02:00
3792e7dc20 Merge pull request #248 from Arkshine/fix/update-compiler3
Update compiler - 3
2015-06-01 21:45:04 +02:00
4a58365b2c Correcting SolutionFileFormat version as well 2015-05-19 18:31:19 +05:30
41dfdc7f59 Compiler: Prevent declaring arrays that the compiler is too buggy to handle
AM Bug 7977: https://bugs.alliedmods.net/show_bug.cgi?id=4977
2015-05-19 00:01:29 +02:00
f710188c86 Compiler: Ability to directly reference another address in a default argument (for arrays only)
SM patch: d8d13f1920
2015-05-19 00:01:29 +02:00
ad23638913 Correcting years in MSVS project solutions. 2015-05-18 21:54:06 +05:30
92c2c84617 Update copyright year 2015-03-29 20:01:25 +02:00
52c73126e1 VFS: Fix various things
- The "ALL" fake pathID is replaced by what does SM, having a public var NULL_STRING which will acts as NULL when needed.
  To make compiler accepting public array, this patch was needed: https://hg.alliedmods.net/sourcemod-central/rev/b12f329def09
- The offset thing in read_dir: considering that's something very specific to this native and that implementation in CDirectory doesn't make sense because of the offset compatibility for windows, all code is now in the native.
2015-03-25 13:50:07 +01:00
a182ca62c8 Merge pull request #226 from Arkshine/fix/compiler
Fix compiler output
2015-03-21 15:38:25 +01:00
d397619939 Fix compiler output 2015-03-21 15:29:55 +01:00
dd6ef4811c Update compiler VS projects to reflect changes from #221 2015-03-14 12:53:43 +01:00
3d5a0c5a29 Normalize more line endings 2015-03-14 12:45:33 +01:00
8b06e5bdcd Remove strexpand 2015-03-10 20:37:57 +02:00
a134a75572 Remove scpack 2015-03-10 20:03:57 +02:00
acf910b64b Fix and clean up VS projects files
+ removed unused variable :P
2015-03-10 16:20:21 +01:00
a565e4a7b1 Zlib: Update library to 1.2.8 2015-03-10 00:06:29 +01:00
265e15116b Zlib: Adjust VS project files 2015-03-10 00:06:29 +01:00
9bbeb1f578 Zlib: Use the generated static library with AMXXPC 2015-03-09 23:59:12 +01:00
b0543a111d Fix tagof operator used as a default value for function arguments 2015-01-30 23:34:04 +01:00
5ca0e5617d Merge pull request #173 from Arkshine/feature/compiler-concatenation
Add string literal concatenation and stringizing operator
2015-01-22 20:00:32 +01:00
97369c5d6c Upgrade VS projetcs to use v120_xp toolset and fix missing include paths 2015-01-14 10:25:46 +01:00
a0cfa59e56 Compiler: Fix tautological warning with clang-3.5 2015-01-11 23:09:53 +01:00
7f71cfaee7 Merge pull request #165 from Arkshine/feature/add-version-lib-and-missing-rc
Update versioning system and add missing module RC file (bug 6222)
2015-01-07 18:59:51 +01:00
2ffd4cb9fa Fix with parsing literal strings ending with character '\\'
From Pawn rev32: https://code.google.com/p/pawnscript/source/detail?r=32
E.g.: #define EGG "Gaben^^" (control character + something)

This fixes also compilation under linux.
2015-01-07 00:35:20 +01:00
de2796508f Add string literal concatenation and stringizing operator 2015-01-06 23:39:46 +01:00
1df58d6231 Merge pull request #164 from Arkshine/fix/regression-member-tag-of-enum
FIx regression with member tag of enum not being checked on assigment
2014-12-13 11:23:10 +01:00
c068eed19d Simplify code. 2014-12-13 11:15:06 +01:00
ab4294f3ca Fix linux compilation 2014-12-10 15:41:52 +01:00
4b11a54345 Make sure overriden tag is done with _: 2014-12-09 22:59:57 +01:00
78940b46a4 Untabify code 2014-12-09 22:29:43 +01:00
45bf43d76e FIx regression with member tag of an enum not being checked on assigment 2014-12-09 22:26:59 +01:00
5e622aa69f Remove static on 'disable' variable 2014-12-08 23:55:30 +01:00
a50f104fd3 Fix trailing commas in array literals changing the result of sizeof() 2014-12-08 20:45:33 +01:00
7c96c30be8 Replace old SVN_* defines by the new ones 2014-12-08 01:42:42 +01:00
1a97b2cbe1 Improve more sizeof return on array without specifiying the dimension 2014-11-11 12:34:16 +01:00
3775ac40ad Revert "Done" text due to AMXX-Studio compatibility. 2014-11-09 04:04:33 +03:00
3b3e78d65b Compiler: Remove commented code in previous commit 2014-09-29 20:36:14 +02:00
e7c7313f77 Compiler: Add a flag for warnings-as-errors 2014-09-29 15:54:39 +02:00