News:

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

Main Menu

Recent posts

#1
Expert questions / Re: Using a structure as retur...
Last post by John Z - Today at 12:33:23 PM
Hi pkparchure,

It seems to work ok for me as well.  As TimoVJL shows.

One thing in your procedure definition that I noticed, I think
   Statistics calculate_statistics(DataStruct gsData, int nRows, int vCol)
should be
   Statistics calculate_statistics(Statistics gsData, int nRows, int vCol)
but of course you didn't show what DataStruct was so you could be correct ....

in any case here is my screen shot test result:

John Z
#2
Work in progress / Re: win32-doc md files
Last post by John Z - Today at 12:14:52 PM
Hi TimoVJL,

Attached is the new DB for the GitHub win32-docs.zip offline documentation.  Every API_NAME output by your extract program is accessible in the DB.

Had some clean-up to do and I'm looking for 'runs the first time" bug in my C access program.

So posting the DB now.  Later posting my access program when bug free, but I'm sure it is not really needed by most people.  Because of the complexity/inconsistency of the win32-doc using a sql 'like' command will often be the first step in getting to the document desired.

Like the 1st db the "Win32-docs\\desktop-src\\" is to be pre-appended to the SQL returns, that is the DB returns the SubDir and the actual filename.md, as before.

John Z
#3
Expert questions / Re: Re: Using a structure as r...
Last post by TimoVJL - Today at 11:47:10 AM
Not sure what you mean.
This example shows {} calculate_statistics in project panel.
typedef struct {
    int count;
    double min;
    double max;
    double mean;
    double median;
    double mode;
    double std_dev;
    double coeff_variation;
    double skewness;
    double kurtosis;
} Statistics;

Statistics calculate_statistics(void* gsData, int nRows, int vCol)
{
}
#4
Expert questions / Re: Using a structure as retur...
Last post by pkparchure - Today at 09:32:07 AM
Dear Forum
I am facing a peculiar problem with Pelles C IDE. I have tried using a structure as return value for function. For example my function for computing the Statistcs is
// Function to calculate all statistics
Statistics calculate_statistics(DataStruct gsData, int nRows, int vCol) where Statistics is a structure:
typedef struct {
    int count;
    double min;
    double max;
    double mean;
    double median;
    double mode;
    double std_dev;
    double coeff_variation;
    double skewness;
    double kurtosis;
} Statistics;
The program works very well but the problem is that this function is not shown in side panel.
In fact any function with return variable not given as void, int, float, double, etc, is not shown in side panel.

I have put the screenshot of IDE. I am using Version 13 now. Is it a bug in IDE or I am missing something in IDE

#5
Bug reports / Re: IDE issue
Last post by John Z - Yesterday at 11:23:48 PM
Thanks Pelle, I'll watch closely from now on. It is not frequent. If I ever can intentionally make it happen I'll post again.

Thanks Robert - I do prefer case insensitive though.

John Z
#6
Bug reports / Re: IDE issue
Last post by Pelle - Yesterday at 09:17:25 PM
John Z,

What I'm trying to say is that I never "normalize" a filename, never turn "TEST.C" into "test.c" or something like that. I use the exact spelling returned from functions like FindFirstFile*() / FindNextFile*(). The fact that you have two different spellings means your directory at one point must have contained "DBSearch.c" and at another point must have contained "dbsearch.c". This is a fact (and that Windows can match "TeSt.C" with the name "test.c" stored in the directory is irrelevant).

It seems most likely that it was a user action that renamed "dbsearch.c" into "DBSearch.c", or vice versa. But you are closer to this possible action...
#7
Bug reports / Re: IDE issue
Last post by Robert - Yesterday at 09:03:31 PM
#8
Bug reports / Re: IDE issue
Last post by John Z - Yesterday at 07:57:20 PM
Thanks Pelle,

It's an idea. I'm sure at some point I've renamed a file but not to just change case I think.  Also Windows does not distinguish case in the file name, I believe. 

I'll run a few test along this line of thinking though.

John Z
#9
Bug reports / Re: IDE issue
Last post by Pelle - Yesterday at 04:51:06 PM
AFAIK, all tools will pick up the exact spelling of a filename. If the .tag database contains "DBSearch.c" and "dbsearch.c", both spellings must have been present on your disk at some point.

Can you remember renaming this file, and if it was done from the IDE or from Windows (Explorer / Command line / whatever)?
#10
Work in progress / Re: ChatGPT examples
Last post by Quin - May 29, 2025, 11:27:42 PM
Thanks Vortex! As the author of uphide, I can appreciate this example for sure.