You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the submission, but I'm closing this one — a few blockers:
rect doesn't work from the CLI. run_command tries %d,%d,%x first, and a 5-field rect arg (e.g. 0,0,64,32,000000) already matches that 3-field prefix, so it's treated as a pixel and fill_rect never runs — the README example draws pixels, not a rectangle. The px/rect keywords are skipped with continue, so they don't disambiguate.
The name. A ~130-line PPM writer shipped as "sdl" / "Simple DirectMedia Library" collides with the real SDL (which is a Layer, not a Library). NyxOS ports keep their own identity, so this needs a distinct name (e.g. ppmdraw).
sdl.h declares canvas_create/canvas_free, which sdl.c neither defines nor includes.
Wrong repo. This repo is generated from the monorepo's user/pkg/ by the sync workflow, so anything committed here is overwritten on the next sync. Ports are added upstream as user/pkg/<name>/{<name>.c,recipe}.
Happy to look again if it's reworked upstream with its own name and the rect parsing fixed.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We put a program called "SDL", a Media Library that contains functions to build "Media" using this Library.
How to use?
Compile using any compiler
Example
tcc -nostdlib -nostdinc program.c sdl.c -o output.o -c
! Expected TCC!