Stéphane Bauland [2007-03-12 14:56]: > Brian Mattern wrote: > > On Mon, Mar 12, 2007 at 12:41:41PM +0100, Stéphane Bauland wrote: > > > > > >> + * @param max_tokens The maximum number of strings to split string into. > >> If this is less than 1, the string is split completely. > >> > > > > > > > >> + if ( max_tokens < 1 ) max_tokens = 1000000; > >> > > > > Filthy lies :) > > > > rephorm > > > Hi! Yep brian, but i didn't want to put something like EINT_MAX defined. > But if you know a good way on ecore to do that correctly it's ok for me :) > > Btw, if you want me to remove ecore_list during the process i could too..
Ugh, can't you do something like if (max_tokens < 1 || current_number_of_elements < max_tokens) { /* get one more token */ } Regards, Tilman -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
pgp3kWGbPpA4H.pgp
Description: PGP signature
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel