mirror of
https://github.com/zeldaret/st
synced 2026-07-03 21:10:14 -04:00
add ci stuff and update clang-format rules
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#pragma once
|
||||
|
||||
typedef struct DestructorChain {
|
||||
/* 0 */ struct DestructorChain *next;
|
||||
/* 4 */ void *destructor;
|
||||
/* 8 */ void *object;
|
||||
/* 0 */ struct DestructorChain* next;
|
||||
/* 4 */ void* destructor;
|
||||
/* 8 */ void* object;
|
||||
/* c */
|
||||
} DestructorChain;
|
||||
|
||||
void *__register_global_object(void *object, void *destructor, DestructorChain *link);
|
||||
void* __register_global_object(void* object, void* destructor, DestructorChain* link);
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
#include "global_destructor_chain.h"
|
||||
|
||||
#define CALL_DTOR(dtor, obj) (((void (*)(void *, int))(dtor))((obj), -1))
|
||||
#define CALL_DTOR(dtor, obj) (((void (*)(void*, int))(dtor))((obj), -1))
|
||||
|
||||
DestructorChain *__global_destructor_chain;
|
||||
DestructorChain* __global_destructor_chain;
|
||||
|
||||
void *__register_global_object(void *object, void *destructor, DestructorChain *link) {
|
||||
link->next = __global_destructor_chain;
|
||||
void* __register_global_object(void* object, void* destructor, DestructorChain* link) {
|
||||
link->next = __global_destructor_chain;
|
||||
link->destructor = destructor;
|
||||
link->object = object;
|
||||
link->object = object;
|
||||
|
||||
__global_destructor_chain = link;
|
||||
return object;
|
||||
|
||||
Reference in New Issue
Block a user