diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 17:18:45 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 17:18:45 +0000 |
commit | eabf134144dd215102445f449e09b68f3a523bf2 (patch) | |
tree | ed8a38261c1c4abdd1b51e4f92dcfa20980fb495 /libpager/pager-create.c | |
parent | 5855e4f90002b3ce012be865a5a85ba84fcc7ffc (diff) |
(create_class): New function.
Diffstat (limited to 'libpager/pager-create.c')
-rw-r--r-- | libpager/pager-create.c | 10 |
1 files changed, 10 insertions, 0 deletions
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); +} + + |