File:  [CSRG BSD Unix] / 43BSDReno / contrib / isode-beta / doc / manual / grind4-5a.py
Revision 1.1: download - view: text, annotated - select for diffs
Tue Apr 24 16:12:56 2018 UTC (8 years, 1 month ago) by root
CVS tags: MAIN, HEAD
Initial revision

SalaryDefs DEFINITIONS ::=

%{
#include <stdio.h>

char   *myname;

static struct salary_record {
    char   *name;
    int     salary;
}	salary;

#define PEPYPARM struct salary_record *


main (argc, argv)
int     argc;
char  **argv;
{
    PE	    pe;

    myname = argv[0];

    salary.name = argv[1];
    salary.salary = atoi (argv[2]);
    build_SalaryDefs_Salary (&pe, 1, 0, NULLCP, &salary);

    salary.name = NULL;
    salary.salary = 0;
    unbuild_SalaryDefs_Salary (pe, 1, NULLIP, NULLVP, &salary);

    exit (0);
}
%}

...

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.