Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
#include 
3
#include 
4
 
5
typedef void (*FUNC)(void);
6
extern FUNC djgpp_first_ctor[] __asm__("djgpp_first_ctor");
7
extern FUNC djgpp_last_ctor[] __asm__("djgpp_last_ctor");
8
 
9
void
10
__main(void)
11
{
12
  static int been_there_done_that = -1;
13
  int i;
14
  if (been_there_done_that == __bss_count)
15
    return;
16
  been_there_done_that = __bss_count;
17
  for (i=0; i
18
    djgpp_first_ctor[i]();
19
}