File: programs.h

package info (click to toggle)
contest 0.61-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 228 kB
  • ctags: 217
  • sloc: ansic: 2,121; makefile: 98; sh: 3
file content (27 lines) | stat: -rw-r--r-- 527 bytes parent folder | download | duplicates (2)
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
/* programs.h */
#ifndef PROGRAMS_H
#define PROGRAMS_H

/*
 * This file should be #included in every load implementation.
 * Call report_progress() after each completed load run.
 */

#define TMP_FD 10

#ifndef	REPORT_PROGRESS_BUF
char report_progress_buf[100];
#endif

extern char report_progress_buf[];

#define report_progress() do{\
				if(write(TMP_FD, &report_progress_buf, 100)\
									==-1){\
					fprintf(stderr, "Could not "\
						"report progress\n");\
					exit(1);\
				}\
			}while(0)

#endif	/* PROGRAMS_H */