
CII study
文章平均质量分 73
ljd_1881
这个作者很懒,什么都没留下…
展开
-
A memery management interface---Readme
A memery management interface---Readme1 Execept.h except.c are the source files that describe and implement the exception handler used by "c interface and implementation".The exception has much rel原创 2006-11-28 18:13:00 · 741 阅读 · 0 评论 -
Exception handler interface
#ifndef EXCEPT_H#define EXCEPT_H#include#define T Except_T typedef struct T{ char * reason;} T;typedef struct Except_Frame Except_Frame;struct Except_Frame{ Except_Frame * prev; jmp_buf env;原创 2006-11-28 18:21:00 · 658 阅读 · 0 评论 -
A memery management interface---Source code_except.h
#ifndef MEM_INCLUDE#define MEM_INCLUDE#include "except.h"extern Except_T Mem_failed; extern void * Mem_alloc(long nbytes,const char * file,int line); // not initionlized !extern void * Mem_calloc(原创 2006-11-28 18:16:00 · 764 阅读 · 0 评论 -
A memery management interface---Source code_except.c
/* *checking implementation of mem interface * */#include#include#include#include#include "except.h"#include "mem.h"#define hash(p,t) (((unsigned long)(p)>>3)%( sizeof(t)/sizeof((t)[0])-1 ) )#define N原创 2006-11-28 18:17:00 · 742 阅读 · 0 评论 -
Exception handler interface ' implementation
#include#include#include#include"except.h"#define T Except_TExcept_Frame * Except_stack = NULL;void Except_raise(const T *e,const char * file,int line){ Except_Frame *p = Except_stack;原创 2006-11-28 18:23:00 · 742 阅读 · 0 评论