Commit | Line | Data |
8736538c |
1 | /* |
2 | * impure_ptr initialization routine. This is needed |
3 | * for any DLL that needs to output to the main (calling) |
4 | * executable's stdout, stderr, etc. |
5 | */ |
6 | |
7 | struct _reent *_impure_ptr; /* this will be the Dlls local copy of impure ptr */ |
8 | |
9 | /********************************************* |
10 | * Function to set our local (in this dll) |
11 | * copy of impure_ptr to the main's |
12 | * (calling executable's) impure_ptr |
13 | */ |
14 | void impure_setup(struct _reent *_impure_ptrMain){ |
15 | |
16 | _impure_ptr = _impure_ptrMain; |
17 | |
18 | } |