⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 verify-sigstack.c

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 C
字号:
/* * verify-sigstack.c * * Copyright 2004 *   Kaffe.org contributors. See ChangeLog for details. All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file. * * Code for handing of signature stack in the verifier. */#include "errors.h"#include "gc.h"#include "verify-sigstack.h"/* * pushSig() *     Pushes a new signature on the Stack */SigStack*pushSig(SigStack* sigs, const char* sig){	SigStack* new_sig = checkPtr(gc_malloc(sizeof(SigStack), KGC_ALLOC_VERIFIER));	new_sig->sig = sig;	new_sig->next = sigs;	return new_sig;}/* * freeSigStack() *     Frees the memory consumed by a stack of names and signatures. */voidfreeSigStack(SigStack* sigs){	SigStack* tmp;	while(sigs != NULL) {		tmp = sigs->next;		gc_free(sigs);		sigs = tmp;	}}

⌨️ 快捷键说明

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