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

📄 location.c

📁 一个很有名的浏览器
💻 C
字号:
/* Locations handling *//* $Id: location.c,v 1.13.6.1 2005/04/05 21:08:43 jonas Exp $ */#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <stdlib.h>#include "elinks.h"#include "sched/location.h"#include "sched/session.h"#include "util/memory.h"#include "util/string.h"voidcopy_location(struct location *dst, struct location *src){	struct frame *frame, *new_frame;	init_list(dst->frames);	foreachback (frame, src->frames) {		new_frame = mem_calloc(1, sizeof(*new_frame));		if (new_frame) {			new_frame->name = stracpy(frame->name);			if (!new_frame->name) {				mem_free(new_frame);				return;			}			new_frame->redirect_cnt = 0;			copy_vs(&new_frame->vs, &frame->vs);			add_to_list(dst->frames, new_frame);		}	}	copy_vs(&dst->vs, &src->vs);}voiddestroy_location(struct location *loc){	struct frame *frame;	foreach (frame, loc->frames) {		destroy_vs(&frame->vs, 1);		mem_free(frame->name);	}	free_list(loc->frames);	destroy_vs(&loc->vs, 1);	mem_free(loc);}

⌨️ 快捷键说明

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