From 6fb578a3af0e92639ead663ce70cad9e5ece383c Mon Sep 17 00:00:00 2001 From: Matheus Afonso Martins Moreira Date: Sun, 3 Dec 2023 01:30:25 -0300 Subject: [PATCH] lone: handle more obscure auxvec types last Write the more common types first. Makes the code more readable. --- source/lone/modules/intrinsic/linux.c | 40 +++++++++++++-------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/source/lone/modules/intrinsic/linux.c b/source/lone/modules/intrinsic/linux.c index 9f1836b2..87cf26e5 100644 --- a/source/lone/modules/intrinsic/linux.c +++ b/source/lone/modules/intrinsic/linux.c @@ -156,44 +156,44 @@ static void lone_auxiliary_value_to_table(struct lone_lisp *lone, struct lone_va break; #endif -#ifdef AT_MINSIGSTKSZ - case AT_MINSIGSTKSZ: - key = lone_intern_c_string(lone, "minimum-signal-delivery-stack-size"); +#ifdef AT_CLKTCK + case AT_CLKTCK: + key = lone_intern_c_string(lone, "clock-tick"); value = lone_integer_create(lone, auxiliary->value.as.integer); break; #endif -#ifdef AT_RSEQ_FEATURE_SIZE - case AT_RSEQ_FEATURE_SIZE: - key = lone_intern_c_string(lone, "restartable-sequences-supported-feature-size"); - value = lone_integer_create(lone, auxiliary->value.as.integer); +#ifdef AT_RANDOM + case AT_RANDOM: + key = lone_intern_c_string(lone, "random"); + value = lone_bytes_create(lone, auxiliary->value.as.pointer, 16); break; #endif -#ifdef AT_RSEQ_ALIGN - case AT_RSEQ_ALIGN: - key = lone_intern_c_string(lone, "restartable-sequences-allocation-alignment"); +#ifdef AT_SECURE + case AT_SECURE: + key = lone_intern_c_string(lone, "secure"); value = lone_integer_create(lone, auxiliary->value.as.integer); break; #endif -#ifdef AT_CLKTCK - case AT_CLKTCK: - key = lone_intern_c_string(lone, "clock-tick"); +#ifdef AT_MINSIGSTKSZ + case AT_MINSIGSTKSZ: + key = lone_intern_c_string(lone, "minimum-signal-delivery-stack-size"); value = lone_integer_create(lone, auxiliary->value.as.integer); break; #endif -#ifdef AT_RANDOM - case AT_RANDOM: - key = lone_intern_c_string(lone, "random"); - value = lone_bytes_create(lone, auxiliary->value.as.pointer, 16); +#ifdef AT_RSEQ_FEATURE_SIZE + case AT_RSEQ_FEATURE_SIZE: + key = lone_intern_c_string(lone, "restartable-sequences-supported-feature-size"); + value = lone_integer_create(lone, auxiliary->value.as.integer); break; #endif -#ifdef AT_SECURE - case AT_SECURE: - key = lone_intern_c_string(lone, "secure"); +#ifdef AT_RSEQ_ALIGN + case AT_RSEQ_ALIGN: + key = lone_intern_c_string(lone, "restartable-sequences-allocation-alignment"); value = lone_integer_create(lone, auxiliary->value.as.integer); break; #endif