Re: [dev] Re: [libutf] Proposal for additional rune utility functions

2015-02-11 Thread Connor Lane Smith
Hi, On 11 February 2015 at 20:48, FRIGN wrote: > there's no need for a separate GitHub-repo. You are the maintainer and > have the right to push your stuff to suckless, and at least I personally > would really like to see the fresh changes here on suckless.org rather > than some GitHub 0815 repos

Re: [dev] Re: [libutf] Proposal for additional rune utility functions

2015-02-11 Thread FRIGN
On Wed, 11 Feb 2015 20:29:49 + Connor Lane Smith wrote: Hey Connor, > I've added these proposed functions, and done some other work too, on > my GitHub repo [1], which is where I maintain libutf now that I no > longer contribute particularly regularly. Please feel free to send me > any other

[dev] Re: [libutf] Proposal for additional rune utility functions

2015-02-11 Thread Connor Lane Smith
Hi, I've added these proposed functions, and done some other work too, on my GitHub repo [1], which is where I maintain libutf now that I no longer contribute particularly regularly. Please feel free to send me any other patch proposals, either directly or via this mailing list (preferably with a

Re: [dev] Re: [libutf] Proposal for additional rune utility functions

2015-02-10 Thread k0ga
> On Tue, Feb 10, 2015 at 10:07:52PM +, Connor Lane Smith wrote: >> int >> utftorunestr(const char *s, Rune *p) >> { >> int i, n; >> >> for(i = 0; (n = chartorune(&p[i], s)), p[i] != 0; i++) >> s += n; >> return i; >> } >> >> int >> fgetrune(Rune *p, FILE *fp) >> {

Re: [dev] Re: [libutf] Proposal for additional rune utility functions

2015-02-10 Thread Dimitris Papastamos
On Tue, Feb 10, 2015 at 10:07:52PM +, Connor Lane Smith wrote: > int > utftorunestr(const char *s, Rune *p) > { > int i, n; > > for(i = 0; (n = chartorune(&p[i], s)), p[i] != 0; i++) > s += n; > return i; > } > > int > fgetrune(Rune *p, FILE *fp) > { > ch

Re: [dev] Re: [libutf] Proposal for additional rune utility functions

2015-02-10 Thread FRIGN
On Tue, 10 Feb 2015 22:07:52 + Connor Lane Smith wrote: > It sounds like it might be a good idea to add these to the library. > However, I have some simplification suggestions, especially to avoid > memory allocation inside libutf. I've attached a file illustrating the > functions as I think

[dev] Re: [libutf] Proposal for additional rune utility functions

2015-02-10 Thread Connor Lane Smith
Hi FRIGN, It's been a while since I posted to this list. I do still maintain libutf, though -- glad to hear it's still being of use. It sounds like it might be a good idea to add these to the library. However, I have some simplification suggestions, especially to avoid memory allocation inside li