~ubuntu-branches/debian/sid/terminatorx/sid

« back to all changes in this revision

Viewing changes to .pc/05_endian_h.patch/src/tX_endian.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2012-04-02 02:12:47 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120402021247-0vu81d42019x18s7
Tags: 3.84-1
* New maintainer. (Closes: #660434)
* ACK NMUs (Closes: #515716)
* New upstream release (Closes: #612760):
  - introduced a workaround for terminatorX bug #29 (Closes: #637007)
  - moved to terminatorX.org
  - fixed misc gcc 4.0 warnings
  - removed fastabs() implementation - it failed with gcc > 4.0
  - fixed a compilation issue (Thanks, cyril!)
  - fixed main window menu bar layout issue
  - fixed broken mouse grab (LP: #469365), grab events are now
    handled by gui thread
  - work-around gtk+ auto mnemonics
  - fixed deprecated gtk+, jack and Xorg API
* Switch to DH 7.
* Add --parallel to dh sequencer.
* Convert packaging to source format 3.0 (quilt):
  - Port patches from dpatch to quilt.
  - Drop dpatch support.
  - Incorporate direct changes to the manual in a quilt patch.
* Fix FTBFS errors "cannot convert 'gzFile_s**' to 'gzFile' for
  argument '1'".
  Thanks to Moritz Muehlenhoff for the patch. (Closes: #663053)
* Remove debian/patches/21_fix_ftbfs_binutils_gold.patch, applied upstream.
* Refresh patches.
* Replace list of negated architectures with linux-any in debian/control.
* Fix maintainer-script-without-set-e and maintainer-script-ignores-errors
  warnings.
* Remove scrollkeeper stuff, install the desktop file to
  /usr/share/applications/.
* Run autoreconf before configuring the package.
* Drop --enable-suidroot option, no longer needed.
* Compile with --as-needed.
* The buildsystem install the man page, so there's no need to call
  dh_installman.
* Add watch file.
* Update debian/copyright.
* Update Standards-Version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    terminatorX - realtime audio scratching software
 
3
    Copyright (C) 1999-2011  Alexander König
 
4
 
 
5
    This program is free software; you can redistribute it and/or modify
 
6
    it under the terms of the GNU General Public License as published by
 
7
    the Free Software Foundation; either version 2 of the License, or
 
8
    (at your option) any later version.
 
9
 
 
10
    This program is distributed in the hope that it will be useful,
 
11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
    GNU General Public License for more details.
 
14
 
 
15
    You should have received a copy of the GNU General Public License
 
16
    along with this program; if not, write to the Free Software
 
17
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 
 
19
    File: tX_endian.h
 
20
 
 
21
    Description: header to tX_endian.c
 
22
    
 
23
    27 apr 1999: include config.h to automatically recognize 
 
24
                 big endian machines via configure.
 
25
                 
 
26
    7 mar 2000:  moved from endian.{cc,h} to tX_endian.{cc,h} as
 
27
                 the glibc includes used my endian.h when they should
 
28
                 include <bits/endian.h>
 
29
*/    
 
30
 
 
31
#ifndef _H_TX_ENDIAN_
 
32
#define _H_TX_ENDIAN_
 
33
 
 
34
#ifdef HAVE_CONFIG_H
 
35
#       include <config.h>
 
36
#       ifdef WORDS_BIGENDIAN
 
37
#               define BIG_ENDIAN_MACHINE 1
 
38
#       else
 
39
#               undef BIG_ENDIAN_MACHINE
 
40
#       endif
 
41
#endif
 
42
 
 
43
#ifdef WORDS_BIGENDIAN
 
44
 
 
45
#       include "tX_types.h"
 
46
 
 
47
#define __USE_XOPEN // we need this for swab()
 
48
#       include <unistd.h>
 
49
#undef __USE_XOPEN
 
50
 
 
51
#define swapbuffer(b, s) swab((void *) b, (void *) b, (ssize_t) s<<1)
 
52
 
 
53
static inline void swap32_inline(int32_t *val) {
 
54
        int8_t temp;
 
55
        int8_t *p=(int8_t *) val;
 
56
        
 
57
        temp=p[0];
 
58
        p[0]=p[3];
 
59
        p[3]=temp;
 
60
        
 
61
        temp=p[1];
 
62
        p[1]=p[2];
 
63
        p[2]=temp;      
 
64
}
 
65
 
 
66
#       ifdef __cplusplus
 
67
extern "C" {
 
68
#       endif /* __cplusplus */
 
69
 
 
70
extern void swap16(int16_t * val);
 
71
extern void swap32(int32_t * val);
 
72
        
 
73
#       ifdef __cplusplus
 
74
}
 
75
#       endif /* __cplusplus */
 
76
 
 
77
#endif /* WORDS_BIGENDIAN */
 
78
 
 
79
#endif /* _H_TX_ENDIAN_ */