亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? help.c

?? MIPS下的boottloader yamon 的源代碼
?? C
字號:

/************************************************************************
 *
 *  help.c
 *
 *  Help command for shell
 *
 *  help [-a | <command>]
 *
 *
 * ######################################################################
 *
 * Copyright (c) 1999-2000 MIPS Technologies, Inc. All rights reserved. 
 * 
 * Unpublished rights reserved under the Copyright Laws of the United States of 
 * America. 
 * 
 * This document contains information that is proprietary to MIPS Technologies, 
 * Inc. ("MIPS Technologies"). Any copying, modifying or use of this information 
 * (in whole or in part) which is not expressly permitted in writing by MIPS 
 * Technologies or a contractually-authorized third party is strictly 
 * prohibited. At a minimum, this information is protected under unfair 
 * competition laws and the expression of the information contained herein is 
 * protected under federal copyright laws. Violations thereof may result in 
 * criminal penalties and fines. 
 * MIPS Technologies or any contractually-authorized third party reserves the 
 * right to change the information contained in this document to improve 
 * function, design or otherwise. MIPS Technologies does not assume any 
 * liability arising out of the application or use of this information. Any 
 * license under patent rights or any other intellectual property rights owned 
 * by MIPS Technologies or third parties shall be conveyed by MIPS Technologies 
 * or any contractually-authorized third party in a separate license agreement 
 * between the parties. 
 * The information contained in this document constitutes one or more of the 
 * following: commercial computer software, commercial computer software 
 * documentation or other commercial items. If the user of this information, or 
 * any related documentation of any kind, including related technical data or 
 * manuals, is an agency, department, or other entity of the United States 
 * government ("Government"), the use, duplication, reproduction, release, 
 * modification, disclosure, or transfer of this information, or any related 
 * documentation of any kind, is restricted in accordance with Federal 
 * Acquisition Regulation 12.212 for civilian agencies and Defense Federal 
 * Acquisition Regulation Supplement 227.7202 for military agencies. The use of 
 * this information by the Government is further restricted in accordance with 
 * the terms of the license agreement(s) and/or applicable contract terms and 
 * conditions covering this information from MIPS Technologies or any 
 * contractually-authorized third party. 
 *
 ************************************************************************/


/************************************************************************
 *  Include files
 ************************************************************************/

#include <shell_api.h>
#include "shell.h"
#include <sysdefs.h>
#include <string.h>

/************************************************************************
 *  Definitions
 ************************************************************************/

/* Indentations */

#define HELP_SYNTAX	12
#define HELP_INDENT	4
#define HELP_OPTION	14


/************************************************************************
 *  Public variables
 ************************************************************************/

/************************************************************************
 *  Static variables
 ************************************************************************/

static t_cmd  **commands;
static UINT32 command_count;

/************************************************************************
 *  Static function prototypes
 ************************************************************************/

static MON_FUNC(help);

static void
print_help(
    t_cmd  *cmd );


/************************************************************************
 *  Implementation : Static functions
 ************************************************************************/

/************************************************************************
 *                          help
 ************************************************************************/
static MON_FUNC(help)
{
    t_cmd  *cmd;
    bool   ambivalent;
    bool   disp_all    = TRUE;
    bool   disp_secret = FALSE;
    UINT32 i;

    /* Get additional parameter, if any */

    if( argc > 2 )
        return SHELL_ERROR_SYNTAX;

    if( argc != 1 )
    {
        if( strcmp( argv[1], "-a" ) == 0 )
	{
	    disp_secret = TRUE;
	}
	else
	{
	    disp_all = FALSE;

            cmd = shell_lookup_cmd( argv[1], &ambivalent, NULL, 
				    commands, command_count );

	    if( cmd )
	    {
	        if( !ambivalent )    
		{
                    print_help( cmd );
		    SHELL_PUTC( '\n' );
		}
	        else
		    return SHELL_ERROR_AMBIVALENT;
            }
	    else
	    {
                if( *(argv[1]) == '-' )
		{
		    shell_error_data = argv[1];
		    return SHELL_ERROR_OPTION;
		}
		else
		    return SHELL_ERROR_NOT_FOUND;
	    }
        }
    }

    if( disp_all )
    {
        if(SHELL_PUTS( "\nAvailable commands :\n" )) 
	    return OK;
	      
	for( i=0; i<command_count; i++ )
	{
	  if( commands[i]->secret && !disp_secret )
	      continue;		 /* Secret command */
	   
	  if(SHELL_PUTC( '\n' )) 
	      return OK;
	  if(SHELL_PUTS( commands[i]->name )) 
	      return OK;
	  if(SHELL_PUTS_INDENT( commands[i]->syntax, HELP_SYNTAX )) 
	      return OK;
	}
        
        if(SHELL_PUTS( "\n\n" )) 
	    return OK;
    }

    return OK;
}

