FreeBSD/contrib/elftoolchain/libelftc/libelftc_dem_gnu2.c
/* Return -1 at fail, 0 at success, and 1 at end */
1 at fail, 0 at success, and 1 at end
1 at fail 0 at success and 1 at end
static int
read_subst(struct demangle_data *d)
{
	size_t idx;
	char *str;
	if (d == NULL)
		return (-1);
	idx = strtol(d->p + 1, &str, 10);
	if (idx == 0 && (errno == EINVAL || errno == ERANGE))
		return (-1);
	assert(idx > 0);
	assert(str != NULL);
	d->p = str;
	if (vector_str_push(&d->vec, d->arg.container[idx - 1],
		strlen(d->arg.container[idx - 1])) == false)
		return (-1);
	if (vector_str_push(&d->arg, d->arg.container[idx - 1],
		strlen(d->arg.container[idx - 1])) == false)
		return (-1);
	if (*d->p == '\0')
		return (1);
	return (0);
}
static int read_subst ( struct demangle_data * d ) { size_t idx ; char * str ; if ( d == NULL ) return ( -1 ) ; idx = strtol ( d -> p + 1 , & str , 10 ) ; if ( idx == 0 && ( errno == EINVAL || errno == ERANGE ) ) return ( -1 ) ; assert ( idx > 0 ) ; assert ( str != NULL ) ; d -> p = str ; if ( vector_str_push ( & d -> vec , d -> arg . container [ idx - 1 ] , strlen ( d -> arg . container [ idx - 1 ] ) ) == false ) return ( -1 ) ; if ( vector_str_push ( & d -> arg , d -> arg . container [ idx - 1 ] , strlen ( d -> arg . container [ idx - 1 ] ) ) == false ) return ( -1 ) ; if ( * d -> p == ' \0 ' ) return ( 1 ) ; return ( 0 ) ; }
Return -1 at fail, 0 at success, and 1 at end
Return - 1 at fail 0 at success and 1 at end