From eabf134144dd215102445f449e09b68f3a523bf2 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 20 Jun 1995 17:18:45 +0000 Subject: (create_class): New function. --- libpager/pager-create.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libpager/pager-create.c b/libpager/pager-create.c index 27882db8..0e140f33 100644 --- a/libpager/pager-create.c +++ b/libpager/pager-create.c @@ -49,3 +49,13 @@ pager_create (struct user_pager_info *upi, } +/* This causes the function to be run at startup by compiler magic. */ +static void create_class (void) __attribute__ ((constructor)); + +static void +create_class () +{ + _pager_class = ports_create_class (_pager_clean, _pager_real_dropweak); +} + + -- cgit v1.2.3