News:

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

Main Menu

Recent posts

#21
Work in progress / Re: Testing XmlLite.dll
Last post by Vortex - April 18, 2025, 02:25:19 PM
Hi Timo,

Here are the function prototypes for 32-bit coding :

; include file generated by lib2inc V2.4

CreateXmlReader PROTO :DWORD,:DWORD,:DWORD
CreateXmlReaderInputWithEncodingCodePage PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CreateXmlReaderInputWithEncodingName PROTO :DWORD,:DWORD,:DWORD,:DWORD,:DWORD,:DWORD
CreateXmlWriter PROTO :DWORD,:DWORD,:DWORD
CreateXmlWriterOutputWithEncodingCodePage PROTO :DWORD,:DWORD,:DWORD,:DWORD
CreateXmlWriterOutputWithEncodingName PROTO :DWORD,:DWORD,:DWORD,:DWORD

Replace the DWORDs with QWORDs and you have the 64-bit version.
#22
Work in progress / Testing XmlLite.dll
Last post by TimoVJL - April 18, 2025, 09:55:51 AM
This example was just for using XmlLite.dll with Pelles C without any additional files.

Some parts are just copied from fSDK xmllite.h

Next thing might be to create minimal XmlLite.inc for poasm


https://github.com/Frankie-PellesC/fSDK
https://github.com/Frankie-PellesC/fSDK/blob/master/Samples_and_Tests/XML/Xml_Sample/xml_sample.c
#23
Bug reports / Macro reporting fatal error
Last post by Vortex - April 17, 2025, 09:46:15 PM
Hello,

The code below reports the following error message, tested with Poasm Version 13.00.12 :

Test.asm(20): fatal error: Invalid use of 'Tab'.
.386
.model flat,stdcall
option casemap:none

ExitProcess PROTO :DWORD
printf PROTO C :DWORD,:VARARG

include CstrMacro.asm

.data?

str1 dd ?

.code

start:

    invoke  printf,\
            @Cstr("Tab\tcharacter\ttest\nAnother line\qSample line\nEscaped symbol \\\n")

    mov     eax,DWORD PTR [esp-4]
    mov     str1,eax

    invoke  ExitProcess,0

END start

Poasm Version 12.00.1 can assemble the code without any issues.
#24
Announcements / Re: Release Candidate for vers...
Last post by TimoVJL - April 17, 2025, 11:45:05 AM
polib don't like UTF8 def-files, have to change to ANSI format.
#25
Bug reports / Re: Filenames with leading min...
Last post by Pelle - April 17, 2025, 10:52:45 AM
All/most PO*.EXE command-line tools use functions from the same helper library.

One function in this library splits the string from Windows into an "argv" array. This function will handle quotes in the string from Windows, to support filenames with spaces, but any quotes are dropped before the name is placed in the "argv" array (to simplify further processing). Once the "argv" array is constructed, names beginning with "/" or "-" are considered options (names beginning with "@" may get other treatment, etc.)

Other solutions are obviously possible, but "-filename" seems like a silly non-issue to begin with...
#26
Bug reports / Re: Filenames with leading min...
Last post by Pelle - April 17, 2025, 10:39:06 AM
Quote from: Stefan Pendl on April 17, 2025, 07:28:16 AMHow about introducing the "--" switch that signals the end of the parameters?
Many Unix utilities support this.
Not many Windows command-line tools, though (AFAIK).
#27
Bug reports / Re: Filenames with leading min...
Last post by Vortex - April 17, 2025, 10:21:44 AM
Hi Pelle,

Thanks for the explanation, it's OK. No any leading - symbol to name files.
#28
Bug reports / Re: Filenames with leading min...
Last post by TimoVJL - April 17, 2025, 09:35:57 AM
That issue was about checking douple quote in commandline parser for future use.
A silly filename case with switch char as first char in filename.

So solution is simple: don't ever use that char as first char in filename

>cl.exe -c "-test.c"
Microsoft (R) C/C++ Optimizing Compiler Version 19.33.31630 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

cl : Command line warning D9002 : ignoring unknown option '-test.c'
cl : Command line error D8003 : missing source filename
#29
Bug reports / Re: Filenames with leading min...
Last post by Stefan Pendl - April 17, 2025, 07:28:16 AM
How about introducing the "--" switch that signals the end of the parameters?
Many Unix utilities support this.
#30
Assembly discussions / Re: Latest POASM for testing.....
Last post by TimoVJL - April 16, 2025, 10:10:54 PM
This test project works after making needed changes.