Qxltool[s]

Anything QL Software or Programming Related.
User avatar
tofro
QL Wafer Drive
Posts: 1585
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Qxltool[s]

Postby tofro » Wed Feb 27, 2019 11:24 am

NormanDunbar wrote:Yes I like this method too, however, the code is supposed to be compatible with C68 and I'm pretty sure it doesn't do pragmas.

Norman,

it actually does if you invoke it with "extension = yes" (using this enables quite some close-to-ANSI-C constructs). Pragmas then need to exactly replicate the command-line option and they should work.

(Unfortunately, if the compiler comes across a #pragma it won't understand, they will simply be ignored...)

Tobias


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
NormanDunbar
Super Gold Card
Posts: 730
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Qxltool[s]

Postby NormanDunbar » Wed Feb 27, 2019 11:41 am

Thanks Tobias.

I have a funny feeling that attempting that command line option in the past has failed, but I think the manual is incorrect in that it mentions "extensions" plural rather than singular. Maybe I need to try again.

Oh yes, the QDOS build uses qdos-gcc in the makefile, so it could be moot anyway!


Cheers,
Norm.


Why do they put lightning conductors on churches?
If at first you don't succeed, don't take up skydiving!
If you think your job is pointless, remember, there's someone in Germany who fits indicators to BMWs.
User avatar
tofro
QL Wafer Drive
Posts: 1585
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Qxltool[s]

Postby tofro » Wed Feb 27, 2019 11:46 am

Yep, the manual states

-extensions=yes

would be the command line option (at least in some examples, the option as such is described correctly) , but actually

-extension=yes

is what the compiler wants to see

This option is also essential for people who like to use C++-style commenting.

Tobias


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
mk79
Gold Card
Posts: 358
Joined: Sun Feb 02, 2014 10:54 am

Re: Qxltool[s]

Postby mk79 » Wed Feb 27, 2019 1:38 pm

tofro wrote:This option is also essential for people who like to use C++-style commenting.
I didn't know that, cool :-)

Cheers, Marcel


User avatar
NormanDunbar
Super Gold Card
Posts: 730
Joined: Tue Dec 14, 2010 9:04 am
Location: Leeds, West Yorkshire, UK
Contact:

Re: Qxltool[s]

Postby NormanDunbar » Mon Aug 12, 2019 5:02 pm

Long time, no update!

Ok, I've had some fun, and spare time over the weekend, but enough of that! I've done a fair bit of work on the qxltool utility and it now correctly formats a QXL file with all the correct settings in the header etc. To be honest, it's taken some time to get this working - and so far, only the Unix version has been changed. A rough idea of changes are:

Lots of fixes. Now properly initialises a QXL file. Also changed:

* Added 'dir' and 'dirw' as synonyms for 'ls' and 'lslr'.
* Added 'header' command to display full header. Like info++!
* Updated the help with explanations of each command.
* Unix Makefile changed to remove multiple warnings.
* Fixed Unix qxltool.h to correctly define the header structure.
* Unfortunately, QLDIR structure is still broken. TO DO. (It uses a time_t rather than a uint32_t for one of the date fields).
* Also, because the formatting is now correct, nothing (much) else works! 'makdir test', for example, appears to work, updates free sectors etc, but nothing yet appears, however, the QLDIR structure is still 66 bytes rather than 64 - on my compilation system. TO DO!

So, there is still (lots) of work to do. But, progress!

It's only available on my GitHub repository at the moment - https://github.com/NormanDunbar/qxltools and only in the 'working' branch. If anyone wants to play that is.


Cheers,
Norm.


Why do they put lightning conductors on churches?
If at first you don't succeed, don't take up skydiving!
If you think your job is pointless, remember, there's someone in Germany who fits indicators to BMWs.
User avatar
Peter
Aurora
Posts: 848
Joined: Sat Jan 22, 2011 8:47 am

Re: Qxltool[s]

Postby Peter » Mon Aug 19, 2019 7:30 pm

Thanks for the good work and please keep us updated!



Who is online

Users browsing this forum: No registered users and 4 guests