forked from compuphase/pawn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AMX: Swapping bytes in a cell is now an API function (previously it w…
…as an internal version). AMX: minor fixes in attribute handling in the curses port. Compiler: Fix for issue 5 (warning on array initializers with an explicit tag, via symbolic indices). Test: added a test case for the correction of issue 5 (see above).
- Loading branch information
1 parent
01f7fdf
commit 8e36a8f
Showing
6 changed files
with
64 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#include <rational> | ||
|
||
#if defined TAGGED_SYMBOLIC_INDEX | ||
static const Table[][Rational:.key, Rational:.value] = | ||
[ | ||
[1.0, 3.0], | ||
[2.0, 3.5], | ||
[3.0, 3.7], | ||
[4.0, 3.8], | ||
[5.0, 3.9] | ||
]; | ||
#endif | ||
|
||
main() | ||
{ | ||
#if defined TAGGED_SYMBOLIC_INDEX | ||
for (new i; i<sizeof(Table); i++) | ||
printf("%d: %r, %r\n", i, Table[i].key, Table[i].value); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters