RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: [email protected] Module: popt Date: 26-Jul-2009 21:23:56 Branch: HEAD Handle: 2009072619235600 Modified files: popt tdict.c Log: - tdict: use poptBitsUnion and poptBitsIntersect too. Summary: Revision Changes Path 1.2 +7 -0 popt/tdict.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: popt/tdict.c ============================================================================ $ cvs diff -u -r1.1 -r1.2 tdict.c --- popt/tdict.c 26 Jul 2009 19:14:09 -0000 1.1 +++ popt/tdict.c 26 Jul 2009 19:23:56 -0000 1.2 @@ -94,6 +94,13 @@ av = poptGetArgs(optCon); if ((rc = poptBitsArgs(optCon, &avbits)) != 0) goto exit; + if (avbits) { + poptBits Ibits = NULL; + (void) poptBitsUnion(&Ibits, dictbits); + rc = poptBitsIntersect(&Ibits, avbits); + fprintf(stdout, "===== %s words are in %s\n", (rc ? "Some" : "No"), dictfn); + if (Ibits) free(Ibits); + } if (av && avbits) while (*av) { rc = poptBitsChk(dictbits, *av); @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository [email protected]
