Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

importing to Subversion, not all CR-LF format

Posted by Jeff Smith on April 3, 2006
I'm trying to import FreeRTOS 4.0.0 to Subversion.

I wonder why several files have mixed newline formats? More precisely, after checking a coulple, I found that in general the files use "\r\n". That would be great, but svn does not automatically set an attribute on these few files (in different ports) which sometimes us "\n\n" as a double linefeed instead.

It would be more portable code if you could filter it so they all use the Windows CRLF format. Sad I'm saying that since I use Linux, but linux can handle the CRLF easily, just not so much the confused format.

RE: importing to Subversion, not all CR-LF format

Posted by daveyjcrocket on April 3, 2006

i guess submitters to FreeRTOS could 'dos2unix -D'
their stuff before submitting?

Or the poster could clean before importing to subversion?

Maybe they could run 'indent' too since we're on the beautification bandwagon.

RE: importing to Subversion, not all CR-LF fo

Posted by Jeff Smith on April 3, 2006
Huh, it's a thought. I'd just like to know what kind of wacky editor is making mixed line ends. And I don't think it would be hard to figure out. I beleive only one person actually submits anything to his own repository, from what he's said recently.

Clean... That wouldn't help anything (I also see he already does that--not related).

And no, I'm not on any sort of beautification bandwagon. The indentation looks good to me, and has never stopped the import like the CRLF/LFLF confusion did, and there is not reason to mix them. I mean the current state has no benefit and is sometimes harmful.

As far as indentation, anyone can argue that the current indentation in any source is better the way it is.

RE: importing to Subversion, not all CR-LF format

Posted by Richard on April 4, 2006
I actually did the same thing myself recently - take the source code (not including the demo apps) into Subversion, but I did not encounter any problems.

The source code gets edited and debugged in a whole range of different editors and debuggers, some of which are Windoze native and some of which aren't. I wasn't aware that there was a problem with line ends getting mixed up. I have made a note to check this prior to the next release.

As for formatting - if you use tabs and set 1 tab to equal 4 spaces then it should already be "beautiful" ;-) but this is in the eye of the beholder and the formatting is just my preference.

Regards.

RE: importing to Subversion, not all CR-LF fo

Posted by Jeff Smith on April 4, 2006
Hi Richard,

I guess it's not too surprizing that you didn't have any problems in your svn. I use auto properties (not default) which detect file types and set whether they should be checked out as ascii text and newlines converted for whichever environment they are being checked out for.

Since the auto properties is not default, you are simply preserving those files as binary. The reason I would not want that is because then if I use certain popular editors in Win, for example, I could not properly view a file that was edited in Linux.

Of course if it's just too hard to prepare newlines that way for release downloads, then it means *somebody* will have to have a hard time with it.


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists