Changed 'w' format character to 'M': 'm' and 'M' for "memory" ?

This commit is contained in:
Howard Chu 2002-01-06 06:10:05 +00:00
parent c8f7f1a198
commit 5fb87a7d6c

View File

@ -754,10 +754,10 @@ ber_scanf ( BerElement *ber,
break; break;
} }
case 'w': /* bvoffarray - must include address of case 'M': /* bvoffarray - must include address of
* a record len, and record offset. * a record len, and record offset.
* number of records will be returned thru * number of records will be returned thru
* len ptr on finish. * len ptr on finish. parsed in-place.
*/ */
{ {
bgbvr cookie = { ber, BvOff }; bgbvr cookie = { ber, BvOff };
@ -781,7 +781,7 @@ ber_scanf ( BerElement *ber,
case '{': /* begin sequence */ case '{': /* begin sequence */
case '[': /* begin set */ case '[': /* begin set */
if ( *(fmt + 1) != 'v' && *(fmt + 1) != 'V' if ( *(fmt + 1) != 'v' && *(fmt + 1) != 'V'
&& *(fmt + 1) != 'W' && *(fmt + 1) != 'w' ) && *(fmt + 1) != 'W' && *(fmt + 1) != 'M' )
rc = ber_skip_tag( ber, &len ); rc = ber_skip_tag( ber, &len );
break; break;
@ -881,6 +881,8 @@ ber_scanf ( BerElement *ber,
case 'v': /* sequence of strings */ case 'v': /* sequence of strings */
case 'V': /* sequence of strings + lengths */ case 'V': /* sequence of strings + lengths */
case 'W': /* BVarray */ case 'W': /* BVarray */
case 'm': /* berval in-place */
case 'M': /* BVoff array in-place */
case 'n': /* null */ case 'n': /* null */
case 'x': /* skip the next element - whatever it is */ case 'x': /* skip the next element - whatever it is */
case '{': /* begin sequence */ case '{': /* begin sequence */