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
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to