/* Shell command 'help' */

static t_cmd help_cmd =
{
    "help", 
    help, 
    "help [<command>]",

    "'help' with no parameter shows a list of all the available commands.\n"
    "To get more detailed help on a particular command, specify the\n"
    "command name as an argument to 'help'.\n"
    "\n"
    "When specifying a command as an argument to help, command completion\n"
    "will be performed if at least two characters of the command name have\n"
    "been specified.",

    NULL,
    0,
    FALSE
};


/************************************************************************
 *                          print_help
 ************************************************************************/
static void
print_help(
    t_cmd  *cmd )
{
    UINT32 indent;
    UINT32 i;

    if(SHELL_PUTS( "\nNAME\n" )) return;
    if(SHELL_PUTS_INDENT( cmd->name, HELP_INDENT )) return;

    if(SHELL_PUTS( "\n\nSYNOPSIS\n" )) return;
    if(SHELL_PUTS_INDENT( cmd->syntax, HELP_INDENT )) return;

    if(SHELL_PUTS( "\n\nDESCRIPTION\n" )) return;
    if(SHELL_PUTS_INDENT( cmd->descr, HELP_INDENT )) return;

    if(SHELL_PUTS( "\n\nOPTIONS" )) return;
    
    for( i=0; i<cmd->option_count; i++ )
    {
	if(SHELL_PUTC( '\n' )) return;

	indent = HELP_INDENT;
        
	if(SHELL_PUTC_INDENT( '-', indent )) return;
	indent++;
	
        if(SHELL_PUTS_INDENT( cmd->options[i].option, indent )) return;
	indent += strlen( cmd->options[i].option );

        if(SHELL_PUTS_INDENT( cmd->options[i].descr, 
		   	      MAX( HELP_OPTION, indent + 1 ) )) return;
    }

    if(SHELL_PUTC( '\n' )) return;
}


/************************************************************************
 *  Implementation : Public functions
 ************************************************************************/

/************************************************************************
 *
 *                          shell_help_init
 *  Description :
 *  -------------
 *
 *  Initialise command
 *
 *  Return values :
 *  ---------------
 *
 *  void
 *
 ************************************************************************/
