Re: lua_Debug short_src not always nicely printable
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua_Debug short_src not always nicely printable
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2004年5月03日 09:33:39 -0300
> to take into account other possibilities... so to handle unix and DOS line
> endings properly:
>
> int len = strcspn(source, "\n\r"); /* stop at first newline */
Done (for 5.1).
-- Roberto