~ubuntu-branches/ubuntu/quantal/psicode/quantal

« back to all changes in this revision

Viewing changes to src/bin/oeprop/misc.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2006-09-10 14:01:33 UTC
  • Revision ID: james.westby@ubuntu.com-20060910140133-ib2j86trekykfsfv
Tags: upstream-3.2.3
ImportĀ upstreamĀ versionĀ 3.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#define EXTERN
 
2
#include "includes.h"
 
3
#include "prototypes.h"
 
4
#include "globals.h"
 
5
 
 
6
void start_io(int argc, char *argv[])
 
7
{
 
8
  int errcod;
 
9
 
 
10
  errcod = psi_start(argc-1,argv+1,0);
 
11
  if (errcod != PSI_RETURN_SUCCESS)
 
12
    abort();
 
13
  ip_cwk_add(":OEPROP");
 
14
  tstart(outfile);
 
15
  psio_init();
 
16
  chkpt_init(PSIO_OPEN_OLD);
 
17
 
 
18
  return;
 
19
}
 
20
 
 
21
void stop_io()
 
22
{
 
23
  tstop(outfile);
 
24
  psio_done();
 
25
  psi_stop();
 
26
 
 
27
  return;
 
28
}
 
29
 
 
30
 
 
31
void punt(char *errmsg)
 
32
{
 
33
  fprintf(stderr, "Error: %s\n", errmsg);
 
34
  stop_io();
 
35
  abort();
 
36
}