]> wimlib.net Git - wimlib/blobdiff - src/xml.c
xml: (style) use u32 instead of uint32_t
[wimlib] / src / xml.c
index 20c9abd83e3012fc3b726de13350cce62519a350..5c806cb46d06d9c41dd9776512a2262095206682 100644 (file)
--- a/src/xml.c
+++ b/src/xml.c
@@ -343,14 +343,14 @@ alloc_wim_xml_info(void)
 }
 
 static bool
-parse_index(xmlChar **pp, uint32_t *index_ret)
+parse_index(xmlChar **pp, u32 *index_ret)
 {
        xmlChar *p = *pp;
-       uint32_t index = 0;
+       u32 index = 0;
 
        *p++ = '\0'; /* overwrite '[' */
        while (*p >= '0' && *p <= '9') {
-               uint32_t n = (index * 10) + (*p++ - '0');
+               u32 n = (index * 10) + (*p++ - '0');
                if (n < index)
                        return false;
                index = n;
@@ -393,7 +393,7 @@ do_xml_path_walk(xmlNode *node, const xmlChar *path, bool create,
        while (c != '\0') {
                const xmlChar *name;
                xmlNode *child;
-               uint32_t index = 1;
+               u32 index = 1;
 
                /* We have another path component.  */
 
@@ -863,6 +863,7 @@ xml_delete_image(struct wim_xml_info *info, int image)
 #define PROCESSOR_ARCHITECTURE_MSIL            8
 #define PROCESSOR_ARCHITECTURE_AMD64           9
 #define PROCESSOR_ARCHITECTURE_IA32_ON_WIN64   10
+#define PROCESSOR_ARCHITECTURE_ARM64           12
 
 static const tchar *
 describe_arch(u64 arch)
@@ -873,6 +874,7 @@ describe_arch(u64 arch)
                [PROCESSOR_ARCHITECTURE_ARM]   = T("ARM"),
                [PROCESSOR_ARCHITECTURE_IA64]  = T("ia64"),
                [PROCESSOR_ARCHITECTURE_AMD64] = T("x86_64"),
+               [PROCESSOR_ARCHITECTURE_ARM64] = T("ARM64"),
        };
 
        if (arch < ARRAY_LEN(descriptions) && descriptions[arch] != NULL)