News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Recent posts

#91
Add-ins / Re: Hint Add-IN
Last post by John Z - October 10, 2025, 02:12:19 PM
Hi All,

Here is a new release of the Hint Add-In.  There are very minor code changes, but a significant enhancement to the DB3 database.  It now contains 10,043 functions with the base header and library names as well as basic function descriptions for all but about 600 functions.

The post contains the dll in case someone does not want to do a rebuild but sources are included.

Since it is just an sqlite db3 of course one could write their own interface to it - have fun.

In any case it now should be more useful than before. 

Functions might be added in the future but I think the DB structure won't change.  A new table also has been added for possibly linking functions to the Github docs in a download zip, or perhaps as internet links but not populated. 

John Z

#92
User contributions / Re: Hint_SA (Standalone) Vers...
Last post by John Z - October 10, 2025, 01:55:58 PM
Hi All,

Here is the release of Hint_SA version 1.2.  Very minor code changes but a significant change in the db3 database.  The database now contain 10043 functions with the base Header and library required as well as the basic function description for all but about 600 functions. The old DB3 has this for only about 1800 functions.

The DB3 and the source code are posted below. The exe is included in case one does not want to or can't build it.

John Z

Hint Add-in has been updated too, so check under the Add-in topics
#93
Beginner questions / Re: conio.h trouble
Last post by Pelle - October 09, 2025, 08:43:58 PM
__declspec() is a Microsoft invention (I think) used by the compiler to attach extra attributes to a function or data object.
I see you found __attribute__() which is GNU's way of doing the same thing (more or less).

I'm starting to wonder if you are mixing include files (*.h) from different C compilers...? This is a pretty sure way of getting weird problems.

If you suspect this is the case, try adding the compiler option /V1 for more during compilation. The path for "stdio.h" should be to the directory where Pelles C (and only Pelles C) is installed.
#94
Chit-Chat / Re: Permission to include Pell...
Last post by Vortex - October 08, 2025, 10:38:34 AM
Hi Pelle,

Many thanks for your permission.
#95
Beginner questions / Re: conio.h trouble
Last post by PhilG57 - October 07, 2025, 11:34:17 PM
This is only thing I see:

 :-[ Find "define printf".
"C:\Users\philg\Documents\C Programming\RCSW\Native Windows_04_11_2020\config.h" (196)   #define  printf_string( m, n )      __attribute__ ( ( format (printf, m, n ) ) )
"C:\Users\philg\Documents\C Programming\RCSW\Native Windows_04_11_2020\config.h" (198)   #define  printf_string( m, n )
"C:\Users\philg\Documents\C Programming\RCSW\Native Windows_04_11_2020\config.h" (203)   #define  printf_string_exiting( m, n )   __attribute__ ( ( format (printf, m, n ), noreturn ) )
"C:\Users\philg\Documents\C Programming\RCSW\Native Windows_04_11_2020\config.h" (205)   #define  printf_string_exiting( m, n )   printf_string ( m, n )
4 hit(s)

This code, these modules, are ancient and originally written as console programs. 
#96
Beginner questions / Re: conio.h trouble
Last post by Pelle - October 07, 2025, 11:11:58 PM
The _CRTCHK(printf,1,2) part of line 50 will expand from this:
#define _CRTCHK(f,n,m)  __declspec(vaformat(f,n,m))which normally works fine with Pelles C.

I'm not sure why things are failing for you. Wild guess: do you have a conflicting #define printf somewhere?
#97
Chit-Chat / Re: Permission to include Pell...
Last post by Pelle - October 07, 2025, 11:01:08 PM
Sure... go ahead...
#98
Beginner questions / conio.h trouble
Last post by PhilG57 - October 07, 2025, 10:18:00 PM
Trying to rebuild an old program and now get complaints about conio.h:

C:\Program Files\Pelles C\Include\conio.h(50): error #2019: Invalid use of __declspec(vaformat).

Line 50 in conio.h looks like:

extern _CRTIMP _CRTCHK(printf,1,2) int __cdecl _cprintf(const char * restrict, ...);

The code with which I am working looks like this:

   #include <conio.h>      /* for textcolor and backgroundcolor */
   _textcolor(1);   /* dark blue; very hard to see */
   fprintf(stderr, "rlog %s: ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789\n\r", gszCmdId);
   _textcolor(2);   /* green; very hard to see */

I googled __declspec and saw references to C++ and MSVC but couldn't really figure out anything.  What am I doing wrong?  Thanks.
#99
Chit-Chat / Re: Permission to include Pell...
Last post by Vortex - October 07, 2025, 08:17:14 AM
Hi Pelle,

Is it allowed to add the tools bellow released with PellesC V13 to the Masm32\64 SDKs?

poasm.exe
polib.exe
polink.exe
porc.exe
pope.exe
#100
Bug reports / Re: Invalid jump into VLA bloc...
Last post by Pelle - October 05, 2025, 06:33:22 PM
In some ways this starts with:
size_t bufSize = 1234;
char buffer[bufSize]; 
which creates an array with variable size (VLA), despite the constant.

I have to dig deeper to see why the compiler gets confused about this code (in general)...

EDIT: The compiler is actually tripping up itself here: an injected unwind operation gets the error. Apparently not common with SEH + VLA in the same block...