📄 links.h
字号:
/* links.h * (c) 2002 Mikulas Patocka, Karel 'Clock' Kulhavy, Petr 'Brain' Kulhavy, * Martin 'PerM' Pergel * This file is a part of the Links program, released under GPL. *//* * WARNING: this file MUST be C++ compatible. this means: * no implicit conversions from void *: * BAD: unsigned char *c = mem_alloc(4); * GOOD: unsigned char *c = (unsigned char *)mem_alloc(4); * no implicit char * -> unsigned char * conversions: * BAD: unsigned char *c = stracpy("A"); * GOOD: unsigned char *c = stracpy((unsigned char *)"A"); * no implicit unsigned char * -> char * conversions: * BAD: unsigned char *x, *y, *z; z = strcpy(x, y); * BAD: l = strlen(x); * GOOD: unsigned char *x, *y; z = (unsigned char *)strcpy((char *)x, (char *)y); * GOOD: l = strlen((char *)x); * don't use C++ keywords (like template) * if there is struct X, you cannot use variable X or typedef X * (this applies to typedef ip as well -- don't use it!) * * IF YOU WRITE ANYTHING NEW TO THIS FILE, try compiling this file in c++ * to make sure that you didn't break anything: * g++ -DHAVE_CONFIG_H -x c++ links.h */#ifndef _LINKS_H#define _LINKS_H#define LINKS_COPYRIGHT "(C) 1999 - 2008 Mikulas Patocka\n(C) 2000 - 2008 Petr Kulhavy, Karel Kulhavy, Martin Pergel"#define LINKS_COPYRIGHT_8859_1 "(C) 1999 - 2008 Mikul醩 Patocka\n(C) 2000 - 2008 Petr Kulhav
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -