Hi,
On Cygwin, most of the header files for gcc and g++ used UNIX style
line breaks, so I've been replacing these (by copying into Wordpad
from Notepad and then copying out again) with Windows-style line
breaks. However, this doesn't get rid of instances of character 12
(Form Feed).
Is there any reason why it wouldn't be safe to delete these and thus
improve the readability of the files? Does the compiler just ignore
them?
Thanks,
James McLaughlin. 5 4459
> Hi, On Cygwin, most of the header files for gcc and g++ used UNIX style line breaks, so I've been replacing these (by copying into Wordpad from Notepad and then copying out again) with Windows-style line breaks. However, this doesn't get rid of instances of character 12 (Form Feed).
Is there any reason why it wouldn't be safe to delete these and thus improve the readability of the files? Does the compiler just ignore them?
Thanks,
James McLaughlin.
This is not a question related to C++. Try posting in an appropriate
newsgroup. However, I think replacing line-breaks would not affect the
compilation in any way.
Srini ze*******************@yahoo.com writes: On Cygwin, most of the header files for gcc and g++ used UNIX style line breaks, so I've been replacing these (by copying into Wordpad from Notepad and then copying out again) with Windows-style line breaks. However, this doesn't get rid of instances of character 12 (Form Feed).
Is there any reason why it wouldn't be safe to delete these and thus improve the readability of the files? Does the compiler just ignore them?
Paragraph 2.2 of the C++ standard says:
The basic source character set consists of 96 characters: the space
character, the control characters representing horizontal tab,
vertical tab, form feed, and newline, ...
I.e. they are safe, and not ignored.
ImRe
"Srini" <sr*********@gmail.com> wrote in message
news:11********************@f14g2000cwb.googlegrou ps.com... Hi, On Cygwin, most of the header files for gcc and g++ used UNIX style line breaks, so I've been replacing these (by copying into Wordpad from Notepad and then copying out again) with Windows-style line breaks. However, this doesn't get rid of instances of character 12 (Form Feed).
Is there any reason why it wouldn't be safe to delete these and thus improve the readability of the files? Does the compiler just ignore them?
Thanks,
James McLaughlin.
This is not a question related to C++.
Yes it is. See ISO 1488 para 2 2.2
Try posting in an appropriate newsgroup.
This group is the right one.
However, I think replacing line-breaks would not affect the compilation in any way.
The answer is that it's 'safe' to either leave the form-feed
characters there or to remove them (IF none of them is the only
delimiter between tokens). Except within literals, whitespace
is automatically skipped during translation. 'Form-feed' is listed
by the standard as a required member of the execution character set.
-Mike
>> This is not a question related to C++. Yes it is. See ISO 1488 para 2 2.2
Try posting in an appropriate newsgroup.
This group is the right one.
However, I think replacing line-breaks would not affect the compilation in any way.
The answer is that it's 'safe' to either leave the form-feed characters there or to remove them (IF none of them is the only delimiter between tokens). Except within literals, whitespace is automatically skipped during translation. 'Form-feed' is listed by the standard as a required member of the execution character set.
-Mike
My mistake. I apologise. I did not know about this. Thanks Mike. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Martman |
last post by:
I am new to PHP but testing the ability to read an RSS xml feed. I have
successfully retrieved, read, and displayed an RSS feed from pcworld.
However, when you click on one of the links it adds...
|
by: Haines Brown |
last post by:
I'm having trouble finding the character entity for the French
abbreviation for "number" (capital N followed by a small supercript
o, period).
My references are not listing it. Where would I...
|
by: Neil S. |
last post by:
I am writing an ISAPI filter which is using CAPICOM to encrypt and
decrypt cookie information. I've found that the encryption string
being returned by CAPICOM a has carriage control and line feed....
|
by: zeroPleaseDontSpamtype |
last post by:
Hi,
On Cygwin, most of the header files for gcc and g++ used UNIX style
line breaks, so I've been replacing these (by copying into Wordpad
from Notepad and then copying out again) with...
|
by: Adam Right |
last post by:
Hi,
Anyone use the form feed '\f' character to print the documents. I cannot use
it, it remains undefined character on the paper.
I want to feed the paper to the second after printing the...
|
by: Mark Waser |
last post by:
Hi all,
I'm trying to post multipart/form-data to a web page but seem to have
run into a wall. I'm familiar with RFC 1867 and have done this before (with
AOLServer and Tcl) but just can't seem...
|
by: Brad Sanders |
last post by:
Hello All,
Thanks to Richard's answer to my last post I understand
now what I have to do, but..
How do I put a Line Feed or a Form Feed into a text file?
Looking throught the .net help it...
|
by: breakerman |
last post by:
I have 4 inch high sprocket feed forms, for which I've defined a custom
form in the Windows XP Print Server. My OKI Microline 320 has this
fancy forms tear-off mode that only activates when it...
|
by: Wim Cossement |
last post by:
Hello,
I was wondering if there are a few good pages and/or examples on how to
process form data correctly for putting it in a MySQL DB.
Since I'm not used to using PHP a lot, I already found...
|
by: Spiros Bousbouras |
last post by:
The fact that vertical tab and form feed exist both in the
basic source character set and the basic execution
character set suggests to me that there is a class of display
devices where vertical...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |