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

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

?? toolconf.h

?? ARM公司關于調試接口RDI的最新頭文件
?? H
字號:
/* toolconf - module to hold a tool configuration database
   Copyright (C) 2001 Free Software Foundation, Inc.


This file is part of GDB.


GDB 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.


GDB 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 GDB; see the file COPYING.  If not, write to the Free
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.  */

/*
 * RCS $Revision: 1.25 $
 * Checkin $Date: 2000/08/19 17:22:56 $
 * Revising $Author: dsinclai $
 */

#ifndef toolconf_h
#define toolconf_h


#include "host.h"


#ifdef __cplusplus
extern "C" {
#endif


/*
 * A toolconf is opaque but can be accessed by the functions in this
 * header file. It can be read from and written to a file in text format,
 * but there are at present no functions to turn it into a binary format
 * for inclusion in another file (e.g. a project).
 *
 * A toolconf file is intended to be user editable if required. There are
 * #if and #endif commands which the user can use to force a different path
 * through the file.
 *
 * A toolconf consists of (tag, value, toolconf) entries.
 * That is, it associates a "tag" with a "value" (both plain strings) and
 * another "toolconf" (the 'child'). Here is an example file:
 *
 * { ARM710
 * Core=ARM7
 * CacheSize=8Kb
 * Architecture=v3
 * }
 * { ARM810
 * Core=ARM8
 * CacheSize=8Kb
 * Architecture=v4
 * }
 *
 * this is translated to the toolconf:
 * ((ARM710 "" ((CORE ARM7 NULL)
 *              (CACHESIZE 8Kb NULL)
 *              (ARCHITECTURE v3 NULL)))
 *  (ARM810 "" ((CORE ARM8 NULL)
 *              (CACHESIZE 8Kb NULL)
 *              (ARCHITECTURE v4 NULL))))
 *
 * (the case information is discarded from tags, but not values)
 *
 * If a tag is encountered a second time, then:
 *  - if the tag already has a value, any new value is ignored
 *  - if the tag has no value, the new value is assigned
 *  - if a child is specified, that is merged with the existing child,
 *    if one exists, or becomes the child if there is none.
 *
 */

/*
 * the opaque toolconf type
 */
/* Changed to use "struct hashblk;" instead of
 * typedef void *toolconf;
 * by MRN 28-May-1998 - for C++ compatibility.
 */

struct hashblk;
typedef struct hashblk *toolconf;

/*
 * type for a tag.
 * programs are expected to define all the tags they use in a header
 * and then use the macros. this will remove some of the chance of error,
 * and may allow us to extend the system in the future to use numeric
 * tags.
 */
typedef const unsigned char *tag_t;

/*
 * functions for adding to the config database. returns the database
 * handle.
 */
extern toolconf ToolConf_Add(toolconf hashv, const char *optstring);
extern toolconf ToolConf_AddTagged(
    toolconf hashv, tag_t tag, const char *value);

/* the "Update" versions change the value if it already exists */
extern toolconf ToolConf_Update(toolconf hash, const char *optstring);
extern toolconf ToolConf_UpdateTagged(
    toolconf hashv, tag_t tag, const char *value);

/*
 * Delete an entry from the toolconf. The space *isn't* reusable. However,
 * when the toolconf is resized, the deleted entries aren't moved across.
 * Any child, and hence any values in a child, are *DELETED*, so take care
 * against having pointers into children.
 */
extern toolconf ToolConf_Delete(toolconf hash, tag_t tag);

/*
 * A general add/update function
 */

/* First, a list of possible types */
#define tcnf_String 0x00
#define tcnf_UInt   0x01
#define tcnf_Int    0x02
#define tcnf_Bool   0x03
#define tcnf_Ptr    0x04
#define tcnf_Tag    0x05
#define tcnf_bPwr   0x06        /* k/M/G - base 1024 */
#define tcnf_dPwr   0x07        /* k/M/G - base 1000 */

#define tcnf_Update 0x100

extern toolconf ToolConf_AddTyped(toolconf, tag_t, unsigned /*type*/, ...);
extern toolconf ToolConf_UpdateTyped(toolconf, tag_t, unsigned /*type*/, ...);
/* e.g. ToolConf_AddTyped(config, "Flag", tcnf_Bool, TRUE); */

/*
 * any tag in the config can have a child.
 * a child is a separate database for that option. To add a child call
 * AddChild() instead of Add() - it returns the child config database
 * rather than the parent.
 */
extern toolconf ToolConf_AddChild(toolconf, const char *optstring);

/*
 * functions for extracting from the config database. The lookup and child
 * functions will search the parent for the tag if it's not found in the
 * child specified. Thus a child acts like a delta on the parent.
 */
extern const char *ToolConf_Lookup(toolconf, tag_t tag);
extern toolconf ToolConf_Child(toolconf, tag_t tag);
extern toolconf ToolConf_Parent(toolconf);
extern toolconf ToolConf_Root(toolconf);

/*
 * These versions do *not* look into the parent
 */
extern const char *ToolConf_FlatLookup(toolconf, tag_t tag);
extern toolconf ToolConf_FlatChild(toolconf, tag_t tag);

/*
 * enumerate all the tags in a config. This does not list things in the
 * parent, only the child. Similarly NumberOfTags does not go to the parent.
 * Enumeration is stopped if the "proc" returns non-0.
 */
typedef int ToolConf_TagEnumProc(
    toolconf, tag_t tag, const char *value, toolconf child, void *arg);
extern bool ToolConf_EnumerateTags(
    toolconf, ToolConf_TagEnumProc *, void *arg);
/* This is like the above, but returns the first non-zero integer
 * returned by the callback, rather than the logical not thereof. */
extern int ToolConf_IterateTags(
    toolconf, ToolConf_TagEnumProc *, void *arg);
extern unsigned int ToolConf_NumberOfTags(toolconf);

/*
 * function to read a config file. toolname is, e.g., "armsd". path is
 * the argv[0] passed to the tool. returns the database handle.
 */
extern toolconf ToolConf_Read(
    toolconf, const char *path, const char *toolname);

extern bool ToolConf_Write(toolconf hb, const char *pathname);

/*
 * Read a toolconf in from an absolute filename
 */
extern toolconf ToolConf_ReadFromFile(
    toolconf, const char *filename);

/* Versions that take FILE * handles */
extern toolconf ToolConf_ReadFrom(toolconf, FILE *);
extern toolconf ToolConf_WriteTo(toolconf, FILE *);

/* dsinclai 2000-07-17
 * toolconfs are passed - there is no static one. */
#ifdef OldCode
extern toolconf ToolConf_Base;     /* the root hashv */
#endif

/*
 * ToolConf_New: creates a new heap of the given size. If 'size' is -1,
 * a default size is used
 */
extern toolconf ToolConf_New(int size);

/*
 * A function to make a complete copy of a config database.
 */
extern toolconf ToolConf_Clone(toolconf);

/*
 * A function to completely destroy the config database. This wipes out
 * the entire tree (including all data), so use with care!
 * It is safe to pass NULL (does nothing).
 */
extern void ToolConf_Reset(toolconf);

/*
 * ToolConf_DLookupXXXX: lookup a value of a given type, with a
 * given default value.
 */
extern bool ToolConf_DLookupBool(
    toolconf hash, tag_t tag, bool default_value);
extern long ToolConf_DLookupInt(toolconf hash, tag_t tag, long default_value);
extern unsigned long ToolConf_DLookupUInt(
    toolconf hash, tag_t tag, unsigned long default_value);
extern void *ToolConf_DLookupPtr(
    toolconf hash, tag_t tag, void *default_value);


/*
 * Functions that perform directly on a child
 */
extern int ToolConf_UpdateChild(
    toolconf hash, tag_t parent, tag_t tag, const char *value);
extern const char *ToolConf_LookupChild(
    toolconf hash, tag_t parent, tag_t tag);

/*
 * Similarly, for integers
 */
extern int ToolConf_DLookupChildInt(
    toolconf hash, tag_t parent, tag_t tag, int default_value);
extern int ToolConf_UpdateChildInt(
    toolconf hash, tag_t parent, tag_t tag, int value);


/* ==== useful functions ==== */

/*
 * case independent compare
 */
extern int ToolConf_Cmp(const char *s1, const char *s2);

/*
 * take a string of form xMb/ykHz, etc., and return x*1024*1024/y*1000 etc.
 */
extern unsigned long ToolConf_Power(const char *s, int power_of_two);

/*
 * take option (as returned from lookup), a flags word, a bitflag,
 * and add that bitflag to the flags word as a boolean.
 * set_or_clear specifies whether to set of clear the bit.
 * values for "set" (or clear if set_or_clear is FALSE) are:
 * TRUE/YES/ON/HIGH/HI/1, and for "clear" (...) are:
 * FALSE/NO/OFF/LOW/LO/0
 */
extern unsigned long ToolConf_AddFlag(
    const char *option, unsigned long flword, unsigned long flag,
    int set_or_clear);

/*
 * This is used for telling the user where they went wrong.
 * It writes, as text, ':'-separated path to the child from the root.
 */
#define TOOLPATH_SEPARATOR ':'
char *ToolConf_Path2str(toolconf child, char *txt, unsigned txt_size);


#ifdef __cplusplus
}
#endif


#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩国产精品久久久| 国产欧美一区二区三区在线老狼| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美电视剧免费全集观看| 久久久国际精品| 一区二区三区四区高清精品免费观看 | 欧美成人精品二区三区99精品| 久久久噜噜噜久久人人看| 亚洲影视在线播放| 激情亚洲综合在线| 色综合一区二区| 日韩精品一区二区在线| 亚洲精选免费视频| 久久97超碰国产精品超碰| 99精品国产91久久久久久| 欧美丰满少妇xxxxx高潮对白| 久久精品亚洲国产奇米99| 亚洲综合一区在线| 狠狠色综合播放一区二区| 91福利视频在线| 久久精品夜色噜噜亚洲a∨| 午夜精品123| av在线播放成人| 精品久久一区二区三区| 亚洲国产综合人成综合网站| 成人一道本在线| 日韩欧美你懂的| 亚洲亚洲精品在线观看| 国产成人免费在线观看不卡| 9191国产精品| 亚洲欧美国产三级| 国产99久久久精品| 欧美一区二区视频观看视频 | 床上的激情91.| 日韩欧美www| 一区二区三区四区激情| 成人精品免费视频| 精品国产一区久久| 一区二区久久久| 粉嫩久久99精品久久久久久夜| 精品国产sm最大网站免费看 | 99这里只有久久精品视频| 久久天天做天天爱综合色| 亚洲激情六月丁香| eeuss鲁片一区二区三区在线观看| 精品国一区二区三区| 美女在线一区二区| 欧美高清视频一二三区| 亚洲永久精品大片| 91丨九色porny丨蝌蚪| 亚洲精品在线观看视频| 久久99热狠狠色一区二区| 欧美妇女性影城| 亚洲va天堂va国产va久| 日本高清无吗v一区| 亚洲人妖av一区二区| 成人av在线一区二区| 欧美高清在线视频| 国产成人亚洲综合a∨猫咪| 精品国产乱码久久| 久久国产精品色| 久久日韩精品一区二区五区| 国产成人午夜高潮毛片| 中文字幕一区二区三区精华液 | 成人教育av在线| 中文字幕日韩一区| 日本福利一区二区| 香蕉成人伊视频在线观看| 日韩精品一区二区三区在线播放 | 美女视频免费一区| 久久日韩精品一区二区五区| 成人国产精品免费观看| 亚洲美女一区二区三区| 欧美人伦禁忌dvd放荡欲情| 日本亚洲免费观看| 久久久久久久久久久99999| 顶级嫩模精品视频在线看| 亚洲欧美另类在线| 欧美一卡在线观看| 国产精品系列在线观看| 亚洲天堂中文字幕| 666欧美在线视频| 精品一区二区久久| 国产精品久久久久久久第一福利| 91久久线看在观草草青青| 日韩激情在线观看| 久久久久久久久久看片| 91亚洲国产成人精品一区二区三| 亚洲五月六月丁香激情| 精品国产伦一区二区三区观看方式| 国产成人av福利| 亚洲一区二区三区四区在线观看| 欧美成人国产一区二区| av高清不卡在线| 午夜天堂影视香蕉久久| 国产欧美一区二区三区鸳鸯浴| 在线观看国产一区二区| 精品中文字幕一区二区| 亚洲免费av网站| 精品国产青草久久久久福利| 97精品久久久久中文字幕| 免费欧美高清视频| 日韩伦理av电影| 欧美一区二区三区公司| www.亚洲在线| 免费观看在线色综合| 亚洲日本一区二区| 欧美tickling网站挠脚心| 91麻豆免费看片| 久草精品在线观看| 一区二区三区欧美视频| 久久久久久久久久久久久女国产乱 | 五月综合激情日本mⅴ| 国产午夜亚洲精品不卡| 欧美日韩精品高清| 成人免费va视频| 日本不卡视频在线观看| 亚洲视频 欧洲视频| 337p日本欧洲亚洲大胆色噜噜| 欧美伊人久久大香线蕉综合69| 国产成人啪免费观看软件| 丝袜亚洲另类欧美综合| 国产精品国产成人国产三级| 精品欧美一区二区三区精品久久 | 激情另类小说区图片区视频区| 一区二区三区久久| 欧美激情综合在线| 日韩欧美一区二区不卡| 欧美亚洲综合一区| 91在线视频官网| 国产麻豆午夜三级精品| 婷婷国产v国产偷v亚洲高清| 亚洲欧洲日韩av| www国产精品av| 欧美精品1区2区3区| 91精彩视频在线| 99视频一区二区| 国产精品一二二区| 老司机精品视频线观看86| 亚洲超碰精品一区二区| 亚洲欧美视频一区| 欧美激情在线免费观看| 久久久久综合网| 欧美不卡视频一区| 91麻豆精品国产91久久久| 欧美日韩美少妇 | 麻豆精品国产91久久久久久| 亚洲第一av色| 一区二区三区免费观看| 亚洲日本青草视频在线怡红院| 国产精品美女久久久久久久网站| 久久综合久久综合九色| 日韩精品一区二区三区中文精品| 制服丝袜中文字幕一区| 欧美另类一区二区三区| 欧美色网一区二区| 欧美亚男人的天堂| 色吊一区二区三区| 色噜噜偷拍精品综合在线| 色综合av在线| 日本高清无吗v一区| 色欧美片视频在线观看在线视频| av一区二区三区| www.欧美.com| 97久久精品人人做人人爽 | 欧美a级一区二区| 婷婷国产v国产偷v亚洲高清| 亚洲成人午夜影院| 亚洲成人黄色小说| 日韩国产在线一| 男女视频一区二区| 捆绑调教一区二区三区| 九九**精品视频免费播放| 国产真实乱偷精品视频免| 国产精品一区三区| 粉嫩久久99精品久久久久久夜| av在线播放一区二区三区| 91麻豆精东视频| 欧美专区日韩专区| 欧美精品乱码久久久久久按摩| 欧美一区二区视频网站| 2021中文字幕一区亚洲| 国产欧美视频一区二区| 亚洲欧洲性图库| 一区二区三区免费看视频| 日韩专区在线视频| 久久99精品国产麻豆不卡| 国产成人在线观看| 99国产精品国产精品久久| 欧美最新大片在线看| 91精品视频网| 久久精品亚洲精品国产欧美 | 精品精品国产高清a毛片牛牛 | 欧美一区二区三区公司| xfplay精品久久| 欧美激情资源网| 亚洲综合色区另类av| 男女男精品网站| 成人性视频网站| 欧美日韩亚洲不卡|