|
|
1.1 root 1: SalaryDefs DEFINITIONS ::=
2:
3: %{
4: #include <stdio.h>
5:
6: char *myname;
7:
8: static struct salary_record {
9: char *name;
10: int salary;
11: } salary;
12:
13: #define PEPYPARM struct salary_record *
14:
15:
16: main (argc, argv)
17: int argc;
18: char **argv;
19: {
20: PE pe;
21:
22: myname = argv[0];
23:
24: salary.name = argv[1];
25: salary.salary = atoi (argv[2]);
26: build_SalaryDefs_Salary (&pe, 1, 0, NULLCP, &salary);
27:
28: salary.name = NULL;
29: salary.salary = 0;
30: unbuild_SalaryDefs_Salary (pe, 1, NULLIP, NULLVP, &salary);
31:
32: exit (0);
33: }
34: %}
35:
36: ...
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.