Pelles C forum

Pelles C => Announcements => Topic started by: Pelle on March 24, 2023, 09:42:02 PM

Title: Release Candidate for version 12.00 is now available
Post by: Pelle on March 24, 2023, 09:42:02 PM
http://www.smorgasbordet.com/pellesc/download.htm (http://www.smorgasbordet.com/pellesc/download.htm)
Title: Re: Release Candidate for version 12.00 is now available
Post by: John Z on March 24, 2023, 10:15:10 PM
Wow - I had a suspicion this was why you were secreted away for a year  :)
Congratulations! I’ll be downloading and testing  shortly!

Thank you for all of your hard work for us Pelles C users!!!
John Z

BTW version Pelles C v11 had no issues in Windows 11.  Been running that way for quite a while.
Title: Re: Release Candidate for version 12.00 is now available
Post by: frankie on March 25, 2023, 01:29:06 AM

          .--------._
         (`--'       `-.
          `.______      `.
       ___________`__     \
    ,-'           `-.\     |
   //                \|    |\
  (`  .'~~~~~---\     \'   | |
   `-'           )     \   | |
      ,---------' - -.  `  . '
    ,'             `%`\`     |
   /                      \  |
  /     \-----.         \    `
 /|  ,_/      '-._            |
(-'  /           /            `     (Joshua Bell)
,`--<           |        \     \
\ |  \         /%%             `\
 |/   \____---'--`%        \     \
 |    '           `               \
 |
  `--.__
        `---._______
                    `.
                      \
Title: Re: Release Candidate for version 12.00 is now available
Post by: MrBcx on March 25, 2023, 04:25:13 AM
┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌█████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌███████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌███┌┌┌██┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌██┌┌┌┌██┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌███┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌███┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌██┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌███┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌██┌┌┌┌┌┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌┌┌██┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌███┌███┌┌┌┌┌┌┌┌┌┌██┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌████████████┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌
┌┌████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌
┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌█████████┌┌
███┌┌┌┌█████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌█████┌
██┌┌┌███████┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌███┌
██┌┌┌┌███┌┌┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
███┌┌┌┌┌┌┌┌┌┌┌█████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌███┌┌┌┌┌┌┌████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌┌████████████┌┌┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌███┌██████┌┌┌┌┌┌┌████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌███┌┌┌┌┌┌┌┌┌┌┌██████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌┌████┌████┌██████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌██┌
┌┌┌████████████┌┌┌┌┌███┌┌┌┌┌┌┌┌┌┌┌┌┌███┌
┌┌┌┌██┌┌┌┌┌┌┌┌┌┌┌███████┌┌┌┌┌┌┌███████┌┌
┌┌┌┌████┌┌┌┌┌┌████████┌┌┌┌┌┌┌┌████████┌┌
┌┌┌┌┌████████████┌┌┌███┌┌┌┌┌███┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌███┌█┌█┌┌┌┌┌┌███┌┌┌███┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌███┌┌┌┌┌┌█████┌┌█████┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌██████████████████┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌██████████████┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌
┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌┌

Looking good Pelle ... I compiled BCX along with a couple hundred BCX samples using V12.

V12 issued a couple of new -valid- warnings in code generated by BCX that were
previously undetected, so that's a good thing.

I've shared your announcement on my forum, as several users prefer using Pelles C.

Thanks as always!
Title: Re: Release Candidate for version 12.00 is now available
Post by: Vortex on March 25, 2023, 10:49:29 AM
Hi Pelle,

Many thanks.
Title: Re: Release Candidate for version 12.00 is now available
Post by: Pelle on March 25, 2023, 01:12:05 PM
Cool... Thank you all!  :)

( About Windows 11: I need a hardware upgrade to properly run it, but since I have heard almost nothing but bad opinions about Windows 11 I'm going to wait. It seems to follow an old Microsoft tradition of "every other Windows version is crap"...
...
Windows XP : better than previous version
Windows Vista: worse
Windows 7: better
Windows 8(.1): worse
Windows 10: better
Windows 11: worse(?)
)

Title: Re: Release Candidate for version 12.00 is now available
Post by: frankie on March 25, 2023, 02:07:52 PM
Cool... Thank you all!  :)

