C68 File extensions

Anything QL Software or Programming Related.
Post Reply
Derek_Stewart
Font of All Knowledge
Posts: 4684
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

C68 File extensions

Post by Derek_Stewart »

Hi,

I read in the C68 manual, that the compiler converts the .c separater to a underscor _c

file.c becomes file_c

But if there us a file to be included, e.g. header.h, with the statement:

#include "header .h"

where the file is located in the current directory.

The cc programme can not find the the file until the file is renamed to header_h

Is there a command to overide the separator conversion, as I can not find it in the manual.


Regards,

Derek
EmmBee
Trump Card
Posts: 245
Joined: Fri Jan 13, 2012 5:29 pm
Location: Kent

Re: C68 File extensions

Post by EmmBee »

Derek_Stewart wrote:Hi,

I read in the C68 manual, that the compiler converts the .c separater to a underscor _c

file.c becomes file_c

But if there us a file to be included, e.g. header.h, with the statement:

#include "header .h"

where the file is located in the current directory.

The cc programme can not find the the file until the file is renamed to header_h

Is there a command to overide the separator conversion, as I can not find it in the manual.
Hi Derek,

If we are talking about unzipping files using the QL version of unzip,
then the default action is to use all underscores file_c header_h etc.
There is, within unzip, the option -Q1 which will unzip using all "." dot extensions: file.c header.h etc.

Which particular C68 manual are you reading ?

EmmBee


Derek_Stewart
Font of All Knowledge
Posts: 4684
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: C68 File extensions

Post by Derek_Stewart »

Hi,

The section is: C68 GNU Preprocessor, Section 2,2

But I have just found the detail that I need, which is in the C68 environment on QDOS and SMS, regards Automatic Handling of Foreign Filenames.

Looks like I did not read the manual enough.


Regards,

Derek
Post Reply