Page 1 of 1

C68 File extensions

Posted: Sun Oct 25, 2020 8:46 pm
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.

Re: C68 File extensions

Posted: Sun Oct 25, 2020 10:34 pm
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

Re: C68 File extensions

Posted: Sun Oct 25, 2020 11:07 pm
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.