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

« back to all changes in this revision

Viewing changes to src/tX_global.h

  • Committer: Package Import Robot
  • Author(s): Alessio Treglia
  • Date: 2014-03-10 11:43:09 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20140310114309-9xtymsijhfr50yvh
Tags: 3.90-1
* New upstream release.
* Fix debian/watch file.
* Build-depend on gnome-doc-utils.
* Fix dh_install target.
* Remove manual copy of terminatorX-app.xpm, no longer needed.
* Drop 05_endian_h.patch, no longer applicable.
* Drop 16_loose_spelling_fix.patch, fixed upstream.
* Refresh 17_cleanup_desktop_file.patch
* Drop 20_fix_ftbfs_on_kfreebsd.patch, adopted upstream.
* Drop 23_new_zlib.patch, adopted upstream.
* Drop 24-missing_include.patch, applied upstream.
* Refresh 25-libdl_underlinkage.patch.
* Add patch to fix minor spelling mistakes.
* Various small improvements and updates on debian/copyright.
* Bump Standards.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    terminatorX - realtime audio scratching software
3
 
    Copyright (C) 1999-2011  Alexander König
 
3
    Copyright (C) 1999-2014  Alexander König
4
4
 
5
5
    This program is free software; you can redistribute it and/or modify
6
6
    it under the terms of the GNU General Public License as published by
13
13
    GNU General Public License for more details.
14
14
 
15
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.
 
16
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
17
 
19
18
    File: tX_global.h
20
19
 
21
20
    Description: Header to tX_global.c / defines the heavily used
22
21
                 tX_global struct.
23
 
                 
24
 
    Changes:
25
 
    
26
 
    21 Jul 1999: Introduced the lowpass globals.
27
22
*/    
28
23
 
29
24
#ifndef _TX_GLOBAL_H
223
218
#define store_float_id(s, i, id); tX_store((sizeof(i)>4) ? "%s<%s id=\"%i\">%lf</%s>\n" : "%s<%s id=\"%i\">%f</%s>\n", indent, s, id, i, s);
224
219
#define store_bool_id(s, i, id); tX_store("%s<%s id=\"%i\">%s</%s>\n", indent, s, id, i ? "true" : "false", s);
225
220
 
 
221
#define store_id_sp(name, sp); { tX_store("%s<%s ", indent, name); sp.store_meta(rc, rz); tX_store("/>\n"); }
226
222
#define store_int_sp(name, i, sp); { tX_store("%s<%s ", indent, name); sp.store_meta(rc, rz); tX_store(">%i</%s>\n", (int) i, name); }
227
223
#define store_float_sp(name, i, sp); { tX_store("%s<%s ", indent, name); sp.store_meta(rc, rz); tX_store((sizeof(i)>4) ? ">%lf</%s>\n" : ">%f</%s>\n" , i, name); }
228
224
#define store_bool_sp(name, i, sp); { tX_store("%s<%s ", indent, name); sp.store_meta(rc, rz); tX_store(">%s</%s>\n", i ? "true" : "false", name); }
229
225
 
 
226
#define restore_sp_id(s, sp); if ((!elementFound) && (!xmlStrcmp(cur->name, (const xmlChar *) s))) { elementFound=1; sp.restore_meta(cur); }
230
227
#define restore_int_id(s, i, sp, init); if ((!elementFound) && (!xmlStrcmp(cur->name, (const xmlChar *) s))) { elementFound=1; if (xmlNodeListGetString(doc, cur->xmlChildrenNode, 1)) { sscanf((char *) xmlNodeListGetString(doc, cur->xmlChildrenNode, 1), "%i", &i);  init; } sp.restore_meta(cur); }
231
228
#define restore_float_id(s, i, sp, init); if ((!elementFound) && (!xmlStrcmp(cur->name, (const xmlChar *) s))) { elementFound=1; if  (xmlNodeListGetString(doc, cur->xmlChildrenNode, 1)) {sscanf((char *) xmlNodeListGetString(doc, cur->xmlChildrenNode, 1), "%lf", &dvalue); i=dvalue; init; } sp.restore_meta(cur);}
232
229
#define restore_bool_id(s, i, sp, init); if ((!elementFound) && (!xmlStrcmp(cur->name, (const xmlChar *) s))) { elementFound=1; if (xmlNodeListGetString(doc, cur->xmlChildrenNode, 1)) {if (xmlStrcmp(xmlNodeListGetString(doc, cur->xmlChildrenNode, 1),  (const xmlChar *) "true")==0) i=true; else i=false; init; } sp.restore_meta(cur);}