Debian Codegraph @

reports/showlines1.ll

raw
1 /*
2 * @progname showlines1.ll
3 * @version 1.0
4 * @author Wetmore
5 * @category
6 * @output Text
7 * @description
8
9 * This program will produce a report of all ancestors of a person,
10 * and is presently designed for 10 or 12 pitch, HP laserjet III.
11
12 * showlines1
13 *
14 * Code by Tom Wetmore, [email protected]
15 *
16 * This report works only with the LifeLines Genealogy program
17 *
18 * version one of this report was written by Tom Wetmore, in 1991.
19 *
20 *
21 * Output is an ASCII file
22 *
23 */
24
25
26 /* showlines */
27 proc main ()
28 {
29 list(plist)
30 getindi(indi)
31 monthformat(4)
32 print("Each dot is an ancestor.") print(nl())
33 "------------------------------------------------------------" nl()
34 "ANCESTRAL LINES OF -- " name(indi) nl()
35 enqueue(plist, indi)
36 while (indi, dequeue(plist)) {
37 call show_line(indi, plist)
38 }
39 print(nl())
40 }
41
42 proc show_line (indi, plist)
43 {
44 "------------------------------------------------------------" nl()
45 while (indi) {
46 name(indi) col(32) stddate(birth(indi))
47 col(45) stddate(death(indi)) nl()
48 print(".")
49 if (moth, mother(indi)) {
50 enqueue(plist, moth)
51 }
52 set(indi, father(indi))
53 }
54 }
55
56 /* End of Report */
57