f8ebcfc077
Add char16_t('u') literals Remove wchar_t('L') literals Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
27 lines
750 B
C
27 lines
750 B
C
/*
|
|
* ctors.c
|
|
* Copyright 2019 Peter Jones <pjones@redhat.com>
|
|
*
|
|
*/
|
|
|
|
#include <efi.h>
|
|
#include <efilib.h>
|
|
|
|
int constructed_value = 0;
|
|
|
|
static void __attribute__((__constructor__)) EFI_NO_TAIL_CALL ctor(void)
|
|
{
|
|
Print(u"%a:%d:%a() constructed_value:%d\n", __FILE__, __LINE__, __func__, constructed_value);
|
|
constructed_value = 1;
|
|
Print(u"%a:%d:%a() constructed_value:%d\n", __FILE__, __LINE__, __func__, constructed_value);
|
|
}
|
|
|
|
static void __attribute__((__destructor__)) EFI_NO_TAIL_CALL dtor(void)
|
|
{
|
|
Print(u"%a:%d:%a() constructed_value:%d\n", __FILE__, __LINE__, __func__, constructed_value);
|
|
constructed_value = 0;
|
|
Print(u"%a:%d:%a() constructed_value:%d\n", __FILE__, __LINE__, __func__, constructed_value);
|
|
}
|
|
|
|
// vim:fenc=utf-8:tw=75:noet
|