Lines Matching defs:attr

1771 	struct xmlattr *attr, *next;
1773 attr = list->first;
1774 while (attr != NULL) {
1775 next = attr->next;
1776 free(attr->name);
1777 free(attr->value);
1778 free(attr);
1779 attr = next;
1789 struct xmlattr *attr;
1802 for (attr = list->first; attr != NULL; attr = attr->next) {
1803 if (strcmp(attr->name, "id") == 0)
1804 file->id = atol10(attr->value, strlen(attr->value));
1838 struct xmlattr *attr;
1846 for (attr = list->first; attr != NULL; attr = attr->next) {
1847 if (strcmp(attr->name, "id") == 0)
1848 xattr->id = atol10(attr->value, strlen(attr->value));
1872 struct xmlattr *attr;
1875 for (attr = list->first; attr != NULL; attr = attr->next) {
1876 if (strcmp(attr->name, "style") == 0) {
1877 if (strcmp(attr->value, "application/octet-stream") == 0)
1879 else if (strcmp(attr->value, "application/x-gzip") == 0)
1881 else if (strcmp(attr->value, "application/x-bzip2") == 0)
1883 else if (strcmp(attr->value, "application/x-lzma") == 0)
1885 else if (strcmp(attr->value, "application/x-xz") == 0)
1895 struct xmlattr *attr;
1898 for (attr = list->first; attr != NULL; attr = attr->next) {
1899 if (strcmp(attr->name, "style") == 0) {
1900 const char *v = attr->value;
1964 struct xmlattr *attr;
1970 for (attr = list->first; attr != NULL; attr = attr->next)
1971 fprintf(stderr, " attr:\"%s\"=\"%s\"\n",
1972 attr->name, attr->value);
2051 for (attr = list->first; attr != NULL;
2052 attr = attr->next) {
2053 if (strcmp(attr->name, "link") != 0)
2055 if (strcmp(attr->value, "original") == 0) {
2059 xar->file->link = (unsigned)atol10(attr->value,
2060 strlen(attr->value));
2070 for (attr = list->first; attr != NULL;
2071 attr = attr->next) {
2072 if (strcmp(attr->name, "enctype") == 0 &&
2073 strcmp(attr->value, "base64") == 0)
3062 struct xmlattr *attr;
3069 attr = malloc(sizeof*(attr));
3070 if (attr == NULL) {
3074 attr->name = strdup(
3076 if (attr->name == NULL) {
3077 free(attr);
3081 attr->value = strdup(
3083 if (attr->value == NULL) {
3084 free(attr->name);
3085 free(attr);
3089 attr->next = NULL;
3090 *list->last = attr;
3091 list->last = &(attr->next);
3215 struct xmlattr *attr;
3223 attr = malloc(sizeof*(attr));
3226 if (attr == NULL || name == NULL || value == NULL) {
3228 free(attr);
3233 attr->name = name;
3234 attr->value = value;
3235 attr->next = NULL;
3236 *list->last = attr;
3237 list->last = &(attr->next);