| 1 |
-- $Id: CHANGES,v 1.62 2025/09/14 19:43:49 tom Exp $ |
| 2 |
-- Thomas E. Dickey <[email protected]> |
| 3 |
|
| 4 |
2025/09/14 |
| 5 |
---------- |
| 6 |
+ updated configure script macros, for compiler-warnings |
| 7 |
|
| 8 |
2024/09/17 |
| 9 |
---------- |
| 10 |
+ improve utility/test scripts, with shellcheck and other checks. |
| 11 |
+ improve test-packages, e.g., for hardening options. |
| 12 |
+ updated configure script macros, for ignored options |
| 13 |
+ update config.guess, config.sub |
| 14 |
|
| 15 |
2024/01/11 |
| 16 |
---------- |
| 17 |
+ minor cleanup of manual page |
| 18 |
+ updated configure script macros, for compiler-warnings |
| 19 |
+ update config.guess, config.sub |
| 20 |
|
| 21 |
2023/01/30 |
| 22 |
---------- |
| 23 |
+ updated configure script macros, for compiler-warnings |
| 24 |
|
| 25 |
2022/10/02 |
| 26 |
---------- |
| 27 |
+ updated configure script macros |
| 28 |
+ update config.guess, config.sub |
| 29 |
|
| 30 |
2021/01/08 |
| 31 |
---------- |
| 32 |
+ eliminate archaic "Boolean" enum |
| 33 |
+ updated configure script macros |
| 34 |
+ update config.guess, config.sub |
| 35 |
|
| 36 |
2020/09/22 |
| 37 |
+ remove obsolete makefile-rules |
| 38 |
+ updated configure script macros |
| 39 |
+ update config.guess, config.sub |
| 40 |
|
| 41 |
2018/04/01 |
| 42 |
+ updated configure script macros |
| 43 |
+ update config.guess, config.sub |
| 44 |
|
| 45 |
2015/08/11 |
| 46 |
+ fix an off-by-one in limit-checking for command-line option values |
| 47 |
(patch by Miriam Ruiz). |
| 48 |
+ updated configure script macros |
| 49 |
+ update config.guess, config.sub |
| 50 |
|
| 51 |
2013/12/09 |
| 52 |
+ updated configure script macros |
| 53 |
+ update config.guess, config.sub |
| 54 |
|
| 55 |
2012/03/18 |
| 56 |
+ add rpm script. |
| 57 |
+ fixes for DESTDIR in makefiles |
| 58 |
+ add cb++ script to install-rules |
| 59 |
+ integrate patch from Debian package, to search for bcpp.cfg in |
| 60 |
user's home-directory and optionally a compile-time specific |
| 61 |
directory. |
| 62 |
+ add dpkg script from Debian package, for testing. |
| 63 |
+ updated configure script macros |
| 64 |
+ drop mkdirs.sh, using "mkdir -p" |
| 65 |
+ update config.guess, config.sub |
| 66 |
|
| 67 |
2009/06/30 |
| 68 |
+ updated configure scripts |
| 69 |
+ improve exec-sql parser, detecting inline comments beginning with |
| 70 |
"--". |
| 71 |
+ fix a case where multi-line indent was set during a #define, and |
| 72 |
not reset on completion of the #define, causing the following code |
| 73 |
to be indented. |
| 74 |
+ check for braces or preprocessor-level before indenting comments |
| 75 |
which are on a line without code. |
| 76 |
+ improve config-file parser, which used strstr... |
| 77 |
+ add keep_code_with_comment option, to merge inline-comments with |
| 78 |
the code immediately following, rather than merging (for example) |
| 79 |
with trailing "}" (request by Daniel Lin). |
| 80 |
|
| 81 |
2005/07/25 |
| 82 |
+ add COPYING (request by Peter Hille). |
| 83 |
+ fixes for Intel 9.0 compiler-warnings. |
| 84 |
+ add AC_EXEEXT and AC_OBJEXT checks to configure properly with cygwin. |
| 85 |
|
| 86 |
2005/05/16 |
| 87 |
+ fixes to build with g++ 2.95.3 |
| 88 |
+ add .SUFFIXES rule to build with Solaris make. |
| 89 |
|
| 90 |
2005/04/10 |
| 91 |
+ correct some regressions introduced by 2004/10/27: |
| 92 |
+ check if a line began as part of a quoted string string before |
| 93 |
computing its indentation. |
| 94 |
+ count indent-level for curly-braces within #define's. |
| 95 |
+ improve configure check for g++ warnings (from ncurses). |
| 96 |
|
| 97 |
2004/10/27 |
| 98 |
+ correct logic that tracks state of preprocessor lines that continue |
| 99 |
from one line to the next. The additional lines were not marked |
| 100 |
as preprocessor lines (report by Edward Bishop). |
| 101 |
+ updated configure script, fixes a check that added some gcc warning |
| 102 |
options which are not recognized by g++. |
| 103 |
|
| 104 |
2003/11/03 |
| 105 |
+ correct one of the valgrind fixes from 2003/04/23 which used delete[] |
| 106 |
in a special case where delete was correct (reports by Gert van de |
| 107 |
Kraats <[email protected]> and John Whitley |
| 108 |
<[email protected]>). |
| 109 |
|
| 110 |
2003/04/23 |
| 111 |
+ fix several mismatches between new and delete (versus delete[]) |
| 112 |
reported by valgrind. |
| 113 |
+ add place_top_brace_on_new_line to config, with corresponding |
| 114 |
command-line options -tbcl and tbnl to disable or enable it |
| 115 |
respectively. This is for the special case of the top-level |
| 116 |
brace, e.g., at the function-level, to better match K&R style |
| 117 |
braces (request by Daniel Lin). |
| 118 |
+ modified run-test script to facilitate testing variations of bcpp.cfg |
| 119 |
|
| 120 |
2002/11/24 |
| 121 |
+ check in OutputToOutFile() for a trailing C-comment fragment which |
| 122 |
happened to precede code on the same line, e.g., |
| 123 |
*/ a = b; |
| 124 |
and split the line to avoid constructing |
| 125 |
a = b; */ |
| 126 |
(reports by Andreas Werner and Yanir Lubetkin |
| 127 |
<[email protected]> |
| 128 |
+ add isFinalComment() check to ensure that embedded comments are |
| 129 |
not moved, e.g., |
| 130 |
void myFunct(int /*number*/, float* /*data*/); |
| 131 |
(report by Andreas Werner). |
| 132 |
|
| 133 |
2002/11/23 |
| 134 |
+ add a simple configure script. |
| 135 |
+ rename UNIX makefile to makefile.unx, changing compiler definition |
| 136 |
from "gcc -x g++" to "g++", since that no longer works with gcc 3.2 |
| 137 |
(report by Don Park <[email protected]>). |
| 138 |
+ remove obsolete 'unix' subdirectory. |
| 139 |
|
| 140 |
2002/05/18 |
| 141 |
+ add indent_both_braces config-file option and corresponding |
| 142 |
command-line -nbbi, -ybbi options to allow user to indent both |
| 143 |
leading/trailing braces of a block by one level (adapted from patch |
| 144 |
by Brad Mettee <[email protected]>). |
| 145 |
|
| 146 |
+ add brace_indent config-file option and corresponding command-line |
| 147 |
-nbi, -ybi options to allow user to indent the trailing brace of a |
| 148 |
block to align with its content rather than the beginning of the |
| 149 |
block (detailed request by Edwin Robert Tisdale |
| 150 |
<[email protected]>) |
| 151 |
|
| 152 |
+ correct isContinuation() by ignoring backslash characters within |
| 153 |
comments. This makes it handle comment blocks such as |
| 154 |
/*******\ |
| 155 |
* BUG * |
| 156 |
\*******/ |
| 157 |
(reported by Andreas Werner <[email protected]>). |
| 158 |
|
| 159 |
+ add makefile.blc for Borland C (from Chris Elliott <[email protected]>). |
| 160 |
|
| 161 |
+ remove references to obsolete email address <[email protected]> |
| 162 |
|
| 163 |
+ add CHANGES file, document the sets of changes I marked in RCS |
| 164 |
|
| 165 |
+ add MANIFEST file. |
| 166 |
|
| 167 |
1999/08/10 |
| 168 |
+ makefile: do not link with -lg++ anymore |
| 169 |
|
| 170 |
+ makefile: change $D to "./", to make vile follow the compiler |
| 171 |
warnings more easily |
| 172 |
|
| 173 |
+ add __FILE__ to traceOutput() calls |
| 174 |
|
| 175 |
+ fixes to compile on SunOS 4.x, which needs the <string.h> stuff |
| 176 |
prototyped also, change interface of traceInput() and traceOutput() |
| 177 |
to add __FILE__ |
| 178 |
|
| 179 |
+ fix a case Jeff Gilliat pointed out - an inline C comment fragment |
| 180 |
resulted in commenting out the code on that line. |
| 181 |
|
| 182 |
+ mods in IndentNonBraces() which serve to distinguish "public:" which |
| 183 |
is a class scope from "public" which is a Java type. Otherwise we |
| 184 |
get odd indention for the latter case. |
| 185 |
|
| 186 |
+ backup.cpp: had allocated one char too few for ".orig" suffix |
| 187 |
|
| 188 |
1999/01/21 |
| 189 |
+ rename the backup file to .orig, since "~" confuses WinNT's directory |
| 190 |
scanning, making it return the same file more than once. |
| 191 |
|
| 192 |
+ open the output in binary mode, so we get ^J's rather than ^M^J's |
| 193 |
|
| 194 |
1999/01/04 |
| 195 |
+ kludge to ifdef for g++ versus M$ Visual C++ |
| 196 |
|
| 197 |
+ kludge to compile in case we have the misfortune to use gcc 2.8.1 |
| 198 |
with Solaris's header files (some idiot decided to undef __STDC__ in |
| 199 |
g++ because they disapprove of using __STDC__ for ifdef'ing). |
| 200 |
|
| 201 |
+ change defaults in bcpp.cfg to use_tabs=yes, and |
| 202 |
comments_with_code=33 (the original bpp.cfg is in top-level). |
| 203 |
|
| 204 |
+ baseq.cpp: fix so we do not try to peek into a negative index |
| 205 |
|
| 206 |
+ add top-level bcpp.cfg, indent.bat, indent.cfg as part of port to |
| 207 |
win32. |
| 208 |
|
| 209 |
+ add txtdocs/manual.txt to distribution, updated wpdocs/manual.doc |
| 210 |
|
| 211 |
1999/01/02 |
| 212 |
+ mods to "work" with tisca.h, which contains a number of comments |
| 213 |
within long multi-line comments. This isn't quite right, since lines |
| 214 |
containing only a backslash are deleted, where they should be |
| 215 |
combined just like blank lines. |
| 216 |
|
| 217 |
+ add run-test file (used with regression test-cases not part of the |
| 218 |
distribution). |
| 219 |
|
| 220 |
+ implement html.cpp, to provide limited support for indenting |
| 221 |
JavaScript embedded in HTML files. |
| 222 |
|
| 223 |
+ split-out backup.cpp to support renaming of the original file, |
| 224 |
preserving its modification-time, to allow recovery if the indent is |
| 225 |
not needed (makes no change), or otherwise should be discarded. |
| 226 |
|
| 227 |
+ implement verbose.cpp, to support interactions such as stopping |
| 228 |
processing a set of files on an error. |
| 229 |
|
| 230 |
+ change scattered printf's to call verbose(), and fprintf(stderr's to |
| 231 |
warning(). |
| 232 |
|
| 233 |
+ rewrote ReadLine so it doesn't use fseek/ftell (which is a porting |
| 234 |
problem). |
| 235 |
|
| 236 |
+ config.cpp: removed a lot of ugly/repetitious code |
| 237 |
|
| 238 |
+ config.cpp: moved ShowConfig here from bcpp.cpp |
| 239 |
|
| 240 |
+ debug.cpp: change trace() calls to not use stderr explicitly. |
| 241 |
|
| 242 |
1997/04/04 |
| 243 |
+ first draft of logic to reset indent-stack at the end of a multi-line |
| 244 |
preprocessor command. also, fixed (?) a bug in splitting |
| 245 |
continuation-line (but there's more) |
| 246 |
|
| 247 |
+ allow unrecognized preprocessor-lines to be indented |
| 248 |
|
| 249 |
+ refine a change to allow for things like "else return;" |
| 250 |
|
| 251 |
+ replaced a couple of strcmp calls by CompareKeyword to allow for |
| 252 |
matching both "else" and "else if" statements. |
| 253 |
|
| 254 |
+ fixes for places where we split a line that has continuation-marker |
| 255 |
on the end. while I was at it, trim redundant whitespace before the |
| 256 |
'\', to make it uniform. |
| 257 |
|
| 258 |
1997/01/07 |
| 259 |
+ tabs.cpp: fix a place where I trimmed trailing blanks from data w/o |
| 260 |
trimming state, causing bogus results with baseobj.hh, due to overrun |
| 261 |
in later logic. |
| 262 |
|
| 263 |
+ lots of spelling corrections. |
| 264 |
|
| 265 |
+ fixes for stricter gcc warnings |
| 266 |
|
| 267 |
1996/12/24 |
| 268 |
+ updated copyright notices. |
| 269 |
|
| 270 |
+ refined adjustment of inline comments to work with hanging.cpp, which |
| 271 |
doesn't take that into account. |
| 272 |
|
| 273 |
+ remove unused logic for adjustHangingComment, since I'm doing this in |
| 274 |
a different way. |
| 275 |
|
| 276 |
1996/12/17 |
| 277 |
+ execsql.cpp: refined hanging-indents to account for statements other |
| 278 |
than the two block-styles we use |
| 279 |
|
| 280 |
+ make SqlStruct a class |
| 281 |
|
| 282 |
1996/12/12 |
| 283 |
+ shift-adjust dangling else{} block |
| 284 |
|
| 285 |
+ makefile: record the debug-ifdefs |
| 286 |
|
| 287 |
+ hanging.cpp: make HangStruct class to get rid of static variables |
| 288 |
|
| 289 |
+ bcpp.h: made HangStruct class |
| 290 |
|
| 291 |
+ change hang_state from an int to a class |
| 292 |
|
| 293 |
+ made singleIndentLen obsolete via hanging.cpp |
| 294 |
|
| 295 |
1996/12/06 |
| 296 |
+ tabs.cpp: mods to allow tabs in OutputStruct.filler |
| 297 |
|
| 298 |
+ fix a few leaks |
| 299 |
|
| 300 |
+ ensure that hanging comments remain hanging when re-indenting. |
| 301 |
|
| 302 |
+ use tabs for OutputStruct.filler |
| 303 |
|
| 304 |
1996/12/05 |
| 305 |
+ tabs.cpp: correct leading-whitespace conversion (space is printable |
| 306 |
;-) |
| 307 |
|
| 308 |
+ hanging.cpp: remove redundant reset of hang_state |
| 309 |
|
| 310 |
+ debug.cpp: SunOS 4.x needs stdlib.h for size_t |
| 311 |
|
| 312 |
+ add InputStruct.offset |
| 313 |
|
| 314 |
+ add OutputStruct.splitElseIf |
| 315 |
|
| 316 |
+ remove IndentStruct.firstPass, because hanging.cpp does it better |
| 317 |
|
| 318 |
+ mods to preserve code-fragment's offset to use in shifting |
| 319 |
block-indented C-style comments |
| 320 |
|
| 321 |
+ fixes for offset adjustment due to stripping whitespace from |
| 322 |
fragments in DecodeLine |
| 323 |
|
| 324 |
+ first cut of logic to pass offset of code-fragments into InputStruct |
| 325 |
(to use for categorizing hanging comments) |
| 326 |
|
| 327 |
+ revised logic for split else/if statement using flag 'splitElseIf'. |
| 328 |
this fixes the problem of indenting the code undef 'if'. |
| 329 |
|
| 330 |
+ mods to make TestLineHasCode look at the parse-state (which is more |
| 331 |
reliable) |
| 332 |
|
| 333 |
+ remove IndentStruct.firstPass logic, since hanging.cpp does it better |
| 334 |
|
| 335 |
+ add pBFlag to OutputStruct to use in hanging.cpp |
| 336 |
|
| 337 |
1996/11/15 |
| 338 |
+ tabs.cpp: correct off-by-one in return from skipEscape() that ate |
| 339 |
trailing quote. |
| 340 |
|
| 341 |
+ bcpp.h: rename OutputStruct.pState to OutputStruct.pCFlag |
| 342 |
|
| 343 |
+ bcpp.h: add OutputStruct.pBFlag |
| 344 |
|
| 345 |
+ use OutputStruct.indentHangs |
| 346 |
|
| 347 |
+ split-out hanging.cpp |
| 348 |
|
| 349 |
+ hanging.cpp: add 'do_aggreg' flag |
| 350 |
|
| 351 |
+ hanging.cpp: use new member of OutputStruct, indentHangs to allow |
| 352 |
merge with info from execsql.cpp |
| 353 |
|
| 354 |
1996/11/08 |
| 355 |
+ move emptyString to bcpp.h |
| 356 |
|
| 357 |
+ pass-in Config struct to IndentSQL, making it pass by ref everywhere |
| 358 |
|
| 359 |
+ move some string-parsing to strings.cpp, to re-use in execsql.cpp |
| 360 |
|
| 361 |
+ move debug/trace code to debug.cpp |
| 362 |
|
| 363 |
+ move input/output/indent definitions to bcpp.h |
| 364 |
|
| 365 |
+ align successive else/if |
| 366 |
|
| 367 |
+ don't set interfunction-spacing for lines that happen to have R_CURL, |
| 368 |
if there's more on the line. |
| 369 |
|
| 370 |
+ add indent_exec_sql to bcpp.cfg |
| 371 |
|
| 372 |
+ execsql.cpp - quick hack to indent non-keyword stuff extra |
| 373 |
|
| 374 |
+ move some functions to strings.cpp from bcpp.cpp, for use in |
| 375 |
execsql.cpp |
| 376 |
|
| 377 |
1996/11/06 |
| 378 |
+ restructured keyword-lookup to add 3rd type (blockLine). use this to |
| 379 |
fix case (successive lines) with "while", "switch" -- the |
| 380 |
curly-braces for "switch" weren't indented under "switch". |
| 381 |
|
| 382 |
+ also, dropped special logic for singleIndentLen, making it the same |
| 383 |
as a standard indent (was too ugly). |
| 384 |
|
| 385 |
1996/11/05 |
| 386 |
+ propagate parse-state via InputStruct to OutputStruct. |
| 387 |
|
| 388 |
+ correct potential indention of continued-string fragments. |
| 389 |
|
| 390 |
1996/11/04 |
| 391 |
+ moved string-table to config.cpp |
| 392 |
|
| 393 |
+ fix uninitialized-memory-ref (Purify) |
| 394 |
|
| 395 |
+ unused parameter. |
| 396 |
|
| 397 |
+ add indent_preprocessor |
| 398 |
|
| 399 |
+ simplify config.cpp a little using overloading |
| 400 |
|
| 401 |
+ corrected some minor bugs affecting indention |
| 402 |
|
| 403 |
+ add "#else" to typeOfPreP(), along with all other standard |
| 404 |
directives. |
| 405 |
|
| 406 |
+ use enum rather than int for 'attrib' types. change name of one |
| 407 |
'attrib' type to make it easier to maintain. fixes for TRACE. |
| 408 |
|
| 409 |
+ first cut of indent_preprocessor option |
| 410 |
|
| 411 |
+ modify so that both comma and semicolon are treated specially after |
| 412 |
'}', to make data lists work properly |
| 413 |
|
| 414 |
+ correct a couple of special cases with multi-indent |
| 415 |
|
| 416 |
1996/10/31 |
| 417 |
+ fixes for memory leaks |
| 418 |
|
| 419 |
+ corrections to tab computation |
| 420 |
|
| 421 |
+ add special state for '#' pre-processor lines |
| 422 |
|
| 423 |
+ makefile - move some symbols to accommodate non-g++ |
| 424 |
|
| 425 |
+ add POUNDC |
| 426 |
|
| 427 |
+ mods to track preprocessor-lines |
| 428 |
|
| 429 |
+ reduce ConstructLine to a single-level switch, rather than the nested |
| 430 |
one that will get in the way of mods for execsql |
| 431 |
|
| 432 |
+ refined logic in dontHangComment(), fixing a case I missed before. |
| 433 |
|
| 434 |
+ correct a logical-reduction for matching against PreP types |
| 435 |
|
| 436 |
+ suppress inter-function spacing before "#endif" |
| 437 |
|
| 438 |
+ add pType to OutputStruct so I can tag them as PreP when needed |
| 439 |
|
| 440 |
+ fix while-loop that was expressed as for-loop with break |
| 441 |
|
| 442 |
+ undid unnecessary if-level in ConstructLine |
| 443 |
|
| 444 |
+ restore leading tabs in comments if we're expanding tabs |
| 445 |
|
| 446 |
+ moved the non-printing character conversion to tabs.cpp |
| 447 |
|
| 448 |
1996/10/20 |
| 449 |
+ moved delete for lineState into bcpp.cpp |
| 450 |
|
| 451 |
+ make pString in/out for ExpandTabs |
| 452 |
|
| 453 |
+ modify ExpandTabs to maintain a string of CharState values |
| 454 |
|
| 455 |
+ corrected state: allow tab-expansion in // comments |
| 456 |
|
| 457 |
+ add strings.cpp |
| 458 |
|
| 459 |
+ make pString in/out for ExpandTabs |
| 460 |
|
| 461 |
+ fixes for include-order (bcpp.h should be last) |
| 462 |
|
| 463 |
+ reduce FindStartofComment and FindEndofComment to return index |
| 464 |
instead of pointers |
| 465 |
|
| 466 |
+ revised FindPunctuation so it returns an index rather than a pointer, |
| 467 |
and uses the pLineState info so that we can easily discard quoted |
| 468 |
punctuation (which didn't work for a complicated string, e.g., |
| 469 |
"'\\0','\\0'}"). |
| 470 |
|
| 471 |
+ changed allocation scheme of lineState |
| 472 |
|
| 473 |
+ drop CComments param of DecodeLine, since pLineState contains proper |
| 474 |
info |
| 475 |
|
| 476 |
+ fixes for blank-lines: ensure that we don't emit trailing |
| 477 |
blank-lines in a file, that except for inter-function blanks, we |
| 478 |
reduce runs of blank lines to a single blank, and that there's no |
| 479 |
lines (even comments) that come out with trailing whitespace. |
| 480 |
|
| 481 |
+ simplify allocation/deallocation in DecodeLine by leaving pLineData |
| 482 |
alone. |
| 483 |
|
| 484 |
+ a couple of Purify-fixes |
| 485 |
|
| 486 |
+ modify ExpandTabs to maintain a string of CharState values; use this |
| 487 |
to retain parsing state so I can correct blank-trimming (so that |
| 488 |
continuation lines of a string aren't trimmed!). |
| 489 |
|
| 490 |
1996/10/12 |
| 491 |
+ split-out bcpp.h and tabs.cpp |
| 492 |
|
| 493 |
+ moved tab-expansion (and tab-spacing) into separate file, first to |
| 494 |
fix an error in tab-expansion (wrong fill amount), then to allow |
| 495 |
rewrite to capture left/right CharState, to prevent quoted tabs from |
| 496 |
being expanded. Also, moved L_CURL, R_CURL, DQUOTE, SQUOTE into |
| 497 |
config.h, making capitalization consistent. |
| 498 |
|
| 499 |
+ fixes for multi-line C comments |
| 500 |
|
| 501 |
+ implement shiftToMatchSingleIndent, peekIndexOfBrace, |
| 502 |
chainedSingleIndent |
| 503 |
|
| 504 |
+ better logic in resetSingleIndent(), to reset all pending |
| 505 |
single-indents |
| 506 |
|
| 507 |
+ ifdef'd trace code so I don't have to uncomment it added clause in |
| 508 |
IndentNonBraceCode to (try to) reset singleIndentLen immediately |
| 509 |
after "{" -- works in one place but not another |
| 510 |
|
| 511 |
+ eliminate single-char constant-strings to use strchr instead of |
| 512 |
strstr. use FindPunctuation to simplify some logic |
| 513 |
|
| 514 |
+ new function CompareKeyword fixes parse ambiguity with strstr allow |
| 515 |
combination of tabs and spaces. |