Rev 6068 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6068 | Rev 6074 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | #include |
20 | #include |
21 | #include |
21 | #include |
22 | #include |
22 | #include |
23 | #include "local.h" |
23 | #include "local.h" |
Line 24... | Line -... | ||
24 | - | ||
25 | int __gui_mode; |
- | |
26 | 24 | ||
27 | int |
25 | int |
28 | _DEFUN(_printf_r, (ptr, fmt), |
26 | _DEFUN(_printf_r, (ptr, fmt), |
29 | struct _reent *ptr _AND |
27 | struct _reent *ptr _AND |
30 | const char *__restrict fmt _DOTS) |
28 | const char *__restrict fmt _DOTS) |
Line 55... | Line 53... | ||
55 | va_end (ap); |
53 | va_end (ap); |
56 | return ret; |
54 | return ret; |
57 | } |
55 | } |
Line 58... | Line 56... | ||
58 | 56 | ||
59 | #endif /* ! _REENT_ONLY */ |
- | |
60 | - | ||
61 | extern int __gui_mode; |
- | |
62 | - | ||
63 | extern void __attribute__ ((constructor)) __init_conio(); |
- | |
64 | static void __attribute__ ((constructor)) init_printf() |
- | |
65 | { |
- | |
66 | __gui_mode = (int)&__init_conio; |
- |