Switch to unified view

a/libupnpp/base64.cxx b/libupnpp/base64.cxx
...
...
20
#include <cstring>
20
#include <cstring>
21
#include <string>
21
#include <string>
22
using std::string;
22
using std::string;
23
23
24
#include "base64.hxx"
24
#include "base64.hxx"
25
26
namespace UPnPP {
25
27
26
#undef DEBUG_BASE64 
28
#undef DEBUG_BASE64 
27
#ifdef DEBUG_BASE64
29
#ifdef DEBUG_BASE64
28
#define DPRINT(X) fprintf X
30
#define DPRINT(X) fprintf X
29
#else
31
#else
...
...
264
    out += Pad64;
266
    out += Pad64;
265
    }
267
    }
266
    return;
268
    return;
267
}
269
}
268
270
271
} // namespace
269
#ifdef TEST_BASE64
272
#ifdef TEST_BASE64
270
#include <stdio.h>
273
#include <stdio.h>
271
#include <stdlib.h>
274
#include <stdlib.h>
272
275
273
#include "readfile.h"
276
#include "readfile.h"
...
...
284
287
285
static int     op_flags;
288
static int     op_flags;
286
#define OPT_MOINS 0x1
289
#define OPT_MOINS 0x1
287
#define OPT_i     0x2 
290
#define OPT_i     0x2 
288
#define OPT_P     0x4 
291
#define OPT_P     0x4 
292
293
using namespace UPnPP;
289
294
290
int main(int argc, char **argv)
295
int main(int argc, char **argv)
291
{
296
{
292
    thisprog = argv[0];
297
    thisprog = argv[0];
293
    argc--; argv++;
298
    argc--; argv++;
...
...
359
    write(1, odata.c_str(), 
364
    write(1, odata.c_str(), 
360
          odata.size() * sizeof(string::value_type));
365
          odata.size() * sizeof(string::value_type));
361
    exit(0);
366
    exit(0);
362
    }
367
    }
363
}
368
}
369
364
#endif
370
#endif