( About Windows 11: I need a hardware upgrade to properly run it, but since I have heard almost nothing but bad opinions about Windows 11 I'm going to wait. It seems to follow an old Microsoft tradition of "every other Windows version is crap"...
...
Windows XP : better than previous version
Windows Vista: worse
Windows 7: better
Windows 8(.1): worse
Windows 10: better
Windows 11: worse(?)
)
My parents were used to say that you must do a job 3 times at least. The first time to do it following your dreams, the second when you realize that many of those were crap, the last when you finally understood what is really required...  ;)

This post was sent from a Win10 machine...  ;D
Title: Re: Release Candidate for version 12.00 is now available
Post by: Marco on March 25, 2023, 02:37:19 PM
Hi Pelle,

Thank you very much for your continued efforts to maintain and improve this project. I compiled several personal tools by using this new version, and no issues so far.

V12 issued a couple of new -valid- warnings in code generated by BCX that were
previously undetected, so that's a good thing.

Yep, for me as well.
Title: Re: Release Candidate for version 12.00 is now available
Post by: TimoVJL on March 25, 2023, 02:47:30 PM
Thanks Pelle, now i have something new to test with Pelle's C again  :)
Message came from Windows 7  ;D
Title: Re: Release Candidate for version 12.00 is now available
Post by: MrBcx on March 25, 2023, 03:11:36 PM

It seems to follow an old Microsoft tradition of "every other Windows version is crap"...
...
Windows XP : better than previous version
Windows Vista: worse
Windows 7: better
Windows 8(.1): worse
Windows 10: better
Windows 11: worse(?)
)

Speaking of Windows 11, this was reported yesterday ...

A fully patched Windows 11 system was hacked again at Pwn2Own, with Thomas Imbert (@masthoon)
from Synacktiv (@Synacktiv) earning $30,000 for a Use-After-Free (UAF) bug.


Ref: https://www.bleepingcomputer.com/news/security/windows-ubuntu-and-vmware-workstation-hacked-on-last-day-of-pwn2own/

Title: Re: Release Candidate for version 12.00 is now available
Post by: Pelle on March 25, 2023, 03:37:11 PM
Yeah... I doubt everything was better in ~1980, but at least any security problems with this https://en.wikipedia.org/wiki/ABC_80 (https://en.wikipedia.org/wiki/ABC_80) were very local (like me...) Progress? Bah!
Title: Re: Release Candidate for version 12.00 is now available
Post by: rapte on March 25, 2023, 06:14:12 PM
Thank you Pelle
Title: Re: Release Candidate 1 for version 12.00 is now available
Post by: John Z on March 27, 2023, 05:34:42 PM
is the disabling of the find direction Up & Down buttons intentional
whenever "Use regular expressions" is selected?

John Z
Title: Re: Release Candidate 1 for version 12.00 is now available
Post by: Pelle on March 27, 2023, 10:31:56 PM
is the disabling of the find direction Up & Down buttons intentional
whenever "Use regular expressions" is selected?
Yes
Title: Re: Release Candidate for version 12.00 is now available
Post by: dezmand07 on March 30, 2023, 10:39:29 AM
Thank you Pelle!
I would like to clarify at the expense of the Russian language - is support for version 12 planned?

PS: on Windows 11 everything works great!
Title: Re: Release Candidate for version 12.00 is now available
Post by: HellOfMice on April 03, 2023, 05:33:04 PM
Thank You Pelle.
For me it is the best compiler.
Title: Re: Release Candidate for version 12.00 is now available
Post by: Don D on April 03, 2023, 05:45:39 PM
Thanks Pelle! Excellent results testing V12RC1 on my projects.  :)
Title: Re: Release Candidate for version 12.00 is now available
Post by: HellOfMice on April 03, 2023, 05:50:55 PM
Pelle's V12 find errors that the previous version did not find!

