⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 is_unixy.c

📁 代码检索工具GLOBAL源码。可用来浏览分析LINUX源码。
💻 C
字号:
/* * Copyright (c) 2001 Tama Communications Corporation * * Contributed by Jason Hood <jadoxa@yahoo.com.au>, 2001. * * This file is part of GNU GLOBAL. * * GNU GLOBAL is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * GNU GLOBAL is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA. */#ifdef HAVE_CONFIG_H#include <config.h>#endif#if (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__DJGPP__)#include <stdlib.h>#ifdef __DJGPP__#include <sys/system.h>#endif#endif#include "is_unixy.h"/* * is_unixy: whether running in a unix-like shell or not * *	r)		1: unixy shell, 0: DOS shell (COMMAND.COM) */intis_unixy(void){#if (defined(_WIN32) && !defined(__CYGWIN__)) || defined(__DJGPP__)	static int unix_shell = -1;	if (unix_shell == -1) {		char *s = getenv("SHELL");#ifdef __DJGPP__		/* Assume if SHELL isn't defined, COMSPEC is DOS. */		unix_shell = (s == NULL) ? 0 : _is_unixy_shell(s);#else		unix_shell = (s != 0);#endif	}	return unix_shell;#else	return 1;#endif}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -