1 Sat Dec 9 20:12:34 2006 Ben Pfaff <blp@gnu.org>
3 * repeat.c (parse_lines): Issue an error when attempting to nest
4 DO REPEAT in compatibility mode.
6 Sat Dec 2 17:01:59 2006 Ben Pfaff <blp@gnu.org>
8 Significant cleanup to DO REPEAT.
10 * repeat.c: (struct line_list) Rename struct repeat_line. Use
11 struct ll instead of explicit "next" pointer. Make "file_name"
12 const. Change "const char *line" to "struct substring text". Add
13 `syntax' member. Update all references.
14 (enum repeat_entry_type) Rename repeat_macro_type, update all
16 (struct repeat_entry) Rename struct repeat_macro. Use struct ll
17 instead of explicit "next" pointer. Change "char[] id" to "struct
18 substring name". Change "char **replacement" to "struct substring
19 *replacements". Update all references.
20 (struct repeat_block) Use struct ll_list for lists of lines,
21 macros. Change "cur_line" to struct ll *.
22 (cmd_do_repeat) Don't bother adding an empty getl source at all.
23 This saves special-casing an empty source in repeat_read.
24 (parse_specification) Use new find_macro function.
25 (find_macro) New function.
26 (skip_indentor) Removed.
27 (recognize_keyword) Change interface, update callers.
28 (recognize_do_repeat) Ditto.
29 (recognize_end_repeat) Ditto.
30 (parse_lines) Use lex_preprocess_line to preprocess the input line
31 to check for DO REPEAT and END REPEAT, instead of coding it
33 (parse_ids) Need to make a copy of the array parsed by
34 parse_mixed_vars_pool, instead of using it verbatim, because we're
35 using struct substring now.
36 (add_replacement) Use struct substring in interface, instead of
37 const char *, and update all callers.
38 (find_substitution) Rewrite using substring, in terms of
40 (do_repeat_filter) Use struct substring to simplify code.
41 (current_line) New function.
43 Sat Dec 2 16:40:12 2006 Ben Pfaff <blp@gnu.org>
45 Fix lack of ->name and ->location in DO REPEAT's getl_interface.
48 * repeat.c: (cmd_do_repeat) Initialize name, location in
50 (do_repeat_read) Adjust semantics of cur_line so that, after the
51 call, it points to the line just returned, instead of to the next
52 line to be returned. Thus, do_repeat_name and do_repeat_location
53 can use cur_line to obtain the info they need.
54 (do_repeat_name) New function.
55 (do_repeat_location) New function.
57 Thu Nov 30 22:01:27 2006 Ben Pfaff <blp@gnu.org>
59 * repeat.c (do_repeat_read): Properly handle empty DO REPEAT...END
60 REPEAT block. Fixes bug #18407. Thanks to John Darrington for
63 Sat Oct 28 16:18:48 WST 2006 John Darrington <john@darrington.wattle.id.au>
65 * repeat.c: Eliminated references to extern variable getl_buf.
67 Sun May 7 18:18:33 2006 Ben Pfaff <blp@gnu.org>
71 * repeat.c: (parse_ids) Take pool parameter and allocate all
72 memory from pool. Reduce implementation from loop to single call
73 to parse_mixed_vars_pool().
74 (store_numeric) Removed.
75 (add_replacement) New function.
76 (parse_numbers) Take pool parameter and allocate all memory from
77 pool. Require ranges to be in increasing order.
78 (parse_strings) Take pool parameter and allocate all memory from
81 Wed May 3 22:45:41 2006 Ben Pfaff <blp@gnu.org>
83 Continue reforming procedure execution. In this phase, get rid of
84 many global variables, consolidating procedure execution in
85 procedure.c. Encapsulate transformations in new "struct
86 trns_chain". Also, change implementation of N OF CASES, FILTER,
87 and PROCESS IF from special cases to transformations.
89 * do-if.c: (cmd_do_if) Use finalizer to ensure control stack gets
91 (do_if_finalize_func) New function.
93 * loop.c: (create_loop_trns) Use finalizer to ensure control stack gets
95 (loop_trns_finalize) New function.
97 * temporary.c: (global var temporary) Removed. Changed references
98 to use proc_make_temporary_transformations_permanent() or
99 proc_in_temporary_transformations().
100 (global var temp_dict) Removed.
101 (global var temp_trns) Removed.
102 (cmd_temporary) Reimplement in terms of
103 proc_in_temporary_transformations() and
104 proc_start_temporary_transformations().
105 (cancel_temporary) Moved to procedure.c, renamed
106 proc_cancel_temporary_transformations().
108 Thu Mar 2 08:40:33 WST 2006 John Darrington <john@darrington.wattle.id.au>
110 * Moved files from src directory