MCPcopy Create free account
hub / github.com/RsyncProject/rsync / _poptBitsNew

Function _poptBitsNew

popt/popt.c:714–730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712unsigned int _poptBitsK = _POPT_BITS_K;
713
714static int _poptBitsNew(poptBits *bitsp)
715{
716 if (bitsp == NULL)
717 return POPT_ERROR_NULLARG;
718
719 /* XXX handle negated initialization. */
720 if (*bitsp == NULL) {
721 if (_poptBitsN == 0) {
722 _poptBitsN = _POPT_BITS_N;
723 _poptBitsM = _POPT_BITS_M;
724 }
725 if (_poptBitsM == 0U) _poptBitsM = (3 * _poptBitsN) / 2;
726 if (_poptBitsK == 0U || _poptBitsK > 32U) _poptBitsK = _POPT_BITS_K;
727 *bitsp = PBM_ALLOC(_poptBitsM-1);
728 }
729 return 0;
730}
731
732int poptBitsAdd(poptBits bits, const char * s)
733{

Callers 4

poptBitsIntersectFunction · 0.85
poptBitsUnionFunction · 0.85
poptBitsArgsFunction · 0.85
poptSaveBitsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected