📄 types.h
字号:
/**
*
* @file types.h
* @author Aleix Conchillo Flaque <aleix@member.fsf.org>
* @date Sat Mar 29, 2003 19:50
* @brief SCEW main types definition
*
* $Id: types.h,v 1.3 2007/01/11 08:01:54 zhongyh Exp $
*
* @if copyright
*
* Copyright (C) 2003, 2004 Aleix Conchillo Flaque
*
* SCEW is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* SCEW 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
*
* @endif
*/
#ifndef TYPES_H_ALEIX0303291951
#define TYPES_H_ALEIX0303291951
#include "config.h"
#include "retype.h"
#include "fs_api.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/**
* This is the type declaration of the SCEW parser.
*/
typedef struct _scew_parser scew_parser;
/**
* This is the type delcaration for XML trees.
*/
typedef struct _scew_tree scew_tree;
/**
* This is the type delcaration for elements.
*/
typedef struct _scew_element scew_element;
/**
* This is the type declaration for element attributes.
*/
typedef struct _scew_attribute scew_attribute;
/**
* Callback function type.
*
* @return 1 if callback call had no errors, 0 otherwise.
*/
typedef unsigned int SCEW_CALLBACK(scew_parser* parser);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#include "fs_api.h"
#include "fs_dir.h"
#include "fs_fat.h"
#include "fat_ln.h"
#define SCEW_FILE FS_FILE
#define SCEW_FREAD FS_FRead
#define SCEW_FWRITE FS_FWrite
#define SCEW_FERROR FS_FError
#define SCEW_FOPEN FS_FOpen
#define SCEW_FCLOSE FS_FClose
#define SCEW_FEOF FS_FEof
#define assert(x) /*none*/
#define SCEW_REALLOC REALLOC
#define SCEW_CALLOC CALLOC
#define SCEW_MALLOC MALLOC
#define SCEW_FREE FREE
#endif /* TYPES_H_ALEIX0303291951 */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -