docdata.c

来自「一个很有名的浏览器」· C语言 代码 · 共 32 行

C
32
字号
/* The document->data tools *//* $Id: docdata.c,v 1.1 2003/11/18 22:18:12 pasky Exp $ */#ifdef HAVE_CONFIG_H#include "config.h"#endif#include <stdlib.h>#include "elinks.h"#include "document/docdata.h"#include "document/document.h"#include "util/error.h"struct line *realloc_lines(struct document *document, int y){	assert(document);	if_assert_failed return NULL;	if (document->height <= y) {		if (!ALIGN_LINES(&document->data, document->height, y + 1))			return NULL;		document->height = y + 1;	}	return &document->data[y];}

⌨️ 快捷键说明

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