~ubuntu-branches/ubuntu/saucy/apvlv/saucy

« back to all changes in this revision

Viewing changes to src/ApvlvUtil.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2011-06-01 22:18:49 UTC
  • mfrom: (10.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110601221849-niibd5p5i7avemy4
Tags: 0.1.1-1.1
* Non-maintainer upload.
* Add support for poppler >= 0.15. Patch by Pino Toscano. (Closes: #627609)

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
#endif
35
35
 
36
36
#include <gtk/gtk.h>
37
 
#include <string.h>
38
37
 
 
38
#include <cstdlib>
 
39
#include <cstring>
39
40
#include <iostream>
40
41
using namespace std;
41
42
 
42
43
namespace apvlv
43
 
{
 
44
  {
44
45
  // Global files
45
46
  extern string helppdf;
46
47
  extern string iniexam;
99
100
#define __func__     __FUNCTION__
100
101
#define strcasecmp   _strcmpi
101
102
 
102
 
#ifndef S_ISDIR
103
 
#define S_ISDIR(mode)  (((mode) & 0170000) == (0040000))
104
 
#endif                          /* 
105
103
*/
 
104
#ifndef S_ISDIR
 
105
#define S_ISDIR(mode)  (((mode) & 0170000) == (0040000))
 
106
#endif                          /* 
 
107
  */
106
108
 
107
109
#endif
108
110
 
123
125
#endif
124
126
#define errp(...)       logv ("ERROR", __FILE__, __LINE__, __func__, __VA_ARGS__)
125
127
  void logv (const char *, const char *, int, const char *, const char *,
126
 
             ...);
 
128
             ...);
127
129
 
128
130
// char macro
129
131
// because every unsigned char is < 256, so use this marco to stand for Ctrl+char, Shift+char