File: showlines1.ll

package info (click to toggle)
lifelines 3.0.50-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 11,140 kB
  • ctags: 6,517
  • sloc: ansic: 57,468; xml: 8,014; sh: 4,255; makefile: 848; yacc: 601; perl: 170; sed: 16
file content (57 lines) | stat: -rw-r--r-- 1,194 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/* 
 * @progname       showlines1.ll
 * @version        1.0
 * @author         Wetmore
 * @category       
 * @output         Text
 * @description    

 *   This program will produce a report of all ancestors of a person,
 *   and is presently designed for 10 or 12 pitch, HP laserjet III.

 *   showlines1
 *
 *   Code by Tom Wetmore, ttw@cbnewsl.att.com
 *
 *   This report works only with the LifeLines Genealogy program
 *
 *   version one of this report was written by Tom Wetmore, in 1991.
 *
 *
 *   Output is an ASCII file
 *
 */
 

/* showlines */
proc main ()
{
	list(plist)
	getindi(indi)
	monthformat(4)
	print("Each dot is an ancestor.") print(nl())
	"------------------------------------------------------------" nl()
	"ANCESTRAL LINES OF -- " name(indi) nl()
	enqueue(plist, indi)
	while (indi, dequeue(plist)) {
		call show_line(indi, plist)
	}
	print(nl())
}

proc show_line (indi, plist)
{
	"------------------------------------------------------------" nl()
	while (indi) {
		name(indi) col(32) stddate(birth(indi))
		col(45) stddate(death(indi)) nl()
		print(".")
		if (moth, mother(indi)) {
			enqueue(plist, moth)
		}
		set(indi, father(indi))
	}
}
 
/* End of Report */