File: pagecount.h

package info (click to toggle)
ghostscript 10.05.1~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 93,508 kB
  • sloc: ansic: 908,895; python: 7,676; cpp: 6,534; cs: 6,457; sh: 6,168; java: 4,028; perl: 2,373; tcl: 1,639; makefile: 529; awk: 66; yacc: 18
file content (40 lines) | stat: -rw-r--r-- 1,571 bytes parent folder | download | duplicates (5)
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
/******************************************************************************
  File:     $Id: pagecount.h,v 1.3 2000/11/19 07:05:17 Martin Rel $
  Contents: Header for pagecount file functions
  Author:   Martin Lottermoser, Greifswaldstrasse 28, 38124 Braunschweig,
            Germany; e-mail: Martin.Lottermoser@t-online.de.

*******************************************************************************
*									      *
*	Copyright (C) 2000 by Martin Lottermoser			      *
*	All rights reserved						      *
*									      *
******************************************************************************/

#ifndef _pagecount_h	/* Inclusion protection */
#define _pagecount_h

#include "std.h"

#ifdef _MSC_VER
#define EPRN_NO_PAGECOUNTFILE
#else

/*****************************************************************************/

/*  The following two functions are used to read and write a "page count file".
    Such a file should contain a single line with a non-negative decimal
    integer. pcf_getcount() reads the file and returns the value,
    pcf_inccount() increases the number in the file by the specified amount.
    A non-existent file is treated as a file containing the number zero.

    The routines are safe against concurrent access.
*/
extern int pcf_getcount(const gs_memory_t *mem, const char *filename, unsigned long *count);
extern int pcf_inccount(const gs_memory_t *mem, const char *filename, unsigned long by);

/*****************************************************************************/

#endif

#endif	/* Inclusion protection */