All the GetProcAddress calls get an error.

Building Languages.obj.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(79): error #2168: Operands of '=' have incompatible types 'GetSerialNumberProc (aka char * __stdcall (*)())' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(82): error #2168: Operands of '=' have incompatible types 'GetLanguageNameProc (aka char * __stdcall (*)())' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(85): error #2168: Operands of '=' have incompatible types 'GetTitleProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(88): error #2168: Operands of '=' have incompatible types 'GetStringProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(91): error #2168: Operands of '=' have incompatible types 'GetFormatProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(94): error #2168: Operands of '=' have incompatible types 'GetToolTipProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(97): error #2168: Operands of '=' have incompatible types 'GetErrorProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(100): error #2168: Operands of '=' have incompatible types 'GetQuestionProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(103): error #2168: Operands of '=' have incompatible types 'GetInformationProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(106): error #2168: Operands of '=' have incompatible types 'GetWarningProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(109): error #2168: Operands of '=' have incompatible types 'GetStaticTextProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(112): error #2168: Operands of '=' have incompatible types 'GetButtonProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
C:\Users\51966\Documents\Pelles C Projects\CoFeE_V2\Languages.c(115): error #2168: Operands of '=' have incompatible types 'GetLanguageProc (aka char * __fastcall (*)(int))' and 'FARPROC (aka long long int __stdcall (*)())'.
*** Error code: 1 ***
Done.

