From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: Philippe.BIONDI@enst-bretagne.fr Cc: gcc-help@gcc.gnu.org Subject: Re: line size on C sources files Date: Tue, 28 Mar 2000 15:14:00 -0000 Message-id: <200003282305.BAA01319@loewis.home.cs.tu-berlin.de> References: X-SW-Source: 2000-03/msg00110.html > Is there anywhere on earth a rule/specification/usage that say that a C > source file must not have any line that exceeds 255 characters ? There is no such rule, but there is a different rule saying that all implementations of C can have arbitrary limits, as long as they are documented as such. However, for a number of limits, minimum acceptable implementation limits are given, in particular, as per 5.2.4.1 (of C99) - 4095 characters in a logical source line So if you have more characters than that in a line, an implementation of standard C could reject it and still claim conformance to the C standard. Of course, no implementation of C is *required* to reject it, in fact, implementations are encouraged to avoid imposing fixed translation limits whenever possible. Please note that this number is from C99; it may have been lower in C89. Regards, Martin From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: Philippe.BIONDI@enst-bretagne.fr Cc: gcc-help@gcc.gnu.org Subject: Re: line size on C sources files Date: Sat, 01 Apr 2000 00:00:00 -0000 Message-ID: <200003282305.BAA01319@loewis.home.cs.tu-berlin.de> References: X-SW-Source: 2000-q1/msg00420.html Message-ID: <20000401000000.Ovf5uw-rSRYqml_A9I5Gaj8WwDnaQA1a456lpXP2HSc@z> > Is there anywhere on earth a rule/specification/usage that say that a C > source file must not have any line that exceeds 255 characters ? There is no such rule, but there is a different rule saying that all implementations of C can have arbitrary limits, as long as they are documented as such. However, for a number of limits, minimum acceptable implementation limits are given, in particular, as per 5.2.4.1 (of C99) - 4095 characters in a logical source line So if you have more characters than that in a line, an implementation of standard C could reject it and still claim conformance to the C standard. Of course, no implementation of C is *required* to reject it, in fact, implementations are encouraged to avoid imposing fixed translation limits whenever possible. Please note that this number is from C99; it may have been lower in C89. Regards, Martin