t_cmd *
shell_help_init( 
    t_cmd  **cmd,
    UINT32 cmd_count )
{
    commands      = cmd;
    command_count = cmd_count;
    
    return &help_cmd;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕一区av| 欧美一卡在线观看| 777欧美精品| 中文字幕欧美日韩一区| 五月婷婷久久丁香| 99久久久精品| 久久久久久一级片| 精品一区二区免费视频| 欧美日韩高清一区二区三区| 亚洲少妇30p| 成人免费观看男女羞羞视频| 欧美精品一区二区三区久久久 | 视频一区国产视频| 北岛玲一区二区三区四区| 精品国产乱码久久久久久免费| 亚洲一二三区不卡| av爱爱亚洲一区| 中文字幕一区二区三区在线不卡 | 久久亚洲二区三区| 日韩av电影一区| 欧美片网站yy| 图片区小说区国产精品视频| 在线一区二区三区做爰视频网站| 国产欧美va欧美不卡在线| 捆绑紧缚一区二区三区视频 | 丁香婷婷深情五月亚洲| 日韩欧美中文一区| 美女网站一区二区| 欧美成人在线直播| 久草热8精品视频在线观看| 日韩一卡二卡三卡四卡| 蜜桃av噜噜一区| www国产亚洲精品久久麻豆| 精品一区二区三区av| 26uuuu精品一区二区| 精品一区二区日韩| 国产喂奶挤奶一区二区三区| 国产成人免费视频| 亚洲欧洲av色图| 欧美三区在线视频| 日本欧美在线看| 26uuu精品一区二区在线观看| 国产乱妇无码大片在线观看| 亚洲国产精华液网站w| 成人av资源站| 一区二区三区成人| 777午夜精品视频在线播放| 精品一区二区三区免费播放| 久久久激情视频| 一本一道综合狠狠老| 亚洲综合丁香婷婷六月香| 欧美高清精品3d| 激情综合一区二区三区| 国产午夜三级一区二区三| 成人app网站| 视频一区视频二区中文字幕| 久久久久久久久久电影| 色www精品视频在线观看| 免费成人结看片| 国产蜜臀av在线一区二区三区| 成人av网站在线| 天堂精品中文字幕在线| 国产视频一区不卡| 欧美性一级生活| 国产一区二区三区在线观看免费 | 成人污视频在线观看| 亚洲福利视频三区| 国产三级精品三级| 欧美喷水一区二区| 99综合电影在线视频| 日韩精品欧美精品| 日韩理论片中文av| 久久只精品国产| 欧美久久久久久久久中文字幕| caoporn国产精品| 日韩亚洲欧美在线| 一区二区视频在线| 日韩电影一区二区三区| 岛国精品在线播放| 国产偷国产偷亚洲高清人白洁| 欧美一区二区三区人| 国产精品少妇自拍| 亚洲少妇中出一区| 欧美妇女性影城| 日韩一区二区三| 麻豆久久久久久| 国产情人综合久久777777| 久久免费美女视频| 久久网站热最新地址| 日本高清不卡在线观看| 久久蜜桃av一区精品变态类天堂| 亚洲一区二区三区爽爽爽爽爽| 国产精品一区二区x88av| 精品免费日韩av| 国产综合久久久久久鬼色| 亚洲成人激情综合网| 在线不卡中文字幕| 国产在线视视频有精品| 一区二区在线电影| 91在线视频官网| 精品在线你懂的| 免费人成在线不卡| 天堂va蜜桃一区二区三区| 国产精品视频麻豆| 日韩电影免费一区| www.66久久| 欧美日韩中文国产| 亚洲一二三四区| 亚洲视频精选在线| 亚洲欧美日韩小说| 中文字幕一区在线| 国产精品国产精品国产专区不片 | 久久精品99久久久| 亚洲午夜免费福利视频| 懂色av中文一区二区三区| 秋霞电影网一区二区| 夜夜嗨av一区二区三区| 亚洲高清不卡在线| 午夜精品福利久久久| 国产日韩精品久久久| 色av一区二区| 国产精品18久久久| 中文文精品字幕一区二区| 91在线视频在线| 欧美主播一区二区三区| 免费人成在线不卡| 成人午夜又粗又硬又大| 久久超级碰视频| 一本大道久久a久久精二百| 欧美性一区二区| 欧美午夜理伦三级在线观看| 香蕉乱码成人久久天堂爱免费| 一区二区三区在线观看动漫| 一级日本不卡的影视| 亚洲高清久久久| 麻豆91精品视频| 国产精品一区三区| 91猫先生在线| 日韩欧美在线123| 亚洲国产精品成人综合| 亚洲最大成人综合| 久久99精品久久久久婷婷| 成人小视频在线观看| 欧美老肥妇做.爰bbww视频| 精品国产露脸精彩对白| 风流少妇一区二区| 91黄色免费看| 精品国产一区二区亚洲人成毛片| 自拍偷拍欧美激情| 免费观看成人鲁鲁鲁鲁鲁视频| 91啪亚洲精品| 日韩精品一级二级| 国产日韩欧美高清| 91亚洲国产成人精品一区二三| 亚洲欧美一区二区三区国产精品 | 亚洲乱码一区二区三区在线观看| 久久久www成人免费毛片麻豆| 一区二区三区在线视频观看58| 成人ar影院免费观看视频| 久久久久久亚洲综合| 国产不卡一区视频| 久久精品男人的天堂| 成人激情午夜影院| 亚洲丰满少妇videoshd| 色又黄又爽网站www久久| 日韩一区二区三区视频在线观看| 欧美大肚乱孕交hd孕妇| 亚洲精品福利视频网站| 亚洲成人先锋电影| 欧美在线观看视频一区二区| 精品噜噜噜噜久久久久久久久试看| 91麻豆精品久久久久蜜臀| 亚洲国产日韩av| 欧美日韩国产经典色站一区二区三区| 偷偷要91色婷婷| 精品国产第一区二区三区观看体验| 国产精品资源网站| 国产亲近乱来精品视频| 欧美午夜一区二区| 国产v综合v亚洲欧| 蜜臀久久久久久久| 综合久久久久久| 久久综合国产精品| 欧美一区二区三区小说| 成人激情视频网站| 国产成人免费视| 久久66热偷产精品| 日韩精品亚洲专区| 亚洲乱码国产乱码精品精小说| 91精品国产乱| 欧美日高清视频| 日韩你懂的电影在线观看| 欧美日韩国产免费| 懂色av一区二区夜夜嗨| 精品国产伦一区二区三区观看方式| 蓝色福利精品导航| 亚洲精品中文在线观看| 欧美亚洲国产一区在线观看网站| 91在线观看免费视频| 久久99国内精品|