~ubuntu-branches/ubuntu/gutsy/libwpd/gutsy

« back to all changes in this revision

Viewing changes to src/lib/libwpd_internal.h

  • Committer: Bazaar Package Importer
  • Author(s): Rene Engelhard
  • Date: 2007-01-11 15:15:57 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20070111151557-rn1kysabqbccx3as
Tags: 0.8.8-2
run make check for stream check; build-depend on libcppunit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "WPXStream.h"
29
29
#include <stdio.h>
30
30
#include <string>
 
31
#include <algorithm>
31
32
#include "WPXString.h"
32
33
 
33
34
/* Various functions/defines that need not/should not be exported externally */
46
47
#define WPD_CHECK_FILE_READ_ERROR(v,num_elements) if (v != num_elements) {\
47
48
 WPD_DEBUG_MSG(("X_CheckFileReadElementError: %d\n", __LINE__)); throw FileException(); }
48
49
 
49
 
#define DELETEP(m) if (m) { delete m; m = NULL; }
 
50
#define DELETEP(m) if (m) { delete m; m = 0; }
50
51
 
51
52
#ifdef DEBUG
52
53
#define WPD_DEBUG_MSG(M) printf M