stdarg.c

来自「这是又一个C语言解释器, 我们可以方便地扩展其功能, 并将其用于我们的工作中」· C语言 代码 · 共 58 行

C
58
字号
/* stdarg.c * *	(C) Copyright Dec 20 1998, Edmond J. Breen. *		   ALL RIGHTS RESERVED. * This code may be copied for personal, non-profit use only. * */#ifndef NO_STDARG#include <stdlib.h>#include "eic.h"#include "stdliblocal.h"/*  STDARG.H STUFF */val_t _StArT_Va(void){    val_t v;    getptrarg(0,v.p);    v.p.ep = v.p.p;    v.p.sp = (char*)v.p.p - 256 * sizeof(val_t);    return v;}val_t _get_AR_t_size(void){    val_t v;    v.ival = sizeof(AR_t);    return v;}#endif/************************************************/void module_stdarg(){#ifndef NO_STDARG    /* STDARG.H STUFF */    EiC_add_builtinfunc("_get_AR_t_size",_get_AR_t_size);    EiC_add_builtinfunc("_StArT_Va",_StArT_Va);#endif}

⌨️ 快捷键说明

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