# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
|
|
#
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
# Please add additional copyright information _after_ the line containing
|
|
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
|
|
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
|
|
#
|
|
# ROCK Linux: rock-src/package/sirkull/ardour/hotfix-binutils-gcc.patch
|
|
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
|
|
#
|
|
# This patch file is dual-licensed. It is available under the license the
|
|
# patched project is licensed under, as long as it is an OpenSource license
|
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
|
# of the GNU General Public License as published by the Free Software
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
# version.
|
|
#
|
|
# --- ROCK-COPYRIGHT-NOTE-END ---
|
|
|
|
Hotfix needed for new binutils (bug is in gcc)
|
|
(see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16625)
|
|
|
|
--- ./libs/pbd/pbd/compose.h.orig 2004-08-13 15:35:23.000000000 +0200
|
|
+++ ./libs/pbd/pbd/compose.h 2004-08-13 15:38:37.000000000 +0200
|
|
@@ -75,39 +75,14 @@
|
|
// helper for converting spec string numbers
|
|
inline int char_to_int(char c)
|
|
{
|
|
- switch (c) {
|
|
- case '0': return 0;
|
|
- case '1': return 1;
|
|
- case '2': return 2;
|
|
- case '3': return 3;
|
|
- case '4': return 4;
|
|
- case '5': return 5;
|
|
- case '6': return 6;
|
|
- case '7': return 7;
|
|
- case '8': return 8;
|
|
- case '9': return 9;
|
|
- default: return -1000;
|
|
- }
|
|
+ if ( c >= '0' && c <= '9' ) return c - '0';
|
|
+ return -1000;
|
|
}
|
|
|
|
inline bool is_number(int n)
|
|
{
|
|
- switch (n) {
|
|
- case '0':
|
|
- case '1':
|
|
- case '2':
|
|
- case '3':
|
|
- case '4':
|
|
- case '5':
|
|
- case '6':
|
|
- case '7':
|
|
- case '8':
|
|
- case '9':
|
|
- return true;
|
|
-
|
|
- default:
|
|
- return false;
|
|
- }
|
|
+ if ( n >= '0' && n <= '9' ) return true;
|
|
+ return false;
|
|
}
|
|
|
|
|