summary refs log tree commit diff stats
path: root/lib/prelude.nim
blob: 50b4d409219a6fa5bb700eea8ae7371ef734a082 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#
#
#            Nimrod's Runtime Library
#        (c) Copyright 2012 Andreas Rumpf
#
#    See the file "copying.txt", included in this
#    distribution, for details about the copyright.
#

## This is an include file that simply imports common modules for your
## convenience:
##
## .. code-block:: nimrod
##   include prelude
##
## Same as:
##
## .. code-block:: nimrod
##   import os, strutils, times, parseutils, parseopt, hashes, tables, sets

import os, strutils, times, parseutils, parseopt, hashes, tables, sets
*/ #define __LYEXIT_H /* * Copyright (c) 1994, University of Kansas, All Rights Reserved * * Include File: LYexit.h * Purpose: Provide an atexit function for libraries without such. * Remarks/Portability/Dependencies/Restrictions: * Include this header in every file that you have an exit or * atexit statment. * Revision History: * 06-15-94 created Lynx 2-3-1 Garrett Arch Blythe */ /* * Required includes */ #ifndef HTUTILS_H #include <HTUtils.h> #endif /* * Constant defines */ #ifdef _WINDOWS #undef exit #endif /* _WINDOWS */ #define exit LYexit #define atexit LYatexit #define ATEXITSIZE 40 /* * Data structures */ /* * Global variable declarations */ /* * Macros */ /* * Function declarations */ extern void exit_immediately PARAMS((int status)); /* in LYMain.c */ extern void LYexit PARAMS((int status)); #ifdef __STDC__ extern int LYatexit(void (*function)(void)); #else extern int LYatexit(); #endif /* __STDC__ */ #endif /* __LYEXIT_H */