Lines Matching refs:token

103     DAT_SR_TOKEN 		token;
232 DAT_SR_TOKEN *token);
237 DAT_SR_TOKEN *token);
242 DAT_SR_TOKEN *token);
247 DAT_SR_TOKEN *token,
253 DAT_SR_TOKEN *token,
390 return ("error: invalid token type");
405 DAT_SR_TOKEN token;
407 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
411 if (DAT_SR_TOKEN_EOF == token.type) {
414 (void) dat_sr_put_token(file, &token);
483 DAT_SR_TOKEN token;
498 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
503 if (DAT_SR_TOKEN_STRING != token.type) {
507 dat_os_free(token.value,
509 dat_os_strlen(token.value)) + 1);
549 DAT_SR_TOKEN token;
552 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
556 if (DAT_SR_TOKEN_STRING != token.type) {
559 entry->ia_name = token.value;
567 status_success = dat_sr_put_token(file, &token);
584 DAT_SR_TOKEN token;
587 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
591 if (DAT_SR_TOKEN_STRING != token.type) {
594 token.value, &entry->api_version)) {
597 dat_os_free(token.value,
598 (sizeof (char) * dat_os_strlen(token.value)) + 1);
606 status_success = dat_sr_put_token(file, &token);
623 DAT_SR_TOKEN token;
626 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
630 if (DAT_SR_TOKEN_STRING != token.type) {
633 token.value, &entry->is_thread_safe)) {
636 dat_os_free(token.value,
637 (sizeof (char) * dat_os_strlen(token.value)) + 1);
645 status_success = dat_sr_put_token(file, &token);
662 DAT_SR_TOKEN token;
665 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
669 if (DAT_SR_TOKEN_STRING != token.type) {
672 token.value, &entry->is_default)) {
675 dat_os_free(token.value,
676 (sizeof (char) * dat_os_strlen(token.value)) + 1);
684 status_success = dat_sr_put_token(file, &token);
701 DAT_SR_TOKEN token;
704 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
708 if (DAT_SR_TOKEN_STRING != token.type) {
711 entry->lib_path = token.value;
719 status_success = dat_sr_put_token(file, &token);
735 DAT_SR_TOKEN token;
738 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
742 if (DAT_SR_TOKEN_STRING != token.type) {
745 token.value, &entry->provider_version)) {
748 dat_os_free(token.value,
749 (sizeof (char) * dat_os_strlen(token.value)) + 1);
757 status_success = dat_sr_put_token(file, &token);
774 DAT_SR_TOKEN token;
777 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
781 if (DAT_SR_TOKEN_STRING != token.type) {
784 entry->ia_params = token.value;
792 status_success = dat_sr_put_token(file, &token);
809 DAT_SR_TOKEN token;
812 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
816 if (DAT_SR_TOKEN_STRING != token.type) {
819 entry->platform_params = token.value;
827 status_success = dat_sr_put_token(file, &token);
844 DAT_SR_TOKEN token;
847 if (DAT_SUCCESS != dat_sr_get_token(file, &token)) {
851 if ((DAT_SR_TOKEN_EOF != token.type) &&
852 (DAT_SR_TOKEN_EOR != token.type)) {
861 status_success = dat_sr_put_token(file, &token);
1077 DAT_SR_TOKEN *token)
1080 return (dat_sr_read_token(file, token));
1086 *token = top->token;
1103 DAT_SR_TOKEN *token) /*ARGSUSED*/
1111 top->token = *token;
1126 DAT_SR_TOKEN *token)
1136 * Therefore the tokenizer must be able to read in a token of arbitrary
1139 * begining and end of the token. Once the these positions are found,
1140 * the entire token is read into memory. By using this algorithm, the
1141 * implementation does not place an arbitrary maximum on the token size.
1153 /* if looking for start of the token */
1162 /* if looking for start of the token */
1165 token->type = DAT_SR_TOKEN_EOF;
1166 token->value = NULL;
1167 token->value_len = 0;
1170 token->type = DAT_SR_TOKEN_EOR;
1171 token->value = NULL;
1172 token->value_len = 0;
1187 } else { /* looking for the end of the token */
1213 /* the token was a string */
1220 token,
1227 token,
1236 "DAT Registry: token\n"
1240 dat_sr_type_to_str(token->type),
1241 ((DAT_SR_TOKEN_STRING == token->type) ? token->value : ""));
1254 DAT_SR_TOKEN *token,
1257 token->type = DAT_SR_TOKEN_STRING;
1259 token->value_len = sizeof (char) * (token_len + 1);
1260 if (NULL == (token->value = dat_os_alloc(token->value_len))) {
1264 if (token_len != dat_os_fread(file, token->value, token_len)) {
1265 dat_os_free(token->value, token->value_len);
1266 token->value = NULL;
1271 token->value[token->value_len - 1] = '\0';
1284 DAT_SR_TOKEN *token,
1299 token->type = DAT_SR_TOKEN_STRING;
1301 token->value_len = sizeof (char) * (str_len - num_escape_seq + 1);
1303 if (NULL == (token->value = dat_os_alloc(token->value_len))) {
1324 token->value[j] = c;
1337 token->value[token->value_len - 1] = '\0';
1341 if (NULL != token->value) {
1342 dat_os_free(token->value, token->value_len);
1343 token->value = NULL;