Commit Graph

  • 6c04b63e10
    Fix preprocessor hanging indefinitely when running #include on WSL (#735) dev James L. Walsh 2024-08-14 01:35:19 -07:00
  • 455e507bef
    cmake size configuration size-config Y-Less 2024-01-03 19:23:03 +01:00
  • dcfa60e149 Retrieved older pawn versions. archive Y_Less 2022-11-25 23:58:28 +00:00
  • 81b4a0243d type mismatch fix. Y_Less 2022-11-14 21:02:11 +00:00
  • 2f86aa0541 Align library table entires on Big Endian machines big-endian-fixes Zeex 2022-10-27 12:58:01 +06:00
  • 8cc4c02b20 Fix compile error on Big Endian targets Zeex 2022-10-27 03:35:39 +06:00
  • 39b8255173 Fix a regression with new file extensions finding different files. add-pwn Y_Less 2022-03-19 18:20:06 +00:00
  • d7a093fdc8 Starting -O2 upgrades Y_Less 2022-06-07 15:03:46 +01:00
  • 07ad8e84e4 Don't print fatal error 111: for user errors/warnings. shorter-user-errors Y_Less 2022-03-31 15:08:09 +01:00
  • 58d1b379fb Merge remote-tracking branch 'remotes/origin/add-pwn' into dev Y_Less 2022-03-15 18:01:26 +00:00
  • d606c91e3f Merge remote-tracking branch 'remotes/DanielCortez/issue-template' into dev Y_Less 2022-03-15 17:59:36 +00:00
  • c724dc146e
    Add ".pwn" to the official list of extensions. Y-Less 2022-03-11 10:42:52 +00:00
  • de84898443 Modify the tests to make sure const_val is actually a compile-time constant Stanislav Gromov 2022-02-02 21:54:55 +07:00
  • 808720b066 Add tests Stanislav Gromov 2021-05-23 20:28:39 +07:00
  • f52a4cef73 Allow a combination of const static to declare constants limited to the scope of the current file Stanislav Gromov 2021-05-23 17:04:21 +07:00
  • d87fb6ceb2 Turn reportname into a global variable Stanislav Gromov 2021-05-08 22:34:54 +07:00
  • 37c4f797a8 Add tests Stanislav Gromov 2021-10-09 21:50:44 +07:00
  • afe6f9ae06 Do not ignore return array size specifications in operator declarations, treat them as errors Stanislav Gromov 2021-10-09 21:47:07 +07:00
  • 33922d4af2 Add tests Stanislav Gromov 2021-05-05 12:30:32 +07:00
  • 6649bd5abe Fix assertion failures for native functions returning arrays Stanislav Gromov 2021-05-05 12:14:45 +07:00
  • 2be8198161 Remove excess trailing whitespaces Stanislav Gromov 2021-05-04 22:27:00 +07:00
  • 1e42633d90 Fix build errors on Linux and OS X Stanislav Gromov 2021-05-04 22:22:51 +07:00
  • 71ba8d22d1 Use GitHub-flavored Markdown to highlight the MCVE code in the issue template Stanislav Gromov 2021-09-29 23:34:56 +07:00
  • 940335d1ce Add tests Stanislav Gromov 2021-09-30 23:27:56 +07:00
  • e678be8b78 Treat explicit zero array size as an error Stanislav Gromov 2021-09-30 23:21:02 +07:00
  • 454fb20c95 Fix a bug with empty global pawndoc: Y_Less 2022-03-07 10:50:53 +00:00
  • 6825fb5b41 Add codepage translation files. Y_Less 2022-01-17 02:34:10 +00:00
  • 92b185faa8 Use GitHub-flavored Markdown to highlight the MCVE code in the issue template Stanislav Gromov 2021-09-29 23:34:56 +07:00
  • b6dd216115
    Fix sampctl link (#671) pkfln 2021-08-17 12:49:46 +01:00
  • d266203994 2.10.11 in preparation... Y_Less 2021-05-02 19:52:30 +01:00
  • 00a8fbee53 Merge remote-tracking branch 'remotes/Daniel-Cortez/static_assert' into dev Y_Less 2021-05-02 19:15:22 +01:00
  • 4f82dc953f Merge branch 'Branch_e74b8bb2' into dev Y_Less 2021-05-02 19:09:30 +01:00
  • 5bce87049b Add tests Stanislav Gromov 2020-08-29 20:57:51 +08:00
  • 1488c26e47 Move the remaining declaration in sc1.c Stanislav Gromov 2020-08-29 20:57:31 +08:00
  • a455d47362 Merge remote-tracking branch 'remotes/Daniel-Cortez/fix-642' into dev Y_Less 2021-05-02 18:59:14 +01:00
  • 9440d80816 Merge remote-tracking branch 'remotes/Daniel-Cortez/__emit' into dev Y_Less 2021-05-02 18:56:46 +01:00
  • 5bcc7b429a Merge remote-tracking branch 'remotes/Daniel-Cortez/codespell' into dev Y_Less 2021-05-02 18:56:15 +01:00
  • 6781afeada Merge remote-tracking branch 'remotes/Daniel-Cortez/loop-diagnostics' into dev Y_Less 2021-05-02 18:54:46 +01:00
  • 001f4836ec Merge remote-tracking branch 'remotes/Daniel-Cortez/warning-247' into dev Y_Less 2021-05-02 18:47:02 +01:00
  • 74004e49ca Merge remote-tracking branch 'remotes/Daniel-Cortez/fix-398' into dev Y_Less 2021-05-02 18:36:49 +01:00
  • 85814e7802 Merge remote-tracking branch 'remotes/Daniel-Cortez/fix-632' into dev Y_Less 2021-05-02 18:36:29 +01:00
  • 685b691668 Merge remote-tracking branch 'remotes/Daniel-Cortez/fix-629' into dev Y_Less 2021-05-02 18:13:41 +01:00
  • e97a67a226 Merge remote-tracking branch 'remotes/Daniel-Cortez/misc-fixes' into dev Y_Less 2021-05-02 17:45:11 +01:00
  • 64b2cda36c Update tests Stanislav Gromov 2021-01-31 22:52:51 +07:00
  • 1951308a30 Make the new diagnostics actually work on do-while loops Stanislav Gromov 2021-01-31 21:29:25 +07:00
  • e137b1c4dc Add two more test cases to make sure passed-by-reference function arguments don't conflict with the new warnings Stanislav Gromov 2021-01-31 18:02:32 +07:00
  • 48c10791db Don't count function arguments passed by const reference as modified Stanislav Gromov 2021-01-31 21:45:26 +07:00
  • 59c6de1218 Update tests Stanislav Gromov 2021-01-30 21:20:33 +07:00
  • bff030799b Disable warnings 250 and 251 when a global variable is used inside a loop condition Stanislav Gromov 2021-01-30 21:20:25 +07:00
  • ae30cfb20b Add tests Stanislav Gromov 2020-10-18 23:45:21 +08:00
  • 7d1b6c9294 Disable the new diagnostics when a function or an array is used inside a loop condition Stanislav Gromov 2020-10-18 20:59:35 +08:00
  • e0cde0583e Warn when variables used inside of a loop condition aren't modified in the loop body Stanislav Gromov 2020-10-07 20:43:45 +08:00
  • 24f37d7d55 Fix some strict clang warnings. Branch_burger Y_Less 2021-04-26 13:23:11 +01:00
  • 3b5263a5bc Use _Static_assert on clang. Y_Less 2021-04-26 13:13:32 +01:00
  • 069bc30c24 Clang windows improvements. Y_Less 2021-04-26 01:46:45 +01:00
  • 4215694abd Add tests Stanislav Gromov 2021-04-18 21:02:47 +07:00
  • 99304f5cdf Pass variadic array cell arguments by temporarily storing them on the heap Stanislav Gromov 2021-04-18 20:46:54 +07:00
  • cb6005e402 Fix typos discovered with codespell Stanislav Gromov 2021-03-23 21:13:23 +07:00
  • 05dcdc151b Fix misleading closing comments Stanislav Gromov 2021-03-13 19:48:48 +07:00
  • 647cd34717 __emit: Switch to the code segment when used outside functions Daniel_Cortez 2019-08-06 23:31:16 +07:00
  • 3706859c39 __emit: Use proper search criterion for global variables Daniel_Cortez 2019-08-03 17:53:21 +07:00
  • 74bb2b3450 Add tests Stanislav Gromov 2021-03-06 20:54:06 +07:00
  • 44a8c5c76f Fix wrongly printed starting line number for one of the warnings in __pragma tests Stanislav Gromov 2021-03-06 20:22:19 +07:00
  • bb3f8c8c82 Do not modify errstart inside function error(), use a local variable instead Stanislav Gromov 2021-03-06 20:03:08 +07:00
  • b849d61487 Do not use errorset() in emit_* functions Stanislav Gromov 2021-03-04 20:21:45 +07:00
  • e8346c0478 Add forward declarations for emit_* functions at the beginning of sc1.c Stanislav Gromov 2021-02-28 17:11:16 +07:00
  • 583836feee Remove SC_FASTCALL from the headers for emit_* functions Stanislav Gromov 2021-02-28 16:24:53 +07:00
  • 3901a61421 Simplify the code even more Stanislav Gromov 2021-02-28 15:53:16 +07:00
  • f545d8f5fe Update P-code tests Stanislav Gromov 2021-02-28 14:18:28 +07:00
  • c93336cf5a Do not erase code for fetching the value from variable arguments of load.u.* and push.u pseudo-opcodes (fixes #568) Stanislav Gromov 2021-02-27 22:42:58 +07:00
  • 0b721bfa1c Reformat struct "assigninfo" into "symstate", so it could be used to store multiple symbol usage flags Stanislav Gromov 2020-10-17 16:09:44 +08:00
  • 355b324df4 Skip warning ID 249 Stanislav Gromov 2021-01-30 13:25:42 +07:00
  • c9d2acb605 Add tests Stanislav Gromov 2021-01-08 18:23:28 +07:00
  • 3b04173d83 Fix typo in the description for constvalue::index Stanislav Gromov 2021-01-08 18:19:54 +07:00
  • 5fe4480b0e Ignore state specifications on old-style forward declarations Daniel_Cortez 2019-09-29 15:05:41 +07:00
  • 759f707c87 Add missing entry point into the "multiline_string_sizes" test Stanislav Gromov 2021-01-06 21:58:20 +07:00
  • cce6d873e2 Add tests Stanislav Gromov 2021-01-06 21:55:45 +07:00
  • 781d516ae1 Check if the entry function is actually defined, not only declared Stanislav Gromov 2021-01-06 21:09:56 +07:00
  • 712b6a7886 Remove the description for already removed flag "uPREDEF" Stanislav Gromov 2021-01-05 13:36:16 +07:00
  • deec15fcc9 Turn array-size-related assertions into compile-time checks Stanislav Gromov 2021-01-03 17:07:55 +07:00
  • a1165ace54 Fix the use of 0 instead of FALSE Stanislav Gromov 2021-01-03 17:05:28 +07:00
  • bbcddabdeb Fix user_inc() and user_dec() getting merged into one function in release builds (issue #627) Stanislav Gromov 2021-01-03 16:44:02 +07:00
  • 101205ed10 Test overloaded bool:-tagged operators Stanislav Gromov 2020-12-11 19:02:53 +07:00
  • 58c86927f3 Update tests Stanislav Gromov 2020-12-06 20:04:24 +07:00
  • 3d02bfa428 Use the newly implemented token recording mechanism to record expressions checked in __static_assert and __static_check Stanislav Gromov 2020-12-06 20:01:03 +07:00
  • 8970ad281e Implement recording of tokens read by lex() Stanislav Gromov 2020-12-06 19:54:42 +07:00
  • 46149d1002 Add tests Stanislav Gromov 2020-11-13 22:47:21 +07:00
  • 903c06253e Implement operators __static_assert and __static_check Stanislav Gromov 2020-10-13 22:35:39 +08:00
  • 3dfad1f7fd __pragma: Move the string processing code into a separate function, so it could be reused by other operators Stanislav Gromov 2020-11-15 00:52:04 +07:00
  • a68bacf86e Remove unreachable return statements Stanislav Gromov 2020-12-06 21:49:51 +07:00
  • 98c521793e Fix potential NULL pointer dereferences Stanislav Gromov 2020-12-06 20:41:52 +07:00
  • 55d89321a0 Indentation fix Stanislav Gromov 2020-12-06 20:11:20 +07:00
  • 67a5cabb3c Fix clang warnings Stanislav Gromov 2020-11-19 20:26:39 +07:00
  • 25b3fd0102 Update tests Stanislav Gromov 2020-11-16 21:29:46 +07:00
  • d4cb7cccb2 Extend warning 247 to other arithmetic and comparison operators Stanislav Gromov 2020-11-16 21:29:05 +07:00
  • dc789353fd Use duplicatestring() instead of strdup() Stanislav Gromov 2020-11-15 02:23:42 +07:00
  • 3a9cfd8e46 __pragma: Check if the option string is packed/unpacked in a more reliable way Stanislav Gromov 2020-11-14 20:41:45 +07:00
  • 4a4ba1e8b9 Fix the character conversion loop relying on a 4-byte cell size Stanislav Gromov 2020-11-14 18:43:44 +07:00
  • c9b2945e04 Rename "warning_047.pwn/meta" to "error_047.pwn/meta" Stanislav Gromov 2020-11-10 20:14:15 +07:00
  • 4b4319aa74 Get rid of function finddepend() Stanislav Gromov 2020-11-10 19:54:56 +07:00