GetToolTip = GetProcAddress(hLanguage,"CFE_GetToolTip") ;
if(GetToolTip)
{
GetError = GetProcAddress(hLanguage,"CFE_GetError") ;
if(GetError)
{
GetQuestion = GetProcAddress(hLanguage,"CFE_GetQuestion") ;
if(GetQuestion)
{
GetInformation = GetProcAddress(hLanguage,"CFE_GetInformation") ;
if(GetInformation)
{
GetWarning = GetProcAddress(hLanguage,"CFE_GetWarning") ;
if(GetWarning)

#ifndef _LANGUAGES_H
#define _LANGUAGES_H

typedef LPSTR (CALLBACK *GetLanguageNameProc)(void) ;
typedef LPSTR (CALLBACK *GetSerialNumberProc)(void) ;
typedef LPSTR (*GetTitleProc)(int) ;
typedef LPSTR (*GetStringProc)(int) ;
typedef LPSTR (*GetFormatProc)(int) ;
typedef LPSTR (*GetToolTipProc)(int) ;
typedef LPSTR (*GetErrorProc)(int) ;
typedef LPSTR (*GetQuestionProc)(int) ;
typedef LPSTR (*GetInformationProc)(int) ;
typedef LPSTR (*GetWarningProc)(int) ;
typedef LPSTR (*GetStaticTextProc)(int) ;
typedef LPSTR (*GetFormatProc)(int) ;
typedef LPSTR (*GetButtonProc)(int) ;
typedef LPSTR (*GetLanguageProc)(int) ;

extern GetSerialNumberProc   GetSerialNumber ;
extern GetLanguageNameProc   GetLanguageName ;
extern GetTitleProc         GetTitle ;
extern GetStringProc      GetString ;
extern GetFormatProc      GetFormat ;
extern GetToolTipProc      GetToolTip ;
extern GetErrorProc         GetError ;
extern GetQuestionProc      GetQuestion ;
extern GetInformationProc   GetInformation ;
extern GetWarningProc      GetWarning ;
extern GetStaticTextProc   GetStaticText ;
extern GetFormatProc      GetFormat ;
extern GetButtonProc      GetButton ;
extern GetLanguageProc      GetLanguage ;

int Error(int __iErrorNumber) ;
int SpecialError(LPSTR __lpszString) ;
int Warnings(int __iWarningNumber,LPSTR __lpszString) ;
int Questions(int __iQuestionNumber,LPSTR __lpszString) ;
int Informations(int __iInformationNumber,LPSTR __lpszString) ;

LPSTR Formats(int __iFormatsNumber) ;
LPSTR Strings(int __iStringsNumber) ;
LPSTR Buttons(int __iButtonNumber) ;
LPSTR Statics(int __iStaticsNumber) ;
LPSTR ToolTips(int __iToolTipsNumber) ;
LPSTR Titles(int __iTitleNumber) ;
LPSTR Languages(int __iLanguageNumber) ;

void UnLoadLanguageFile(void) ;
int LoadLanguageFile(LPSTR __lpszLanguageFile) ;

#endif /* _LANGUAGES_H */


Title: Re: Release Candidate for version 12.00 is now available
Post by: dezmand07 on April 04, 2023, 01:59:29 PM
Pelle's V12 find errors that the previous version did not find!

All the GetProcAddress calls get an error.

The problem is in your code.
My code with GetProcAddress works great
Code: [Select]
typedef void(NTAPI* _RtlGetNtVersionNumbers)(PULONG NtMajorVersion, PULONG NtMinorVersion, PULONG NtBuildNumber);
_RtlGetNtVersionNumbers RtlGetNtVersionNumbers = NULL;

HMODULE hModule = GetModuleHandle(TEXT("ntdll"));
if (hModule)
RtlGetNtVersionNumbers = (_RtlGetNtVersionNumbers)GetProcAddress(hModule, "RtlGetNtVersionNumbers");


typedef LPSTR (*GetTitleProc)(int) ;
__stdcall where?
typedef LPSTR (__stdcall* GetTitleProc)(int) ;
Title: Re: Release Candidate for version 12.00 is now available
Post by: HellOfMice on April 04, 2023, 02:50:56 PM
Thank You for the answer, it was corrected yestirday.
It was just for saying, just a complation and errors... Strange.
Title: Re: Release Candidate for version 12.00 is now available
Post by: Pelle on April 04, 2023, 10:06:58 PM
Adding C2X mode prompted many changes to the parser, which in turn triggered more refactoring. It's possible a bug got fixed during all of this. Whatever.
Title: Re: Release Candidate for version 12.00 is now available
Post by: larryli on April 07, 2023, 10:22:18 AM
Please add DPI support

https://learn.microsoft.com/en-us/windows/win32/hidpi/setting-the-default-dpi-awareness-for-a-process#setting-default-awareness-with-the-application-manifest

Code: [Select]
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
  <asmv3:application>
    <asmv3:windowsSettings>
      <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
      <dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">PerMonitorV2</dpiAwareness>
    </asmv3:windowsSettings>
  </asmv3:application>
</assembly>
Title: Re: Release Candidate for version 12.00 is now available
Post by: HellOfMice on April 09, 2023, 09:38:16 AM
Thank You everybody


My programs runs like before.


Larryli: I don't understand what hidpi brings to my program?
Title: Re: Release Candidate for version 12.00 is now available
Post by: Akko on April 13, 2023, 09:58:57 AM
Many many thanks for the new version!! I really appreciate your continuing support.

My 5 cents:

Installs and runs on Win11 (for me personally the best Win version so far, although I am nostalgically a bit more inclined towards Win7..).

Compiling my Forth compiler with 12.00 seems to go fine, but the Forth test suite shows some errors with string handling functions (which it does not when compiled with gcc or vc or clang). Unfortunately I have not yet found time for hunting the bug ...

Title: Re: Release Candidate for version 12.00 is now available
Post by: Pelle on April 16, 2023, 05:16:45 PM
Please add DPI support
Not in this version, maybe in some future version...
Title: Re: Release Candidate for version 12.00 is now available
Post by: Pelle on April 16, 2023, 05:20:09 PM
Compiling my Forth compiler with 12.00 seems to go fine, but the Forth test suite shows some errors with string handling functions (which it does not when compiled with gcc or vc or clang). Unfortunately I have not yet found time for hunting the bug ...
Could be a bug, different default settings, or something else. I can't really comment without more info...