Debian Codegraph @

ChangeLog

raw
1 2025-07-30 Sergey Poznyakoff <[email protected]>
2
3 Version 1.8
4
5 2025-06-21 Sergey Poznyakoff <[email protected]>
6
7 Handle nesting {[( braces and duplicate typedefs.
8 * src/parser.c (find_closing_paren): New function.
9 (skip_balanced): Rewrite using find_closing_paren. Change
10 parameters (no need to specify closing token). All uses changed.
11 (fake_struct): Handle TYPE appearing after closing brace.
12 (dirdcl): Use find_closing_paren, instead of plain skip_to.
13 * tests/corner.at: Add test for duplicate typedefs.
14
15 2025-05-10 Sergey Poznyakoff <[email protected]>
16
17 Update the manpage.
18
19 Version 1.7.91
20
21 New syntax class: declaration
22 * src/parser.h (DECLARATION): New token type.
23 * src/parser.c (skip_declaration): New function.
24 (yyparse): Handle DECLARATION.
25 * src/main.c (symbol_optype): Add "declaration".
26 * src/init/c11.cfo: Mark _Static_assert as declaration.
27 * doc/cflow.texi: Document changes.
28
29 Add cfo files
30
31 2025-05-09 Sergey Poznyakoff <[email protected]>
32
33 Rewrite initialization system.
34 * src/parseopt: New submodule
35 * src/Makefile.am: Add parseopt sources.
36 Distribute cfo files.
37 (init_DATA): Install cfo files.
38 (cflow.cflow): Use --profile option instead of CFLOWRC envvar.
39 (AM_CPPFLAGS): Define PKGDATADIR.
40 * src/cflow.rc: Remove.
41 * src/rc.c: Remove.
42 * init/gcc.cfo: New file.
43 * init/c11.cfo: New file.
44 * src/c.l (pp_option): Change arguments.
45 * src/cflow.h (pp_option): Change prototype.
46 * src/main.c (CHAR_TO_SM): Rewrite as inline function.
47 (arglist): Removed.
48 (options): New options: --profile, --prepend-path and -q.
49 (main): Use new option functions.
50 * tests/atlocal.in (CFLOWRC): Define to empty string.
51 (CFLOW_OPTIONS): Set to -q
52 * po/POTFILES.in: Update
53
54 * doc/cflow.texi: Document changes.
55 * NEWS: Document changes.
56
57 2025-05-07 Sergey Poznyakoff <[email protected]>
58
59 Minor changes in the docs
60
61 Minor fixes
62
63 2025-05-06 Sergey Poznyakoff <[email protected]>
64
65 Update NEWS
66
67 Update THANKS
68
69 Minor change in cflow-mode
70 * elisp/cflow-mode.el (cflow--goto-line): New function to use
71 instead of the interactive goto-line. Written as suggested in
72 the comment to the latter. All uses changed.
73
74 2025-05-05 Stefan Monnier <[email protected]>
75
76 elisp/cflow-mode.el (cflow-font-lock-keywords): Minor tweaks
77 Don't rely on `\S` and `\s` which depend on syntax tables and
78 rarely do
79 what we want with newlines. More specifically, this fixes
80 mis-highlighting the whole of `NN]\nfoo_bar ()` as a function
81 because \n is matched by `\S` (because the syntax table says \n is
82 a comment-ender rather than a space).
83 Recognize `(R)` even if it's followed by `[see NNN]`.
84 Highlight the `[see NNN]` as well.
85 Change regexp which used `+-|` so that it matches those 3
86 chars rather
87 than all chars from ASCII 43 (+) to ASCII 124 (|).
88
89 2025-05-05 Stefan Monnier <[email protected]>
90
91 cflow-mode.el: Misc cleanups from compiler warnings
92 Also the use of `define-derived-mode` makes font-lock work
93 again in
94 recent Emacsen.
95
96 * elisp/cflow-mode.el: Enable `lexical-binding`.
97 Improve the "Customization" a bit.
98 (font-lock): Require in a less roundabout way.
99 (cflow-mode-syntax-table, cflow-mode-map): Move initialization
100 into
101 the declaration.
102 (cflow-find-function, cflow-recursion-root, cflow-recursion-next)
103 (cflow-goto-expand): Silence warnings about `goto-line`.
104 (cflow-recursion-next): Don't assume point-min==1.
105 Avoid warning about `next-line`.
106 (cflow-goto-sibling): Remove unused var `rx`.
107 (cflow--read-only): Rename from `cflow-read-only` to make it
108 clear it's
109 internal. Adjust all users.
110 (cflow-font-lock-keywords): Use backquote and don't use the
111 font-lock-*-face variables which are now obsolete.
112 (cflow-recursion-root-line): Declare.
113 (cflow-mode): Use `define-derived-mode`.
114 (auto-mode-alist): Add ourselves to it.
115
116 2025-05-05 Sergey Poznyakoff <[email protected]>
117
118 Bugfixes
119 * src/parser.c (yyparse): Remove extern qualifier before parsing
120 the declaration.
121 (parse_variable_declaration): Ignore optional qualifiers before
122 struct or union.
123 (dirdcl): Allow for optional parentheses around function name.
124
125 2025-01-06 Sergey Poznyakoff <[email protected]>
126
127 Update THANKS
128
129 Update rules for building online docs
130 * doc/Makefile.am: Don't use legacy texi2html
131 * doc/gendocs.sh: Update from gnulib.
132
133 Fix representation of two whitespaces in cflow.texi
134
135 Support integer size suffixes
136
137 Update copyright years
138
139 2024-09-04 Sergey Poznyakoff <[email protected]>
140
141 Update FSF address
142
143 2024-07-19 Sergey Poznyakoff <[email protected]>
144
145 Upgrade gnulib
146
147 Update copyright years
148
149 Fix possible use after free
150 * src/symbol.c (ident_change_storage): Always unlink symbol from
151 whatever list it may be in.
152
153 Bugfix
154 * src/parser.c (parse_variable_declaration): Handle } separately,
155 because expression() puts it back before returning and this is the
156 only place where it is used without nexttoken() after it.
157 * tests/Makefile.am: Add new testcase.
158 * tests/testsuite.at: Likewise.
159 * tests/corner.at: New file.
160
161 2024-03-08 Sergey Poznyakoff <[email protected]>
162
163 Allow the use of volatile and const in typedefs
164
165 2023-06-03 Sergey Poznyakoff <[email protected]>
166
167 Use autoconf 2.17 and automake 1.16.5
168
169 Bugfix
170 * src/main.c (find_option_type): Check upper length limit.
171
172 2022-01-02 Sergey Poznyakoff <[email protected]>
173
174 Update copyright year
175
176 2021-12-30 Sergey Poznyakoff <[email protected]>
177
178 Version 1.7
179
180 Fix the "no invariant" text in the documentation license
181
182 2021-12-23 Sergey Poznyakoff <[email protected]>
183
184 Fix the info direntry for cflow mode
185
186 2021-11-05 Sergey Poznyakoff <[email protected]>
187
188 Document the --target option. New option --start: alias for
189 --main.
190
191 Fix recursive call detection
192 * src/symbol.c (install): Initialize ord to -1.
193 * src/output.c (tree_output): Skip callees with ord == -1.
194
195 2021-05-07 Sergey Poznyakoff <[email protected]>
196
197 Fix incorrect assumptions about number of symbols in the symbol
198 table.
199 * src/symbol.c (collect_data): New member: count.
200 (collect_processor,collect_list_entry): Reallocate the syn
201 array as
202 needed.
203 (collect_symbols): Initialize sym to NULL and count to 0.
204
205 2021-04-05 Sergey Poznyakoff <[email protected]>
206
207 Version 1.6.92
208 * NEWS: Update.
209 * configure.ac: Version 1.6.92
210 * po/POTFILES.in: Add missing file.
211 * src/main.c (symbol_override): Detect cyclic definitions.
212
213 2021-04-04 Sergey Poznyakoff <[email protected]>
214
215 Minor fixes.
216 * configure.ac: Move wordsplit to src
217 * src/Makefile.am: Likewise.
218 * elisp/cflow-mode.el: Fix regular expressions. Character class \w
219 does not include _, which is allowed in identifiers.
220
221 cflow-mode: functions for moving to the next and previous calls
222 at the same level
223 * elisp/cflow-mode.el (cflow-next-function)
224 (cflow-prev-function): New functions.
225
226 Improve parsing of typecasts.
227 * src/cflow.rc: Mark 'typeof' as wrapper.
228 * src/parser.c (expression): Allow for wrappers and explicit
229 structures in typecasts.
230 (dcl): Don't skip token that follows the wrapper.
231 * tests/struct.at: Test for unions in typecasts.
232
233 Fix package name extraction in bootstrap
234
235 2021-04-02 Sergey Poznyakoff <[email protected]>
236
237 Document the dot output format
238
239 2021-04-01 Sergey Poznyakoff <[email protected]>
240
241 Fix node labels in dot format
242
243 New output format: dot
244 * src/dot.c: New file.
245 * src/Makefile.am: Add new file.
246 * src/cflow.h (dot_output_handler): New proto.
247 * src/main.c: Register the "dot" output format.
248
249 Minor changes
250
251 2021-04-01 Sergey Poznyakoff <[email protected]>
252
253 Revise docstrings
254 * src/main.c: Revise docstrings. Customize help output.
255 * doc/cflow.texi: Remove obsolete passage.
256 * po/POTFILES.in: Update.
257
258 * configure.ac: Version 1.6.91
259 * NEWS: Update.
260
261 2021-04-01 Sergey Poznyakoff <[email protected]>
262
263 cflow-mode: new command cflow-find-caller
264
265 2021-03-30 Sergey Poznyakoff <[email protected]>
266
267 New option: --target
268 The --target=F option instructs cflow to print only paths
269 going from
270 the starting symbol ("main") to the function F. Multiple --target
271 options are allowed.
272
273 * src/cflow.h (symbol_target): New symbol flag.
274 (symbol) <visible>: New field.
275 (output_visible): New extern.
276 (install_target,eliminate_non_targets): New protos.
277 * src/main.c: New option "--target".
278 (include_symbol): Don't include symbol if the value of its
279 "visible" field doesn't equal that of output_visible.
280 * src/output.c: Eliminate non-target paths before tree output.
281 * src/parser.c: Cut off the tree at target symbols.
282 (get_symbol): Treat symbol_target same as symbol_start.
283 * src/symbol.c (target_symbol_list): New variable.
284 (install_starter): Don't use append_symbol to avoid setting
285 the "entry" symbol field.
286 (install_target)
287 (eliminate_non_targets): New functions.
288
289 2021-03-30 Sergey Poznyakoff <[email protected]>
290
291 Fix improper use of strdup/strlen
292 * src/c.l (pp_finalize): Append \0 to obstack prior to finalizing
293 the object.
294
295 Accept multiple start symbols
296 * doc/cflow.texi: Document changes.
297 * src/cflow.h (symbol_start): New flag.
298 (install_starter,set_default_starter,clear_starters)
299 (first_starter,next_starter): New protos.
300 * src/main.c (no_main_option): New static;
301 (start_name): Remove.
302 (main): Change handling of the --main and --no-main options.
303 * src/output.c (tree_output): Iterate over all defined starter
304 symbols.
305 * src/parser.c (get_symbol): Special handling for symbol_start.
306 * src/symbol.c
307 (install_starter,set_default_starter,clear_starters)
308 (first_starter,next_starter): New functions.
309
310 Update NEWS for intermediate release
311
312 Change some option docstrings
313
314 2021-03-30 Sergey Poznyakoff <[email protected]>
315
316 Reset static caller at the end of compilation unit.
317 This fixes CVE-2019-16165, 66
318
319 * src/cflow.h (reset_static_caller): New proto.
320 * src/parser.c (reset_static_caller): New function.
321 * src/symbol.c (delete_statics): Call reset_static_caller.
322
323 2021-03-30 Sergey Poznyakoff <[email protected]>
324
325 Fix parsing of K&R style function declarations
326 * src/parser.c (get_knr_args): Take into account qualifiers.
327
328 2021-03-25 Sergey Poznyakoff <[email protected]>
329
330 Use texi2html to produce online version of the manual
331
332 2021-03-24 Sergey Poznyakoff <[email protected]>
333
334 Improve online version of the manual.
335
336 2021-01-06 Sergey Poznyakoff <[email protected]>
337
338 Update copyright years
339
340 2020-06-14 Sergey Poznyakoff <[email protected]>
341
342 Use wordsplit v1.1
343
344 2019-07-10 Sergey Poznyakoff <[email protected]>
345
346 Use wordsplit from submodule
347
348 2019-02-23 Sergey Poznyakoff <[email protected]>
349
350 Version 1.6
351
352 2019-02-10 Sergey Poznyakoff <[email protected]>
353
354 Finish implementation of --all
355 * doc/cflow.1: Document the --all --all behavior
356 * doc/cflow.texi: Likewise.
357 * src/main.c: Increment all_functions for each -A option.
358 * src/output.c (tree_output): If one --all option is used,
359 output graphs
360 for all top-level functions (i.e. functions, not reachable from
361 other ones).
362 If used twice, output graphs for all global function.
363
364 * tests/all.at: New test.
365 * tests/Makefile.am: Add new test.
366 * tests/testsuite.at: Likewise.
367
368 2019-02-10 Sergey Poznyakoff <[email protected]>
369
370 Fix processing of typedef struct and struct declarations. Fix
371 --xref mode.
372 Some constucts were processed incorrectly (see typedef.at for
373 examples).
374 Unit-local types were not displayed in xref mode.
375
376 * src/cflow.h (symbol_temp): Rename to symbol_temp. All uses
377 changed.
378 * src/output.c (tree_output): In all_functions mode: print
379 all functions
380 without explicit caller.
381 * src/parser.c (save_token): Process curly braces.
382 (fake_struct): Don't restore stack upon encountering identifier or
383 modifier. See typedef.at for testcases.
384 (parse_variable_declaration): restore stack only if type_end is -1
385 (no
386 tag encountered). See struct06 in struct.at
387 (skip_struct): Minor change.
388 * src/parser.h: Redefine token types as enum.
389 * src/symbol.c (unit_local_list): New static.
390 (static_free): Preserve unit-local symbols in unit_local_list
391 in xref
392 mode.
393 (collect_symbols): Consider symbols from unit_local_list.
394
395 * tests/Makefile.am: Add new testcases.
396 * tests/testsuite.at (CFLOW_TEST): New macro.
397 Include new testcases.
398 * tests/struct.at: New file.
399
400 * tests/typedef.at: New file.
401 * tests/struct01.at: Remove.
402 * tests/struct02.at: Remove.
403 * tests/struct03.at: Remove.
404 * tests/struct04.at: Remove.
405
406 * .gitignore: Update.
407
408 2019-02-09 Sergey Poznyakoff <[email protected]>
409
410 Minor change
411 * src/output.c (tree_output): Make sure the main subtree is never
412 output twice.
413 * src/wordsplit.c: Update from grecs.
414 * src/wordsplit.h: Likewise.
415
416 2019-02-08 Sergey Poznyakoff <[email protected]>
417
418 Fix the documentation
419
420 Fix https://savannah.gnu.org/bugs/index.php?47110
421 * src/parser.c (expression): Fix parsing of type casts.
422 * tests/memberof.at: New test case.
423 * tests/testsuite.at: Add new test.
424 * tests/Makefile.am: Add new test.
425
426 Fix typo
427
428 Include in output functions that don't call other functions
429 * src/output.c (tree_output): When outputting all graphs, skip
430 only functions that have no source file information.
431 * src/parser.c (declare): Don't install symbols with empty
432 declarations.
433
434 Upgrade gnulib
435
436 Update copyright statements
437
438 New options: --all and --no-main
439 * NEWS: Document --all and --no-main
440 * configure.ac: Version 1.5.90
441 * doc/cflow.texi: Document --all and --no-main
442 * src/cflow.h (all_functions): New extern.
443 * src/main.c: New options: -A (--all) and --no-main
444 * src/output.c (tree_output): Output all graphs if
445 all_functions is set or no main function is defined.
446
447 2019-01-22 Sergey Poznyakoff <[email protected]>
448
449 Bugfix
450 * src/main.c (main): Make sure preprocessor options are collected
451 before parsing source files.
452
453 2017-01-02 Sergey Poznyakoff <[email protected]>
454
455 Happy GNU Year
456
457 2016-11-14 Sergey Poznyakoff <[email protected]>
458
459 Include static symbols as root points in inverted graphs.
460 * src/cflow.h (linked_list_size): New function.
461 * src/linked-list.c (linked_list_size): New function.
462 * src/symbol.c (collect_symbols): Include static symbols,
463 if allowed by sel.
464 * src/main.c (parse_opt): Exclude static symbols for --xref
465
466 2016-11-11 Sergey Poznyakoff <[email protected]>
467
468 Bugfix
469 * src/parser.c (tokdel): Fix amount of memory to move.
470 * THANKS: Niklas Angebrand
471
472 2016-05-17 Sergey Poznyakoff <[email protected]>
473
474 Version 1.5
475 * NEWS: Version 1.5
476 * configure.ac: Likewise.
477 * src/main.c (parse_opt): Bugfix.
478 * src/parser.c: Include ctype.h.
479 * src/symbol.c (hash_symbol_hasher): Fix signature.
480
481 2016-03-22 Sergey Poznyakoff <[email protected]>
482
483 Fix flowchart-generation rule in Makefile and in docs
484 Don't use $@ in explicit rules.
485
486 Update copyright years
487
488 2016-03-22 Sergey Poznyakoff <[email protected]>
489
490 Properly handle invalid input
491 See https://savannah.gnu.org/bugs/?44113
492
493 * src/parser.c (cleanup_stack): Ignore negative deltas.
494 (parse_function_declaration): Don't set caller if the symbol
495 is in automatic storage. Note: that means nested function
496 definitions
497 can't be handled.
498 * tests/invalid.at: New test case.
499 * tests/Makefile.am: Add new test case.
500 * tests/testsuite.at: Likewise.
501
502 2016-03-04 Sergey Poznyakoff <[email protected]>
503
504 Fix handling of such declarations as "struct x *a, *b";
505 * src/parser.c (fake_struct)
506 (parse_variable_declaration): Correctly determine end of type.
507 * tests/decl01.at: New test case.
508 * tests/Makefile.am: Add new test.
509 * tests/testsuite.at (CFLOW_CHECK_PROG): Don't add extra newline
510 at the end of expout. All uses updated.
511
512 2015-03-02 Sergey Poznyakoff <[email protected]>
513
514 Switch to Texinfo 5 and Imprimatur
515 * .gitmodules: Add imprimatur as a submodule.
516 * Makefile.am: Update ACLOCAL_AMFLAGS
517 * configure.ac: Initialize imprimatur
518 * doc/Makefile.am: Likewise.
519 * doc/gendocs.sh: New file.
520 * doc/rendition.texi: Remove.
521
522 Update copyright years
523
524 2014-02-27 Sergey Poznyakoff <[email protected]>
525
526 Version 1.4.90
527
528 2014-02-08 Sergey Poznyakoff <[email protected]>
529
530 Fix bootstrap
531
532 2014-02-07 Sergey Poznyakoff <[email protected]>
533
534 Use exit codes consistently.
535 * doc/cflow.1: Document exit codes.
536 * doc/cflow.texi: Likewise.
537 * src/cflow.h: Define exit code constants.
538 * src/main.c: Use exit codes consistently.
539 * src/output.c: Likewise.
540 * src/parser.c: Likewise.
541 * src/posix.c: Likewise.
542 * src/rc.c: Likewise.
543
544 Use wordsplit.[ch] (from grecs) instead of the obsolete argcv.[ch]
545
546 Update copyright statements. Remove 'Front-Cover' clause from
547 cflow.texi
548
549 Output debugging info to stderr instead of stdout.
550
551 Add a manpage.
552
553 2014-02-07 Sergey Poznyakoff <[email protected]>
554
555 Correctly handle functions returning struct/union
556 This fixes bug #31792.
557
558 * bootstrap (gnulib_extra_files): Remove "missing"
559 * gnulib: Upgrade
560 * gnulib.modules: Add xalloc.
561 * src/Makefile.am: Use AM_CPPFLAGS instead of INCLUDES.
562 * src/parser.c (token_type_str)
563 (dbgtok,debugtoken): New diagnostic functions.
564 (tokdel,tokins): New functions.
565 (nexttoken): Clear yylval.str. Print token stack state.
566 (putback): Copy all data to tok. Print token stack state.
567 (file_error,restore
568 (is_function): Hanlde struct, union and enum: all these can
569 appear in the return type specification.
570 (fake_struct): Don't destroy token stack. Use tokdel and tokins
571 to modify it.
572 (parse_variable_declaration): Likewise.
573
574 * tests/Makefile.am: Add new testcases.
575 * tests/testsuite.at: Likewise.
576 * tests/struct02.at: New file.
577 * tests/struct03.at: New file.
578 * tests/struct04.at: New file.
579
580 2011-10-11 Sergey Poznyakoff <[email protected]>
581
582 Final cleanup before the release.
583 * NEWS: Update.
584 * README: Update.
585 * doc/cflow.texi: Update.
586 * src/main.c (symbol_override): pass allocated argument to
587 install.
588 * src/parser.c (yyparse): Return 0.
589
590 Minor fix.
591 * src/parser.c (dcl): allow for qualifier wherever a modifier
592 is allowed.
593
594 Change to double-space sentence spacing in cflow.texi.
595
596 Improve the docs.
597 * doc/cflow.texi: Document symbol classes and aliases.
598 * src/cflow.rc: Minor change.
599 * src/main.c: Mention aliasing feature in the docstring for
600 --symbol.
601
602 Update NEWS.
603
604 2011-10-10 Sergey Poznyakoff <[email protected]>
605
606 Improve parser. Allow users to declare aliases to other symbols.
607 The latter feature is useful for declaring reserved symbols such
608 as __restrict or __inline, e.g. --symbol __restrict:=restrict
609 instructs cflow to treat `__restrict' exactly as `restrict'.
610
611 * src/Makefile.am: Minor fix in rule for flowgraph.
612 * src/c.l (init_tokens): New function, separated from
613 init_lex.
614 Install qualifiers.
615 * src/cflow.h (symbol_alias): New flag.
616 (symbol)<alias>: New member.
617 (INSTALL_DEFAULT,INSTALL_OVERWRITE)
618 (INSTALL_CHECK_LOCAL,INSTALL_UNIT_LOCAL): New defines.
619 * src/cflow.rc: Rewrite for use with --cpp='gcc -E'
620 * src/main.c (symbol_override): Extend syntax to allow for
621 defining
622 aliases to other tokens (--symbol __inline:=inline).
623 * src/parser.c (print_token): print qualifiers and ops.
624 (file_error): Change signature. All uses changed.
625 (save_token): Improve output spacing.
626 (skip_balanced): Treat LBRACE0 and RBRACE0 as { and }.
627 (is_function): allow for qualifiers and wrappers before
628 defintion.
629 (parse_function_declaration): Remove PARM_WRAPPER case: it
630 is taken care of by the caller.
631 (fake_struct): leave when '(' is encountered.
632 (parse_variable_declaration): Allow for qualifiers before
633 the identifier.
634 (skip_struct): Use skip_balanced.
635 (dcl): Handle wrappers. Leave if a semicolon is encountered.
636 (dirdcl): Optimize handing of wrapper.
637 (maybe_parm_list): Handle qualifiers.
638 (declare): allow for wrappers.
639 (declare_type): Pass INSTALL_UNIT_LOCAL as a flag to install.
640 * src/symbol.c (lookup): Argument is const now.
641 (install): Change semantics of the 2nd argument.
642 (install_ident): Change the call to install accordingly.
643 * tests/nfparg.at: Change spacing to reflect changes to
644 save_token.
645
646 2011-10-10 Sergey Poznyakoff <[email protected]>
647
648 Improve local symbol detection.
649 * src/cflow.h (install): Change prototype.
650 * src/parser.c (skip_balanced): Don't put extra token back.
651 * src/symbol.c (install): Take two arguments, the 2nd one
652 specifying whether the symbol can be local to the compilation
653 unit. All uses updated.
654 (delete_symbol): Don't delete symbol in reverse tree mode, if
655 its callee list is not empty.
656
657 Complement a43d8894.
658 * src/parser.c (save_token): Hanlde [ and ]. Do not enforce
659 space after ).
660 * tests/fdecl.at: Reflect changes in spacing.
661 * tests/knr.at: Likewise.
662 * tests/multi.at: Likewise.
663 * tests/pwrapper.at: Likewise.
664 * tests/struct00.at: Likewise.
665 * tests/struct01.at: Likewise.
666
667 2011-10-09 Sergey Poznyakoff <[email protected]>
668
669 Accept qualifiers before declarations.
670 * src/c.l: Handle "inline" keyword.
671 * src/main.c (symbol_optype): Add "qualifier".
672 * src/parser.c (print_token): Correctly handle
673 PARM_WRAPPER and STRING.
674 (save_token): Handle QUALIFIER.
675 In verbose mode, warn about unexpected symbols.
676 (yyparse): Handle QUALIFIER and PARM_WRAPPER.
677 * src/parser.h (QUALIFIER): New define.
678
679 2011-10-09 Sergey Poznyakoff <[email protected]>
680
681 Allow for wrappers following the structure definition.
682 * src/c.l (get_token): do not call yylex if previous call returned
683 EOF.
684 (source): Clear EOF indicator.
685 * src/linked-list.c: Placate gcc warnings.
686 * src/output.c: Likewise.
687 * src/parser.c (skip_balanced): New function.
688 (skip_struct): Allow for a wrapper after closing brace.
689
690 * tests/struct00.at: New testcase.
691 * tests/struct01.at: New testcase.
692 * tests/Makefile.am: Add new testcases.
693 * tests/testsuite.at: Likewise.
694
695 * NEWS, configure.ac: Set version 1.4
696 * THANKS: Update.
697
698 2011-10-08 Sergey Poznyakoff <[email protected]>
699
700 Bugfix
701 * src/parser.c (func_body): Reset caller when the topmost block
702 is closed.
703
704 2011-08-18 Shigio YAMAGUCHI <[email protected]>
705
706 Fix the output of branch marks in tree mode.
707 * src/output.c (direct_tree)
708 (inverted_tree): Use is_last instead of is_printable to decide
709 what mark to use for the line.
710 * tests/bartest.at: New testcase.
711 * tests/Makefile.am: Add bartest.at
712 * tests/testsuite.at: Include bartest.at
713
714 2010-01-02 Sergey Poznyakoff <[email protected]>
715
716 Update copyright years.
717 Happy GNU Year!
718
719 2009-11-09 Sergey Poznyakoff <[email protected]>
720
721 Minor changes
722 * bootstrap.conf: Ignore .bootstrap.
723
724 Housekeeping changes.
725 * .gitmodules: Make gnulib a submodule.
726 * Makefile.am (SUBDIRS): Rename `lib' to `gnu'.
727 * configure.ac: Likewise.
728 * README-hacking: Update
729 * bootstrap, bootstrap.conf: Update.
730 * gnulib.modules: Remove `malloc'.
731 * lib/Makefile.am: Remove.
732 * lib/argcv.c, lib/argcv.h: Move to src.
733 * po/POTFILES.in, src/Makefile.am: Reflect the above changes.
734 * src/parser.c (declare): Improve diagnostic messages.
735
736 Raise version number to 1.3.1.
737 * configure.ac, NEWS: Raise patchlevel number.
738 * Makefile.am (alpha, alphacheck): New rules.
739
740 Speed-up recursive call detection.
741 * src/depmap.c: New file.
742 * src/Makefile.am: Add depmap.c.
743 * src/cflow.h (struct symbol.ord): New member.
744 (collect_symbols): Change signature. All callers
745 updated.
746 (collect_functions): New proto.
747 (symbol_is_function): New proto.
748 (cflow_depmap_t): New data type.
749 (depmap_alloc, depmap_set)
750 (depmap_isset, depmap_tc): New prototypes.
751 * src/output.c (symbol_is_function): New function.
752 (scan_tree): Remove.
753 (tree_output): Use depmap to find out recursive calls.
754 * src/symbol.c (static_func_list): New list.
755 (static_free): Add static functions to static_func_list.
756 (collect_symbols): Return size_t. Take additional number
757 of slots in the 3rd argument.
758 (collect_functions): New function.
759
760 Fix parsing of typedefs after `struct'.
761 * src/c.l: Include cflow.h (and, consequently, config.h) at
762 the top
763 of the generated source.
764 (prev_token): New static.
765 (get_token): Set prev_token.
766 (ident): Treat any valid identifier after struct/union/enum
767 as identifier (do not attempt any symbol lookup).
768
769 2009-07-11 Sergey Poznyakoff <[email protected]>
770
771 Version 1.3
772
773 2009-07-01 Sergey Poznyakoff <[email protected]>
774
775 Bugfix.
776 * src/parser.c (parse_variable_declaration): Skip eventual
777 modifiers
778 before the ident.
779
780 2009-06-29 Sergey Poznyakoff <[email protected]>
781
782 Use doubly-linked lists to keep statics and autos.
783 * src/Makefile.am (cflow_SOURCES): Order sources.
784 * src/cflow.h (struct linked_list_entry): Add new member: list.
785 (struct symbol): New members: owner, entry
786 (install_ident, ident_change_storage): New prototypes.
787 (linked_list_iterate, linked_list_unlink)
788 (data_in_list): New prototypes.
789 * src/linked-list.c (linked_list_append)
790 (linked_list_iterate): Update for doubly-linked lists.
791 (linked_list_unlink): New function.
792 (linked_list_prepend): Comment out: not used this far.
793 * src/parser.c: Use install_ident and ident_change_storage.
794 * src/symbol.c: Keep information about automatic
795 variables/parameters (on a per-function basis) and static
796 identifiers (on a per-module basis) in two separate linked
797 lists. This speeds up cleanup procedures.
798
799 2009-06-28 Sergey Poznyakoff <[email protected]>
800
801 Provide a general-purpose type for singly-linked list.
802 * src/cflow.h (Cons, Consptr, CAR, CDR): Remove
803 (struct linked_list_entry): New type.
804 (struct linked_list): New type.
805 (linked_list_free_data_fp): New typedef.
806 (struct symbol): Change types of ref_line, callee and caller
807 to struct linked_list. All usages changed.
808 (linked_list_head): New define.
809 (linked_list_create, linked_list_destroy)
810 (linked_list_append, linked_list_prepend): New prototypes.
811 (cleanup, append_to_list): Remove
812 * src/main.c (arglist): Change type to struct linked_list
813 * src/output.c, src/parser.c, src/symbol.c: Use new
814 linked list functions.
815
816 Minor changes.
817 * Makefile.am: Improve ChangeLog rule
818 * configure.ac: Remove AH_BOTTOM
819 * gnulib.modules: Add argp-version-etc, progname.
820 Remove version-etc.
821 * src/main.c: Use argp-version-etc
822
823 2009-06-28 Naohiro Ooiwa <[email protected]>
824
825 Fix coredump (tiny change)
826 * src/main.c (symbol_override): Fix conditional logic to prevent
827 coredump on invalid usage. Require that the argument always have
828 ':' in it.
829
830 2009-02-06 Sergey Poznyakoff <[email protected]>
831
832 Update docs
833
834 Switch to git
835
836 2007-06-29 Sergey Poznyakoff <[email protected]>
837
838 Final update for GPLv3
839
840 2007-06-28 Sergey Poznyakoff <[email protected]>
841
842 * build-aux/bootstrap: Reflect the change of the TP URL
843
844 2007-06-27 Sergey Poznyakoff <[email protected]>
845
846 Relicense under GPLv3
847
848 2007-05-18 Sergey Poznyakoff <[email protected]>
849
850 * src/main.c: Remove --license option
851
852 * build-aux/gnulib.modules: Add version-etc
853 * src/main.c, doc/cflow.texi: Remove --license option
854 * tests/version.at: Update
855
856 * bootstrap.conf: New file
857 * build-aux/bootstrap: Replaced from the gnulib CVS
858 * configure.ac: Update
859 * po/Makevars: Remove automatically generated file
860 * src/main.c: Remove #include <strndup.h>
861 * po/da.po, po/pl.po, po/uk.po, po/vi.po: Removed. Translations
862 will be imported directly from TP.
863 * lib/Makefile.am: New file
864 * lib/Makefile.tmpl: Removed
865 * README-hacking: New file
866
867 2006-09-11 Sergey Poznyakoff <[email protected]>
868
869 * src/main.c (doc): Reformat argp docstring in accordance with the
870 new argp guidelines. Remove unneeded translators comment.
871 (main): Set program_name.
872
873 2006-09-10 Sergey Poznyakoff <[email protected]>
874
875 * configure.ac: Remove definition of
876 HAVE_DECL_PROGRAM_INVOCATION_NAME and
877 PROGRAM_INVOCATION_NAME_DECLARED.
878 Temporarly add AM_MKINSTALLDIRS
879 * build-aux/bootstrap: Minor fixes
880 * lib/Makefile.tmpl: Define AM_CPPFLAGS
881 (EXTRA_DIST): Remove pin.c
882 * lib/pin.c: Remove
883
884 2006-09-07 Sergey Poznyakoff <[email protected]>
885
886 * src/parser.c (declare, parse_dcl, parse_knr_dcl): Fix parsing of
887 K&R declarations, broken by modifications on 2005-09-21.
888
889 * tests/knr.at: New test case
890 * tests/Makefile.am: Add new testcase
891 * tests/testsuite.at: Likewise
892
893 * THANKS: Add Laurent and Robert E. Michael
894
895 2006-09-06 Sergey Poznyakoff <[email protected]>
896
897 * src/symbol.c (delete_symbol): Do not free referenced symbols.
898 * tests/static.at: New testcase
899 * tests/Makefile.am: Add new testcase
900 * tests/testsuite.at: Likewise
901
902 2006-07-21 Sergey Poznyakoff <[email protected]>
903
904 * build-aux/bootstrap (update_po): Fix updating a single
905 translation.
906
907 2006-07-09 Sergey Poznyakoff <[email protected]>
908
909 Released version 1.1.
910 Tag: release-1_1
911
912 * THANKS: Add Louis Bertrand.
913
914 2006-06-12 Sergey Poznyakoff <[email protected]>
915
916 * src/output.c (set_level_mark): Fix allocation condition
917 (output): Remove erroneous initialization of level_mark.
918
919 2006-03-15 Sergey Poznyakoff <[email protected]>
920
921 Fix bug spotted by Jerry St.Clair: incorrect handling of
922 global/static and static/static name clashes.
923
924 * src/parser.c (declare): Do not report name clashes
925 if a static symbol overrides another static or global.
926 (add_reference): Do not refer to static symbols if
927 -i^s was used.
928 * src/symbol.c: Change organization of the symbol table: the
929 table entry contains struct table_entry, which contains a pointer
930 to the head of the symbol list associated with the entry. Thus,
931 deletions from the table can be handled in a more natural manner.
932 All functions changed to reflect the change.
933 (unlink_symbol): New function.
934 (delete_symbol): Rewritten using unlink_symbol
935 (delete_statics): always call static_processor
936 * THANKS: Add Jerry St.Clair.
937 * tests/Makefile.am: Add hiding.at, multi.at
938 * tests/testsuite.at: Likewise.
939 * tests/hiding.at: New testcase
940 * tests/multi.at: New testcase
941 * tests/fdecl.at, tests/funcarg.at, tests/include.at,
942 tests/nfarg.at, tests/nfparg.at, tests/parm.at,
943 tests/ssblock.at: Uniformly begin AT_SETUP text with a lowercase
944 letter.
945
946 2005-11-03 Sergey Poznyakoff <[email protected]>
947
948 * build-aux/bootstrap: If file `.bootstrap' exists in the cwd and is
949 readable, prepend its contents to the command line
950 * src/parser.c (dcl): Fix bug introduced 2005-03-22
951 * tests/nfarg.at: New test.
952 * tests/nfparg.at: New test.
953 * tests/Makefile.am: Add new tests.
954 * tests/testsuite.at: Likewise
955
956 * configure.ac: Raise version number to 1.1
957 * NEWS: Likewise
958 * THANKS: Add Shigio YAMAGUCHI.
959
960 2005-10-19 Sergey Poznyakoff <[email protected]>
961
962 * README: Minor fixes.
963 * build-aux/gnulib.modules (snprintf): Add module
964
965 2005-10-15 Sergey Poznyakoff <[email protected]>
966
967 * THANKS: Add Nelson Beebe.
968 * tests/atlocal.in: Make sure unsetting POSIXLY_CORRECT does not
969 produce an error.
970 * tests/version.at: Fix displaying version warning
971
972 * po/pl.po,po/uk.po: Updated translations.
973
974 2005-10-05 Sergey Poznyakoff <[email protected]>
975
976 * src/cflow.h,src/main.c,src/parser.c,src/posix.c
977 (omit_symbol_name_option): Rename to omit_symbol_names_option.
978
979 * src/cflow.h (newline): New prototype
980 * src/parser.c: Minor fixes
981 * src/symbol.c: Minor fixes
982
983 * doc/cflow.texi: Updated. Mention cflow2vcg and vcg tools.
984 * src/cflow.h (enum symbol_flag): New type
985 (struct symbol): Replace `int temp' with `enum symbol_flag flag'
986 (delete_parms,move_parms): New functions
987 * src/main.c: Rename --omit-symbol-name to --omit-symbol-name for
988 consistency.
989 * src/parser.c: Fix handling of function formal parameters:
990 (parm_level): New variable
991 (parse_declaration): Call delete_parms
992 (maybe_parm_list): Keep track of the parameter nesting level.
993 (func_body): Call move_parms
994 (declare): Special handling for parameters.
995 * src/symbol.c (install): Initialize sym->flag
996 (temp_processor): Use s->flag
997 (delete_parms,move_parms): New functions
998
999 * tests/parm.at: New testcase
1000 * tests/Makefile.am: Add parm.at
1001 * tests/testsuite.at: Likewise
1002
1003 2005-10-04 Sergey Poznyakoff <[email protected]>
1004
1005 * doc/cflow.texi: Fix posix output
1006 * src/parser.c (parse_struct): Removed function
1007 * src/cflow.h (omit_arguments_option,omit_symbol_name): New
1008 options.
1009 * src/main.c: Likewise.
1010 * src/parser.c (save_stack): Rewritten. Save only stack positions,
1011 do not create character string
1012 (undo_save_stack,finish_save_stack): New functions
1013 (finish_save): Removed
1014 * src/posix.c (print_symbol_type): Updated to match new
1015 finish_save_stack strategy.
1016
1017 2005-10-03 Sergey Poznyakoff <[email protected]>
1018
1019 * configure.ac: Raised version number to 1.0.
1020 Set RENDITION level depending on the program version.
1021 Make sure HAVE_DECL_PROGRAM_INVOCATION_NAME is 1.
1022 * NEWS: Updated
1023 * doc/Makefile.am (RENDITION): Removed assignment.
1024 * doc/cflow.texi: Fix typo
1025 * doc/d.c, doc/wc.c: Untabify
1026 * src/Makefile.am (cflow_LDADD): Add $(LIBINTL)
1027 * src/main.c ("print" option): Set hidden attribute. I'm not sure
1028 whether we need this option.
1029 Include strndup.h
1030 * src/parser.c (parse_function_declaration): Fix ANSI compatibility
1031
1032 * lib/argcv.c (argcv_unquote_copy): Minor fix.
1033
1034 * src/Makefile.am (cflow_CFLOW_INPUT): Use @OBJEXT@ instead of
1035 $(OBJEXT) to satisfy non-GNU makes.
1036
1037 2005-09-27 Sergey Poznyakoff <[email protected]>
1038
1039 * configure.ac: Raised version number to 0.2.3
1040 * NEWS: Updated
1041 * doc/cflow.texi: Updated.
1042 * po/pl.po: Updated
1043 * po/uk.po: Updated
1044 * src/main.c: Updated
1045 * src/parser.c (parse_function_declaration): Fix coredump
1046
1047 2005-09-26 Sergey Poznyakoff <[email protected]>
1048
1049 * doc/cflow.texi: Updated
1050 * po/pl.po: Updated
1051 * po/uk.po: Updated
1052 * src/main.c: Updated
1053 * src/parser.c: Updated
1054
1055 * doc/gendocs_template: Bugfixes.
1056 * src/main.c: Use --no-OPTION instead of --OPTION=no
1057 * doc/cflow.texi: Likewise
1058
1059 2005-09-25 Sergey Poznyakoff <[email protected]>
1060
1061 * doc/Makefile.am (EXTRA_DIST): Remove cflow.txt
1062 * src/c.l (yywrap): Close yyin, and clean up the buffer
1063 (get_token): New function. Interface to yylex.
1064 * src/cflow.h (get_token): New function
1065 * src/parser.c (parse_function_declaration): Take second argument,
1066 specifying whether the function is called from parameter
1067 declaration. All callers updated.
1068 (nexttoken): Use get_token() instead of yylex();
1069 (yyparse,func_body): Eat up static qualifier
1070 * tests/ssblock.at, tests/funcarg.at: New testcases
1071 * tests/Makefile.am: Add ssblock.at and funcarg.at
1072 * tests/testsuite.at: Likewise
1073
1074 * README: Updated
1075 * TODO: Updated
1076 * doc/cflow.txt: Removed
1077
1078 * doc/cflow.texi: Finished! Some @FIXMEs left, though.
1079 * elisp/cflow-mode.el (cflow-find-function): Change binding to
1080 @key{s}, for compatibility with po-mode.
1081 * src/Makefile.am (CFLOW_FLAGS): Use --brief
1082 * src/cflow.h (emacs_option): New variable
1083 * src/gnu.c: Handle new --emacs option.
1084 * src/main.c: Likewise.
1085 * src/posix.c: Likewise.
1086 * src/output.c (newline): Remove static qualifier
1087
1088 * doc/foo.c: New sample source
1089 * doc/Makefile.am: Add foo.c
1090 * doc/cflow.texi: Updated
1091 * doc/wc.c: Minor formatting changes
1092 * src/Makefile.am (chart.cflow): Renamed to cflow.cflow and
1093 rewritten in accordance with the cflow manual guidelines.
1094 * src/main.c: Minor changes.
1095
1096 2005-09-24 Sergey Poznyakoff <[email protected]>
1097
1098 * doc/cflow.texi: Updated
1099 * doc/d.c: Rewritten to better suite sample purposes.
1100 * src/Makefile.am (chart.cflow): Modified rule
1101 * src/cflow.h (CFLOW_PREPROC): Changed default preprocessor to
1102 /usr/bin/cpp.
1103
1104 2005-09-21 Sergey Poznyakoff <[email protected]>
1105
1106 * src/c.l (types): Add "restrict".
1107 * src/cflow.rc: Define __const and __restrict as 'type'
1108 * src/main.c (excluded_symbols,included_symbols): Removed
1109 (symbol_map): New variable, instead of the previous two. All
1110 references updated.
1111 (symbol_override): Minor fix.
1112 (parse_opt): Allow to use +,- and ^ in any part of the argument
1113 string.
1114 (included_char): Removed
1115 * src/parser.c (parse_variable_declaration)
1116 (parse_variable_declaration): Take an
1117 extra argument indicating whether we are handling function
1118 parameters. All uses changed.
1119 (parse_variable_declaration,maybe_parm_list): Add error recovery.
1120 (func_body): Handle static symbols separately.
1121 (declare): Fix condition of declaring a function definition.
1122 (reference): Update caller list as well.
1123 * src/symbol.c (auto_processor): Delete only auto variables.
1124
1125 * tests/fdecl.at: New testcase
1126 * tests/include.at: New testcase
1127 * tests/attr.at: Fix to match new program diagnostics
1128 * tests/Makefile.am: Add fdecl.at and include.at
1129 * tests/testsuite.at: Likewise
1130
1131 2005-09-19 Sergey Poznyakoff <[email protected]>
1132
1133 * doc/cflow.texi: Updated
1134 * src/c.l: Support BCPL style comments
1135 * src/parser.c (parse_function_declaration): Put token back after
1136 an error.
1137 (dirdcl): Handle wrappers after function declarations. Useful for
1138 handling __attribute__.
1139 (maybe_parm_list): Fixed counting of parameters. Print error
1140 message on eof.
1141 * tests/Makefile.am (TESTSUITE_AT): Add
1142 attr.at,awrapper.at,pwrapper.at
1143 * tests/testsuite.at: Rename CFLOW_ENV to CFLOW_OPT
1144 Add attr.at,awrapper.at,pwrapper.at
1145 * tests/reverse.at: Rename CFLOW_ENV to CFLOW_OPT
1146 * tests/attr.at: New test
1147 * tests/awrapper.at: New test
1148 * tests/pwrapper.at: New test
1149
1150 2005-09-18 Sergey Poznyakoff <[email protected]>
1151
1152 * doc/ack.c: New sample source
1153 * doc/Makefile.am (EXTRA_DIST): Add ack.c
1154 * doc/cflow.texi: Updated
1155 * src/output.c (print_level): Use 5 digits of reference number
1156 width.
1157
1158 2005-09-17 Sergey Poznyakoff <[email protected]>
1159
1160 * doc/whoami.c: New sample program
1161 * doc/Makefile.am (EXTRA_DIST): Add whoami.c
1162 * doc/cflow.texi: Updated
1163 * src/main.c (main): Assume POSIX output format if POSIXLY_CORRECT
1164 is set.
1165 * tests/atlocal.in: Unset POSIXLY_CORRECT
1166
1167 2005-09-14 Sergey Poznyakoff <[email protected]>
1168
1169 * src/main.c (parse_opt): Bugfix: Set preprocess_option if --cpp
1170 is given.
1171
1172 * tests/version.at: Add keywords
1173 * tests/direct.at: New test
1174 * tests/reverse.at: New test
1175 * tests/recurse.at: New test
1176 * tests/testsuite.at (CFLOW_CHECK_PROG,CFLOW_CHECK,CFLOW_ENV): New
1177 macros.
1178 (direct.at,reverse.at,recurse.at): New tests
1179 * tests/Makefile.am: Added new tests
1180 * tests/atlocal.in: Make sure CFLOW_OPTIONS and CFLOWRC are
1181 initialized to predictable values
1182
1183 * NEWS: Updated
1184 * src/main.c (include_symbol): Ignore keywords.
1185
1186 * Makefile.am: Set up for testsuite
1187 * configure.ac: Likewise
1188
1189 * tests/: New directory
1190 * tests/Makefile.am: New file
1191 * tests/atlocal.in: New file
1192 * tests/testsuite.at: New file
1193 * tests/version.at: New file
1194 * tests/.cvsignore: New file
1195
1196 * src/main.c (main): Fixed coredump when no arguments were
1197 passed.
1198
1199 2005-09-14 Sergey Poznyakoff <[email protected]>
1200
1201 * doc/wc.c: New file. Test program for explanation purposes.
1202 * doc/Makefile.am (EXTRA_DIST): Add wc.c
1203 * doc/cflow.texi: Update bug reporting address.
1204
1205 2005-08-16 Sergey Poznyakoff <[email protected]>
1206
1207 * src/c.l (yywrap,source): Use preprocess_option to determine
1208 whether preprocessing is needed.
1209 * src/cflow.h (preprocess_option): New variable
1210 * src/main.c: Likewise
1211 * src/parser.c (parse_dcl): Finalize and free declaration buffer
1212 even if declare is not called.
1213
1214 2005-08-06 Sergey Poznyakoff <[email protected]>
1215
1216 * src/cflow.h (cflow_output_init): New value
1217 (output_init): New function
1218 * src/gnu.c (gnu_output_handler): Handle cflow_output_init
1219 * src/main.c: Number of i18n-related fixes.
1220 (parse_opt): Call output_init
1221 * src/output.c (output_init): New function
1222 * src/parser.c: Number of i18n-related fixes.
1223 * src/posix.c (posix_output_handler): Handle cflow_output_init
1224
1225 * po/POTFILES.in: Add lib/argp-help.c
1226 * po/LINGUAS: Add pl and uk
1227 * po/pl.po
1228 * po/uk.po
1229
1230 2005-07-09 Sergey Poznyakoff <[email protected]>
1231
1232 * lib/argcv.c: Updated from mailutils
1233 * lib/argcv.h: Likewise
1234 * src/c.l (input_file_count): New variable
1235 * src/cflow.h: Likewise
1236 * src/cflow.rc: Updated
1237 * src/main.c (main): Use input_file_count to decide whether to
1238 print "no input files" diagnostics.
1239 * src/rc.c (sourcerc): Bug fix
1240
1241 * README-alpha: Minor fix
1242 * configure.ac: Make sure program_invocation_name and
1243 program_invocation_short_name are always present. Define
1244 program_name as an alias for the former (needed for lib/error.c).
1245 * lib/pin.c: New file
1246 * lib/Makefile.tmpl (EXTRA_DIST): Add pin.c
1247
1248 2005-05-18 Sergey Poznyakoff <[email protected]>
1249
1250 * COPYING, Makefile.am, configure.ac, doc/Makefile.am,
1251 doc/cflow.texi, doc/fdl.texi, doc/gendocs_template,
1252 elisp/Makefile.am, elisp/cflow-mode.el, lib/Makefile.tmpl,
1253 lib/argcv.c, lib/argcv.h, src/Makefile.am, src/c.l,
1254 src/cflow.h, src/gnu.c, src/main.c, src/output.c,
1255 src/parser.c, src/parser.h, src/posix.c, src/rc.c,
1256 src/symbol.c: Changed FSF postal address
1257
1258 2005-04-22 Sergey Poznyakoff <[email protected]>
1259
1260 * Makefile.am (SUBDIRS): Add po/
1261 * configure.ac (AC_CONFIG_FILES): Add po/Makefile.in.
1262 * build-aux/bootstrap: Take into account autopoint
1263 * build-aux/gnulib.modules (gettext): New module
1264 * src/Makefile.am (AM_CPPFLAGS): New variable
1265
1266 * src/c.l: Add gettext markers
1267 * src/cflow.h: Likewise
1268 * src/main.c: Likewise
1269 * src/output.c: Likewise
1270 * src/parser.c: Likewise
1271 * src/rc.c: Likewise
1272 * src/symbol.c: Likewise
1273
1274 * .cvsignore: New file
1275 * po/.cvsignore: New file
1276 * build-aux/.cvsignore: Updated
1277 * po/Makevars: New file
1278 * po/POTFILES.in: New file
1279
1280 2005-04-22 Sergey Poznyakoff <[email protected]>
1281
1282 cflow dubbed a GNU package and moved to savannah.
1283
1284 * README-alpha (Checking Out the Sources): Updated the
1285 instructions.
1286 * README: Minor fix.
1287 * configure.ac: Changed bug report address.
1288
1289 2005-03-22 Sergey Poznyakoff <[email protected]>
1290
1291 * lib/argcv.c: Imported from mailutils
1292 * lib/argcv.h: Imported from mailutils
1293 * lib/Makefile.tmpl: Added argcv
1294 * src/cflow.rc: New file
1295 * src/Makefile.am: Distribute cflow.rc
1296 (chart.cflow): New rule
1297 * src/c.l (CFLOW_PREPROC): Moved to cflow.h
1298 (set_preprocessor): Accept NULL arg
1299 * src/cflow.h (CFLOW_PREPROC): New define
1300 (set_preprocessor,pp_option,print_level): New prototypes
1301 (level_mark): Type changed to unsigned char.
1302 * src/main.c (ignore_indentation): Renamed to use_indentation,
1303 sense reverted. All callers updated
1304 New options: --cpp, alias to --preprocess.
1305 --no-cpp, disables preprocessing
1306 * src/output.c (level_mark): Type changed to unsigned char.
1307
1308 * src/rc.c: Rewritten using argcv
1309 * src/parser.c (ignore_indentation): Renamed to use_indentation,
1310 sense reverted. All callers updated
1311
1312 2005-03-22 Sergey Poznyakoff <[email protected]>
1313
1314 * TODO: Updated
1315 * src/c.l (canonical_filename): New global
1316 (update_loc): New function
1317 (source): Invoke preprocessor if necessary
1318 (yywrap): Stop preprocessor if necessary
1319 * src/cflow.h (struct symbol.temp): New field
1320 * src/gnu.c (gnu_output_handler): Do not print extra newlines
1321 as separators
1322 * src/main.c: New options -I, -U, -D and --preprocess
1323 (main): Use ARGP_IN_ORDER when parsing arguments
1324 * src/parser.c (dcl): Minor fix to allow for nameless
1325 function-pointer arguments [int foo(int (*)())]
1326 * src/parser.h (canonical_filename): New global
1327 * src/symbol.c (install): Initialize sym->temp
1328 (delete_statics): Unconditionally remove temporary symbols
1329
1330 2005-03-21 Sergey Poznyakoff <[email protected]>
1331
1332 * elisp/cflow-mode.el: Font locking support
1333
1334 2005-03-21 Sergey Poznyakoff <[email protected]>
1335
1336 * README: Updated
1337 * elisp/cflow.el: Renamed to
1338 * elisp/cflow-mode.el: ... this and improved
1339 * src/c.l: Fixed line counting in <string> state
1340 * src/cflow.h (print_line_numbers): New variable
1341 * src/gnu.c (print_level): Moved to output.c
1342 (print_function_name): Do not output newline in cflow_output_text
1343 * src/main.c: Reordered functions
1344 (find_option_type): Take third argument.
1345 (symbol_override,number,parse_level_string)
1346 (set_level_indent): Operate on read-only strings
1347 (options): New option --number (-n)
1348 * src/output.c (print_level): Moved from gnu.c
1349 (print_text): New function
1350 (header): Removed
1351 (is_printable,is_last): New functions
1352 (direct_tree,inverted_tree): Fixed printing tree branches in
1353 -T mode.
1354 (tree_output): Do not print headers.
1355 * src/parser.c (declare): Changed error message.
1356 * src/posix.c (print_symbol): Call print_level();
1357 (posix_output_handler) Do not output newline in cflow_output_text
1358
1359 2005-03-20 Sergey Poznyakoff <[email protected]>
1360
1361 * src/cflow.h (GNU_STYLE_OPTIONS,SYSTEM_ERROR)
1362 (FATAL_ERROR): Removed
1363 (SymFunction): Renamed to SymIdentifier. All callers updated
1364 (struct symbol): Removed union, rearranged fields. All callers
1365 updated
1366 Implemented -ix
1367
1368 * src/c.l: Likewise
1369 * src/gnu.c: Likewise
1370 * src/main.c: Likewise
1371 * src/output.c: Likewise
1372 * src/parser.c: Likewise
1373 * src/posix.c: Likewise
1374 * src/symbol.c: Likewise
1375
1376 * TODO: Updated
1377
1378 2005-03-20 Sergey Poznyakoff <[email protected]>
1379
1380 * doc/Makefile.am: Updated
1381 * doc/cflow.texi: Documentation framework
1382 * doc/fdl.texi: GNU FDL
1383 * doc/rendition.texi: Rendition macros
1384 * doc/gendocs_template: Template for index.html
1385 * doc/.cvsignore: Updated
1386
1387 2005-03-19 Sergey Poznyakoff <[email protected]>
1388
1389 * .cvsignore: Updated
1390 * COPYING: Added to the repository
1391 * TODO: Updated
1392 * src/Makefile.am (AM_LEXFLAGS): Use AM_LFLAGS instead. Also,
1393 removed -pl
1394 * src/c.l: Requires POSIX-compliant lex (e.g. flex).
1395 (WS): Ignore \f and \r
1396 (init_lex): Set lexer debugging level
1397 (DIGITS): Require at least one digit
1398 * src/cflow.h (record_typedefs,globals_only): Removed
1399 (max_depth): New variable
1400 (source,yyparse,cleanup,output,init_lex,init_parse)
1401 (delete_autos,delete_statics,globals_only,include_symbol): New
1402 prototypes
1403 (register_output): Changed type of the second argument
1404 (gnu_output_handler,posix_output_handler): Return int
1405 * src/gnu.c (print_symbol,gnu_output_handler): Return int
1406 * src/main.c: Implemented POSIX options (except -i x)
1407 (options): Reordered. Removed -C, -t (in favor of -i t), and
1408 -g (in favor of -i ^s). --brief option takes an optional
1409 argument (enable/disable)
1410 (progname): Removed
1411 (globals_only,include_symbol): New functions
1412 * src/output.c (output_driver.handler,print_symbol): Return int
1413 (register_output): Changed type of the second argument
1414 (is_var): Rewritten using include_symbol()
1415 (direct_tree,inverted_tree): Do not descend any further if
1416 print_symbol returns non-0.
1417 Do not process the symbol if the current nesting level exceeds
1418 maximum (set up by -d option).
1419 (tree_output): Print either direct or inverted graph, not both
1420 * src/parser.c: Stylistic changes
1421 * src/parser.h (yylex): Prototype
1422 * src/posix.c: Produce inverted graph. Honor --brief option
1423 * src/rc.c: Include ctype.h
1424 (expand_args): Removed unused variable
1425 * src/symbol.c (hash_symbol_hasher,hash_symbol_compare): Minor
1426 fixes
1427 (delete_statics): globals_only is now a function
1428
1429 2005-03-19 Sergey Poznyakoff <[email protected]>
1430
1431 * README-alpha: New file
1432 * lib: New directory
1433 * lib/Makefile.tmpl: New file
1434 * lib/.cvsignore: New file
1435 * Makefile.am (SUBDIRS): Add lib
1436 * NEWS: Updated
1437 * configure.ac: Raised version number to 0.2.1
1438 Call cflow_GNULIB to check for missing sources
1439 Call MU_DEBUG_MODE to enable debugging mode
1440 * .cvsignore: Updated
1441 * src/Makefile.am (INCLUDES,cflow_LDADD): Added
1442
1443 * build-aux: New directory
1444 * build-aux/.cvsignore: New file
1445 * build-aux/bootstrap: New file
1446 * build-aux/debug.m4: New file
1447 * build-aux/gnulib.modules: New file
1448
1449 * src/cflow.h: Include error.h and xalloc.h
1450 (emalloc,efree): Removed. Use xmalloc instead
1451 (error): Removed. Use gnulib version
1452 * src/main.c: Use argp to parse arguments.
1453 (temp_symbol_stack,say_and_die): Removed
1454 (emalloc,efree,error): Removed
1455 (xalloc_die): New function
1456 (init): Updated
1457 (symbol_override): Install symbols immediately
1458 * src/symbol.c: Rewritten using hash module
1459
1460 * src/c.l: Fixed indentation
1461 * src/gnu.c: Likewise
1462 * src/output.c: Likewise
1463 * src/parser.c: Likewise
1464 * src/rc.c: Likewise
1465
1466 2005-03-19 Sergey Poznyakoff <[email protected]>
1467
1468 * AUTHORS: New file
1469 * NEWS: New file
1470 * THANKS: New file
1471 * Makefile.am: New file
1472 * configure.ac: New file
1473 * elisp: New directory
1474 * doc/Makefile.am: New file
1475 * src/Makefile.am: New file
1476 * src/Makefile: Removed
1477 * src/posix.c: New file
1478 * src/gnu.c: New file
1479
1480 * TODO: Updated
1481 * src/cflow.h: Updated
1482 * src/obstack1.h: Removed
1483 * src/output.h: Removed
1484 * src/hilit-cflow.el: Removed
1485 * src/collect.c: Removed
1486 * src/html.c: Removed
1487 * src/text.c: Removed
1488 * src/cflow.el: Moved to /elisp
1489 * src/main.c: New option -f (--format)
1490 * src/c.l: Updated
1491 * src/output.c: Likewise
1492 * src/parser.c: Likewise
1493 * src/rc.c: Likewise
1494 * src/symbol.c: Likewise
1495 * src/version.h: Likewise
1496
1497 * elisp/cflow.el: Moved from /src
1498 * elisp/Makefile.am: New file
1499
1500 * src/.cvsignore: New file
1501 * doc/.cvsignore: New file
1502 * elisp/.cvsignore: New file
1503 * .cvsignore: New file
1504
1505 2005-03-16 Sergey Poznyakoff <[email protected]>
1506
1507 Initial import from my RCS archives. First revisions date
1508 back to 1997. The plan is to convert this to a POSIX-compatible
1509 cflow utility.
1510
1511
1512 Local Variables:
1513 mode: change-log
1514 version-control: never
1515 buffer-read-only: t
1516 End: