Multiple input buffers for Flex
摘要:Multiple input buffers Some scanners (such as those which support "include" files) require reading from several input streams. As flex scanners do a large amount of buffering, one cannot control wher...
阅读全文
posted @
2006-12-31 16:45
riky
阅读(443)
推荐(0) 编辑
list_head实践
摘要:''~`` ( o o )+------------------.oooO--(_)--Oooo.---------------------+| Rick Wang || E-mail: r...
阅读全文
posted @
2006-12-29 17:23
riky
阅读(909)
推荐(0) 编辑
list_head使用介绍
摘要:list_head结构的介绍list_head结构定义在 里,它是一个double linked list的结构。 底下是它的结构宣告: struct list_head {struct list_head *next, *prev;}; 有的人可能看到这样...
阅读全文
posted @
2006-12-28 23:37
riky
阅读(7304)
推荐(1) 编辑
linux 内核分析之list_head
摘要:本文详细分析了 2.6.x 内核中链表结构的实现,并通过实例对每个链表操作接口进行了详尽的讲解。 一、 链表数据结构简介链表是一种常用的组织有序数据的数据结构,它通过指针将一系列数据节点连接成一条数据链,是线...
阅读全文
posted @
2006-12-28 17:08
riky
阅读(30209)
推荐(2) 编辑
char p[] 和 char *p
摘要:在函数里char p[] = "hello world" 与 char *p = "Hello world" 造成的效果不一样,为什么?请高人告知! 请看两个程序: (1) char *GetString(void) { char p[] = "Hello world"; return p; } void main() { char *str = NULL; str = GetString(); ...
阅读全文
posted @
2006-12-28 15:48
riky
阅读(2479)
推荐(0) 编辑
not human being~~~
摘要:以下所说 也许不是什么新东西,只是今天我才知道 typedef struct { int min; char ch; char ch1; int min1;}str;printf("%x", (unsigned long) ( &( (struct str *)0->;min ) ) )printf("%x", (unsigned long) ( &( (struct ...
阅读全文
posted @
2006-12-28 15:43
riky
阅读(336)
推荐(0) 编辑
linux 内存相关~~~~集~~
摘要:源程序如下#include /*C99标准*/int main(void){ int zippo[4][2] = { {2,4},{6,8},{1,3},{5,7} } printf("zippo=%p,zippo+1=%p\n", zippo, zippo+1); printf("*(*(zippo+2)+1)=%d\n",*(*(zippo+2)+1));...
阅读全文
posted @
2006-12-28 10:47
riky
阅读(627)
推荐(0) 编辑
LEX---Start conditions
摘要:Start conditions flex provides a mechanism for conditionally activating rules. Any rule whose pattern is prefixed with "" will only be active when the scanner is in the start condition named "sc". For...
阅读全文
posted @
2006-12-26 18:05
riky
阅读(711)
推荐(0) 编辑
rfc2396文档
摘要:http://www.ietf.org/rfc/rfc2396.txt Network Working Group T. Berners-Lee Request for Comments: 2396 MIT/LCS Updates: 1808, 173...
阅读全文
posted @
2006-12-25 21:50
riky
阅读(3790)
推荐(0) 编辑