📄 makevalues
字号:
# This file is part of the KDE libraries## Copyright (C) 1999 Waldo Bastian (bastian@kde.org)## This library is free software; you can redistribute it and/or# modify it under the terms of the GNU Library General Public# License as published by the Free Software Foundation; either# version 2 of the License, or (at your option) any later version.## This library is distributed in the hope that it will be useful,# but WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU# Library General Public License for more details.## You should have received a copy of the GNU Library General Public License# along with this library; see the file COPYING.LIB. If not, write to# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,# Boston, MA 02111-1307, USA.##----------------------------------------------------------------------------## KDE HTML Widget -- Script to generate cssvalues.c and cssvalues.h# $Id: makevalues,v 1.1.1.1 2002/01/16 10:39:55 ymwei Exp $#echo -e '%{\n/* This file is automatically generated from cssvalues.in by makevalues, do not edit */\n/* Copyright 1999 W. Bastian */\n#include "cssvalues.h"\n%}\nstruct css_value {\n const char *name;\n int id;\n};\n%%' > cssvalues.gperfcat cssvalues.in | awk '{ do { prop = $0; gsub("-", "_"); print prop ", CSS_VAL_" toupper($0) } while (getline) }' >> cssvalues.gperfecho '%%' >> cssvalues.gperfecho -e '/* This file is automatically generated from cssvalues.in by#makevalues, do not edit */\n/* Copyright 1998 W. Bastian */\n\n#ifndef CSSVALUES_H\n#define CSSVALUES_H\n\n' > cssvalues.hcat cssvalues.in | awk '{ \i=1; \print "#define CSS_VAL_INVALID 0"; \print "#define CSS_VAL_MIN 1"; \do { gsub("-", "_"); print "#define CSS_VAL_" toupper($0) " " i; i = i + 1 } while (getline); \print ""; \print "#define CSS_VAL_TOTAL " i \}' >> cssvalues.hgperf -a -L 'ANSI-C' -E -C -c -o -t -k '*' -NfindValue -Hhash_val -Wwordlist_value -D -s 2 cssvalues.gperf > cssvalues.cecho -e '#endif\n' >> cssvalues.h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -