Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/gbdev/rgbds

Rednex Game Boy Development System - An assembly toolchain for the Nintendo Game Boy and Game Boy Color
https://github.com/gbdev/rgbds

Reorganize and comment better `main()`

592e9b372509c306b1c4346665799f68bf00cec4 authored about 4 years ago
Rework defining variables on command-line

Avoids allocating memory
Detects CLI errors even when failing to open file
Reports symbols as de...

effc58241df9802e51c1eab91351a70ffe42b40b authored about 4 years ago
Add `asm/opt.c` to CMakeLists

Fixes compiling with CMake

3697065afc1ee33375e4bc8d8097554071802232 authored about 4 years ago
Significantly overhaul OPT code

Simplify the mess that was option setting (2 redundant variables !?)
Move options to a separate ...

fa0fa4d5ac9e806f4e1770e1fcab7cf3c5bc5289 authored about 4 years ago
Error out when given several input files

Also rename tzMainFile

5acc48fa54ccab78495044b169ce4f5ac7e523f7 authored about 4 years ago
Remove time counter

Nobody uses that, and it requires running extra code for each line

1487eebe7953eae9788ea0735da94b2af6a95f12 authored about 4 years ago
Avoid using EXPAND_AND_STR with external defines

There is no guarantee that they are purely numeric, use the values instead

993c034039fb0a32770b1bf2a74a168a02e8181b authored about 4 years ago
Use `putc` instead of `fputc`

Also rename some functions for consistency

09f16bda4a734309f2f17d63643ec0dd3a153b76 authored about 4 years ago
Rewrite RGBFIX

- Make it work inside pipelines
- Add RGBFIX tests to the suite
- Be more flexible in accepted M...

41d544a4ebb7ef7d6343bfb5a96bcbd553d57b4f authored about 4 years ago
Fix a potential buffer overflow in strrpl

This caused an error using clang with -O3 -flto

f28b4abafcedefc73a8406ca8cb35c286b916866 authored about 4 years ago
Have CMake use specified compiler in CI, not system default

Otherwise it's just GCC on Linux and Clang on macOS...

ca1c934629ac7a74a00d1210b67bd6a535880640 authored about 4 years ago
Comment cites the string hash algorithm (djb2)

"If you just want to have a good hash function,
and cannot wait, djb2 is one of the best string
...

d5a00cf634d083efb00cd8feeb6c3ea44b63c258 authored about 4 years ago
Consistently refer to "directives", not "pseudo-ops"

Some docs and warnings already referred to SECTION and
db/dw/dl "directives", but others used "p...

fb39c3a70eb3183dc2b1dd19fe03f2f0dfa9baca authored about 4 years ago
Fix missing newline in charmap override warning

15ec6efc288ee73cfff3e42128b4024c96458e5b authored about 4 years ago
Don't override bison's internal 'yytnamerr' function

This is not used in all bison versions, which causes a
"defined but not used" warning for the 'r...

93d83e17dcf976ede8e70493594a8cd18a8556f5 authored about 4 years ago
Handle MACRO and REPT/FOR bodies differently

Fixes #697

df16e64fc63d7975009d90acea75bd2fa2b9eef4 authored about 4 years ago
Use an IELR parser if available

5ef8e0a1f6907ba33bf2a56e8911454f3a5b5569 authored about 4 years ago
Use more verbose syntax error messages

Fixes #385

eb4952c188fddf486adbdb98a82ea9e6123eaff1 authored about 4 years ago
Add Rangi to contributors

a4ebb878585504294b4e9d67d4f85355815a0e02 authored about 4 years ago
Reinstate RL into the _RS family

Removal of colon-less labels lifted the grammar ambiguity that
prevented `RL` from being usable ...

57b734a7dfc3767cedc1940ed55cce3262a955ef authored about 4 years ago
Fix intra-section ALIGN not computing offset correctly

5be1c0da622d4cf7a294b7a8011f08394d045931 authored about 4 years ago
Enable LTO in release builds

Fixes #693

b598911e96e0ec77c7e5f92303efa1df985bfe9f authored about 4 years ago
Store IF depth relative to each fstack context

This disallows starting/ending an IF inside an
INCLUDEd file or a macro expansion

cab9cb06a3816964cf72da4017baa304729ab82d authored about 4 years ago
Implement `BREAK` to exit `REPT` and `FOR` loops

Fixes #684

62bea23c49cc74d8a894b88002da2290dbc60f82 authored about 4 years ago
Convert floating to fixed point by rounding, not truncation

Fixes #678

7ce5cf1595f2fb3a508e920d8e4929381e298e59 authored about 4 years ago
Fix Actions CI for MSVC

Fixes #616

7e3fc1db038c1707e00fc130dc1e4a0bfd2e7ff0 authored about 4 years ago
Implement `STRRPL`

Fixes #660

STRRPL(str, "", new) does nothing
(warn about it with -Wempty-strrpl)

77279984a53054436450ea251343515bfdbf25b1 authored about 4 years ago
Revise the rgbasm(5) docs

669a392fcd02d7544b2ab70ad6d835c15301c458 authored about 4 years ago
Remove removed features from documentation

51ce0b038a160db54a5ddb1bb782fdd28c02c8ce authored about 4 years ago
Remove deprecated features

Trimming off the fat!
- GLOBAL and XDEF keywords
- Colon-less global labels
- *-comments

bd244e68654533cd817aba5794c5669707cd4578 authored about 4 years ago
Implement PRINT and PRINTLN (#672)

Fixes #669
Closes #368
Closes #624

Deprecate PRINTT, PRINTV, PRINTI, and PRINTF

Default ...

a70ecba06f804990400326d0df079cd41e2ef096 authored about 4 years ago
Implement `REDEF` to allow redefining `EQUS` string equates

Fixes #677

9d2d5cfcfe4d647cb0a8a5363653e05b115f9940 authored about 4 years ago
Un-document deprecated _PI

18f3c8ff9aa4e0b7cf4c565dbc585b53f3c5efdb authored about 4 years ago
Update mathematical functions (#675)

Document the existing `ROUND`, `CEIL`, and `FLOOR` functions
Also update the trig function docs...

895ec5564d85822289c250d115fc7fec085d4cd7 authored about 4 years ago
Change `FOREACH` to `FOR` (#680)

7bb6f71f0b51afd06446fe5138f5e90f996af7e4 authored about 4 years ago
Deprecate built-in `_PI`

Fixes #670

10e3f1a02b01b7a4c5b94d121f80284fb321c723 authored about 4 years ago
Make dbgPrint in lexer.c report the correct colNo (#676)

Fixes #656

2a9d52871b0bc17f4056cdba71729085a1db8866 authored about 4 years ago
Fix size of unterminated REPT/FOREACH blocks

Do not "uncapture" ENDR if it was not read in the first place

c4fb5591eeddd2baad12fc32400dfea2bdd20fcf authored about 4 years ago
Implement `STRFMT` and more printf-like format specifiers for string interpolation (#646)

Fixes #570
Fixes #178

Use errors for inapplicable format spec flags instead of -Wstring-format

c0ce1da4c34f01493bbc5c4fd0735eb0cc2c4bfe authored about 4 years ago
Make Bison version detection more portable

- POSIX sh actually does NOT support `+=`,
but Bash does even in compatibility mode
- `mawk` d...

aa27e714d4e8c9aee15d220dd9f207cfd2524bba authored about 4 years ago
Implement `FOREACH` (#658)

This acts like `REPT` with a variable automatically
incremented across a range of values

Fix...

6874f694e5eadfdeb5ddfcf24dea57413c02bd46 authored about 4 years ago
`make checkpatch` and `make checkcodebase` check the same files

Only check src and include (not test), and
exclude src/extern and include/extern.

3690546795dec9adf4a1bc36f8a8465d999ca1f1 authored about 4 years ago
Clean up temp test files even if interrupted

Avoids "tmp.*" piling up in /tmp

7bc42d468b43529ccefec1eb813ee11cfa8176e7 authored about 4 years ago
Prevent tests from running if RGBDS hasn't been built

Prevents a *lot* of spurious errors due to files not generating

097999cad3c5c565c4e15695e691e603476bed00 authored about 4 years ago
Make gbdiff.bash handle CRLF sym files gracefully

Additionally, reduce the amount of lines piped through `cut`,
improving performance

f82edaa7ec6a2b9eed73f2a35819ae9e254cea54 authored about 4 years ago
Update tested projects to latest commits

Compatibility fixes, etc.

d8e8b796e7aa15956f1e648edbdc9ab6f7edb555 authored about 4 years ago
Improve gbdiff script

Use better constructs where possible
- <<< instead of echo|
- Parameter expansions instead of `c...

900fd8cabc919740344092a7318c9a4c357c5f5e authored about 4 years ago
Refactor `readString`

Much more readable, and avoids `peek(nz)`

c20ac350746b318e6399b1bb11d1ad7800263bef authored about 4 years ago
Implement """triple-quoted""" multi-line strings

Fixes #589

255b8bf9ba04a4621cd41daadf498156c4bc3d80 authored about 4 years ago
Support SOURCE_DATE_EPOCH for reproducible builds

See https://reproducible-builds.org/docs/source-date-epoch/

Fixes #286

ad6f17cd93fb5d505240802d6cf53a285086594f authored about 4 years ago
`LOAD` blocks cannot create a ROM section

Fixes #576

063a22ddf9c822e3a060e45746175a75c6395cc9 authored about 4 years ago
Macro arguments within a string literal are read into the string, not expanded

Fixes #643

1d9cc01ae1f1c0493f53fb9fb018b7a924455dd7 authored about 4 years ago
Fix STRUPR and STRLWR after 5aabb915ecdb8dff5fc38489b9d4d84c615d73d6

Fixes #647

f31deb5010b73b337b2611e2555a871ddac3cd28 authored about 4 years ago
Document \#

0956d300c4676c5ec6ddaf8e69de4a3d5a77fab7 authored about 4 years ago
Avoid interpreting Liquid in doc pages

They are auto-generated, so they wouldn't normally contain Liquid
(The post-processor may insert...

4ef490f3cb4bd875fa03bd63e46c9979b9a9e70b authored about 4 years ago
Add anonymous labels

Fix #497

8f2a894b886cb9020c7b837170d924c03cdd31d9 authored about 4 years ago
Implement `\#` to expand to all unshifted macro arguments

Fixes #596

0e405437574b9c37f23c1ded0efc0d9b3d690931 authored about 4 years ago
Allow {symbol} interpolation outside of strings

Fixes #629

Closes #631

ce58f6d6be1ea540930211a4d80de157a6e1f943 authored about 4 years ago
Allow STRCAT to take any number of args

Fixes bullet point 1 of #625

5aabb915ecdb8dff5fc38489b9d4d84c615d73d6 authored about 4 years ago
Make charmap-converting a non-UTF8 string non-fatal

0d9de01f9dfb15198174f4f7eab209f00da9c7f9 authored about 4 years ago
Remove custom action code when equivalent to default

Enables Bison to better reason about it, and should improve performance

f5b0eae9cd6adf3e79fc20c8f412216c7c95716e authored about 4 years ago
Specify rgbfix --mbc-type by name

This supports the names listed in Pan Docs:
https://gbdev.io/pandocs/#_0147-cartridge-type
Space...

e6552064bfe69ae186be17641331beca9f55cc8c authored about 4 years ago
discardBlockComment sets lexerState->disableMacroArgs = true, like discardComment

861cb552c4edb52f1ed87ea5fab39f863526cb43 authored about 4 years ago
Document dw and dl with strings

417cceb0de454dd5312176e006cd41af6a6f0f4e authored about 4 years ago
Allow 'dw' and 'dl' to apply to characters of strings

Fixes #568

The old behavior of `dw "string"` can be replicated with `dw ("string")`; likewise f...

165bd8cb71c5ebe4f5cf79ed4179f9302834aa07 authored about 4 years ago
Correct underscore-in-number documentation

No radix actually allows underscores at the beginning of a literal

e54e02dc77ae4e412905e168ff11e3017a481127 authored about 4 years ago
Document underscores in numeric literals

2bf3b08d762545c5e1b24ebcd73d63fbd09aa63b authored about 4 years ago
Fix not shifting CRLF at end of raw lines

Fixes line reporting errors on Windows

21b58b08b8e3961e16b2b21d4fa821d392d04570 authored about 4 years ago
Allow underscores in numeric literals

Fixes #539

Changes \@'s output to start with "_u", not "_", so it will be valid within labels b...

af530859f013d52507efcdc4c8f00ade0d7193c2 authored about 4 years ago
Implement `STRRIN`, like `STRIN` but searching from the right

58739b0bf2e4057783fed0e8acfc3d0a7668b568 authored about 4 years ago
Avoid error with old Bison versions

`api.token.raw` is only defined starting with Bison 3.5
Since it's not essential, define it on t...

3e4c2fe712c80207f855a46420572fdd9f0d5f84 authored about 4 years ago
Avoid running version test when `git describe` fails

Can happen when not enough history has been fetched, notably in our CI

bdfce25db047b64e48d33a1beeb348478c06c84b authored about 4 years ago
Avoid using `yytoken_kind_t`

Apparently it was added in a fairly recent Bison version...

2b6d9cd1e08284b462b8eaecbbca154791b923f5 authored about 4 years ago
Add automated test for version consistency

Automatically check that the version number constants
(__RGBDS_MAJOR__ etc.) match `rgbasm -V`
S...

bf789dd7b3d0ed655f5e071f0b67ba5114d4b8e3 authored about 4 years ago
Enable raw token types

Removes one layer of indirection for the parser, and helps remove all literals from the grammar
...

9b6f01047c4329186375727290f9fe8380e0609b authored about 4 years ago
Bump patch level appropriately

*HEADDESK*

ede982b50a68a6253ffbab17dc4184710b08032f authored about 4 years ago
Switch to GNU Bison as a dependency

First step for #595

3fe2fa43bbc1c96df387e48c90f5d8c2b3cd604c authored about 4 years ago
Add CI script to create docs on new releases

319d775c13adcf219b9c5f3d76c53508e7271b3d authored about 4 years ago
Work around old Bison versions not forward-declaring `yyparse`

Notably, macOS still ships 2.3 (from 2008)...
Should fix #214

44124319a6f303893dd3c41f31d2c9f6ffaee3e0 authored about 4 years ago
Prohibit nested macros

After discussion (starting there:
https://github.com/gbdev/rgbds/pull/594#issuecomment-706437458...

462fd7539cf4a24897571738e0b453e65bdfc8c1 authored about 4 years ago
Fix captures beginning in expansions

Fixes #590

f16e34b8046ad62653a68b979c78cc9b225c06fa authored about 4 years ago
Remove unnecessary flex dep from Dockerfile

c3ccdc548ee002dea38032d008cb89981ef660d8 authored about 4 years ago
Document optional RB/RW/RL argument

fd721ca48088999ba330ad5037758765aa06f7e3 authored about 4 years ago
Allow argument to `rb`, `rw` and `rl` to be optional

Fixes #617

eac365aef0d6971c83da5b9a57a7b472eb70c663 authored about 4 years ago
Add explanation of how EXPORT works

Fixes #608

4de6266442a2ef8e2291d245cfb53e278b90c21d authored about 4 years ago
Fix incorrect "sliced" INCBIN causing memory leaks

Oh, how I miss RAII...

213d985e1730b06ac88429a167292701259d9b91 authored about 4 years ago
Fix possible segfault from -MT and -MQ

Happened only if `malloc` failed, so...

de76dcb8fb2716f73e7e375c38119333fa9d24a0 authored about 4 years ago
Merge pull request #615 from ISSOtm/find-sym

Create specialized symbol finder functions

30fb6bde5e89504162a8471e674d9a2bdac1e9ad authored about 4 years ago
Create specialized symbol finder functions

The old "find symbol with auto scope" function is now three:
- One finds the exact name passed t...

4f842a1248be75cc9ca0c23e7a4e1b00e59cc6a5 authored about 4 years ago
Add test for empty local label component

cc4d455b8a827e03ea73554a6058a7888bf9e736 authored about 4 years ago
Merge pull request #610 from daid/stdin

Allow rgbasm and rgblink to use stdout and stdin as input and output

0bb5efebfdc50024b3752ce2b82f4f1366a29c99 authored over 4 years ago
Fix RGBLINK incorrectly reading file stack nodes

This caused node IDs to mismatch, yielding possibly corrupted file stacks
Worst part is, the doc...

b6bf7ae6206ca0c755414679e311aed082fa4473 authored over 4 years ago
Add zsh completion scripts

Can't get bash ones to work, but these do.

dc96cc6d1e9295b05dbeaa88df70056400a94bea authored over 4 years ago
Update main.c

642daf1a76847fbe4b361f3d0810b60c41aad89e authored over 4 years ago
Update output.c

84edfb3d885e84f7ca8e02c3db11ca29718a8e3f authored over 4 years ago
Allow rgbasm and rgblink to use stdout and stdin as input and output

7e620bff817c5826adc5a73acd7bc1774d835c74 authored over 4 years ago
Improve helpers.h

Use C11 standard _Noreturn instead of attributes (except, of course, MSVC)
Remove unused helpers...

0c5570343857570493deadf4b7933bebf5a31a0d authored over 4 years ago
Have `make clean` delete parser artifacts

Forgot to update the names there

6c57ad2226e44a936701b7bcc965c73363b0337c authored over 4 years ago
Fix mistakes in RGBDS man pages

As reported by `mandoc -Wall`

9028fb53910cf3dc1611dcfdc6047fdb387b775f authored over 4 years ago
Make page processor print usage only after reporting all bad opts

12dc49b60a10a2494c24804f3bed50a36e36fed8 authored over 4 years ago