fix static-init order issue

This commit is contained in:
David Rose 2008-11-11 02:00:12 +00:00
parent 9e76c93d1e
commit 0ae9a55bdb
3 changed files with 7 additions and 16 deletions

View File

@ -352,6 +352,13 @@ reload_implicit_pages() {
#ifdef USE_PANDAFILESTREAM #ifdef USE_PANDAFILESTREAM
// Update this very low-level config variable here, for lack of any // Update this very low-level config variable here, for lack of any
// better place. // better place.
ConfigVariableEnum<PandaFileStreamBuf::NewlineMode> newline_mode
("newline-mode", PandaFileStreamBuf::NM_native,
PRC_DESC("Controls how newlines are written by Panda applications writing "
"to a text file. The default, \"native\", means to write newlines "
"appropriate to the current platform. You may also specify \"binary\", "
"to avoid molesting the file data, or one of \"msdos\", \"unix\", "
"or \"mac\"."));
PandaFileStreamBuf::_newline_mode = newline_mode; PandaFileStreamBuf::_newline_mode = newline_mode;
#endif // USE_PANDAFILESTREAM #endif // USE_PANDAFILESTREAM
} }

View File

@ -21,15 +21,3 @@ NotifyCategoryDef(prc, "");
ConfigVariableBool assert_abort ConfigVariableBool assert_abort
("assert-abort", false, ("assert-abort", false,
PRC_DESC("Set this true to trigger a core dump and/or stack trace when the first assertion fails")); PRC_DESC("Set this true to trigger a core dump and/or stack trace when the first assertion fails"));
#ifdef USE_PANDAFILESTREAM
ConfigVariableEnum<PandaFileStreamBuf::NewlineMode> newline_mode
("newline-mode", PandaFileStreamBuf::NM_native,
PRC_DESC("Controls how newlines are written by Panda applications writing "
"to a text file. The default, \"native\", means to write newlines "
"appropriate to the current platform. You may also specify \"binary\", "
"to avoid molesting the file data, or one of \"msdos\", \"unix\", "
"or \"mac\"."));
#endif // USE_PANDAFILESTREAM

View File

@ -24,9 +24,5 @@ NotifyCategoryDecl(prc, EXPCL_DTOOLCONFIG, EXPTP_DTOOLCONFIG);
extern ConfigVariableBool assert_abort; extern ConfigVariableBool assert_abort;
#ifdef USE_PANDAFILESTREAM
extern ConfigVariableEnum<PandaFileStreamBuf::NewlineMode> newline_mode;
#endif
#endif #endif