473,383 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

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 4456
> 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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.