News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Recent posts

#11
User contributions / Re: Has anyone built a crude ...
Last post by ddainelis1 - Yesterday at 02:46:20 AM
V10 will be the new command:
Add "element" "get" to BASELINE

any suggestions here....
#12
User contributions / Re: Has anyone built a crude ...
Last post by ddainelis1 - Yesterday at 02:19:04 AM
I'm working on one right now.  Here is the screen shot of help menu. 
Right now I'm cleaning up the help file in this version before I go to the next version V0.9 which will have create and fetch baseline.    Also,  I'm working on a script to test each version so I don't have to manually test it and figure what broke where.

CMS Development App
Type HELP for commands. Press Ctrl+Z to exit.

Root set to: E:\CMS_LIB
Library opened: E:\CMS_LIB\test2
CMS> ver
CMS Version V8.4PREA  (build Mar 11 2026 11:48:36)
CMS> help
Commands working in V8:
  HELP
  SHOW ROOT
  SHOW DRIVE
  SHOW VERSION
  SET DRIVE
  SET USERID
  CREATE LIBRARY
  OPEN LIBRARY
  SHOW LIBRARY
  SHOW CONFIG
  CREATE ELEMENT
  SHOW ELEMENT
  FETCH ELEMENT
  EXIT
  QUIT
  DEV

Commands present in notes but NOT working in this build:
  SET ROOT
  HISTORY
  CREATE BASELINE
  FETCH BASELINE
 

Use HELP <command> for details on one command.
CMS>

#13
User contributions / Re: Has anyone built a crude ...
Last post by rweidner - Yesterday at 01:42:05 AM
I've decided to write one. I have dozens of projects that I don't really want on GitHub because... well... because I don't. So, I'll make this. I've decided not to use SQLite. Instead it will be purely file-based. The motivation for making it file-based is to minimize the amount of UI I need to create. Instead, I'll assume the user has WinMerge or similar. This process should be pretty quick and will be a nice distraction for me.

It's not intended to be like or ever replace GitHub. For me, it's just a place to put projects that linger around longer than expected.

The code will be written in C using PellesC.
#14
User contributions / Re: Has anyone built a crude ...
Last post by Vortex - March 11, 2026, 10:33:36 PM
By the way, the abbreviation must be CRUD if I am not wrong :

Quotecreate, read, update, and delete (CRUD)

https://en.wikipedia.org/wiki/Create,_read,_update_and_delete
#15
User contributions / Re: Has anyone built a crude ...
Last post by rweidner - March 11, 2026, 08:48:08 PM
That's an interesting project idea, actually. If the scope of the project was limited to source code and ignored binary assets (images, sound, etc.), you could in theory use sqlite (or any db that supports triggers)

A CRUDE but effective workflow might be.

- scan source code directories for code files (for example, .c or .h)
- check file timestamps
- find the file in the database
- If file times on the file system differ from the one stored in the database, change the content in the database.
- If it doesn't exist at all, insert it. (filepath, file timestamp, content)
- use a "BEFORE" trigger to copy the current row into a history table. The history table will look like the code table plus a new primary key.

I mean, that's no GIT replacement, but it would track changes.

Is that what you meant by "crude"? Or did you need something more?

I think with just a little more work, one could add revisions.
#16
User contributions / Re: Has anyone built a crude ...
Last post by ddainelis1 - March 11, 2026, 12:42:07 PM
Thank you for the lead.
#17
User contributions / Re: Has anyone built a crude ...
Last post by Vortex - March 11, 2026, 11:08:25 AM
Hello,

You can check this one :

QuoteA simple CRUD system written in C

https://github.com/gabrielwitor/CRUD-C
#18
User contributions / Has anyone built a crude CMS ...
Last post by ddainelis1 - March 11, 2026, 02:51:43 AM
Has anyone built a crude CMS ( Code Management System) in Pelles C.    I'm working on a Dartmouth style BASIC interpreter since my old ALTAIR 8080 died.  I really do not want to spend the time to fully understand GITHIB right now.   Just wondering.
#19
Add-ins / Batch Builder
Last post by John Z - March 11, 2026, 01:08:02 AM
This is an Add-In BBBuilder.dll version 1

The BBBBuilder.dll will create a single .bat file that when run from the command line will build the program that was open at the time BBBBuilder was invoked.  It is all in one.  Run the resulting .bat file and it will build the program.

The dll does all of the work, the output is the 'project name'.bat.  Of course it can be edited manually too.

Limitations:
1) no spaces in the source filenames
2) no spaces in subdirectory names under the project directory
3) file names are not to be Unicode, or if Unicode then only using ASCII characters

Source code will be released once I get the PowerShell script working, or I give up on that option. Currently PowerShell works for everything but linking.

John Z

Tested program with 45 C files, several subdirs, and some prebuilt .objs
Tested a console program
Tested an asm file
Tested building a batch file to build the dll itself.

More information in the readme.txt included in the zip file. Example .bat attached too
#20
Graphics programming / Re: raylib 5.5 + PellesC v13.0...
Last post by Vortex - March 10, 2026, 10:00:16 PM
Hi rweidner,

ChatGPT's example code using raygui :

#include "raylib.h"

#define RAYGUI_IMPLEMENTATION
#include "raygui.h"

int main(void)
{
    InitWindow(640, 200, "raygui textbox");

    char text[128] = "Edit me";
    bool editMode = false;

    SetTargetFPS(60);

    while (!WindowShouldClose())
    {
        Rectangle rect = {100, 80, 200, 30};

        BeginDrawing();
        ClearBackground(RAYWHITE);

        if (GuiTextBox(rect, text, 128, editMode))
            editMode = !editMode;

        EndDrawing();
    }

    CloseWindow();
}

https://github.com/raysan5/raygui