test_nt_line_length.jam
来自「boost库提供标准的C++ API 配合dev c++使用,功能更加强大」· JAM 代码 · 共 42 行
JAM
42 行
# (C) Copyright David Abrahams 2001. Permission to copy, use,
# modify, sell and distribute this software is granted provided this
# copyright notice appears in all copies. This software is provided
# "as is" without express or implied warranty, and with no claim as
# to its suitability for any purpose.
# Test that the patch which allows long command-lines in actions on NT is
# working. For reasons of backward-compatibility, this patch requires that the
# action fits on a single command-line, and that the JAMSHELL variable on the
# target being built is set to "%".
if $(NT)
{
#
# Build a really long commandline. (> 10K characters).
#
ten = 0 1 2 3 4 5 6 7 8 9 ;
1x7chars = 0_____ ;
# add a digit and multiply by 10
10x8chars = $(ten)$(1x7chars) ;
# add a digit to each of 10 strings and multiply by 10
100x9chars = $(ten)$(10x8chars) ;
# add a digit to each of 100 strings and multiply by 10
1000x10chars = $(ten)$(100x9chars) ;
#
# Cause line_length_test to be built
#
actions do_echo
{
echo $(text)
}
400x10chars = $(ten[1-4])$(100x9chars) ;
text on line_length_test = $(400x10chars) 40$(10x8chars[1-9]) 01234 ;
text on line_length_test = $(1000x10chars) $(1000x10chars) ;
JAMSHELL on line_length_test = % ;
DEPENDS all : line_length_test ;
do_echo line_length_test ;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?