diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-06 04:41:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-06 04:41:59 +0000 |
commit | 08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca (patch) | |
tree | a894d2763c28d56bc24769252b17870c38ab7141 /winsup/cygwin/dcrt0.cc | |
parent | 4ce15a498010f678c71cefdf2a2ac0db58f4fa93 (diff) | |
download | cygnal-08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca.tar.gz cygnal-08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca.tar.bz2 cygnal-08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca.zip |
Remove initialization of static or global values to zero, throughout. This
just needlessly grows the size of the DLL.
* tty.cc (tty::alive): Make inuse handle non-inheriting on open, just for
thread safety.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index f4acc8d44..43940b435 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -54,12 +54,12 @@ per_thread NO_COPY *threadstuff[] = {&waitq_storage, &signal_dispatch_storage, NULL}; -BOOL display_title = FALSE; -BOOL strip_title_path = FALSE; +BOOL display_title; +BOOL strip_title_path; BOOL allow_glob = TRUE; codepage_type current_codepage = ansi_cp; -int cygwin_finished_initializing = 0; +int cygwin_finished_initializing; /* Used in SIGTOMASK for generating a bit for insertion into a sigset_t. This is subtracted from the signal number prior to shifting the bit. @@ -86,7 +86,7 @@ extern "C" char **__cygwin_environ; char ***main_environ; /* __progname used in getopt error message */ - char *__progname = NULL; + char *__progname; struct _reent reent_data = _REENT_INIT(reent_data); struct per_process __cygwin_user_data = {/* initial_sp */ 0, /* magic_biscuit */ 0, @@ -110,14 +110,14 @@ extern "C" /* resourcelocks */ &_reslock, /* threadinterface */ &_mtinterf, /* impure_ptr */ &reent_data, }; - bool ignore_case_with_glob = FALSE; + bool ignore_case_with_glob; int __declspec (dllexport) _check_for_executable = TRUE; #ifdef DEBUGGING - int pinger = 0; + int pinger; #endif }; -char *old_title = NULL; +char *old_title; char title_buf[TITLESIZE + 1]; static void @@ -621,8 +621,8 @@ alloc_stack (child_info_fork *ci) } static NO_COPY int mypid = 0; -int _declspec(dllexport) __argc = 0; -char _declspec(dllexport) **__argv = NULL; +int _declspec(dllexport) __argc; +char _declspec(dllexport) **__argv; void sigthread::init (const char *s) |