From ead22d114c0f60d2276eaa3aa34bb03f063e942a Mon Sep 17 00:00:00 2001 From: Sara Date: Sun, 25 Jun 2023 18:13:12 +0200 Subject: [PATCH] added explicit extern specifiers to physics functions lacking them --- src/corelib/physics.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/corelib/physics.h b/src/corelib/physics.h index 2b71a2c..6ea5630 100644 --- a/src/corelib/physics.h +++ b/src/corelib/physics.h @@ -5,7 +5,6 @@ typedef struct object_t object_t; -typedef void(*collided_fn)(object_t*, struct object_t*); typedef void(*collided_fn)(object_t*, object_t*); typedef void(*solver_fn)(object_t* left, object_t* right); @@ -34,15 +33,16 @@ typedef struct physics_t { }; } physics_t; -physics_t physics_default(); +extern physics_t physics_default(); -void object_broadcast_evt_collision(object_t* this, object_t* other); +extern void object_broadcast_evt_collision(object_t* this, object_t* other); -void physics_update(); +extern void physics_update(); void move_and_slide(object_t* this, float delta_time); extern short can_collide(const object_t* this); + extern void solve_collision_slide(object_t* left, object_t* right); extern float get_solve_force(const object_t* this, const object_t* other, float* solve_x, float* solve_y);