~ubuntu-branches/ubuntu/raring/apvlv/raring

« back to all changes in this revision

Viewing changes to src/ApvlvUtil.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ritter
  • Date: 2009-09-09 13:13:13 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090909131313-mdp4j7s8r3cqx8rb
Tags: 0.0.7.2-1
* New upstream release
* Improved the long description
* Added patch that fixes a makefile path problem
  (02-fix-path-in-makefile.dpatch)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
using namespace std;
42
42
 
43
43
namespace apvlv
44
 
 
45
44
{
46
45
  // Global files
47
46
  extern string helppdf;
69
68
#define CORE_CONTENT    2
70
69
#define CORE_DIR        3
71
70
 
72
 
  GtkWidget *replace_widget (GtkWidget *owid, GtkWidget *nwid);
 
71
  GtkWidget *replace_widget (GtkWidget * owid, GtkWidget * nwid);
73
72
 
74
 
  PopplerDocument * file_to_popplerdoc (const char *filename);
 
73
  PopplerDocument *file_to_popplerdoc (const char *filename);
75
74
 
76
75
  // function return type
77
76
  typedef enum
78
 
    {
79
 
      MATCH,
80
 
      NEED_MORE,
81
 
      NO_MATCH,
82
 
    } returnType;
 
77
  {
 
78
    MATCH,
 
79
    NEED_MORE,
 
80
    NO_MATCH,
 
81
  } returnType;
83
82
 
84
83
  // some windows macro
85
84
#ifdef WIN32
91
90
 
92
91
#ifndef S_ISDIR
93
92
#define S_ISDIR(mode)  (((mode) & 0170000) == (0040000))
94
 
#endif
 
93
#endif                          /* 
95
94
*/
96
95
 
97
96
#endif
98
97
 
112
111
#define info(...)       logv ("INFO", __FILE__, __LINE__, __func__, __VA_ARGS__)
113
112
#define warnp(...)      logv ("WARNNING", __FILE__, __LINE__, __func__, __VA_ARGS__)
114
113
#define errp(...)       logv ("ERROR", __FILE__, __LINE__, __func__, __VA_ARGS__)
115
 
void logv (const char *, const char *, int, const char *, const char *, ...);
 
114
  void logv (const char *, const char *, int, const char *, const char *,
 
115
             ...);
116
116
 
117
117
// char macro
118
118
// because every unsigned char is < 256, so use this marco to stand for Ctrl+char, Shift+char