delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/21/07:36:25

Message-ID: <000701bf63ef$41a61440$0307028a@prmivv03>
From: "Petr Maxa" <maxa AT sse-za DOT sk>
To: <djgpp AT delorie DOT com>
Subject: signed - unsigned chars
Date: Fri, 21 Jan 2000 10:09:42 +0100
Organization: SSE s.p. Zilina
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Reply-To: djgpp AT delorie DOT com

Hi I am just porting a code from Borland C++, and there is a possibility in
"Compiler->Code Generation" to set "Unsigned chars" (option -K) and in "C++
Options->C++ Compatibility" set "Do not treat 'char' as distinct type"
(option -K2).

I am working on a project, where is very important to have all chars as
unsigned types. There is now a problem to accomplish this, as compiler
treats constant chars as signed types. Is there any possibility to change it
globally signed char to unsigned as in Borland compiler ?

Thanks, Petr Maxa, Slovakia



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019