~ubuntu-branches/ubuntu/breezy/koffice/breezy

« back to all changes in this revision

Viewing changes to filters/kword/pdf/xpdf/xpdf/Error.cc

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// Error.cc
 
4
//
 
5
// Copyright 1996-2002 Glyph & Cog, LLC
 
6
//
 
7
//========================================================================
 
8
 
 
9
#include <aconf.h>
 
10
 
 
11
#ifdef USE_GCC_PRAGMAS
 
12
#pragma implementation
 
13
#endif
 
14
 
 
15
#include <stdio.h>
 
16
#include <stddef.h>
 
17
#include <stdarg.h>
 
18
#include "GlobalParams.h"
 
19
#include "Error.h"
 
20
 
 
21
void CDECL error(int pos, const char *msg, ...) {
 
22
  va_list args;
 
23
 
 
24
  // NB: this can be called before the globalParams object is created
 
25
  if (globalParams && globalParams->getErrQuiet()) {
 
26
    return;
 
27
  }
 
28
  if (pos >= 0) {
 
29
    fprintf(stderr, "Error (%d): ", pos);
 
30
  } else {
 
31
    fprintf(stderr, "Error: ");
 
32
  }
 
33
  va_start(args, msg);
 
34
  vfprintf(stderr, msg, args);
 
35
  va_end(args);
 
36
  fprintf(stderr, "\n");
 
37
  fflush(stderr);
 
38
}