Avoid "multiple definition of `mystruct'" error from `ld`: Submitted upstream at https://github.com/idris-lang/Idris-dev/issues/4914 --- a/test/ffi008/ffi008.h 1969-12-31 18:00:01.000000000 -0600 +++ a/test/ffi008/ffi008.h 2022-04-13 00:32:35.561262598 -0500 @@ -10,7 +10,7 @@ int16_t b; }; -struct test2 mystruct; +extern struct test2 mystruct; int size1(void); int size2(void); --- a/test/ffi008/ffi008.c 1969-12-31 18:00:01.000000000 -0600 +++ a/test/ffi008/ffi008.c 2022-04-13 00:32:53.145186302 -0500 @@ -11,6 +11,8 @@ return sizeof(struct test2); } +struct test2 mystruct; + void print_mystruct(void) { printf("a: %d b: %d\n", mystruct.a, mystruct.b); } Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/installer/user.scm
AgeCommit message (Expand)Author
2022-09-22installer: Move <secret> to utils and use it for crypt passwords....* gnu/installer/user.scm (<secret>, secret?, make-secret, secret-content): Move to utils.scm. * gnu/installer/utils.scm (<secret>, secret?, make-secret, secret-content): Moved from user.scm. * gnu/installer/newt/partition.scm (prompt-luks-passwords): Make password a <secret>. * gnu/installer/parted.scm (luks-format-and-open): Unwrap secret. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Josselin Poiret
2022-08-08installer: Add comments and vertical space to the generated config....* gnu/installer/parted.scm (user-partitions->configuration): Introduce vertical space and a comment. * gnu/installer/services.scm (G_): New macro. (%system-services): Add comment for OpenSSH. (system-services->configuration): Add vertical space and comments. * gnu/installer/user.scm (users->configuration): Add comment. * gnu/installer/steps.scm (format-configuration): Add comment. (configuration->file): Expound leading comment. Pass #:format-comment to 'pretty-print-with-comments/splice'. Ludovic Courtès