ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/12/21/14:03:31

From: "Damian Yerrick" <NOSP AT Msnews@pineight.8m.com>
Newsgroups: comp.os.msdos.djgpp
References: <385F773A DOT 595A9DB1 AT e DOT mail>
Subject: Re: Rhide bug?
Lines: 30
Organization: Pin Eight Software <http://pineight.8m.com/>
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
Message-ID: <4GM74.498$PK3.5161@dfiatx1-snr1.gtei.net>
X-Trace: /ba9QYAXBIKAQpzdA1oJvB4taWR9gueHJADka5a4cbfSXpG6Wxoz6fGCuek7K+moH+XyFyUoxpbl!nLaT4A7iECIGyC5arzzcMP0plAR5rXmWuBisyQLsPZuGYnVjqdepf/dss4+Jjd/4+Q==
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Tue, 21 Dec 1999 15:04:32 GMT
Distribution: world
Date: Tue, 21 Dec 1999 15:04:32 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Hans Yperman" <Hans DOT Yperman AT rug DOT ac DOT be> wrote:
> The Edit->Compact text function may do bad things with your code.
>
> (I assume in this example that a tab=8 spaces.)
> Do  this:(not indented, start at column 0)
> *xy++=' ';
> with the space between the quotes on the tabstops-1'th column.
> Now there is no way to see the difference between tab and
> space on this place, so Rhide replaces the space with a tab.
> At runtime,a tab is written in the string,not a space.

It's a readability flaw in your code. Try
*xy++ = '\t';

--
Damian Yerrick    http://yerricde.tripod.com/
View full .sig:  http://www.rose-hulman.edu/~yerricde/sig.html










and now you must pay...


- Raw text -


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