473,471 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Form feed character in header files

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.
Aug 9 '05 #1
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

Aug 9 '05 #2
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
Aug 9 '05 #3

"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
Aug 9 '05 #4
>> 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.

Aug 10 '05 #5
Thanks everyone!
Aug 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
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...
38
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...
1
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....
8
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...
2
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...
7
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...
2
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...
0
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...
25
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...
3
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...
0
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...
0
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...
0
Oralloy
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,...
0
jinu1996
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...
0
tracyyun
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...
1
isladogs
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...
0
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...
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.