From c4ac43749048c4c0e0ab3656d39384112a628742 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 28 Oct 2009 21:36:40 +0000 Subject: * libardour uses ARDOUR::nframes_t and ARDOUR::nframes64_t explicitly in headers * use explicit operator<< and operator>> that in turn use PBD::EnumWriter when serializing and deserializing to/from rc files * adds scrolling in mixer window (from 2.X) * BBT math stuff - untested, but basically operational * move LocaleGuard into its own file(s) in libs/pbd * Tempo now uses nframes64_t everywhere (except for sample rate values) * as in 2.X, use mkstemp and hack to avoid temp file nonsense, and remove erroneous free() from disk stats output git-svn-id: svn://localhost/ardour2/branches/3.0@5961 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/pbd/pbd/locale_guard.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 libs/pbd/pbd/locale_guard.h (limited to 'libs/pbd/pbd/locale_guard.h') diff --git a/libs/pbd/pbd/locale_guard.h b/libs/pbd/pbd/locale_guard.h new file mode 100644 index 0000000000..480cc0fddb --- /dev/null +++ b/libs/pbd/pbd/locale_guard.h @@ -0,0 +1,33 @@ +/* + Copyright (C) 2002-2009 Paul Davis + + This program is free software; you can redistribute it and/or modify + it 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. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +*/ + +#ifndef __pbd_locale_guard__ +#define __pbd_locale_guard__ + +namespace PBD { + +struct LocaleGuard { + LocaleGuard (const char*); + ~LocaleGuard (); + const char* old; +}; + +} + +#endif /* __pbd_locale_guard__ */ -- cgit v1.2.3