File: program.h

package info (click to toggle)
graywolf 0.1.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 6,424 kB
  • sloc: ansic: 84,358; sh: 216; awk: 36; makefile: 22
file content (41 lines) | stat: -rw-r--r-- 1,369 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* ----------------------------------------------------------------- 
"@(#) program.h version 1.5 3/5/92"
FILE:	    program.h                                       
DESCRIPTION:Insert file for program utility routines.
DATE:	    Mar 16, 1989 
REVISIONS:  
----------------------------------------------------------------- */
#ifndef PROGRAM_H
#define PROGRAM_H

#include <yalecad/base.h>

extern char *YinitProgram( P3(char *name, char *version, 
    VOID  (*introTextFunction)() ) ) ;
/*
Function:
    Returns string with program name, version, and compile date.
    This string is built with YmsgG (actually a global note G suffix ).
    The user may perform various initialization in introTextFunction. 
    There are no arguments to introTextFunction but user may
    get at the return string by peeking at YmsgG.  This routine also
    starts the elapsed timer.
*/

extern void YexitPgm( P1(INT status) ) ;
/* 
Function:
    Exit a program gracefully.  It always outputs a message with
    the number of errors and warnings during the execution.  A
    nonzero status means the execution failed.  Status follows the
    normal UNIX rules.  Exit program also calls the debug write
    function to create a dbg file if debug has been set.
*/

extern char *YgetProgName() ;
/* 
Function:
    Returns the program name given in YinitProgram.
*/

#endif /* PROGRAM_H */