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

« back to all changes in this revision

Viewing changes to src/lib/libciomr/psi_stop.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck, Michael Banck, Daniel Leidert
  • Date: 2009-02-23 00:12:02 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090223001202-rutldoy3dimfpesc
Tags: 3.4.0-1
* New upstream release.

[ Michael Banck ]
* debian/patches/01_DESTDIR.dpatch: Refreshed.
* debian/patches/02_FHS.dpatch: Removed, applied upstream.
* debian/patches/03_debian_docdir: Likewise.
* debian/patches/04_man.dpatch: Likewise.
* debian/patches/06_466828_fix_gcc_43_ftbfs.dpatch: Likewise.
* debian/patches/07_464867_move_executables: Fixed and refreshed.
* debian/patches/00list: Adjusted.
* debian/control: Improved description.
* debian/patches-held: Removed.
* debian/rules (install/psi3): Do not ship the ruby bindings for now.

[ Daniel Leidert ]
* debian/rules: Fix txtdir via DEB_MAKE_INSTALL_TARGET.
* debian/patches/01_DESTDIR.dpatch: Refreshed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*!
2
 
  \file psi_stop
3
 
  \ingroup (CIOMR)
4
 
*/
5
 
 
6
 
#include <stdio.h>
7
 
#include <stdlib.h>
8
 
#include <string.h>
9
 
#include <psifiles.h>
10
 
#include <libipv1/ip_lib.h>
11
 
#include <libciomr/libciomr.h>
12
 
 
13
 
extern FILE *infile, *outfile;
14
 
extern char *psi_file_prefix;
15
 
 
16
 
/*!
17
 
** psi_stop()
18
 
**
19
 
** This function closes input and output files and deinitializes Input Parsing library.
20
 
**
21
 
** Arguments: none
22
 
**
23
 
** Returns: one of standard PSI error codes
24
 
** \ingroup (CIOMR)
25
 
*/
26
 
 
27
 
int psi_stop(void)
28
 
{
29
 
  ip_done();
30
 
  free(psi_file_prefix);
31
 
  fclose(outfile);
32
 
  fclose(infile);
33
 
 
34
 
  return(PSI_RETURN_SUCCESS);
35
 
}