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

📄 exparser.h

📁 M-System DOC(Disk on a Chip) Flash芯片映像读写工具, 可以进行二片Flash芯片的内容互相拷贝, 提高烧录程序的效率.
💻 H
字号:
/************************************************************************
 * Name    : exparser.h                                                 *
 *                                                                      *
 * Written : Ronen Golan                                                *
 *                                                                      *
 * Abstract: This file contains the prototypes of the exparser          *
 ************************************************************************/

#ifndef __EXPARSER__
#define __EXPARSER__

/*****************************   #include     ***************************/
#include "excustom.h"
#include "defines.h"
#include "exdevice.h"
#include "exstatus.h"
#include "exos.h"


#ifdef EX_GET_COMMAND_LINE_STRUCT

/*****************************  Definitions    **************************/
#define	EX_SLASH_PREFIX			'/'
#define	EX_SLASH_MINUS			'-'
#define	COLON					':'
#define END_LIST			    '0'

/*****************************      STRUCTS    **************************/
typedef struct
{
	EXBOOL			fSlash;         /*** True => '/','-' appears in this command ***/
	EXBYTE			bCommandNumber; /*** Command line index in command list arr  ***/  
	EXCHAR*			pCommand;       /*** Pointer to the command                  ***/
	EXCHAR*			pCommandUpper;  /*** NULL always                             ***/ 
	EXBYTE			bCommandLen;    /*** Command length in bytes                 ***/
	EXBOOL			fSuffix;        /*** Flag if there is a suffix or not        ***/ 
	EXBYTE			bSuffix;        /*** The number of the suffix                ***/
	EXCHAR*			pArg;           /*** Pointer to the argumnet                 ***/
	EXBYTE			bArgLen;        /*** Length of the argument                  ***/
}CommandLineStruct;

/*****************************  Prototypes    ***************************/

void     EXAPI ExGetCommandLineStruct( EXCHAR* curArgv, CommandLineStruct* cmdLine, EXCHAR** pCommandList );
ExStatus EXAPI ParseCommandLine( CommandLineStruct* cmdLineRecord, EXBYTE commandNumber,EXCHAR **exUtilCommands );

#ifdef EX_USE_COMMAND_LINE_DEVICE
extern EXWORD		exArgc;			/* Count of command-line arguments */
extern EXCHAR**		exArgv;			/* Array of pointers to command-line arguments */
#endif /* EX_USE_COMMAND_LINE_DEVICE */

#endif	/* EX_GET_COMMAND_LINE_STRUCT */


#endif	/* __EXPARSER__ */

⌨️ 快捷键说明

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