tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] How to use char "\"


From: Jefsey
Subject: Re: [Tinycc-devel] How to use char "\"
Date: Tue, 30 Sep 2014 19:29:22 +0200

Thank you all.

The problem the I have is that I am quite rusty at my C and TCC is new to me :-)

1. First thing is that I use "tcc xxxx.c" and I do not know how to get more than one kind of error at a time? Is there a way to have all the compilation errors one shot in a file ? 2. the "\\" for "\" seems to work (does not report error. "\." now complain, but not if I enter '.', as if \ was only an escape for \ except when followed by n as in \n.
3. The error I am reported now is that "isascii" us an unknopwn symbol.

It seems that I have to fish difficulty after difficulty?
Best
jfc


At 18:46 30/09/2014, Daniel Glöckner wrote:
Hi,

On Wed, Oct 01, 2014 at 12:06:24AM +0800, Thomas Preud'homme wrote:
> > I have a problem with the char "\". For example in the line:
> >
> >     strpbrk (file_name,"\*?")
> >
> > ir order to know if i have a simple file name, tcc tells me "unknown
> > escape sequence".
>
> The manpage doesn't say that the strings accept escape sequence. Is it even
> defined in the standard? Sounds like a bug in TinyCC.

Thomas, C does support the escape sequences \a, \b, \f, \n, \r, \t,
\v, \', \", \?, \\, \<3octal>, \x<2hex>, \u<4hex>, and \U<8hex>.
I guess BCC probably interpreted \* as \\*.

> > When I want use as a char both text[i]='\' and text[i]='\\' do not
> > work. Since I am there working on text strings I cannot equate '\' to
> > ascii 28 first.
>
> '\' should be correct. What is the error you get?

'\\' should be correct. What is the error you get?

Best regards,

  Daniel

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]