Lines Matching defs:ap
35 struct aqd_info *ap;
39 ap = malloc(sizeof(*ap));
40 ap->na = 0;
44 if ((ap->fp = my_fopen(oname, "w")) == NULL) {
48 add_file(ap->fp, oname);
50 return ap;
62 struct aqd_info *ap = info;
64 fprintf(ap->fp, "%lf %d\n%lf %d\n", ts, ap->na, ts, ap->na + 1);
65 ap->na += 1;
72 struct aqd_info *ap = info;
74 if (ap->na > 0) {
75 fprintf(ap->fp, "%lf %d\n%lf %d\n",
76 ts, ap->na, ts, ap->na - 1);
77 ap->na -= 1;