delorie.com/archives/browse.cgi | search |
Dave Korn wrote: > > Nope, should be easy to cut out the relevant bits, discarding ld-isms, and > paste the remainder into your code. Copy of WIP attached for your > convenience; I've got to add doco and testcases before I can submit it, but > the parsing stuff is ready to fly and I'd appreciate any extra testing it gets :) Two bugfixes FYI: static void set_pe_value_from_flags (char *name) after /* Deliberately allow multiple conjoined separators. */ while (is_flag_sep (*optarg)) optarg++; add /* Even trailing at the end. */ if (!*optarg) break; change /* If there's any more, we do insist on at least one separator. */ if (optarg && !is_flag_sep (*optarg)) to /* If there's any more, we do insist on at least one separator. */ if (*optarg && !is_flag_sep (*optarg)) cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |