/* RCS $Id: switchar.c,v 1.1.1.1 2000-09-22 15:33:27 hr Exp $ -- -- SYNOPSIS -- switch char query. -- -- DESCRIPTION -- Get the current value of the command line switch char. Only useful -- in a DOS environment, otherwise we #define it to be '-'. -- -- AUTHOR -- Dennis Vadura, dvadura@dmake.wticorp.com -- -- WWW -- http://dmake.wticorp.com/ -- -- COPYRIGHT -- Copyright (c) 1996,1997 by WTI Corp. All rights reserved. -- -- This program is NOT free software; you can redistribute it and/or -- modify it under the terms of the Software License Agreement Provided -- in the file /readme/license.txt. -- -- LOG -- Use cvs log to obtain detailed change logs. */ #if defined(_MSC_VER) #include #endif #include #include #include "stdmacs.h" getswitchar()/* =============== Try the environment first. If you don't find SWITCHAR there, then use the DOS call. The call is undocumented, and doesn't work for DOS versions 4.0 and up, so the check of the environment will fix that. */ { #if defined(__MSDOS__) || defined(M_I86) union REGS rg; static char *_env_switchar = NIL(char); if( _env_switchar != NIL(char) || (_env_switchar = (char *)getenv("SWITCHAR")) != NIL(char) ) return(*_env_switchar); rg.h.ah = 0x37; /* switch char request */ rg.h.al = 0; /* get (not set) */ intdos(&rg, &rg); return (rg.h.dl); #endif /* M_I86 */ return ('-'); } on value='distro/cib/libreoffice-6-0'>distro/cib/libreoffice-6-0 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2014-04-30Many spelling fixes: directories a* - g*.Pedro Giffuni
2014-04-27automaticly -> automatically.Jan Holesovsky
2014-04-18Typo: s/cant/can't/Tor Lillqvist
2014-04-07framework: sal_Bool->boolNoel Grandin
2014-04-06Kill superfluous vertical whitespaceTor Lillqvist
2014-04-03remove unnecessary scope qualifier from sal_Bool usesNoel Grandin
2014-03-26First batch of adding SAL_OVERRRIDE to overriding function declarationsStephan Bergmann
2014-03-20Use an osl::Mutex directlyStephan Bergmann
2014-02-26Remove visual noise from frameworkAlexander Wilms
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
2013-11-05fixincludeguards.sh: frameworkThomas Arnhold
2013-04-15fdo#60724 informations -> informationThomas Arnhold
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin
2012-10-23fdo#46808, use service constructor for frame::ModuleManagerNoel Grandin
2012-08-08reduce ascii noise and useless commentsThomas Arnhold
2012-08-08remove include comments and boxesThomas Arnhold
2012-06-21re-base on ALv2 code.Michael Meeks
2011-03-29drop bogus executable flag from [ch]xx/bas/asm filesFrancisco Saito
2011-03-12Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Thorsten Behrens
2010-11-05removetooltypes01: #i112600# remove tooltypes from toolkit, svtools and frame...Xiaofei Zhang
2010-10-28add modelines to .hxx files as wellCaolán McNamara
2010-02-12changefileheader2: #i109125#: change source file copyright notice from Sun Mi...Jens-Heiner Rechtien
2009-09-08CWS-TOOLING: integrate CWS oj18Oliver Bolte