📄 news.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <title>Artistic Style - News</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <style type="text/css"> /*<![CDATA[*/ <!-- body {margin-top:0.5in; margin-right:0.8in; margin-bottom:0.5in; margin-left:0.8in;} h1 {color:#0000A0; text-align:center; font-style:italic; font-size:200%;} h2 {color:#0000A0;} h3 {color:#0000A0;} h4 {font-size:105%;} p {font-size:105%; margin-left:0.4in;} a:link, a:visited { color:blue; text-decoration:underline; } a:hover { color:#F00000; text-decoration:underline; } --> /*]]>*/ </style></head><body> <h1>Artistic Style News</h1> <p> </p> <h3>Artistic Style 1.22 (April 2008)</h3> <p>This release contains many bug fixes. The emphasis was on formatting fixes for C# files. In the last two releases there have been over 80 items removed from the bug report. There have been many more fixes which were not reported but were discovered while testing. The new options in this release exposed many unreported formatting problems. I will try to fix the ones remaining in the next two or three releases. Some of them will be difficult to fix. See the <a href="notes.html#1.22">Release Notes</a> for a complete list of changes.</p> <p>Starting with this release, if a file is <b>not</b> changed by Artistic Style a new file and a backup file are not created. A "make" will not recompile the unchanged file and it will not be committed to a revision control system. A console message will indicate that the file is unchanged. Note that this is different from using the ‑‑preserve‑date option. This option retains the date on files that <b>have</b> changed. In this case the changed files will still be recompiled and committed to revision control. (‑‑preserve‑date actually changes the time by one unit).</p> <p>In the rare case when Artistic Style aborts, the file being formatted will no longer be deleted. This is done by using a temporary output file (.tmp). It should now be safe to manually abort Artistic Style and restart at any time. The backup of files that were previously formatted will not be replaced.</p> <p>The console display has been changed. The default now displays one line per file. This will be useful if only one file is being formatted, such as when Artistic Style is called from a text editor or development environment. A new ‑‑verbose (-v) option will display optional information, such as release number and statistical data. A new ‑‑quiet (-q) option will suppress all output except error messages. Some short options have changed to accommodate the new options. The short option for ‑‑version is now -V (old -v) and for ‑‑convert‑tabs is ‑c (old ‑V).</p> <p>A new ‑‑recursive (-r, or -R) option will process subdirectories recursively. The filename should contain a wildcard (e.g. "$HOME/astyle/src/*.cpp"). Linux users should place the filename in double quotes so the shell will not resolve the wildcards. Windows users should <strong>not</strong> include wildcard object files, like setargv (Visual C) or wildargs (Borland), in the compiles. Wildcard processing in MinGW was excluded by adding "int _CRT_glob = 0" as a global variable. (It could also be excluded by linking to CRT_noglob.o). Artistic Style now does the wildcard processing internally.</p> <p>When processing directories recursively it is sometimes necessary to exclude certain files or directories. This can be done using a new exclude (‑‑exclude=file‑or‑directory) option. There is no short option. Multiple exclude statements are allowed. The <a href="astyle.html#_Other_Options">Other Options</a> section of the documentation contains the details.</p> <p>It is always a good idea to create a backup for files that have been formatted. This can cause a problem in that it creates a lot of excess files in your source directories. There are now new script files available that will move the files to a backup directory. The original directory structure will be maintained the in the backup. There is a batch file for Windows and a shell script for everyone else. They are available in the <a href="index.html#_Scripts">Scripts</a> section of the home page.</p> <p>There is a new <a href="links.html">Links</a> page that lists programs using Artistic Style. In general, they seem to be good quality software.</p> <p>If you are using a development environment to compile Artistic Style, be sure to read the <a href="install.html#_Compiler_Options">Compiler Options</a> section in the Install Information. In particular, you should define NDEBUG in the Release compile to remove the assert statements. There are quite a few of these and they will slow down processing if NDEBUG is not used. The assert statements are necessary due to the nature of the program. Also, when reporting bugs it is a good idea to log in first. Occasionally, more information is needed on a problem. If the poster did not log in there is no way to contact them.</p> <p>A Java Native Interface has been added for Java developers. This will allow an Artistic Style shared library (DLL) to be called from a Java program. A shared library (Dll) using the Java interface can still be called from C, C++, or C# programs. There is a sample program in the <a href="http://astyle.sourceforge.net/develop/">Developer Information</a>.</p> <p><strong>Developers using Artistic Style in another project</strong> should be aware that there are two new functions that have been added to the ASStreamIterator class (peekNextLine() and peekReset()). These will have to be coded into source modules which use Artistic Style without astyle_main. In most cases the functions can simply be copied without the template information. The assert statements may also be removed. A variable will need to be added to the class and another may need to be modified. If the shared or static library configuration is being used then no changes are necessary.</p> <p>The file globing function was obtained from <a href="http://www.codeproject.com/string/wildcmp.asp" target="astyle" title="open new window">The Code Project</a> and was written by Jack Handy. It was modified slightly to make the comparisons case insensitive for Windows.</p> <p>The OpenVMS distribution is prepared by Jim Duff, an OpenVMS Systems Specialist living in Sydney, Australia. His website is <a href="http://www.eight-cubed.com/index.html" target="astyle" title="open new window">eight‑cubed.com</a>.</p> <p>Thanks to Emilio Guijarro and Jens Krinke for their contributions, and to Sam Cooler for testing the Mac OS X version.</p> <p> </p> <h3>Artistic Style 1.21 (June 2007)</h3> <p>This release contains many bug fixes. Array formatting and indentation has been improved. Arrays and enums are now formatted by a different procedure than functions. Brackets will now attach to lines with comments. Brackets will be broken from lines with comments without bringing the comments with them. All comments will remain in their original column, if possible. The formatting of empty blocks was fixed. The BracketType definition was expanded and the bracket types are now correctly identified. There are several formatting fixes for Java files. See the <a href="notes.html#1.21">Release Notes</a> for a complete list of changes.</p> <p>A new option, --preserve-date (-Z), has been added. This will retain the date modified of the original file in the new formatted file. Otherwise the new file will contain the current date.</p> <p>The option --errors-to-standard-output has been shortened to --errors-to-stdout. The <b>short</b> options -c (mode=c) and -j (mode=java) have been removed. The options should seldom be needed since the mode is now set automatically from the file extension for <b>each source file</b> instead of for each program execution. A new long option --mode=cs (C#) has been added. Key words are now set for each file depending on the file mode (C, Java, or C#). This will eliminate formatting problems caused by not being able to identify the source code language.</p>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -