| 712 | unsigned int _poptBitsK = _POPT_BITS_K; |
| 713 | |
| 714 | static 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 | |
| 732 | int poptBitsAdd(poptBits bits, const char * s) |
| 733 | { |
no outgoing calls
no test coverage detected