Lartu / ldpl

COBOL-like programming language that compiles to C++. With serious dinosaurs with neckties and briefcases 🦕💼
https://www.ldpl-lang.org/
Apache License 2.0
158 stars 24 forks source link

CRLF is \n or \r\n? #101

Closed xvxx closed 5 years ago

xvxx commented 5 years ago

It seems like we have two different definitions, is that accurate? If so which is preferred?

https://github.com/Lartu/ldpl/blob/master/src/ldpl_lib.cpp#L16 is \n

https://github.com/Lartu/ldpl/blob/master/src/ldpl.cpp#L283 is \r\n

Lartu commented 5 years ago

I think this https://github.com/Lartu/ldpl/blob/master/src/ldpl_lib.cpp#L16 is a leftover from the past that should be deleted. The correct CRLF definition is the one on ldpl.cpp line 283, \r\n.