~ubuntu-branches/ubuntu/precise/xterm/precise-updates

« back to all changes in this revision

Viewing changes to trace.c

  • Committer: Bazaar Package Importer
  • Author(s): Muharem Hrnjadovic
  • Date: 2009-06-03 13:00:55 UTC
  • mfrom: (1.1.15 upstream) (11.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20090603130055-1cs2n0skvpk00pw2
Tags: 243-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Enabled URL highlighting
  - rm -rf for .pc patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $XTermId: trace.c,v 1.85 2008/06/03 20:52:34 tom Exp $ */
 
1
/* $XTermId: trace.c,v 1.87 2009/03/23 20:08:03 tom Exp $ */
2
2
 
3
3
/************************************************************
4
4
 
5
 
Copyright 1997-2007,2008 by Thomas E. Dickey
 
5
Copyright 1997-2008,2009 by Thomas E. Dickey
6
6
 
7
7
                        All Rights Reserved
8
8
 
41
41
#include <stdarg.h>
42
42
#include <assert.h>
43
43
 
 
44
#include <X11/Xatom.h>
 
45
#include <X11/Xmu/Atoms.h>
 
46
 
44
47
#ifdef HAVE_X11_TRANSLATEI_H
45
48
#include <X11/TranslateI.h>
46
49
#else
297
300
}
298
301
 
299
302
const char *
 
303
visibleSelectionTarget(Display * d, Atom a)
 
304
{
 
305
    const char *result = "?";
 
306
 
 
307
    if (a == XA_STRING) {
 
308
        result = "XA_STRING";
 
309
    } else if (a == XA_TEXT(d)) {
 
310
        result = "XA_TEXT()";
 
311
    } else if (a == XA_COMPOUND_TEXT(d)) {
 
312
        result = "XA_COMPOUND_TEXT()";
 
313
    } else if (a == XA_UTF8_STRING(d)) {
 
314
        result = "XA_UTF8_STRING()";
 
315
    } else if (a == XA_TARGETS(d)) {
 
316
        result = "XA_TARGETS()";
 
317
    }
 
318
 
 
319
    return result;
 
320
}
 
321
 
 
322
const char *
300
323
visibleXError(int code)
301
324
{
302
325
    static char temp[80];