gtick-0.5.2/0000755000175000017500000000000012116334677007632 500000000000000gtick-0.5.2/AUTHORS0000644000175000017500000000023610660406274010616 00000000000000Alex Roberts * initial author of the package, 1999, but unreachable now Roland Stigge * current maintainer, 2003 gtick-0.5.2/ChangeLog0000644000175000017500000003504012116333673011321 00000000000000gtick 0.5.2, 2013-03-08, Roland Stigge * Updated Czech, French, German, Indonesian and Vietnamese translations * Added Galician translation * Included fixes by Nils Philippsen: - Building with new bison - Double free gtick 0.5.1, 2012-03-26, Roland Stigge * Updated Chinese (simple), Dutch, Esperanto, German, Italian and Polish translations * Added Serbian translation * Set MIN_BPM to 1 to extend range gtick 0.5.0, 2011-08-06, Roland Stigge * Added Pulseaudio support by Alexander Varnin and Samo Pogacnik * Added patch by Samuel Thibault to fix build problems on non-Linux systems * Added Indonesian translation, thanks to Andhika Padmawan * Added Esperanto translation, thanks to Felipe Castro * Added Persian translation, thanks to Mahyar Moghimi * Updated Chinese (simple), Dutch, French, Irish, Italian and Vietnamese translations * Updated Spanish translation (by Carlos Pérez Cuenco, not from TP, to be synced later!) gtick 0.4.2, 2008-05-22, Roland Stigge * Added Polish translation, thanks to Tomasz Sałaciński * Added Danish translation, thanks to Frederik 'Freso' S. Olesen * Updated Irish, Italian, Russian and Vietnamese translations * configure.ac: Drop default -O3 optimization * Added gtick.desktop * Added initial testsuite and first tests (extern and static functions) gtick 0.4.1, 2007-08-18, Roland Stigge * Fixed segfault with user defined sound file (libsndfile) gtick 0.4.0, 2007-08-13, Roland Stigge * Changed mailing list address to gtick-devel@gnu.org * Updated to GPL v3 * Updated Dutch, Finnish, Irish, Italian and Vietnamese translations gtick 0.3.15, 2007-05-05, Roland Stigge * src/Makefile.am: Use LDADD instead of AM_LDFLAGS for used libraries, thanks to Alex V. Myltsev of ALT Linux * po/sk.po: Added Slovak translation, thanks to Jozef Riha gtick 0.3.14, 2007-04-29, Roland Stigge * Updated Russian, Ukrainian and Vietnamese translations gtick 0.3.13, 2007-02-12, Roland Stigge * src/util.c: Fixed zombies on metronome start/stop * Added Korean translation thanks to jacojang gtick 0.3.12, 2006-10-27, Roland Stigge * Fixed missing translatable strings * Updated Czech, German, Irish, Russian and Vietnamese translations gtick 0.3.11, 2006-09-25, Roland Stigge * Updated spec file (thanks to Eric Lemarque) * Added Chinese translation (zh_CN, thanks to Wenshu Liu) * Fixed g_thread_init() call (with g_thread_supported() check) * Incorporated patches by Theo van Klaveren: - Adaptions to GNOME HIG - More Glib usage - GtkAction utilization * Changed FSF address and updated Copyright notices * Made speed related options integer * Implemented ComboBox for speed names * Added Tap button to main window (removed old dialog) * Added profiles (save/restore) gtick 0.3.10, 2006-05-16, Roland Stigge * Updated Czech, German, Irish, Italian, Russian and Vietnamese translations gtick 0.3.9, 2006-03-18, Roland Stigge * Added Ukrainian translation (po/uk.po) gtick 0.3.8, 2006-03-06, Roland Stigge * po/vi.po: Updated Vietnamese translation * src/metro.c: Applied patch by Tom Hargreaves against race condition * Applied additional keybindings, patch by Jeremiah Benham gtick 0.3.7, 2005-11-21, Roland Stigge * src/dsp.c: Fixed integer size problem for custom sound playback * src/dsp.c: Added FreeBSD_kernel support gtick 0.3.6, 2005-08-06, Roland Stigge * Revised po/br_PT.po * Added po/cs.po (Czech translation, thanks to Jiří Pejchal) * Added tempo names patch by Marco Túlio Gontijo e Silva gtick 0.3.5, 2005-01-28, Roland Stigge * Added po/it.po (Italian translation, thanks to Marco Colombo) * Added po/br_PT.po (Brazilian Portuguese translation, thanks to Marco Túlio Gontijo e Silva) * Added po/vi.po (Vietnamese translation, thanks to Clytie Siddall) gtick 0.3.4, 2004-08-02, Roland Stigge * Updated po/ca.po gtick 0.3.3, 2004-07-28, Roland Stigge * Added po/ca.po (Catalan translation) gtick 0.3.2, 2004-06-17, Roland Stigge * Added po/sv.po (Swedish translation) gtick 0.3.1, 2004-04-30, Roland Stigge * Fixed bug disabling meters > 5 after decreasing the spin button lower than 5 * Added po/eu.po (Basque translation) * Updated po/fi.po * Removed OSS mixer handling and replaced it with (local) software mixer gtick 0.3.0, 2004-02-11, Roland Stigge * GTick integrated into GNU Project (no functional changes) gtick 0.2.14, 2004-01-24, Roland Stigge * Integrated po/af.po (Afrikaans translation) * Updated po/ga.po gtick 0.2.13, 2004-01-09, Roland Stigge * Integrated po/fr.po (French translation) * Updated po/{es,nl,ru}.po gtick 0.2.12, 2003-12-25, Roland Stigge * Fixed splitting of menus for translated versions gtick 0.2.11, 2003-12-15, Roland Stigge * Updated po/{ga,ro,ru}.po gtick 0.2.10, 2003-12-08, Roland Stigge * Fixed compile error ("cannot specify -o with -c or -S and multiple compilations") gtick 0.2.9, 2003-12-08, Roland Stigge * Added shortcuts: Start/Stop (^S), Speed (^+,^-), Meter (^1 ... ^9) * Made BPM range configurable * Improved debug output * Fixed src/dsp.c to release dsp device if mixer is not supported * Added "Accent Table" to enable more flexible meters, e.g. 3 + 4 * Added Attack Padding for accents * Added a Visual Tick * Added ./configure option --with-sndfile, i.e. it must be specified explicitly to enable reading sounds from files gtick 0.2.8, 2003-11-19, Roland Stigge * Added po/es.po (Spanish) translation file gtick 0.2.7, 2003-10-31, Roland Stigge * Updated po/ru.po gtick 0.2.6, 2003-10-13, Roland Stigge * Updated po/fi.po * Integrated po/ru.po (Russian) gtick 0.2.5, 2003-10-01, Roland Stigge * Fixed conditional compilation for FreeBSD * Updated po/nl.po * Integrated po/ga.po (Irish) translation file gtick 0.2.4, 2003-09-09, Roland Stigge * Updated po/{nl,ro,de}.po * Added rc file (~/.gtickrc) save / restore functions * Added "Apply" function to properties dialog * Made sound device configurable (OSS programming recommendations) * Moved mixer code to dsp code (OSS programming recommendations) * Ignore errors if no mixer present (OSS programming recommendations) * Change mixer setting on external change (other mixer application) * Changed DSP feeder from cycle based to tick based rounds to prevent clicks on fast speed changes * Added rc file option for speed and meter * Code cleanup: Some variable renaming, further GTK+2 adjustments * Added separate audio thread * Added customizable shell commands at metronome start / stop gtick 0.2.3, 2003-08-29, Roland Stigge * Integrated po/{nl,ro,fi}.po (Dutch, Romanian and Finnish) translation files * Adjusted to automake 1.7 * Fixed command line codeset (UTF-8 only for GTK) * Changed policy of speed slider from GTK_UPDATE_DELAYED to GTK_UPDATE_CONTINUOUS * Added spinbutton to speed and volume adjustments * Fixed bad look of speed slider border * Added menu and status bar * Added (manual) tapping rate approximation (with Enter / mouse key) after patches from Tomas Znamenacek * Added SIGTERM / SIGINT (Ctrl-C) handler * Implemented customizable output sound (via libsndfile1) * Added sine sound * Added options handling system * Updated po/de.po gtick 0.2.2, 2003-07-28, Roland Stigge * Added gtick.spec for RPM, tested under RedHat 9, thanks to Kyrian * Fixed gettext_noop warning in globals.h (commented out #define) * Adjusted GTick to gettext 0.12.1 * Added src/converter.c (C source generator for sample data) * Default click now 44.1kHz, 16 bit (signed) * Added icon from logo * GTick now releases unused device * Implemented faster meter changes * Improved accent handling: double frequency on first beats in measure * Made possible variable playback rates / sample size / mono/stereo gtick 0.2.1, 2003-06-24, Roland Stigge * added new logo, thanks to Ivan Schepens * added autoconf & automake support * GTK+ 2.0 port * adjusted the remaining LGPL'ed .c files to GPL, version 2, according to the LGPL point 3 * added --version, --help, --debug options * added more meters (spinbutton for 1 .. 99 tick per measure) * added i18n via GNU gettext, l10n: de.po gtick 0.2.0, 2003-05-13, Roland Stigge * New maintainer, Alex Roberts doesn't respond and didn't update the package for more than 4 years now. * Fixed GLib-CRITICAL error (g_source_remove) Thanks to Akira TAGOH * Fixed uninitialized startup state which defaults to ticking == 0 * Fixed Gtk-CRITICAL (gtk_widget_destroy) on exit (window closed) * Rewrite of OSS init, tick generation (enhanced reliability) * Built-in tick sample included (tickdata.c) * GUI improvements (changing toggle button label) * included man page from Debian package * included GPL (COPYING) --- changelog format change --- 1999-19-02 (16:42) Alex Roberts * dsp.c: Included gtick.h... Eeek.. * main.c: If /dev/dsp is busy or not available exit the program! 1999-19-02 (15:43) Alex Roberts * mixer.c: Added /dev/mixer code. Mostly taken from GMix and the mixer_applet from Gnome-Core. * main.c: Connected Volume slider to the mixer update callback. * main.c: Moved sound system initialisation to before UI init.. so we can set the slider to the inital PCM volume.. 1999-19-02 (14:32) Alex Roberts * main.c: Added Volume slider/label.. Doesn't vary volume yet.. PCM Volume would be the best volume to vary though.. I guess.. 1999-19-02 (14:04) Alex Roberts * about.c: Added new About box.. for no reason other than it's a fun (yet pointless) addition.. 1999-19-02 (13:22) Alex Roberts * gtick.h: removed gtSetDSPRate(..).. it was never needed.. Hrmm.. "gint count" wasn't in the gtDSPTick function declaration, it shouldn't have compiled! but it did! * dsp.c: On Normal timing, use the longer tone... * Makefile: Added "dist" target, to build the gTick distro.. * 0.1.1 -> 0.1.2 1999-17-02 (14:37) Alex Roberts * dsp.c: Make sure timing count doesn't go over the time chosen.. 1999-17-02 (12:51) Alex Roberts * Makefile: We're debugging, so include DEBUG symbols. And the VERSION definition should be in $CFLAGS.. * dsp.c: Implemented normal, 2/4, 3/4, 4/4 timeing in the gtDSPTick, output function. Requires an arg. of 1, 2, 3 or 4; for the respective output. * main.c: Implemented Radio Buttons for timeing. The timeout callback now works out which radio button is active, and sends the correct signal to gtDSPTick. 1999-16-02 (22:10) Alex Roberts * dsp.c: Implemented first version of a Tick-Tock-Tick-Tock type of alternating output, for different timings.. 1999-16-02 (16:50) Alex Roberts * *.c: Tidied up code. 1999-16-02 (13:32) Alex Roberts * gtick.h: main.c: Added Timing radio buttons (2/4, 3/4, etc).. Now I have to actually implement the buttons.. 1999-14-02 (23:03) Alex Roberts * main.c: Fixed compile warnings.. gtk_signal_connect instead of gtk_signal_connect_object.. it was segfaulting before because i wasnt referencing the correct pointer setup.. * dsp.c: Changed output rate from 16kHz to 44.1kHz, now tempo really does vary from 30bpm to 250bpm (and it does it proprely) * Makefile: version 0.1.0 -> 0.1.1 1999-14-02 (20:00) Alex Roberts * dsp.c: Added FreeBSD compatibility.. thanks to Kain 1999-14-02 (19:42) Alex Roberts * *.[ch]: Added GPL Licence.. Time for a release, methinks... * dsp.c: Removed old depreciated function.. 1999-14-02 (18:11) Alex Roberts * dsp.c: Changed output format to Signed 16bit Little Endian and output rate to 22.05kHz.. with a duration of 256 (however long that is in ms), all is fantastic.. * Makefile: 0.0.3 -> 0.1.0 1999-14-02 (16:47) Alex Roberts * main.c: Added signal callback for an adjustment change.. Changes the BPM rate interval for the timeout. If the timeout is running, it stops it before changing the rate then restarts. Also, moved the interval code from gtBeat to gtUpdateRate, which is the new signal callback. * Makefile: Upped version no. to 0.0.3.. 1999-14-02 (16:30) Alex Roberts * main.c: Thanks to Kain (dalnet/#linuxos) the timeout interval can be easily changed, with the nifty formula (see NOTES).. 1999-14-02 (15:04) Alex Roberts * main.c: Added gtk_timeout functions for metronome output.. the timeout frequencies are weird.. just gotta make the DSP output sound like it does in the dsp.c test program (-DTEST_DSP).. 1999-14-02 (13:36) Alex Roberts * dsp.c: Implemented BPM to DSP Rate interface, see NOTES for the magic numbers required :] 1999-13-02 (21:56) Alex Roberts * Added frame around BPM scale slider Makes it look a lot nicer * BPM slider modified to go 50 to 250, with 75 as the default * Started Log --- the following is an excerpt of the old NEWS file by Alex Roberts: --- 0.1.2 -> 0.1.3 * Implemented variable output volume (using /dev/mixer and the PCM output, which /dev/dsp uses). (Much of this code was taken from Gmix and the Gnome-Panel mixer_applet). * Public release of 0.1.3 0.1.1 -> 0.1.2 * Tidied up code * Added 2/4, 3/4, 4/4 timings * Put longer duration back as the normal output (How it got changed to the shorter duration I have no idea.. it was at 64 instead of 256.. no wonder people have problems with the 0.1.1 release!) 0.1.0 -> 0.1.1 * Modifications to /dev/dsp, set output to 44.1kHz * First public release (0.1.1) 0.0.3 -> 0.1.0 * Implemented variable BPM * Implemented /dev/dsp * Various bug fixes 0.0.1 -> 0.0.3 * First developments.. * Developed interface gtick-0.5.2/ABOUT-NLS0000644000175000017500000026713311617270150011003 000000000000001 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl' library and will decide to use it. If not, you may have to to use the `--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. If you happen to have the `LC_ALL' or some other `LC_xxx' environment variables set, you should unset them before setting `LANG', otherwise the setting of `LANG' will not have the desired effect. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of June 2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ a2ps | [] [] | aegis | | ant-phone | | anubis | | aspell | [] [] | bash | | bfd | | bibshelf | [] | binutils | | bison | | bison-runtime | [] | bluez-pin | [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | | dfarc | | dialog | [] [] | dico | | diffutils | [] | dink | | doodle | | e2fsprogs | [] | enscript | [] | exif | | fetchmail | [] | findutils | [] | flex | [] | freedink | | gas | | gawk | [] [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] [] | gettext-tools | [] [] | gip | [] | gjay | | gliv | [] | glunarclock | [] [] | gnubiff | | gnucash | [] | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | | gold | | gpe-aerial | | gpe-beam | | gpe-bluetooth | | gpe-calendar | | gpe-clock | [] | gpe-conf | | gpe-contacts | | gpe-edit | | gpe-filemanager | | gpe-go | | gpe-login | | gpe-ownerinfo | [] | gpe-package | | gpe-sketchbook | | gpe-su | [] | gpe-taskmanager | [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | [] [] | gsasl | | gss | | gst-plugins-bad | [] | gst-plugins-base | [] | gst-plugins-good | [] | gst-plugins-ugly | [] | gstreamer | [] [] [] | gtick | | gtkam | [] | gtkorphan | [] | gtkspell | [] [] [] | gutenprint | | hello | [] | help2man | | hylafax | | idutils | | indent | [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | | iso_639 | [] [] [] [] | iso_639_3 | | jwhois | | kbd | | keytouch | [] | keytouch-editor | | keytouch-keyboa... | [] | klavaro | [] | latrine | | ld | [] | leafpad | [] [] | libc | [] [] | libexif | () | libextractor | | libgnutls | | libgpewidget | | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | [] | libidn | | lifelines | | liferea | [] [] | lilypond | | linkdr | [] | lordsawar | | lprng | | lynx | [] | m4 | | mailfromd | | mailutils | | make | | man-db | | man-db-manpages | | minicom | | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | | psmisc | | pspp | [] | pwdutils | | radius | [] | recode | [] [] | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] [] | sed | [] [] | sharutils | [] [] | shishi | | skencil | | solfege | | solfege-manual | | soundtracker | | sp | | sysstat | | tar | [] | texinfo | | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] [] | wyslij-po | | xchat | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] | +--------------------------------------------------+ af am an ar as ast az be be@latin bg bn_IN bs ca 6 0 1 2 3 19 1 10 3 28 3 1 38 crh cs da de el en en_GB en_ZA eo es et eu fa +-------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] () | anubis | [] [] | aspell | [] [] [] [] [] | bash | [] [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] | bison | [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] [] [] | cflow | [] [] | clisp | [] [] [] [] | coreutils | [] [] [] [] | cpio | | cppi | | cpplib | [] [] [] | cryptsetup | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] | dink | [] [] [] | doodle | [] | e2fsprogs | [] [] [] | enscript | [] [] [] | exif | () [] [] | fetchmail | [] [] () [] [] [] | findutils | [] [] [] | flex | [] [] | freedink | [] [] [] | gas | [] | gawk | [] [] [] | gcal | [] | gcc | [] [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] [] | gip | [] [] [] [] | gjay | [] | gliv | [] [] [] | glunarclock | [] [] | gnubiff | () | gnucash | [] () () () () | gnuedu | [] [] | gnulib | [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] | gpe-aerial | [] [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] | gpe-conf | [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] () [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] | grub | [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () [] | gtkam | [] [] () [] [] | gtkorphan | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | [] [] [] | hello | [] [] [] [] | help2man | [] | hylafax | [] [] | idutils | [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] [] [] [] () [] [] [] () | iso_3166_2 | () | iso_4217 | [] [] [] () [] [] | iso_639 | [] [] [] [] () [] [] | iso_639_3 | [] | jwhois | [] | kbd | [] [] [] [] [] | keytouch | [] [] | keytouch-editor | [] [] | keytouch-keyboa... | [] | klavaro | [] [] [] [] | latrine | [] () | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | [] [] | libgphoto2 | [] () | libgphoto2_port | [] () [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | [] [] [] | lifelines | [] () | liferea | [] [] [] [] [] | lilypond | [] [] [] | linkdr | [] [] [] | lordsawar | [] | lprng | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] | make | [] [] [] | man-db | | man-db-manpages | | minicom | [] [] [] [] | mkisofs | | myserver | | nano | [] [] [] | opcodes | [] [] | parted | [] [] | pies | | popt | [] [] [] [] [] | psmisc | [] [] [] | pspp | [] | pwdutils | [] | radius | [] | recode | [] [] [] [] [] [] | rosegarden | () () () | rpm | [] [] [] | rush | | sarg | | screem | | scrollkeeper | [] [] [] [] [] | sed | [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | | skencil | [] () [] | solfege | [] [] [] | solfege-manual | [] [] | soundtracker | [] [] [] | sp | [] | sysstat | [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] | tin | [] [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] | vice | () () | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] | wyslij-po | | xchat | [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ crh cs da de el en en_GB en_ZA eo es et eu fa 5 64 105 117 18 1 8 0 28 89 18 19 0 fi fr ga gl gu he hi hr hu hy id is it ja ka kn +----------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] [] | ant-phone | [] [] | anubis | [] [] [] [] | aspell | [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | bibshelf | [] [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] | cppi | [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] [] [] [] | dink | [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] | freedink | [] [] [] | gas | [] [] | gawk | [] [] [] [] () [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] | gip | [] [] [] [] [] [] | gjay | [] | gliv | [] () | glunarclock | [] [] [] [] | gnubiff | () [] () | gnucash | () () () () () [] | gnuedu | [] [] | gnulib | [] [] [] [] [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] [] | gpe-aerial | [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] [] [] | gpe-calendar | [] [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] [] [] | gpe-contacts | [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkorphan | [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | gutenprint | [] [] [] [] | hello | [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] [] | indent | [] [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | () [] [] [] | iso_4217 | [] () [] [] [] [] | iso_639 | [] () [] [] [] [] [] [] [] | iso_639_3 | () [] [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] [] [] [] [] [] | keytouch-editor | [] [] [] [] [] | keytouch-keyboa... | [] [] [] [] [] | klavaro | [] [] | latrine | [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] | libidn | [] [] [] [] | lifelines | () | liferea | [] [] [] [] | lilypond | [] [] | linkdr | [] [] [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | | mailutils | [] [] | make | [] [] [] [] [] [] [] [] [] | man-db | [] [] | man-db-manpages | [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] [] | myserver | | nano | [] [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pies | | popt | [] [] [] [] [] [] [] [] [] | psmisc | [] [] [] | pspp | | pwdutils | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () () () () | rpm | [] [] | rush | | sarg | [] | screem | [] [] | scrollkeeper | [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | shishi | [] | skencil | [] | solfege | [] [] [] [] | solfege-manual | [] [] | soundtracker | [] [] | sp | [] () | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux-ng | [] [] [] [] [] [] | vice | () () () | vmm | [] | vorbis-tools | [] | wastesedge | () () | wdiff | [] | wget | [] [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] | +----------------------------------------------------+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne +-----------------------------------------------+ a2ps | [] | aegis | | ant-phone | | anubis | [] [] | aspell | [] | bash | | bfd | | bibshelf | [] [] | binutils | | bison | [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] | cpio | | cppi | | cpplib | | cryptsetup | | dfarc | [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] | dink | | doodle | | e2fsprogs | | enscript | | exif | [] | fetchmail | | findutils | | flex | | freedink | [] | gas | | gawk | | gcal | | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] | gettext-tools | [] | gip | [] [] | gjay | | gliv | | glunarclock | [] | gnubiff | | gnucash | () () () () | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | [] | gold | | gpe-aerial | [] | gpe-beam | [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] | gpe-contacts | [] [] | gpe-edit | [] | gpe-filemanager | [] [] | gpe-go | [] [] [] | gpe-login | [] | gpe-ownerinfo | [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] | gpe-timesheet | [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | | gsasl | | gss | | gst-plugins-bad | [] [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | | gtick | | gtkam | [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | | hello | [] [] [] | help2man | | hylafax | | idutils | | indent | | iso_15924 | [] [] | iso_3166 | [] [] () [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] | iso_639 | [] [] | iso_639_3 | [] | jwhois | [] | kbd | | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | klavaro | [] | latrine | [] | ld | | leafpad | [] [] [] | libc | [] | libexif | | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | | libidn | | lifelines | | liferea | | lilypond | | linkdr | | lordsawar | | lprng | | lynx | | m4 | | mailfromd | | mailutils | | make | [] | man-db | | man-db-manpages | | minicom | [] | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | [] [] [] | psmisc | | pspp | | pwdutils | | radius | | recode | | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] | sed | | sharutils | | shishi | | skencil | | solfege | [] | solfege-manual | | soundtracker | | sp | | sysstat | [] | tar | [] | texinfo | [] | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] | wyslij-po | | xchat | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +-----------------------------------------------+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +---------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] | bash | [] [] | bfd | [] | bibshelf | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] () | buzztard | [] [] | cflow | [] | clisp | [] [] | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cppi | [] | cpplib | [] | cryptsetup | [] | dfarc | [] | dialog | [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] [] | dink | () | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | exif | [] [] [] () [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] | gas | | gawk | [] [] [] [] | gcal | | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] | gip | [] [] [] [] [] | gjay | | gliv | [] [] [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | [] () | gnucash | [] () () () | gnuedu | [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gnutls | [] [] | gold | | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] | gphoto2 | [] [] [] [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] | gramadoir | [] [] | grep | [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | gutenprint | [] [] | hello | [] [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] [] [] [] | iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] [] | iso_4217 | [] [] [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] [] [] | keytouch-editor | [] [] [] | keytouch-keyboa... | [] [] [] | klavaro | [] [] | latrine | [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] | lifelines | [] [] | liferea | [] [] [] [] [] () () [] | lilypond | [] | linkdr | [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | | nano | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | pies | [] | popt | [] [] [] [] | psmisc | [] [] [] | pspp | [] [] | pwdutils | [] | radius | [] [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () | rpm | [] [] [] | rush | [] [] | sarg | | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | skencil | [] [] | solfege | [] [] [] [] | solfege-manual | [] [] [] | soundtracker | [] | sp | | sysstat | [] [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] [] | vice | [] | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ a2ps | [] [] [] [] [] | 27 aegis | [] | 9 ant-phone | [] [] [] [] | 9 anubis | [] [] [] [] | 15 aspell | [] [] [] | 20 bash | [] [] [] | 12 bfd | [] | 6 bibshelf | [] [] [] | 16 binutils | [] [] | 8 bison | [] [] | 12 bison-runtime | [] [] [] [] [] [] | 29 bluez-pin | [] [] [] [] [] [] [] [] | 37 bombono-dvd | [] | 4 buzztard | [] | 7 cflow | [] [] [] | 9 clisp | | 10 coreutils | [] [] [] [] | 22 cpio | [] [] [] [] [] [] | 13 cppi | [] [] | 5 cpplib | [] [] [] [] [] [] | 14 cryptsetup | [] [] | 7 dfarc | [] | 9 dialog | [] [] [] [] [] [] [] | 30 dico | [] | 2 diffutils | [] [] [] [] [] [] | 30 dink | | 4 doodle | [] [] | 7 e2fsprogs | [] [] [] | 11 enscript | [] [] [] [] | 17 exif | [] [] [] | 16 fetchmail | [] [] [] | 17 findutils | [] [] [] [] [] | 20 flex | [] [] [] [] | 15 freedink | [] | 10 gas | [] | 4 gawk | [] [] [] [] | 18 gcal | [] [] | 5 gcc | [] [] [] | 7 gettext-examples | [] [] [] [] [] [] [] | 34 gettext-runtime | [] [] [] [] [] [] [] | 29 gettext-tools | [] [] [] [] [] [] | 22 gip | [] [] [] [] | 22 gjay | [] | 3 gliv | [] [] [] | 14 glunarclock | [] [] [] [] [] | 19 gnubiff | [] [] | 4 gnucash | () [] () [] () | 10 gnuedu | [] [] | 7 gnulib | [] [] [] [] | 16 gnunet | [] | 1 gnunet-gtk | [] [] [] | 5 gnutls | [] [] [] | 10 gold | [] | 4 gpe-aerial | [] [] [] | 18 gpe-beam | [] [] [] | 19 gpe-bluetooth | [] [] [] | 13 gpe-calendar | [] [] [] [] | 12 gpe-clock | [] [] [] [] [] | 28 gpe-conf | [] [] [] [] | 20 gpe-contacts | [] [] [] | 17 gpe-edit | [] [] [] | 12 gpe-filemanager | [] [] [] [] | 16 gpe-go | [] [] [] [] [] | 25 gpe-login | [] [] [] | 11 gpe-ownerinfo | [] [] [] [] [] | 25 gpe-package | [] [] [] | 13 gpe-sketchbook | [] [] [] | 20 gpe-su | [] [] [] [] [] | 30 gpe-taskmanager | [] [] [] [] [] | 29 gpe-timesheet | [] [] [] [] [] | 25 gpe-today | [] [] [] [] [] [] | 30 gpe-todo | [] [] [] [] | 17 gphoto2 | [] [] [] [] [] | 24 gprof | [] [] [] | 15 gpsdrive | [] [] [] | 11 gramadoir | [] [] [] | 11 grep | [] [] [] | 10 grub | [] [] [] | 14 gsasl | [] [] [] [] | 14 gss | [] [] [] | 11 gst-plugins-bad | [] [] [] [] | 26 gst-plugins-base | [] [] [] [] [] | 24 gst-plugins-good | [] [] [] [] | 24 gst-plugins-ugly | [] [] [] [] [] | 29 gstreamer | [] [] [] [] | 22 gtick | [] [] [] | 13 gtkam | [] [] [] | 20 gtkorphan | [] [] [] | 14 gtkspell | [] [] [] [] [] [] [] [] [] | 45 gutenprint | [] | 10 hello | [] [] [] [] [] [] | 21 help2man | [] [] | 7 hylafax | [] | 5 idutils | [] [] [] [] | 17 indent | [] [] [] [] [] [] | 30 iso_15924 | () [] () [] [] | 16 iso_3166 | [] [] () [] [] () [] [] [] () | 53 iso_3166_2 | () [] () [] | 9 iso_4217 | [] () [] [] () [] [] | 26 iso_639 | [] [] [] () [] () [] [] [] [] | 38 iso_639_3 | [] () | 8 jwhois | [] [] [] [] [] | 16 kbd | [] [] [] [] [] | 15 keytouch | [] [] [] | 16 keytouch-editor | [] [] [] | 14 keytouch-keyboa... | [] [] [] | 14 klavaro | [] | 11 latrine | [] [] [] | 10 ld | [] [] [] [] | 11 leafpad | [] [] [] [] [] [] | 33 libc | [] [] [] [] [] | 21 libexif | [] () | 7 libextractor | [] | 1 libgnutls | [] [] [] | 9 libgpewidget | [] [] [] | 14 libgpg-error | [] [] [] | 9 libgphoto2 | [] [] | 8 libgphoto2_port | [] [] [] [] | 14 libgsasl | [] [] [] | 13 libiconv | [] [] [] [] | 21 libidn | () [] [] | 11 lifelines | [] | 4 liferea | [] [] [] | 21 lilypond | [] | 7 linkdr | [] [] [] [] [] | 17 lordsawar | | 1 lprng | [] | 3 lynx | [] [] [] [] | 17 m4 | [] [] [] [] | 19 mailfromd | [] [] | 3 mailutils | [] | 5 make | [] [] [] [] | 21 man-db | [] [] [] | 8 man-db-manpages | | 4 minicom | [] [] | 16 mkisofs | [] [] | 9 myserver | | 0 nano | [] [] [] [] | 21 opcodes | [] [] [] | 11 parted | [] [] [] [] [] | 15 pies | [] [] | 3 popt | [] [] [] [] [] [] | 27 psmisc | [] [] | 11 pspp | | 4 pwdutils | [] [] | 6 radius | [] [] | 9 recode | [] [] [] [] | 28 rosegarden | () | 0 rpm | [] [] [] | 11 rush | [] [] | 4 sarg | | 1 screem | [] | 3 scrollkeeper | [] [] [] [] [] | 27 sed | [] [] [] [] [] | 30 sharutils | [] [] [] [] [] | 22 shishi | [] | 3 skencil | [] [] | 7 solfege | [] [] [] [] | 16 solfege-manual | [] | 8 soundtracker | [] [] [] | 9 sp | [] | 3 sysstat | [] [] | 15 tar | [] [] [] [] [] [] | 23 texinfo | [] [] [] [] [] | 17 tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux-ng | [] [] [] [] | 20 vice | () () | 1 vmm | [] | 4 vorbis-tools | [] | 6 wastesedge | | 2 wdiff | [] [] | 7 wget | [] [] [] [] [] | 26 wyslij-po | [] [] | 8 xchat | [] [] [] [] [] [] | 36 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If June 2010 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. 1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `coordinator@translationproject.org' to make the `.pot' files available to the translation teams. gtick-0.5.2/depcomp0000755000175000017500000005064312116334337011130 00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2012-03-27.16; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by 'PROGRAMS ARGS'. object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac # A tabulation character. tab=' ' # A newline character. nl=' ' if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvisualcpp fi if test "$depmode" = msvc7msys; then # This is just like msvc7 but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u='sed s,\\\\,/,g' depmode=msvc7 fi if test "$depmode" = xlc; then # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency informations. gccflag=-qmakedep=gcc,-MF depmode=gcc fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the "deleted header file" problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' "$nl" < "$tmpdepfile" | ## Some versions of gcc put a space before the ':'. On the theory ## that the space means something, we add a space to the output as ## well. hp depmode also adds that space, but also prefixes the VPATH ## to the object. Take care to not repeat it in the output. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like '#:fec' to the end of the # dependency line. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr "$nl" ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' "$nl" < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; xlc) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts '$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form 'foo.o: dependent.h'. # Do two passes, one to just change these to # '$object: dependent.h' and one to simply 'dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler anf tcc (Tiny C Compiler) understand '-MD -MF file'. # However on # $CC -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using '\': # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... # tcc 0.9.26 (FIXME still under development at the moment of writing) # will emit a similar output, but also prepend the continuation lines # with horizontal tabulation characters. "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form 'foo.o: dependent.h', # or 'foo.o: dep1.h dep2.h \', or ' dep3.h dep4.h \'. # Do two passes, one to just change these to # '$object: dependent.h' and one to simply 'dependent.h:'. sed -e "s/^[ $tab][ $tab]*/ /" -e "s,^[^:]*:,$object :," \ < "$tmpdepfile" > "$depfile" sed ' s/[ '"$tab"'][ '"$tab"']*/ /g s/^ *// s/ *\\*$// s/^[^:]*: *// /^$/d /:$/d s/$/ :/ ' < "$tmpdepfile" >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add 'dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in 'foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" sed -e 's,^.*\.[a-z]*:['"$tab"' ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; msvc7) if test "$libtool" = yes; then showIncludes=-Wc,-showIncludes else showIncludes=-showIncludes fi "$@" $showIncludes > "$tmpdepfile" stat=$? grep -v '^Note: including file: ' "$tmpdepfile" if test "$stat" = 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" # The first sed program below extracts the file names and escapes # backslashes for cygpath. The second sed program outputs the file # name when reading, but also accumulates all include files in the # hold buffer in order to output them again at the end. This only # works with sed implementations that can handle large buffers. sed < "$tmpdepfile" -n ' /^Note: including file: *\(.*\)/ { s//\1/ s/\\/\\\\/g p }' | $cygpath_u | sort -u | sed -n ' s/ /\\ /g s/\(.*\)/'"$tab"'\1 \\/p s/.\(.*\) \\/\1:/ H $ { s/.*/'"$tab"'/ G p }' >> "$depfile" rm -f "$tmpdepfile" ;; msvc7msys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for ':' # in the target name. This is to cope with DOS-style filenames: # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. "$@" $dashmflag | sed 's:^['"$tab"' ]*[^:'"$tab"' ][^:][^:]*\:['"$tab"' ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' "$nl" < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" # makedepend may prepend the VPATH from the source file name to the object. # No need to regex-escape $object, excess matching of '.' is harmless. sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' "$nl" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove '-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" echo "$tab" >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: gtick-0.5.2/config.h.in0000644000175000017500000003446312116334650011576 00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP systems. This function is required for `alloca.c' support on those systems. */ #undef CRAY_STACKSEG_END /* Define to 1 if using `alloca.c'. */ #undef C_ALLOCA /* "Dmalloc LDFLAGS" */ #undef DMALLOC_LIBS /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 if you have `alloca', as a function or macro. */ #undef HAVE_ALLOCA /* Define to 1 if you have and it should be used (not on Ultrix). */ #undef HAVE_ALLOCA_H /* Define to 1 if you have the `argz_count' function. */ #undef HAVE_ARGZ_COUNT /* Define to 1 if you have the header file. */ #undef HAVE_ARGZ_H /* Define to 1 if you have the `argz_next' function. */ #undef HAVE_ARGZ_NEXT /* Define to 1 if you have the `argz_stringify' function. */ #undef HAVE_ARGZ_STRINGIFY /* Define to 1 if you have the `asprintf' function. */ #undef HAVE_ASPRINTF /* Define to 1 if you have the header file. */ #undef HAVE_ASSERT_H /* Define to 1 if the compiler understands __builtin_expect. */ #undef HAVE_BUILTIN_EXPECT /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the declaration of `feof_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_FEOF_UNLOCKED /* Define to 1 if you have the declaration of `fgets_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_FGETS_UNLOCKED /* Define to 1 if you have the declaration of `getc_unlocked', and to 0 if you don't. */ #undef HAVE_DECL_GETC_UNLOCKED /* Define to 1 if you have the declaration of `_snprintf', and to 0 if you don't. */ #undef HAVE_DECL__SNPRINTF /* Define to 1 if you have the declaration of `_snwprintf', and to 0 if you don't. */ #undef HAVE_DECL__SNWPRINTF /* Define to 1 if you have the header file. */ #undef HAVE_DMALLOC_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `floor' function. */ #undef HAVE_FLOOR /* Define to 1 if you have the `fwprintf' function. */ #undef HAVE_FWPRINTF /* Define to 1 if you have the `getcwd' function. */ #undef HAVE_GETCWD /* Define to 1 if you have the `getegid' function. */ #undef HAVE_GETEGID /* Define to 1 if you have the `geteuid' function. */ #undef HAVE_GETEUID /* Define to 1 if you have the `getgid' function. */ #undef HAVE_GETGID /* Define to 1 if you have the `getpagesize' function. */ #undef HAVE_GETPAGESIZE /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define to 1 if you have the `getuid' function. */ #undef HAVE_GETUID /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV /* Define if you have the 'intmax_t' type in or . */ #undef HAVE_INTMAX_T /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_INTTYPES_H_WITH_UINTMAX /* Define if you have and nl_langinfo(CODESET). */ #undef HAVE_LANGINFO_CODESET /* Define if your file defines LC_MESSAGES. */ #undef HAVE_LC_MESSAGES /* Define to 1 if you have the `check' library (-lcheck). */ #undef HAVE_LIBCHECK /* Define to 1 if you have the `dmalloc' library (-ldmalloc). */ #undef HAVE_LIBDMALLOC /* Define to 1 if you have the header file. */ #undef HAVE_LIBINTL_H /* Define to 1 if you have the `m' library (-lm). */ #undef HAVE_LIBM /* Define to 1 if you have the `sndfile' library (-lsndfile). */ #undef HAVE_LIBSNDFILE /* Define to 1 if you have the header file. */ #undef HAVE_LIMITS_H /* Define to 1 if the system has the type `long long int'. */ #undef HAVE_LONG_LONG_INT /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MATH_H /* Define to 1 if you have the `mbrtowc' function. */ #undef HAVE_MBRTOWC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the `mempcpy' function. */ #undef HAVE_MEMPCPY /* Define to 1 if you have a working `mmap' system call. */ #undef HAVE_MMAP /* Define to 1 if you have the `munmap' function. */ #undef HAVE_MUNMAP /* Define to 1 if you have the `newlocale' function. */ #undef HAVE_NEWLOCALE /* Define if your printf() function supports format strings with positions. */ #undef HAVE_POSIX_PRINTF /* Define if the defines PTHREAD_MUTEX_RECURSIVE. */ #undef HAVE_PTHREAD_MUTEX_RECURSIVE /* Define if the POSIX multithreading library has read/write locks. */ #undef HAVE_PTHREAD_RWLOCK /* Define to 1 if you have the `putenv' function. */ #undef HAVE_PUTENV /* Define to 1 if you have the `setenv' function. */ #undef HAVE_SETENV /* Define to 1 if you have the `setlocale' function. */ #undef HAVE_SETLOCALE /* Define to 1 if you have the `snprintf' function. */ #undef HAVE_SNPRINTF /* Define to 1 if you have the header file. */ #undef HAVE_STDARG_H /* Define to 1 if you have the header file. */ #undef HAVE_STDDEF_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define if exists, doesn't clash with , and declares uintmax_t. */ #undef HAVE_STDINT_H_WITH_UINTMAX /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the `stpcpy' function. */ #undef HAVE_STPCPY /* Define to 1 if you have the `strcasecmp' function. */ #undef HAVE_STRCASECMP /* Define to 1 if you have the `strdup' function. */ #undef HAVE_STRDUP /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the `strnlen' function. */ #undef HAVE_STRNLEN /* Define to 1 if you have the `strtol' function. */ #undef HAVE_STRTOL /* Define to 1 if you have the `strtoul' function. */ #undef HAVE_STRTOUL /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_PARAM_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TIME_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have the `tsearch' function. */ #undef HAVE_TSEARCH /* Define if you have the 'uintmax_t' type in or . */ #undef HAVE_UINTMAX_T /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if the system has the type `unsigned long long int'. */ #undef HAVE_UNSIGNED_LONG_LONG_INT /* Define to 1 if you have the `uselocale' function. */ #undef HAVE_USELOCALE /* Define to 1 or 0, depending whether the compiler supports simple visibility declarations. */ #undef HAVE_VISIBILITY /* Define if you have the 'wchar_t' type. */ #undef HAVE_WCHAR_T /* Define to 1 if you have the `wcrtomb' function. */ #undef HAVE_WCRTOMB /* Define to 1 if you have the `wcslen' function. */ #undef HAVE_WCSLEN /* Define to 1 if you have the `wcsnlen' function. */ #undef HAVE_WCSNLEN /* Define if you have the 'wint_t' type. */ #undef HAVE_WINT_T /* Define to 1 if O_NOATIME works. */ #undef HAVE_WORKING_O_NOATIME /* Define to 1 if O_NOFOLLOW works. */ #undef HAVE_WORKING_O_NOFOLLOW /* Define to 1 if you have the `__fsetlocking' function. */ #undef HAVE___FSETLOCKING /* Define as const if the declaration of iconv() needs const. */ #undef ICONV_CONST /* Define if integer division by zero raises signal SIGFPE. */ #undef INTDIV0_RAISES_SIGFPE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define if exists and defines unusable PRI* macros. */ #undef PRI_MACROS_BROKEN /* Define if the pthread_in_use() detection is hard. */ #undef PTHREAD_IN_USE_DETECTION_HARD /* Define as the maximum value of type 'size_t', if the system doesn't define it. */ #ifndef SIZE_MAX # undef SIZE_MAX #endif /* If using the C implementation of alloca, define if you know the direction of stack growth for your system; otherwise it will be automatically deduced at runtime. STACK_DIRECTION > 0 => grows toward higher addresses STACK_DIRECTION < 0 => grows toward lower addresses STACK_DIRECTION = 0 => direction of growth unknown */ #undef STACK_DIRECTION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Define if the POSIX multithreading library can be used. */ #undef USE_POSIX_THREADS /* Define if references to the POSIX multithreading library should be made weak. */ #undef USE_POSIX_THREADS_WEAK /* Define if the GNU Pth multithreading library can be used. */ #undef USE_PTH_THREADS /* Define if references to the GNU Pth multithreading library should be made weak. */ #undef USE_PTH_THREADS_WEAK /* Define if the old Solaris multithreading library can be used. */ #undef USE_SOLARIS_THREADS /* Define if references to the old Solaris multithreading library should be made weak. */ #undef USE_SOLARIS_THREADS_WEAK /* Enable extensions on AIX 3, Interix. */ #ifndef _ALL_SOURCE # undef _ALL_SOURCE #endif /* Enable GNU extensions on systems that have them. */ #ifndef _GNU_SOURCE # undef _GNU_SOURCE #endif /* Enable threading extensions on Solaris. */ #ifndef _POSIX_PTHREAD_SEMANTICS # undef _POSIX_PTHREAD_SEMANTICS #endif /* Enable extensions on HP NonStop. */ #ifndef _TANDEM_SOURCE # undef _TANDEM_SOURCE #endif /* Enable general extensions on Solaris. */ #ifndef __EXTENSIONS__ # undef __EXTENSIONS__ #endif /* Define if the Win32 multithreading API can be used. */ #undef USE_WIN32_THREADS /* Check detection */ #undef WITH_CHECK /* libsndfile selection */ #undef WITH_SNDFILE /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a `char[]'. */ #undef YYTEXT_POINTER /* Define to 1 if on MINIX. */ #undef _MINIX /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE /* Define to `__inline__' or `__inline' if that's what the C compiler calls it, or to nothing if 'inline' is not supported under any name. */ #ifndef __cplusplus #undef inline #endif /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define as the type of the result of subtracting two pointers, if the system doesn't define it. */ #undef ptrdiff_t /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to unsigned long or unsigned long long if and don't define. */ #undef uintmax_t #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define #define __libc_lock_define_initialized gl_lock_define_initialized #define __libc_lock_init gl_lock_init #define __libc_lock_lock gl_lock_lock #define __libc_lock_unlock gl_lock_unlock #define __libc_lock_recursive_t gl_recursive_lock_t #define __libc_lock_define_recursive gl_recursive_lock_define #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized #define __libc_lock_init_recursive gl_recursive_lock_init #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use #define glthread_lock_init_func libintl_lock_init_func #define glthread_lock_lock_func libintl_lock_lock_func #define glthread_lock_unlock_func libintl_lock_unlock_func #define glthread_lock_destroy_func libintl_lock_destroy_func #define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded #define glthread_rwlock_init_func libintl_rwlock_init_func #define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded #define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func #define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded #define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func #define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded #define glthread_rwlock_unlock_func libintl_rwlock_unlock_func #define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded #define glthread_rwlock_destroy_func libintl_rwlock_destroy_func #define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded #define glthread_recursive_lock_init_func libintl_recursive_lock_init_func #define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded #define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func #define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded #define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func #define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded #define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func #define glthread_once_func libintl_once_func #define glthread_once_singlethreaded libintl_once_singlethreaded #define glthread_once_multithreaded libintl_once_multithreaded gtick-0.5.2/testsuite/0000755000175000017500000000000012116334700011646 500000000000000gtick-0.5.2/testsuite/testmetro-static.c0000644000175000017500000000370211734072150015252 00000000000000/* * testmetro-static.c: Unit Tests of static functions for metro.c * * This file is part of GTick * * * Copyright (c) 2008 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include #include #include #include #include #include #include #include /* Unit Test common code */ #include "common.h" /* Include from code under test */ #include "metro.c" #include "dsp.h" static dsp_t* dsp = NULL; /* TODO: Adjust setup/teardown */ void setup_meter(void) { dsp = (dsp_t*)malloc(sizeof(dsp_t)); assert(dsp != NULL); memset(dsp, 0x47, sizeof(dsp_t)); } void teardown_meter(void) { free(dsp); dsp = NULL; } /* * Test static tap_cb() */ START_TEST(test__tap_cb__0) { int tempfd = dup(STDERR_FILENO); RESOURCE_GUARD_START(); close(STDERR_FILENO); tap_cb(NULL); dup2(tempfd, STDERR_FILENO); close(tempfd); RESOURCE_GUARD_END(); } END_TEST Suite *test_suite(void) { Suite *s = suite_create("Metro-static"); TCase *tc_static = tcase_create("Static Functions"); tcase_add_checked_fixture(tc_static, setup_meter, teardown_meter); tcase_add_test_raise_signal(tc_static, test__tap_cb__0, SIGABRT); suite_add_tcase(s, tc_static); return s; } int main(int argc __attribute((unused)), char* argv[] __attribute((unused))) { return test_suite_run(test_suite()); } gtick-0.5.2/testsuite/optionlexer.c0000644000175000017500000013746611005161230014313 00000000000000#line 2 "optionlexer.c" #line 4 "optionlexer.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define yy_create_buffer option__create_buffer #define yy_delete_buffer option__delete_buffer #define yy_flex_debug option__flex_debug #define yy_init_buffer option__init_buffer #define yy_flush_buffer option__flush_buffer #define yy_load_buffer_state option__load_buffer_state #define yy_switch_to_buffer option__switch_to_buffer #define yyin option_in #define yyleng option_leng #define yylex option_lex #define yylineno option_lineno #define yyout option_out #define yyrestart option_restart #define yytext option_text #define yywrap option_wrap #define yyalloc option_alloc #define yyrealloc option_realloc #define yyfree option_free #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 35 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include #include #include #include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! C99 */ #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ /* C99 requires __STDC__ to be defined as 1. */ #if defined (__STDC__) #define YY_USE_CONST #endif /* defined (__STDC__) */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE option_restart(option_in ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif extern int option_leng; extern FILE *option_in, *option_out; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up option_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up option_text again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef size_t yy_size_t; #endif #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via option_restart()), so that the user can continue scanning by * just pointing option_in at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when option_text is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int option_leng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow option_wrap()'s to do buffer switches * instead of setting up a fresh option_in. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void option_restart (FILE *input_file ); void option__switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE option__create_buffer (FILE *file,int size ); void option__delete_buffer (YY_BUFFER_STATE b ); void option__flush_buffer (YY_BUFFER_STATE b ); void option_push_buffer_state (YY_BUFFER_STATE new_buffer ); void option_pop_buffer_state (void ); static void option_ensure_buffer_stack (void ); static void option__load_buffer_state (void ); static void option__init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER option__flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE option__scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE option__scan_string (yyconst char *yy_str ); YY_BUFFER_STATE option__scan_bytes (yyconst char *bytes,int len ); void *option_alloc (yy_size_t ); void *option_realloc (void *,yy_size_t ); void option_free (void * ); #define yy_new_buffer option__create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ option_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ option__create_buffer(option_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ option_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ option__create_buffer(option_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ typedef unsigned char YY_CHAR; FILE *option_in = (FILE *) 0, *option_out = (FILE *) 0; typedef int yy_state_type; extern int option_lineno; int option_lineno = 1; extern char *option_text; #define yytext_ptr option_text static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up option_text. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ option_leng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 9 #define YY_END_OF_BUFFER 10 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static yyconst flex_int16_t yy_accept[22] = { 0, 0, 0, 0, 0, 10, 8, 8, 3, 2, 4, 7, 6, 7, 0, 1, 2, 4, 0, 0, 5, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 7, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 8, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int32_t yy_meta[9] = { 0, 1, 1, 2, 3, 1, 1, 1, 1 } ; static yyconst flex_int16_t yy_base[26] = { 0, 0, 0, 7, 10, 33, 34, 29, 34, 9, 29, 34, 34, 26, 26, 34, 0, 26, 25, 21, 34, 34, 17, 20, 15, 23 } ; static yyconst flex_int16_t yy_def[26] = { 0, 21, 1, 22, 22, 21, 21, 23, 21, 21, 24, 21, 21, 25, 23, 21, 9, 24, 24, 25, 21, 0, 21, 21, 21, 21 } ; static yyconst flex_int16_t yy_nxt[43] = { 0, 6, 6, 6, 6, 7, 6, 8, 9, 11, 12, 13, 11, 12, 13, 16, 17, 16, 10, 10, 10, 14, 14, 14, 19, 20, 19, 18, 18, 15, 20, 18, 15, 21, 5, 21, 21, 21, 21, 21, 21, 21, 21 } ; static yyconst flex_int16_t yy_chk[43] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 9, 24, 9, 22, 22, 22, 23, 23, 23, 25, 19, 25, 18, 17, 14, 13, 10, 7, 5, 21, 21, 21, 21, 21, 21, 21, 21, 21 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int option__flex_debug; int option__flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *option_text; #line 1 "optionlexer.l" #line 4 "optionlexer.l" /* * options file format lexer * * This file is part of GTick * * Copyright 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ /* type for semantic values of symbols: malloc'ed strings */ #define YYSTYPE char* /* GNU headers */ #include #include #include /* GTK+ headers */ #include /* own headers */ #include "globals.h" #include "optionparser.h" #include "optionlexer.h" char* option_filename; YYLTYPE option_lloc; void option_locate(); /* exclusive start condition for C-style comments */ #line 529 "optionlexer.c" #define INITIAL 0 #define _VALUE_ 1 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Accessor methods to globals. These are made visible to non-reentrant scanners for convenience. */ int option_lex_destroy (void ); int option_get_debug (void ); void option_set_debug (int debug_flag ); YY_EXTRA_TYPE option_get_extra (void ); void option_set_extra (YY_EXTRA_TYPE user_defined ); FILE *option_get_in (void ); void option_set_in (FILE * in_str ); FILE *option_get_out (void ); void option_set_out (FILE * out_str ); int option_get_leng (void ); char *option_get_text (void ); int option_get_lineno (void ); void option_set_lineno (int line_number ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int option_wrap (void ); #else extern int option_wrap (void ); #endif #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO fwrite( option_text, option_leng, 1, option_out ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( option_in )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( option_in ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, option_in))==0 && ferror(option_in)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(option_in); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int option_lex (void); #define YY_DECL int option_lex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after option_text and option_leng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 54 "optionlexer.l" #line 713 "optionlexer.c" if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! option_in ) option_in = stdin; if ( ! option_out ) option_out = stdout; if ( ! YY_CURRENT_BUFFER ) { option_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = option__create_buffer(option_in,YY_BUF_SIZE ); } option__load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of option_text. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 22 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 34 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: /* rule 1 can match eol */ YY_RULE_SETUP #line 56 "optionlexer.l" { /* eat up comment lines */ option_locate(); } YY_BREAK case 2: YY_RULE_SETUP #line 59 "optionlexer.l" { option_locate(); option_lval = strdup(option_text); return TOKEN_NAME; } YY_BREAK case 3: YY_RULE_SETUP #line 64 "optionlexer.l" { option_locate(); BEGIN(_VALUE_); return *option_text; } YY_BREAK case 4: YY_RULE_SETUP #line 69 "optionlexer.l" { option_locate(); option_lval = strdup(option_text); return TOKEN_VALUE; } YY_BREAK case 5: YY_RULE_SETUP #line 74 "optionlexer.l" { int len = strlen(option_text) - 2; option_locate(); option_lval = (char *)g_malloc(len + 1); strncpy(option_lval, option_text + 1, len); option_lval[len] = '\0'; return TOKEN_VALUE; } YY_BREAK case 6: /* rule 6 can match eol */ YY_RULE_SETUP #line 83 "optionlexer.l" { option_locate(); BEGIN(INITIAL); } YY_BREAK case 7: YY_RULE_SETUP #line 87 "optionlexer.l" { /* eat up rest (whitespace & unknown) */ option_locate(); } YY_BREAK case 8: /* rule 8 can match eol */ YY_RULE_SETUP #line 90 "optionlexer.l" { /* eat up rest (whitespace & unknown) */ option_locate(); } YY_BREAK case 9: YY_RULE_SETUP #line 94 "optionlexer.l" ECHO; YY_BREAK #line 873 "optionlexer.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(_VALUE_): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed option_in at a new source and called * option_lex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = option_in; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_c_buf_p); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( option_wrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * option_text, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of option_lex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *source = (yytext_ptr); register int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ option_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), (size_t) num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; option_restart(option_in ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) { /* Extend the array by 50%, plus the number we really need. */ yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1); YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) option_realloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size ); if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); } (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = (yy_start); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 22 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { register int yy_is_jam; register char *yy_cp = (yy_c_buf_p); register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 22 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 21); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ int offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ option_restart(option_in ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( option_wrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve option_text */ (yy_hold_char) = *++(yy_c_buf_p); return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void option_restart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ option_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = option__create_buffer(option_in,YY_BUF_SIZE ); } option__init_buffer(YY_CURRENT_BUFFER,input_file ); option__load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void option__switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * option_pop_buffer_state(); * option_push_buffer_state(new_buffer); */ option_ensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; option__load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (option_wrap()) processing, but the only time this flag * is looked at is after option_wrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void option__load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; option_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE option__create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) option_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in option__create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) option_alloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in option__create_buffer()" ); b->yy_is_our_buffer = 1; option__init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with option__create_buffer() * */ void option__delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) option_free((void *) b->yy_ch_buf ); option_free((void *) b ); } #ifndef __cplusplus extern int isatty (int ); #endif /* __cplusplus */ /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a option_restart() or at EOF. */ static void option__init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; option__flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then option__init_buffer was _probably_ * called from option_restart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void option__flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) option__load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void option_push_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; option_ensure_buffer_stack(); /* This block is copied from option__switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from option__switch_to_buffer. */ option__load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void option_pop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; option__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { option__load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void option_ensure_buffer_stack (void) { int num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; (yy_buffer_stack) = (struct yy_buffer_state**)option_alloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in option_ensure_buffer_stack()" ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)option_realloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); if ( ! (yy_buffer_stack) ) YY_FATAL_ERROR( "out of dynamic memory in option_ensure_buffer_stack()" ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE option__scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) option_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in option__scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; option__switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to option_lex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * option__scan_bytes() instead. */ YY_BUFFER_STATE option__scan_string (yyconst char * yystr ) { return option__scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to option_lex() will * scan from a @e copy of @a bytes. * @param bytes the byte buffer to scan * @param len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE option__scan_bytes (yyconst char * yybytes, int _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) option_alloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in option__scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = option__scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in option__scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up option_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ option_text[option_leng] = (yy_hold_char); \ (yy_c_buf_p) = option_text + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ option_leng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int option_get_lineno (void) { return option_lineno; } /** Get the input stream. * */ FILE *option_get_in (void) { return option_in; } /** Get the output stream. * */ FILE *option_get_out (void) { return option_out; } /** Get the length of the current token. * */ int option_get_leng (void) { return option_leng; } /** Get the current token. * */ char *option_get_text (void) { return option_text; } /** Set the current line number. * @param line_number * */ void option_set_lineno (int line_number ) { option_lineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see option__switch_to_buffer */ void option_set_in (FILE * in_str ) { option_in = in_str ; } void option_set_out (FILE * out_str ) { option_out = out_str ; } int option_get_debug (void) { return option__flex_debug; } void option_set_debug (int bdebug ) { option__flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from option_lex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT option_in = stdin; option_out = stdout; #else option_in = (FILE *) 0; option_out = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * option_lex_init() */ return 0; } /* option_lex_destroy is for both reentrant and non-reentrant scanners. */ int option_lex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ option__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; option_pop_buffer_state(); } /* Destroy the stack itself. */ option_free((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * option_lex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *option_alloc (yy_size_t size ) { return (void *) malloc( size ); } void *option_realloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void option_free (void * ptr ) { free( (char *) ptr ); /* see option_realloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 94 "optionlexer.l" /* For portability's sake */ int option_wrap() { return 1; } /* * adjusts option_lloc according to option_text */ void option_locate() { char* temp; option_lloc.first_line = option_lloc.last_line; option_lloc.first_column = option_lloc.last_column; for (temp = option_text; *temp != '\0'; temp++) { if (*temp == '\n') { ++ option_lloc.last_line; option_lloc.last_column = 1; } else { ++ option_lloc.last_column; } } } /* * to be called directly before the parser run * sets up option_filename (to be free'd by option_lexer_deinit) on success * * on success, option_in contains valid FILE* handle, else NULL */ void option_lexer_init(char* filename) { option_lloc.first_line = 1; option_lloc.first_column = 1; option_lloc.last_line = 1; option_lloc.last_column = 1; if ((option_in = fopen(filename, "r"))) { option_filename = strdup(filename); } } /* * to be called directly after the parser run */ void option_lexer_deinit() { if (fclose(option_in) == EOF) { fprintf(stderr, "Warning: Couldn't close options file.\n"); } free(option_filename); } gtick-0.5.2/testsuite/optionparser.h0000644000175000017500000000453612116334677014511 00000000000000/* A Bison parser, made by GNU Bison 2.5. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. 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 3 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, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { TOKEN_NAME = 258, TOKEN_VALUE = 259 }; #endif /* Tokens. */ #define TOKEN_NAME 258 #define TOKEN_VALUE 259 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif extern YYSTYPE option_lval; #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED typedef struct YYLTYPE { int first_line; int first_column; int last_line; int last_column; } YYLTYPE; # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ # define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_TRIVIAL 1 #endif extern YYLTYPE option_lloc; gtick-0.5.2/testsuite/common.c0000644000175000017500000001004211005150114013206 00000000000000/* * common.c: Common Code for Unit Tests * * This file is part of GTick * * * Copyright (c) 2008 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include #include #include #include #include #include #include #include "common.h" #ifdef HAVE_DMALLOC_H /* Returns number of elements in specified list */ int get_track_list_length(struct track_list_t *l) { int ret = 0; while (l) { l = l->next; ret++; } return ret; } struct track_list_t* track_list; int guard_level = 0; void memory_track(const char *file, const unsigned int line, const int func_id, const DMALLOC_SIZE byte_size, const DMALLOC_SIZE alignment, const DMALLOC_PNT old_addr, const DMALLOC_PNT new_addr) { dmalloc_track(NULL); switch (func_id) { case DMALLOC_FUNC_MALLOC: case DMALLOC_FUNC_CALLOC: case DMALLOC_FUNC_MEMALIGN: case DMALLOC_FUNC_VALLOC: case DMALLOC_FUNC_STRDUP: /* Allocation: Add entry to list */ { struct track_list_t** temp = &track_list; while (*temp) temp = &((*temp)->next); *temp = (struct track_list_t*) malloc(sizeof(struct track_list_t)); (*temp)->next = NULL; (*temp)->file = file; (*temp)->line = line; (*temp)->func_id = func_id; (*temp)->byte_size = byte_size; (*temp)->alignment = alignment; (*temp)->addr = new_addr; } break; case DMALLOC_FUNC_REALLOC: case DMALLOC_FUNC_RECALLOC: /* Re-Allocation: Change entry in list */ { struct track_list_t** temp = &track_list; while (*temp && (*temp)->addr != old_addr) temp = &((*temp)->next); fail_unless(*temp != NULL, "Reallocation of unknown memory chunk (%d bytes) at %s:%d", byte_size, line ? file : "", line); assert((*temp)->addr == old_addr); (*temp)->addr = new_addr; } break; case DMALLOC_FUNC_FREE: case DMALLOC_FUNC_CFREE: /* De-Allocation: Remove entry from list */ { struct track_list_t** temp = &track_list; struct track_list_t* free_elem = NULL; while (*temp && (*temp)->addr != old_addr) temp = &((*temp)->next); #if 0 fail_unless(*temp != NULL, "De-Allocation of unknown memory chunk (%d bytes) at %s:%d", byte_size, line ? file : "", line); #endif if (*temp == NULL) break; /* TODO: Some external entity did it... */ assert((*temp)->addr == old_addr); free_elem = *temp; *temp = (*temp)->next; free(free_elem); } break; #if 0 /* C++ Functions unsupported */ case DMALLOC_FUNC_NEW: case DMALLOC_FUNC_NEW_ARRAY: case DMALLOC_FUNC_DELETE: case DMALLOC_FUNC_DELETE_ARRAY: #endif default: fail("Unsupported dmalloc func_id: %d", func_id); } dmalloc_track(memory_track); } #endif /* HAVE_DMALLOC_H */ /* default epsilon */ double epsilon = 0.000001; /* returns 1 if a is close enough to b considering epsilon */ int epsilon_cmp(double a, double b) { return fabs(a - b) < epsilon; } int test_suite_run(Suite* s) { int number_failed; SRunner *sr; #ifdef HAVE_DMALLOC_H dmalloc_debug(0); #else printf("WARNING: No memory leak checks done due to missing dmalloc.\n"); #endif sr = srunner_create(s); srunner_run_all(sr, CK_NORMAL); number_failed = srunner_ntests_failed(sr); srunner_free(sr); return (number_failed == 0) ? EXIT_SUCCESS : EXIT_FAILURE; } gtick-0.5.2/testsuite/testmetro.c0000644000175000017500000000355611005154242013766 00000000000000/* * testmetro.c: Unit Tests for metro.c * * This file is part of GTick * * * Copyright (c) 2008 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include #include #include #include #include #include #include /* Unit Test common code */ #include "common.h" /* Include from code under test */ #include "metro.h" #include "dsp.h" static dsp_t* dsp = NULL; /* TODO: Adjust setup/teardown */ void setup_meter(void) { dsp = (dsp_t*)malloc(sizeof(dsp_t)); assert(dsp != NULL); memset(dsp, 0x47, sizeof(dsp_t)); } void teardown_meter(void) { free(dsp); dsp = NULL; } /* * Test external set_meter() */ START_TEST(test__set_meter__0) { RESOURCE_GUARD_START(); fail_unless(set_meter(NULL, NULL, NULL) == -1, "Error expected on set_meter(NULL, NULL, NULL)"); RESOURCE_GUARD_END(); } END_TEST Suite *test_suite(void) { Suite *s = suite_create("Metro"); TCase *tc_extern = tcase_create("Extern Functions"); tcase_add_checked_fixture(tc_extern, setup_meter, teardown_meter); tcase_add_test(tc_extern, test__set_meter__0); suite_add_tcase(s, tc_extern); return s; } int main(int argc __attribute((unused)), char* argv[] __attribute((unused))) { return test_suite_run(test_suite()); } gtick-0.5.2/testsuite/common.h0000644000175000017500000000543411005150102013221 00000000000000/* * common.h: Common Code for Unit Tests * * This file is part of GTick * * * Copyright (c) 2008 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef _COMMON_H #define _COMMON_H #include #if (WITH_CHECK != 1) #error "You need Check for building and running the test suite." #endif #include #ifdef HAVE_DMALLOC_H #include #endif /* DMALLOC */ /* Memory checking functions */ #ifdef HAVE_DMALLOC_H struct track_list_t { struct track_list_t *next; const char *file; unsigned int line; int func_id; DMALLOC_SIZE byte_size; DMALLOC_SIZE alignment; const DMALLOC_PNT addr; }; extern int get_track_list_length(struct track_list_t *l); extern struct track_list_t* track_list; extern int guard_level; extern void memory_track(const char *file, const unsigned int line, const int func_id, const DMALLOC_SIZE byte_size, const DMALLOC_SIZE alignment, const DMALLOC_PNT old_addr, const DMALLOC_PNT new_addr); #define RESOURCE_GUARD_START() do { \ fail_unless(guard_level == 0, "Nested RESOURCE_GUARD_START() not supported"); \ guard_level ++; \ dmalloc_debug_setup("debug=0x4e48503"); \ track_list = NULL; \ dmalloc_track(memory_track); \ } while (0) #define RESOURCE_GUARD_END() do { \ fail_unless(guard_level == 1, "RESOURCE_GUARD_END() without RESOURCE_GUARD_START()"); \ guard_level --; \ dmalloc_track(NULL); \ if (track_list != NULL && track_list->line != 0) /* TODO: externally managed chunks? */ \ fail("%d memory leak(s) detected. First leak is %ld bytes allocated at %s:%d", \ get_track_list_length(track_list), \ track_list->byte_size, \ track_list->line ? track_list->file : "", \ track_list->line); \ dmalloc_debug(0); \ } while (0) #else #define RESOURCE_GUARD_START() #define RESOURCE_GUARD_END() #endif /* HAVE_DMALLOC_H */ /* default epsilon */ extern double epsilon; /* returns 1 if a is close enough to b considering epsilon */ extern int epsilon_cmp(double a, double b); extern int test_suite_run(Suite* s); #endif /* _COMMON_H */ gtick-0.5.2/testsuite/optionparser.c0000644000175000017500000014043112116334677014477 00000000000000/* A Bison parser, made by GNU Bison 2.5. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. 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 3 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, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.5" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* Using locations. */ #define YYLSP_NEEDED 1 /* Substitute the variable and function names. */ #define yyparse option_parse #define yylex option_lex #define yyerror option_error #define yylval option_lval #define yychar option_char #define yydebug option_debug #define yynerrs option_nerrs #define yylloc option_lloc /* Copy the first part of user declarations. */ /* Line 268 of yacc.c */ #line 2 "optionparser.y" /* * options file format parser * * This file is part of GTick * * Copyright 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ /* regular GNU system includes */ #include #include /* own header files */ #include "globals.h" #include "option.h" /* type for semantic values of symbols: malloc'ed strings */ #define YYSTYPE char* /* let yyparse() accept one argument of type void* */ /* #define YYPARSE_PARAM option_list */ int option_lex(void); void option_error(void *option_list, const char *message); /* Line 268 of yacc.c */ #line 121 "optionparser.c" /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { TOKEN_NAME = 258, TOKEN_VALUE = 259 }; #endif /* Tokens. */ #define TOKEN_NAME 258 #define TOKEN_VALUE 259 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED typedef struct YYLTYPE { int first_line; int first_column; int last_line; int last_column; } YYLTYPE; # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ # define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_TRIVIAL 1 #endif /* Copy the second part of user declarations. */ /* Line 343 of yacc.c */ #line 184 "optionparser.c" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int yyi) #else static int YYID (yyi) int yyi; #endif { return yyi; } #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \ && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_alloc; YYSTYPE yyvs_alloc; YYLTYPE yyls_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + 2 * YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ #define YYFINAL 2 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 5 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 6 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 3 /* YYNRULES -- Number of rules. */ #define YYNRULES 6 /* YYNRULES -- Number of states. */ #define YYNSTATES 8 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 259 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint8 yyprhs[] = { 0, 0, 3, 4, 7, 11, 14 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int8 yyrhs[] = { 7, 0, -1, -1, 7, 8, -1, 3, 5, 4, -1, 3, 5, -1, 1, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { 0, 52, 52, 53, 56, 62, 67 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "TOKEN_NAME", "TOKEN_VALUE", "'='", "$accept", "lines", "line", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 61 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 6, 7, 7, 8, 8, 8 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 0, 2, 3, 2, 1 }; /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. Performed when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 2, 0, 1, 6, 0, 3, 5, 4 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 1, 5 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -4 static const yytype_int8 yypact[] = { -4, 0, -4, -4, -3, -4, 1, -4 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -4, -4, -4 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 static const yytype_uint8 yytable[] = { 2, 3, 6, 4, 0, 7 }; #define yypact_value_is_default(yystate) \ ((yystate) == (-4)) #define yytable_value_is_error(yytable_value) \ YYID (0) static const yytype_int8 yycheck[] = { 0, 1, 5, 3, -1, 4 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 7, 0, 1, 3, 8, 5, 4 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. However, YYFAIL appears to be in use. Nevertheless, it is formally deprecated in Bison 2.4.2's NEWS entry, where a plan to phase it out is discussed. */ #define YYFAIL goto yyerrlab #if defined YYFAIL /* This is here to suppress warnings from the GCC cpp's -Wunused-macros. Normally we don't worry about that warning, but some users do, and we want to make it easy for users to remove YYFAIL uses, which will produce warnings from Bison 2.5. */ #endif #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (option_list, YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value, Location, option_list); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, void *option_list) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, option_list) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; YYLTYPE const * const yylocationp; void *option_list; #endif { if (!yyvaluep) return; YYUSE (yylocationp); YYUSE (option_list); # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, void *option_list) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp, option_list) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; YYLTYPE const * const yylocationp; void *option_list; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); YY_LOCATION_PRINT (yyoutput, *yylocationp); YYFPRINTF (yyoutput, ": "); yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, option_list); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) #else static void yy_stack_print (yybottom, yytop) yytype_int16 *yybottom; yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, void *option_list) #else static void yy_reduce_print (yyvsp, yylsp, yyrule, option_list) YYSTYPE *yyvsp; YYLTYPE *yylsp; int yyrule; void *option_list; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) , &(yylsp[(yyi + 1) - (yynrhs)]) , option_list); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, yylsp, Rule, option_list); \ } while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message about the unexpected token YYTOKEN for the state stack whose top is YYSSP. Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is not large enough to hold the message. In that case, also set *YYMSG_ALLOC to the required number of bytes. Return 2 if the required number of bytes is too large to store. */ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ const char *yyformat = 0; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per "expected"). */ int yycount = 0; /* There are many possibilities here to consider: - Assume YYFAIL is not used. It's too flawed to consider. See for details. YYERROR is fine as it does not invoke this function. - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action is an error action. In that case, don't check for expected tokens because there are none. - The only way there can be no lookahead present (in yychar) is if this state is a consistent state with a default action. Thus, detecting the absence of a lookahead is sufficient to determine that there is no unexpected or expected token to report. In that case, just report a simple "syntax error". - Don't assume there isn't a lookahead just because this state is a consistent state with a default action. There might have been a previous inconsistent state, consistent state with a non-default action, or user semantic action that manipulated yychar. - Of course, the expected token list depends on states to have correct lookahead information, and it depends on the parser not to perform extra reductions after fetching a lookahead from the scanner and before detecting a syntax error. Thus, state merging (from LALR or IELR) and default reductions corrupt the expected token list. However, the list is correct for canonical LR with one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ if (yytoken != YYEMPTY) { int yyn = yypact[*yyssp]; yyarg[yycount++] = yytname[yytoken]; if (!yypact_value_is_default (yyn)) { /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. In other words, skip the first -YYN actions for this state because they are default actions. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yyx; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && !yytable_value_is_error (yytable[yyx + yyn])) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } } } switch (yycount) { # define YYCASE_(N, S) \ case N: \ yyformat = S; \ break YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); # undef YYCASE_ } yysize1 = yysize + yystrlen (yyformat); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; if (*yymsg_alloc < yysize) { *yymsg_alloc = 2 * yysize; if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; return 1; } /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ { char *yyp = *yymsg; int yyi = 0; while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyformat += 2; } else { yyp++; yyformat++; } } return 0; } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, void *option_list) #else static void yydestruct (yymsg, yytype, yyvaluep, yylocationp, option_list) const char *yymsg; int yytype; YYSTYPE *yyvaluep; YYLTYPE *yylocationp; void *option_list; #endif { YYUSE (yyvaluep); YYUSE (yylocationp); YYUSE (option_list); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void *option_list); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Location data for the lookahead symbol. */ YYLTYPE yylloc; /* Number of syntax errors so far. */ int yynerrs; /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *option_list) #else int yyparse (option_list) void *option_list; #endif #endif { int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: `yyss': related to states. `yyvs': related to semantic values. `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; /* The location stack. */ YYLTYPE yylsa[YYINITDEPTH]; YYLTYPE *yyls; YYLTYPE *yylsp; /* The locations where the error started and ended. */ YYLTYPE yyerror_range[3]; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; YYLTYPE yyloc; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yytoken = 0; yyss = yyssa; yyvs = yyvsa; yyls = yylsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; yylsp = yyls; #if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL /* Initialize the default location before parsing starts. */ yylloc.first_line = yylloc.last_line = 1; yylloc.first_column = yylloc.last_column = 1; #endif goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; YYLTYPE *yyls1 = yyls; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yyls1, yysize * sizeof (*yylsp), &yystacksize); yyls = yyls1; yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); YYSTACK_RELOCATE (yyls_alloc, yyls); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; yylsp = yyls + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yytable_value_is_error (yyn)) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; *++yylsp = yylloc; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; /* Default location. */ YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); YY_REDUCE_PRINT (yyn); switch (yyn) { case 4: /* Line 1806 of yacc.c */ #line 57 "optionparser.y" { option_set(option_list, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)])); free((yyvsp[(1) - (3)])); free((yyvsp[(3) - (3)])); } break; case 5: /* Line 1806 of yacc.c */ #line 63 "optionparser.y" { option_set(option_list, (yyvsp[(1) - (2)]), ""); free((yyvsp[(1) - (2)])); } break; case 6: /* Line 1806 of yacc.c */ #line 68 "optionparser.y" { fprintf(stderr, "Found error region from %d:%d up to %d:%d.\n", (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column, (yylsp[(1) - (1)]).last_line, (yylsp[(1) - (1)]).last_column); (yyval) = (yyvsp[(1) - (1)]); } break; /* Line 1806 of yacc.c */ #line 1479 "optionparser.c" default: break; } /* User semantic actions sometimes alter yychar, and that requires that yytoken be updated with the new translation. We take the approach of translating immediately before every use of yytoken. One alternative is translating here after every semantic action, but that translation would be missed if the semantic action invokes YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an incorrect destructor might then be invoked immediately. In the case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; *++yylsp = yyloc; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (option_list, YY_("syntax error")); #else # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ yyssp, yytoken) { char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; yysyntax_error_status = YYSYNTAX_ERROR; if (yysyntax_error_status == 0) yymsgp = yymsg; else if (yysyntax_error_status == 1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); if (!yymsg) { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; yysyntax_error_status = 2; } else { yysyntax_error_status = YYSYNTAX_ERROR; yymsgp = yymsg; } } yyerror (option_list, yymsgp); if (yysyntax_error_status == 2) goto yyexhaustedlab; } # undef YYSYNTAX_ERROR #endif } yyerror_range[1] = yylloc; if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval, &yylloc, option_list); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; yyerror_range[1] = yylsp[1-yylen]; /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yyerror_range[1] = *yylsp; yydestruct ("Error: popping", yystos[yystate], yyvsp, yylsp, option_list); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++yyvsp = yylval; yyerror_range[2] = yylloc; /* Using YYLLOC is tempting, but would change the location of the lookahead. YYLOC is available though. */ YYLLOC_DEFAULT (yyloc, yyerror_range, 2); *++yylsp = yyloc; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined(yyoverflow) || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (option_list, YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = YYTRANSLATE (yychar); yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval, &yylloc, option_list); } /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp, yylsp, option_list); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif /* Make sure YYID is used. */ return YYID (yyresult); } /* Line 2067 of yacc.c */ #line 76 "optionparser.y" /* * callback for yyparse(), (also) called on errors (hopefully) handled * by error token actions in grammar, but not if errors occur to * often (bison needs 3 "correct" tokens to recover) */ void option_error(void *option_list, const char *message) { if (debug && option_nerrs == 1) fprintf(stderr, "Warning: Parsing options file: first error at %d:%d: %s.\n", option_lloc.first_line, option_lloc.first_column, message); } gtick-0.5.2/testsuite/testg711.c0000644000175000017500000000304711005153054013312 00000000000000/* * testg711.c: Unit Tests for g711.c * * This file is part of GTick * * * Copyright (c) 2008 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include #include #include #include #include #include #include /* Unit Test common code */ #include "common.h" /* Include from code under test */ #include "g711.h" /* * Test external linear2ulaw() */ START_TEST(test__linear2ulaw__0) { unsigned char x; RESOURCE_GUARD_START(); x = linear2ulaw(0); fail_unless(x == 0xFF, "Wrong ulaw value (0x%02x)", x); RESOURCE_GUARD_END(); } END_TEST Suite *test_suite(void) { Suite *s = suite_create("G.711"); TCase *tc_extern = tcase_create("Extern Functions"); tcase_add_test(tc_extern, test__linear2ulaw__0); suite_add_tcase(s, tc_extern); return s; } int main(int argc __attribute((unused)), char* argv[] __attribute((unused))) { return test_suite_run(test_suite()); } gtick-0.5.2/testsuite/Makefile.am0000644000175000017500000000310411617237431013630 00000000000000## Process this file with automake to produce Makefile.in check_PROGRAMS = testdsp \ testg711 \ testmetro \ testmetro-static TESTS=$(check_PROGRAMS) testdsp_SOURCES = testdsp.c \ ../src/dsp.c \ ../src/g711.c \ ../src/util.c \ ../src/threadtalk.c \ common.c testg711_SOURCES = testg711.c \ ../src/g711.c \ common.c testmetro_SOURCES = testmetro.c \ ../src/metro.c \ ../src/g711.c \ ../src/visualtick.c \ ../src/threadtalk.c \ ../src/util.c \ ../src/option.c \ ../src/options.c \ ../src/gtkoptions.c \ ../src/dsp.c \ ../src/help.c \ ../src/gtkutil.c \ ../src/profiles.c \ ../src/optionlexer.l \ ../src/optionparser.y \ common.c testmetro_static_SOURCES = testmetro-static.c \ ../src/g711.c \ ../src/visualtick.c \ ../src/threadtalk.c \ ../src/util.c \ ../src/option.c \ ../src/options.c \ ../src/gtkoptions.c \ ../src/dsp.c \ ../src/help.c \ ../src/gtkutil.c \ ../src/profiles.c \ ../src/optionlexer.l \ ../src/optionparser.y \ common.c #testdsp_ LDADD = @DEPS_LIBS@ @SNDFILE_LIBS@ @CHECK_LIBS@ @DMALLOC_LIBS@ noinst_HEADERS = common.h top_srcdir = @top_srcdir@ datadir = @datadir@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ LIBS = @LIBINTL@ @LIBS@ INCLUDES = -I../src -I../intl -I$(top_srcdir)/intl @DEPS_CFLAGS@ @SNDFILE_CFLAGS@ @CHECK_CFLAGS@ @DMALLOC_CFLAGS@ AM_CFLAGS = -DVERSION='"@VERSION@"' -DPACKAGE='"@PACKAGE@"' -DUSE_DMALLOC AM_YFLAGS = -d AM_LFLAGS=-olex.yy.c BUILT_SOURCES = ../src/optionparser.h gtick-0.5.2/testsuite/testdsp.c0000644000175000017500000000601711005153030013413 00000000000000/* * testdsp.c: Unit Tests for dsp.c * * This file is part of GTick * * * Copyright (c) 2008 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include #include #include #include #include #include #include /* Unit Test common code */ #include "common.h" /* Include from code under test */ #include "dsp.h" static dsp_t* dsp = NULL; void setup_dsp(void) { dsp = (dsp_t*)malloc(sizeof(dsp_t)); assert(dsp != NULL); memset(dsp, 0x47, sizeof(dsp_t)); } void teardown_dsp(void) { free(dsp); dsp = NULL; } /* * Test external dsp_get_volume() */ START_TEST(test__dsp_get_volume__0) { RESOURCE_GUARD_START(); dsp->volume = 0.0; fail_unless(epsilon_cmp(dsp_get_volume(dsp), 0.123) == 0, "Error: Bad volume returned!"); fail_unless(epsilon_cmp(dsp_get_volume(dsp), 0.0), "Error: Bad volume returned!"); RESOURCE_GUARD_END(); } END_TEST /* * Test external dsp_get_volume() */ START_TEST(test__dsp_get_volume__0123) { RESOURCE_GUARD_START(); dsp->volume = 0.123; fail_unless(epsilon_cmp(dsp_get_volume(dsp), 0.0) == 0, "Error: Bad volume returned!"); fail_unless(epsilon_cmp(dsp_get_volume(dsp), 0.123), "Error: Bad volume returned!"); RESOURCE_GUARD_END(); } END_TEST /* * Test external dsp_set_volume() */ START_TEST(test__dsp_set_volume__0) { RESOURCE_GUARD_START(); dsp->running = 0; // TODO: only an init workaround dsp_set_volume(dsp, 0.0); fail_unless(epsilon_cmp(dsp->volume, 0.0), "Error: Bad volume set (%g)!", dsp->volume); RESOURCE_GUARD_END(); } END_TEST /* * Test external dsp_set_volume() */ START_TEST(test__dsp_set_volume__0765) { RESOURCE_GUARD_START(); dsp->running = 0; // TODO: only an init workaround dsp_set_volume(dsp, 0.765); fail_unless(epsilon_cmp(dsp->volume, 0.765), "Error: Bad volume set (%g)!", dsp->volume); RESOURCE_GUARD_END(); } END_TEST Suite *test_suite(void) { Suite *s = suite_create("DSP"); TCase *tc_extern = tcase_create("Extern Functions"); tcase_add_checked_fixture(tc_extern, setup_dsp, teardown_dsp); tcase_add_test(tc_extern, test__dsp_get_volume__0); tcase_add_test(tc_extern, test__dsp_get_volume__0123); tcase_add_test(tc_extern, test__dsp_set_volume__0); tcase_add_test(tc_extern, test__dsp_set_volume__0765); suite_add_tcase(s, tc_extern); return s; } int main(int argc __attribute((unused)), char* argv[] __attribute((unused))) { return test_suite_run(test_suite()); } gtick-0.5.2/testsuite/Makefile.in0000644000175000017500000012627012116334337013651 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ check_PROGRAMS = testdsp$(EXEEXT) testg711$(EXEEXT) testmetro$(EXEEXT) \ testmetro-static$(EXEEXT) subdir = testsuite DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in optionlexer.c optionparser.c \ optionparser.h ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/fcntl-o.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glibc2.m4 $(top_srcdir)/m4/glibc21.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intdiv0.m4 \ $(top_srcdir)/m4/intl.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/intmax.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/lock.m4 \ $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/size_max.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/threadlib.m4 \ $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am_testdsp_OBJECTS = testdsp.$(OBJEXT) dsp.$(OBJEXT) g711.$(OBJEXT) \ util.$(OBJEXT) threadtalk.$(OBJEXT) common.$(OBJEXT) testdsp_OBJECTS = $(am_testdsp_OBJECTS) testdsp_LDADD = $(LDADD) testdsp_DEPENDENCIES = am_testg711_OBJECTS = testg711.$(OBJEXT) g711.$(OBJEXT) \ common.$(OBJEXT) testg711_OBJECTS = $(am_testg711_OBJECTS) testg711_LDADD = $(LDADD) testg711_DEPENDENCIES = am_testmetro_OBJECTS = testmetro.$(OBJEXT) metro.$(OBJEXT) \ g711.$(OBJEXT) visualtick.$(OBJEXT) threadtalk.$(OBJEXT) \ util.$(OBJEXT) option.$(OBJEXT) options.$(OBJEXT) \ gtkoptions.$(OBJEXT) dsp.$(OBJEXT) help.$(OBJEXT) \ gtkutil.$(OBJEXT) profiles.$(OBJEXT) optionlexer.$(OBJEXT) \ optionparser.$(OBJEXT) common.$(OBJEXT) testmetro_OBJECTS = $(am_testmetro_OBJECTS) testmetro_LDADD = $(LDADD) testmetro_DEPENDENCIES = am_testmetro_static_OBJECTS = testmetro-static.$(OBJEXT) \ g711.$(OBJEXT) visualtick.$(OBJEXT) threadtalk.$(OBJEXT) \ util.$(OBJEXT) option.$(OBJEXT) options.$(OBJEXT) \ gtkoptions.$(OBJEXT) dsp.$(OBJEXT) help.$(OBJEXT) \ gtkutil.$(OBJEXT) profiles.$(OBJEXT) optionlexer.$(OBJEXT) \ optionparser.$(OBJEXT) common.$(OBJEXT) testmetro_static_OBJECTS = $(am_testmetro_static_OBJECTS) testmetro_static_LDADD = $(LDADD) testmetro_static_DEPENDENCIES = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS) YLWRAP = $(top_srcdir)/ylwrap YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS) SOURCES = $(testdsp_SOURCES) $(testg711_SOURCES) $(testmetro_SOURCES) \ $(testmetro_static_SOURCES) DIST_SOURCES = $(testdsp_SOURCES) $(testg711_SOURCES) \ $(testmetro_SOURCES) $(testmetro_static_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags am__tty_colors = \ red=; grn=; lgn=; blu=; std= DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CHECK_CFLAGS = @CHECK_CFLAGS@ CHECK_LIBS = @CHECK_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ DEPDIR = @DEPDIR@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DMALLOC_CFLAGS = @DMALLOC_CFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBINTL@ @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = $(datadir)/locale localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ TESTS = $(check_PROGRAMS) testdsp_SOURCES = testdsp.c \ ../src/dsp.c \ ../src/g711.c \ ../src/util.c \ ../src/threadtalk.c \ common.c testg711_SOURCES = testg711.c \ ../src/g711.c \ common.c testmetro_SOURCES = testmetro.c \ ../src/metro.c \ ../src/g711.c \ ../src/visualtick.c \ ../src/threadtalk.c \ ../src/util.c \ ../src/option.c \ ../src/options.c \ ../src/gtkoptions.c \ ../src/dsp.c \ ../src/help.c \ ../src/gtkutil.c \ ../src/profiles.c \ ../src/optionlexer.l \ ../src/optionparser.y \ common.c testmetro_static_SOURCES = testmetro-static.c \ ../src/g711.c \ ../src/visualtick.c \ ../src/threadtalk.c \ ../src/util.c \ ../src/option.c \ ../src/options.c \ ../src/gtkoptions.c \ ../src/dsp.c \ ../src/help.c \ ../src/gtkutil.c \ ../src/profiles.c \ ../src/optionlexer.l \ ../src/optionparser.y \ common.c #testdsp_ LDADD = @DEPS_LIBS@ @SNDFILE_LIBS@ @CHECK_LIBS@ @DMALLOC_LIBS@ noinst_HEADERS = common.h INCLUDES = -I../src -I../intl -I$(top_srcdir)/intl @DEPS_CFLAGS@ @SNDFILE_CFLAGS@ @CHECK_CFLAGS@ @DMALLOC_CFLAGS@ AM_CFLAGS = -DVERSION='"@VERSION@"' -DPACKAGE='"@PACKAGE@"' -DUSE_DMALLOC AM_YFLAGS = -d AM_LFLAGS = -olex.yy.c BUILT_SOURCES = ../src/optionparser.h all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .l .o .obj .y $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu testsuite/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu testsuite/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): clean-checkPROGRAMS: -test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS) testdsp$(EXEEXT): $(testdsp_OBJECTS) $(testdsp_DEPENDENCIES) $(EXTRA_testdsp_DEPENDENCIES) @rm -f testdsp$(EXEEXT) $(LINK) $(testdsp_OBJECTS) $(testdsp_LDADD) $(LIBS) testg711$(EXEEXT): $(testg711_OBJECTS) $(testg711_DEPENDENCIES) $(EXTRA_testg711_DEPENDENCIES) @rm -f testg711$(EXEEXT) $(LINK) $(testg711_OBJECTS) $(testg711_LDADD) $(LIBS) optionparser.h: optionparser.c @if test ! -f $@; then rm -f optionparser.c; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) optionparser.c; else :; fi testmetro$(EXEEXT): $(testmetro_OBJECTS) $(testmetro_DEPENDENCIES) $(EXTRA_testmetro_DEPENDENCIES) @rm -f testmetro$(EXEEXT) $(LINK) $(testmetro_OBJECTS) $(testmetro_LDADD) $(LIBS) testmetro-static$(EXEEXT): $(testmetro_static_OBJECTS) $(testmetro_static_DEPENDENCIES) $(EXTRA_testmetro_static_DEPENDENCIES) @rm -f testmetro-static$(EXEEXT) $(LINK) $(testmetro_static_OBJECTS) $(testmetro_static_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dsp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g711.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtkoptions.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtkutil.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/help.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/metro.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/option.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optionlexer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optionparser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/options.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/profiles.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testdsp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testg711.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testmetro-static.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testmetro.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threadtalk.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/visualtick.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` dsp.o: ../src/dsp.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dsp.o -MD -MP -MF $(DEPDIR)/dsp.Tpo -c -o dsp.o `test -f '../src/dsp.c' || echo '$(srcdir)/'`../src/dsp.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/dsp.Tpo $(DEPDIR)/dsp.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/dsp.c' object='dsp.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dsp.o `test -f '../src/dsp.c' || echo '$(srcdir)/'`../src/dsp.c dsp.obj: ../src/dsp.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT dsp.obj -MD -MP -MF $(DEPDIR)/dsp.Tpo -c -o dsp.obj `if test -f '../src/dsp.c'; then $(CYGPATH_W) '../src/dsp.c'; else $(CYGPATH_W) '$(srcdir)/../src/dsp.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/dsp.Tpo $(DEPDIR)/dsp.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/dsp.c' object='dsp.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o dsp.obj `if test -f '../src/dsp.c'; then $(CYGPATH_W) '../src/dsp.c'; else $(CYGPATH_W) '$(srcdir)/../src/dsp.c'; fi` g711.o: ../src/g711.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT g711.o -MD -MP -MF $(DEPDIR)/g711.Tpo -c -o g711.o `test -f '../src/g711.c' || echo '$(srcdir)/'`../src/g711.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/g711.Tpo $(DEPDIR)/g711.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/g711.c' object='g711.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o g711.o `test -f '../src/g711.c' || echo '$(srcdir)/'`../src/g711.c g711.obj: ../src/g711.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT g711.obj -MD -MP -MF $(DEPDIR)/g711.Tpo -c -o g711.obj `if test -f '../src/g711.c'; then $(CYGPATH_W) '../src/g711.c'; else $(CYGPATH_W) '$(srcdir)/../src/g711.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/g711.Tpo $(DEPDIR)/g711.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/g711.c' object='g711.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o g711.obj `if test -f '../src/g711.c'; then $(CYGPATH_W) '../src/g711.c'; else $(CYGPATH_W) '$(srcdir)/../src/g711.c'; fi` util.o: ../src/util.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT util.o -MD -MP -MF $(DEPDIR)/util.Tpo -c -o util.o `test -f '../src/util.c' || echo '$(srcdir)/'`../src/util.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/util.Tpo $(DEPDIR)/util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/util.c' object='util.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o util.o `test -f '../src/util.c' || echo '$(srcdir)/'`../src/util.c util.obj: ../src/util.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT util.obj -MD -MP -MF $(DEPDIR)/util.Tpo -c -o util.obj `if test -f '../src/util.c'; then $(CYGPATH_W) '../src/util.c'; else $(CYGPATH_W) '$(srcdir)/../src/util.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/util.Tpo $(DEPDIR)/util.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/util.c' object='util.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o util.obj `if test -f '../src/util.c'; then $(CYGPATH_W) '../src/util.c'; else $(CYGPATH_W) '$(srcdir)/../src/util.c'; fi` threadtalk.o: ../src/threadtalk.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT threadtalk.o -MD -MP -MF $(DEPDIR)/threadtalk.Tpo -c -o threadtalk.o `test -f '../src/threadtalk.c' || echo '$(srcdir)/'`../src/threadtalk.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/threadtalk.Tpo $(DEPDIR)/threadtalk.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/threadtalk.c' object='threadtalk.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o threadtalk.o `test -f '../src/threadtalk.c' || echo '$(srcdir)/'`../src/threadtalk.c threadtalk.obj: ../src/threadtalk.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT threadtalk.obj -MD -MP -MF $(DEPDIR)/threadtalk.Tpo -c -o threadtalk.obj `if test -f '../src/threadtalk.c'; then $(CYGPATH_W) '../src/threadtalk.c'; else $(CYGPATH_W) '$(srcdir)/../src/threadtalk.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/threadtalk.Tpo $(DEPDIR)/threadtalk.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/threadtalk.c' object='threadtalk.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o threadtalk.obj `if test -f '../src/threadtalk.c'; then $(CYGPATH_W) '../src/threadtalk.c'; else $(CYGPATH_W) '$(srcdir)/../src/threadtalk.c'; fi` metro.o: ../src/metro.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT metro.o -MD -MP -MF $(DEPDIR)/metro.Tpo -c -o metro.o `test -f '../src/metro.c' || echo '$(srcdir)/'`../src/metro.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/metro.Tpo $(DEPDIR)/metro.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/metro.c' object='metro.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o metro.o `test -f '../src/metro.c' || echo '$(srcdir)/'`../src/metro.c metro.obj: ../src/metro.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT metro.obj -MD -MP -MF $(DEPDIR)/metro.Tpo -c -o metro.obj `if test -f '../src/metro.c'; then $(CYGPATH_W) '../src/metro.c'; else $(CYGPATH_W) '$(srcdir)/../src/metro.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/metro.Tpo $(DEPDIR)/metro.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/metro.c' object='metro.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o metro.obj `if test -f '../src/metro.c'; then $(CYGPATH_W) '../src/metro.c'; else $(CYGPATH_W) '$(srcdir)/../src/metro.c'; fi` visualtick.o: ../src/visualtick.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT visualtick.o -MD -MP -MF $(DEPDIR)/visualtick.Tpo -c -o visualtick.o `test -f '../src/visualtick.c' || echo '$(srcdir)/'`../src/visualtick.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/visualtick.Tpo $(DEPDIR)/visualtick.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/visualtick.c' object='visualtick.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o visualtick.o `test -f '../src/visualtick.c' || echo '$(srcdir)/'`../src/visualtick.c visualtick.obj: ../src/visualtick.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT visualtick.obj -MD -MP -MF $(DEPDIR)/visualtick.Tpo -c -o visualtick.obj `if test -f '../src/visualtick.c'; then $(CYGPATH_W) '../src/visualtick.c'; else $(CYGPATH_W) '$(srcdir)/../src/visualtick.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/visualtick.Tpo $(DEPDIR)/visualtick.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/visualtick.c' object='visualtick.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o visualtick.obj `if test -f '../src/visualtick.c'; then $(CYGPATH_W) '../src/visualtick.c'; else $(CYGPATH_W) '$(srcdir)/../src/visualtick.c'; fi` option.o: ../src/option.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT option.o -MD -MP -MF $(DEPDIR)/option.Tpo -c -o option.o `test -f '../src/option.c' || echo '$(srcdir)/'`../src/option.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/option.Tpo $(DEPDIR)/option.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/option.c' object='option.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o option.o `test -f '../src/option.c' || echo '$(srcdir)/'`../src/option.c option.obj: ../src/option.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT option.obj -MD -MP -MF $(DEPDIR)/option.Tpo -c -o option.obj `if test -f '../src/option.c'; then $(CYGPATH_W) '../src/option.c'; else $(CYGPATH_W) '$(srcdir)/../src/option.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/option.Tpo $(DEPDIR)/option.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/option.c' object='option.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o option.obj `if test -f '../src/option.c'; then $(CYGPATH_W) '../src/option.c'; else $(CYGPATH_W) '$(srcdir)/../src/option.c'; fi` options.o: ../src/options.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.o -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.o `test -f '../src/options.c' || echo '$(srcdir)/'`../src/options.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/options.c' object='options.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.o `test -f '../src/options.c' || echo '$(srcdir)/'`../src/options.c options.obj: ../src/options.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT options.obj -MD -MP -MF $(DEPDIR)/options.Tpo -c -o options.obj `if test -f '../src/options.c'; then $(CYGPATH_W) '../src/options.c'; else $(CYGPATH_W) '$(srcdir)/../src/options.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/options.Tpo $(DEPDIR)/options.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/options.c' object='options.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o options.obj `if test -f '../src/options.c'; then $(CYGPATH_W) '../src/options.c'; else $(CYGPATH_W) '$(srcdir)/../src/options.c'; fi` gtkoptions.o: ../src/gtkoptions.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gtkoptions.o -MD -MP -MF $(DEPDIR)/gtkoptions.Tpo -c -o gtkoptions.o `test -f '../src/gtkoptions.c' || echo '$(srcdir)/'`../src/gtkoptions.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/gtkoptions.Tpo $(DEPDIR)/gtkoptions.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/gtkoptions.c' object='gtkoptions.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gtkoptions.o `test -f '../src/gtkoptions.c' || echo '$(srcdir)/'`../src/gtkoptions.c gtkoptions.obj: ../src/gtkoptions.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gtkoptions.obj -MD -MP -MF $(DEPDIR)/gtkoptions.Tpo -c -o gtkoptions.obj `if test -f '../src/gtkoptions.c'; then $(CYGPATH_W) '../src/gtkoptions.c'; else $(CYGPATH_W) '$(srcdir)/../src/gtkoptions.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/gtkoptions.Tpo $(DEPDIR)/gtkoptions.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/gtkoptions.c' object='gtkoptions.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gtkoptions.obj `if test -f '../src/gtkoptions.c'; then $(CYGPATH_W) '../src/gtkoptions.c'; else $(CYGPATH_W) '$(srcdir)/../src/gtkoptions.c'; fi` help.o: ../src/help.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT help.o -MD -MP -MF $(DEPDIR)/help.Tpo -c -o help.o `test -f '../src/help.c' || echo '$(srcdir)/'`../src/help.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/help.Tpo $(DEPDIR)/help.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/help.c' object='help.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o help.o `test -f '../src/help.c' || echo '$(srcdir)/'`../src/help.c help.obj: ../src/help.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT help.obj -MD -MP -MF $(DEPDIR)/help.Tpo -c -o help.obj `if test -f '../src/help.c'; then $(CYGPATH_W) '../src/help.c'; else $(CYGPATH_W) '$(srcdir)/../src/help.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/help.Tpo $(DEPDIR)/help.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/help.c' object='help.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o help.obj `if test -f '../src/help.c'; then $(CYGPATH_W) '../src/help.c'; else $(CYGPATH_W) '$(srcdir)/../src/help.c'; fi` gtkutil.o: ../src/gtkutil.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gtkutil.o -MD -MP -MF $(DEPDIR)/gtkutil.Tpo -c -o gtkutil.o `test -f '../src/gtkutil.c' || echo '$(srcdir)/'`../src/gtkutil.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/gtkutil.Tpo $(DEPDIR)/gtkutil.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/gtkutil.c' object='gtkutil.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gtkutil.o `test -f '../src/gtkutil.c' || echo '$(srcdir)/'`../src/gtkutil.c gtkutil.obj: ../src/gtkutil.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT gtkutil.obj -MD -MP -MF $(DEPDIR)/gtkutil.Tpo -c -o gtkutil.obj `if test -f '../src/gtkutil.c'; then $(CYGPATH_W) '../src/gtkutil.c'; else $(CYGPATH_W) '$(srcdir)/../src/gtkutil.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/gtkutil.Tpo $(DEPDIR)/gtkutil.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/gtkutil.c' object='gtkutil.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o gtkutil.obj `if test -f '../src/gtkutil.c'; then $(CYGPATH_W) '../src/gtkutil.c'; else $(CYGPATH_W) '$(srcdir)/../src/gtkutil.c'; fi` profiles.o: ../src/profiles.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT profiles.o -MD -MP -MF $(DEPDIR)/profiles.Tpo -c -o profiles.o `test -f '../src/profiles.c' || echo '$(srcdir)/'`../src/profiles.c @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/profiles.Tpo $(DEPDIR)/profiles.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/profiles.c' object='profiles.o' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o profiles.o `test -f '../src/profiles.c' || echo '$(srcdir)/'`../src/profiles.c profiles.obj: ../src/profiles.c @am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT profiles.obj -MD -MP -MF $(DEPDIR)/profiles.Tpo -c -o profiles.obj `if test -f '../src/profiles.c'; then $(CYGPATH_W) '../src/profiles.c'; else $(CYGPATH_W) '$(srcdir)/../src/profiles.c'; fi` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/profiles.Tpo $(DEPDIR)/profiles.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='../src/profiles.c' object='profiles.obj' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o profiles.obj `if test -f '../src/profiles.c'; then $(CYGPATH_W) '../src/profiles.c'; else $(CYGPATH_W) '$(srcdir)/../src/profiles.c'; fi` .l.c: $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE) optionlexer.c: ../src/optionlexer.l \ $(am__skiplex) \ $(SHELL) $(YLWRAP) `test -f '../src/optionlexer.l' || echo '$(srcdir)/'`../src/optionlexer.l $(LEX_OUTPUT_ROOT).c optionlexer.c -- $(LEX) $(AM_LFLAGS) $(LFLAGS) .y.c: $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE) optionparser.c: ../src/optionparser.y \ $(am__skipyacc) \ $(SHELL) $(YLWRAP) `test -f '../src/optionparser.y' || echo '$(srcdir)/'`../src/optionparser.y y.tab.c optionparser.c y.tab.h optionparser.h y.output optionparser.output -- $(YACC) $(AM_YFLAGS) $(YFLAGS) ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; skip=0; \ srcdir=$(srcdir); export srcdir; \ list=' $(TESTS) '; \ $(am__tty_colors); \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ col=$$red; res=XPASS; \ ;; \ *) \ col=$$grn; res=PASS; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *[\ \ ]$$tst[\ \ ]*) \ xfail=`expr $$xfail + 1`; \ col=$$lgn; res=XFAIL; \ ;; \ *) \ failed=`expr $$failed + 1`; \ col=$$red; res=FAIL; \ ;; \ esac; \ else \ skip=`expr $$skip + 1`; \ col=$$blu; res=SKIP; \ fi; \ echo "$${col}$$res$${std}: $$tst"; \ done; \ if test "$$all" -eq 1; then \ tests="test"; \ All=""; \ else \ tests="tests"; \ All="All "; \ fi; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="$$All$$all $$tests passed"; \ else \ if test "$$xfail" -eq 1; then failures=failure; else failures=failures; fi; \ banner="$$All$$all $$tests behaved as expected ($$xfail expected $$failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all $$tests failed"; \ else \ if test "$$xpass" -eq 1; then passes=pass; else passes=passes; fi; \ banner="$$failed of $$all $$tests did not behave as expected ($$xpass unexpected $$passes)"; \ fi; \ fi; \ dashes="$$banner"; \ skipped=""; \ if test "$$skip" -ne 0; then \ if test "$$skip" -eq 1; then \ skipped="($$skip test was not run)"; \ else \ skipped="($$skip tests were not run)"; \ fi; \ test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$skipped"; \ fi; \ report=""; \ if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \ report="Please report to $(PACKAGE_BUGREPORT)"; \ test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \ dashes="$$report"; \ fi; \ dashes=`echo "$$dashes" | sed s/./=/g`; \ if test "$$failed" -eq 0; then \ col="$$grn"; \ else \ col="$$red"; \ fi; \ echo "$${col}$$dashes$${std}"; \ echo "$${col}$$banner$${std}"; \ test -z "$$skipped" || echo "$${col}$$skipped$${std}"; \ test -z "$$report" || echo "$${col}$$report$${std}"; \ echo "$${col}$$dashes$${std}"; \ test "$$failed" -eq 0; \ else :; fi distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) check-TESTS check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(HEADERS) installdirs: install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -rm -f optionlexer.c -rm -f optionparser.c -rm -f optionparser.h -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-checkPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: .MAKE: all check check-am install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-checkPROGRAMS clean-generic ctags distclean \ distclean-compile distclean-generic distclean-tags distdir dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtick-0.5.2/configure.ac0000644000175000017500000000500412116333710012022 00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_INIT(gtick) AC_PREREQ(2.57) AM_INIT_AUTOMAKE(gtick, "0.5.2", gtick-devel@gnu.org) AC_CONFIG_SRCDIR([config.h.in]) AM_CONFIG_HEADER([config.h]) AC_GNU_SOURCE # Checks for programs. AC_PROG_CC AC_PROG_INSTALL AM_PROG_LEX if test "$LEX" != flex; then LEX="$SHELL $missing_dir/missing flex" AC_SUBST(LEX_OUTPUT_ROOT, lex.yy) AC_SUBST(LEXLIB, '') fi AC_PROG_YACC # Checks for libraries. AC_CHECK_LIB([m], [floor]) AC_CHECK_LIB([sndfile], [sf_open]) AC_CHECK_LIB([check], [fail_if]) AC_CHECK_LIB([dmalloc], [dmalloc_debug]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h libintl.h stdlib.h sys/ioctl.h unistd.h sys/time.h math.h sys/types.h stdarg.h assert.h]) # Checks for typedefs, structures, and compiler characteristics. # Checks for library functions. AC_PROG_GCC_TRADITIONAL AC_FUNC_MALLOC AC_CHECK_FUNCS([floor strdup setlocale strtol]) PKG_CHECK_MODULES(DEPS, gtk+-2.0 gthread-2.0 libpulse-simple) # samplerate #AC_ARG_WITH([alsa], # AS_HELP_STRING([--with-alsa], # [Use ALSA (in addition to OSS)]), # [if test "$withval" = "yes" ; then # PKG_CHECK_MODULES(ALSA, alsa, # AC_DEFINE(WITH_ALSA, 1, # [Alsa library selection])) # fi]) AC_ARG_WITH([sndfile], AS_HELP_STRING([--with-sndfile], [Use libsndfile]), [if test "$withval" = "yes" ; then PKG_CHECK_MODULES(SNDFILE, sndfile >= 1, AC_DEFINE(WITH_SNDFILE, 1, [libsndfile selection])) fi]) AC_MSG_CHECKING(to see if we can add '-Wall -W' to CFLAGS) if test x$GCC != x ; then CFLAGS="$CFLAGS -D_U_=\"__attribute__((unused))\" -Wall -W -D_GNU_SOURCE" AC_MSG_RESULT(yes) else CFLAGS="-D_U_=\"\" $CFLAGS" AC_MSG_RESULT(no) fi # GNU gettext AM_GNU_GETTEXT AM_GNU_GETTEXT_VERSION(0.18.1) # directory containing configuration support files # defaults to package root #AC_CONFIG_AUX_DIR PKG_CHECK_MODULES([CHECK], [check >= 0.9.4], AC_DEFINE(WITH_CHECK, 1, [Check detection]), AC_DEFINE(WITH_CHECK, 0, [Check detection])) AC_CHECK_HEADERS([dmalloc.h], AC_DEFINE(DMALLOC_LIBS, "-ldmalloc", "Dmalloc LDFLAGS"), [], [ #ifdef HAVE_STDARG_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif ]) AC_SUBST(DMALLOC_CFLAGS) AC_SUBST(DMALLOC_LIBS) AC_CONFIG_FILES([Makefile doc/Makefile intl/Makefile po/Makefile.in src/Makefile testsuite/Makefile]) AC_OUTPUT gtick-0.5.2/config.rpath0000755000175000017500000004401211617270150012051 00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2010 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case $cc_basename in xlc*) wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux* | k*bsd*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case $cc_basename in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) library_names_spec='$libname.a' ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd1*) ;; freebsd* | dragonfly*) case "$host_os" in freebsd[123]*) library_names_spec='$libname$shrext$versuffix' ;; *) library_names_spec='$libname$shrext' ;; esac ;; gnu*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; nto-qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. # # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # This file is maintained in Automake, please report # bugs to or send patches to # . case "$1" in '') echo "$0: No files given. Try \`$0 --help' for more information." 1>&2 exit 1 ;; --basedir) basedir=$2 shift 2 ;; -h|--h*) cat <<\EOF Usage: ylwrap [--help|--version] INPUT [OUTPUT DESIRED]... -- PROGRAM [ARGS]... Wrapper for lex/yacc invocations, renaming files as desired. INPUT is the input file OUTPUT is one file PROG generates DESIRED is the file we actually want instead of OUTPUT PROGRAM is program to run ARGS are passed to PROG Any number of OUTPUT,DESIRED pairs may be used. Report bugs to . EOF exit $? ;; -v|--v*) echo "ylwrap $scriptversion" exit $? ;; esac # The input. input="$1" shift case "$input" in [\\/]* | ?:[\\/]*) # Absolute path; do nothing. ;; *) # Relative path. Make it absolute. input="`pwd`/$input" ;; esac pairlist= while test "$#" -ne 0; do if test "$1" = "--"; then shift break fi pairlist="$pairlist $1" shift done # The program to run. prog="$1" shift # Make any relative path in $prog absolute. case "$prog" in [\\/]* | ?:[\\/]*) ;; *[\\/]*) prog="`pwd`/$prog" ;; esac # FIXME: add hostname here for parallel makes that run commands on # other machines. But that might take us over the 14-char limit. dirname=ylwrap$$ do_exit="cd '`pwd`' && rm -rf $dirname > /dev/null 2>&1;"' (exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 mkdir $dirname || exit 1 cd $dirname case $# in 0) "$prog" "$input" ;; *) "$prog" "$@" "$input" ;; esac ret=$? if test $ret -eq 0; then set X $pairlist shift first=yes # Since DOS filename conventions don't allow two dots, # the DOS version of Bison writes out y_tab.c instead of y.tab.c # and y_tab.h instead of y.tab.h. Test to see if this is the case. y_tab_nodot="no" if test -f y_tab.c || test -f y_tab.h; then y_tab_nodot="yes" fi # The directory holding the input. input_dir=`echo "$input" | sed -e 's,\([\\/]\)[^\\/]*$,\1,'` # Quote $INPUT_DIR so we can use it in a regexp. # FIXME: really we should care about more than `.' and `\'. input_rx=`echo "$input_dir" | sed 's,\\\\,\\\\\\\\,g;s,\\.,\\\\.,g'` while test "$#" -ne 0; do from="$1" # Handle y_tab.c and y_tab.h output by DOS if test $y_tab_nodot = "yes"; then if test $from = "y.tab.c"; then from="y_tab.c" else if test $from = "y.tab.h"; then from="y_tab.h" fi fi fi if test -f "$from"; then # If $2 is an absolute path name, then just use that, # otherwise prepend `../'. case "$2" in [\\/]* | ?:[\\/]*) target="$2";; *) target="../$2";; esac # We do not want to overwrite a header file if it hasn't # changed. This avoid useless recompilations. However the # parser itself (the first file) should always be updated, # because it is the destination of the .y.c rule in the # Makefile. Divert the output of all other files to a temporary # file so we can compare them to existing versions. if test $first = no; then realtarget="$target" target="tmp-`echo $target | sed s/.*[\\/]//g`" fi # Edit out `#line' or `#' directives. # # We don't want the resulting debug information to point at # an absolute srcdir; it is better for it to just mention the # .y file with no path. # # We want to use the real output file name, not yy.lex.c for # instance. # # We want the include guards to be adjusted too. FROM=`echo "$from" | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'` TARGET=`echo "$2" | sed \ -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'\ -e 's/[^ABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g'` sed -e "/^#/!b" -e "s,$input_rx,," -e "s,$from,$2," \ -e "s,$FROM,$TARGET," "$from" >"$target" || ret=$? # Check whether header files must be updated. if test $first = no; then if test -f "$realtarget" && cmp -s "$realtarget" "$target"; then echo "$2" is unchanged rm -f "$target" else echo updating "$2" mv -f "$target" "$realtarget" fi fi else # A missing file is only an error for the first file. This # is a blatant hack to let us support using "yacc -d". If -d # is not specified, we don't want an error when the header # file is "missing". if test $first = yes; then ret=1 fi fi shift shift first=no done else ret=$? fi # Remove the directory. cd .. rm -rf $dirname exit $ret # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: gtick-0.5.2/po/0000755000175000017500000000000012116334677010250 500000000000000gtick-0.5.2/po/ru.gmo0000644000175000017500000002103612116334677011324 00000000000000] !'-39?E MY7``      ( 9 F T a f x        % E O [gnw        &, @KPTd7 ? K V bm t    L]aei ' #%!. P)[-!#  5@Qo +/) @M\k~# 4I_ t$ ###{G   !!5!7L! !!!! !!!"!4XM#-RNV]2P>"7A&/9?%ZS LYF8QE(< 5B:!;6$ K)= 0 , ODG1HTC[IWJ.+U3\'*@%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:Minimum BPM:ModeratoOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.4.1 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2008-01-18 00:54+0200 Last-Translator: Pavel Maryanov Language-Team: Russian Language: ru MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %s (%d ... %d)2/43/44/4О программе GTickАдажиоАллегроAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zАндантеМетрические ударенияВыбратьCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Автор логотипа: Mario Andres Pagella Домашняя страница: http://www.antcom.de/gtick/ Сообщения об ошибках, замечания и т.п. отправляйте в почтовую рассылку разработчиков: gtick-devel@gnu.orgНевозможно запустить метроном. Проверьте, доступны ли указанное звуковое устройство и файл сэмпла.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SПо умолчаниюФайл устройства:Удвоенная скоростьУдвоенная громкостьИзменение профиляЦелыеВыполнить при запуске:Выполнить при остановке:Внешние командыМетроном GTick Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge Эта программа является открытым программным обеспечением; вы можете распространять её далее и/или изменять её согласно условиями GNU General Public License, опубликованной Free Software Foundation 2-й версии или (на своё усмотрение) любой другой более поздней версии. Эта программа распространяется в надежде, что она будет полезна, но БЕЗ ВСЯКОЙ ГАРАНТИИ; даже без подразумеваемой гарантии РАБОТОСПОСОБНОСТИ или ПРИГОДНОСТИ ДЛЯ КАКОЙ-ЛИБО ЦЕЛИ. За более подробной информацией обращайтесь к GNU General Public License. Вы должны были получить копию GNU General Public License вместе с этой программой; если это не так, см. .Лицензия GTickПоловина скоростиПоловина громкостиПростойЛаргеттоЛаргиссимоЛаргоЛицензияМаксимальный BPM:Минимальный BPM:МодератоДругие:Выберите звуковой файл.Введите название профиля:П_рофилиНастройкиПрестиссимоПрестоПрофилиЗапущенПараметрыShift-aShift-qShift-sShift-wShift-xShift-zГорячие клавишиСинусоидаЗвукДиапазон скоростейСкорость:Скорость: +10Скорость: +2Скорость: -10Скорость: -2Скорость: БыстрееСкорость: МедленнееЗапускЗапустить метрономЗапуск/ОстановОстановкаУдарБезымянный профильИспользование: %s [ОПЦИЯ...] Опции: -h, --help Вывод этого справочного сообщения -v, --version Вывод информации о версии -d, --debug[=уровень] Вывод дополнительной отладочной информации на стандартный вывод Громкость:Громкость: +10Громкость: +2Громкость: -10Громкость: -2_О программеТаблица метрических _ударенийП_равка_Справка_Метроном_Параметры_ВыходГорячие _клавиши_Вид_Визуальный щелчокgtick-0.5.2/po/es.po0000644000175000017500000003021512116334675011136 00000000000000# Spanish localization for GTick. # Copyright (C) 2003 Roland Stigge # Roland Stigge , 2003. # msgid "" msgstr "" "Project-Id-Version: gtick 0.2.12\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2004-01-04 14:22+0100\n" "Last-Translator: Bernardo Arlandis Mañó \n" "Language-Team: \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Modo de empleo: %s [OPCIÓN...]\n" "\n" "Opciones:\n" " -h, --help Mostrar este mensaje de ayuda\n" " -v, --version Mostrar información de la versión\n" " -d, --debug[=nivel] Escribe datos adicionales para la depuración en " "ejecución\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "" #: src/help.c:79 #, fuzzy msgid "License" msgstr "Licencia de GTick" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "Logo por Mario Andrés Pagella \n" "\n" "Sitio web:\n" "http://www.antcom.de/gtick/\n" "\n" "Envíe informes de errores, comentarios, etc. por correo electrónico a\n" "la lista de correo de los desarrolladores:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licencia de GTick" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - El Metrónomo\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "\n" "Este programa es Software Libre; usted puede redistribuirlo\n" "y/o modificarlo bajo los términos de la \"GNU General Public\n" "License\" como lo publica la \"FSF Free Software Foundation\";\n" "la versión 2 de la licencia o (a su elección) cualquier versión posterior.\n" "Este programa es distribuido con la esperanza de que le será\n" "útil, pero SIN NINGUNA GARANTIA; incluso sin la garantía\n" "implícita por el MERCADEO o EJERCICIO DE ALGUN PROPOSITO en\n" "particular. Vea la \"GNU General Public License\" para más\n" "detalles.\n" "Usted debe haber recibido una copia de la \"GNU General Public\n" "License\" junto con este programa, si no, escriba a la \"FSF\n" "Free Software Foundation, Inc.\", 59 Temple Place - Suite 330,\n" "Boston, MA 02111-1307, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "Atajos" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "" #: src/help.c:192 msgid "Alt-q" msgstr "" #: src/help.c:198 msgid "Alt-a" msgstr "" #: src/help.c:204 msgid "Alt-s" msgstr "" #: src/help.c:210 msgid "Alt-z" msgstr "" #: src/help.c:216 msgid "Alt-x" msgstr "" #: src/help.c:222 msgid "Shift-w" msgstr "" #: src/help.c:228 msgid "Shift-q" msgstr "" #: src/help.c:234 msgid "Shift-a" msgstr "" #: src/help.c:240 msgid "Shift-s" msgstr "" #: src/help.c:246 msgid "Shift-z" msgstr "" #: src/help.c:252 msgid "Shift-x" msgstr "" #: src/help.c:258 msgid "Start/Stop" msgstr "Iniciar/Parar" #: src/help.c:264 msgid "Speed: Faster" msgstr "Velocidad: más rápido" #: src/help.c:270 msgid "Speed: Slower" msgstr "Velocidad: más despacio" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Medida" #: src/help.c:282 msgid "Double Speed" msgstr "Velocidad doble" #: src/help.c:288 msgid "Half Speed" msgstr "Velocidad mitad" #: src/help.c:294 #, fuzzy msgid "Speed: -10" msgstr "Velocidad:" #: src/help.c:300 #, fuzzy msgid "Speed: +10" msgstr "Velocidad:" #: src/help.c:306 #, fuzzy msgid "Speed: -2" msgstr "Velocidad:" #: src/help.c:312 #, fuzzy msgid "Speed: +2" msgstr "Velocidad:" #: src/help.c:318 msgid "Double Volume" msgstr "Volumen doble" #: src/help.c:324 msgid "Half Volume" msgstr "Volumen mitad" #: src/help.c:330 #, fuzzy msgid "Volume: -10" msgstr "Volumen:" #: src/help.c:336 #, fuzzy msgid "Volume: +10" msgstr "Volumen:" #: src/help.c:342 #, fuzzy msgid "Volume: -2" msgstr "Volumen:" #: src/help.c:348 #, fuzzy msgid "Volume: +2" msgstr "Volumen:" #: src/metro.c:74 msgid "Idle" msgstr "Inactivo" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Iniciar" #: src/metro.c:75 msgid "Running" msgstr "En marcha" #: src/metro.c:75 msgid "Stop" msgstr "Parar" #: src/metro.c:79 msgid "_Help" msgstr "_Ayuda" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metrónomo" #: src/metro.c:81 msgid "_Quit" msgstr "_Salir" #: src/metro.c:82 msgid "_Edit" msgstr "_Editar" #: src/metro.c:83 msgid "_Preferences" msgstr "_Preferencias" #: src/metro.c:84 msgid "_View" msgstr "_Ver" #: src/metro.c:85 msgid "_About" msgstr "_Acerca de" #: src/metro.c:86 msgid "_Shortcuts" msgstr "Atajos de teclado" #: src/metro.c:90 msgid "Start the metronome" msgstr "" #: src/metro.c:91 msgid "_Visual Tick" msgstr "Pulso _visual" #: src/metro.c:92 msgid "_Accent Table" msgstr "Tabla de _acentos" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Perfiles" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "Ajustes" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Golpe" #: src/metro.c:1625 msgid "Speed:" msgstr "Velocidad:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volumen:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Uniforme" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Otro:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Acentos" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "No se puede iniciar el metrónomo.\n" "Por favor, compruebe que el dispositivo de sonido\n" "especificado y el fichero de sonido están accesibles." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Por favor, seleccione un fichero de sonido." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Sonido" #: src/gtkoptions.c:331 msgid "Default" msgstr "Estándar" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Seno" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Selecciona" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Fichero del dispositivo:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Comandos externos" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Ejecutar al iniciar:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Ejecutar al parar:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Rango de velocidades" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "BPM mínimo:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "BPM máximo:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "Propiedades" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "Propiedades" #~ msgid "Sound Device" #~ msgstr "Dispositivo de sonido" #~ msgid "Beat" #~ msgstr "Compás" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Propiedades" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "Temporizador manual" #~ msgid "Manual Timer" #~ msgstr "Temporizador manual" #~ msgid "Reset" #~ msgstr "Reiniciar" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Aquí puede aproximar la velocidad\n" #~ "deseada pulsando el botón \"Golpe\".\n" #~ "\n" #~ "Simplemente empiece a pulsar con el ratón o Intro.\n" #~ "\n" #~ "Para usar el valor calculado, haga clic en \"OK\".\n" #~ "Para empezar de nuevo, haga clic en \"Reiniciar\".\n" #~ msgid "/Metronome/Start" #~ msgstr "/Metrónomo/Iniciar" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metrónomo/_Temporizador manual" #~ msgid "/Metronome/" #~ msgstr "/Metrónomo/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metrónomo/_Salir" #~ msgid "/_Options" #~ msgstr "/_Opciones" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Opciones/Mostrar tabla de _acentos" #~ msgid "/Options/_Properties" #~ msgstr "/Opciones/_Propiedades" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Ayuda/A_tajos" #~ msgid "/Help/_License" #~ msgstr "/Ayuda/_Licencia" gtick-0.5.2/po/af.gmo0000644000175000017500000000500112116334676011255 00000000000000%D5l@AEIM`T  /= B O\c     R $(z-#/? N Z hu*|       $    $# " % !2/43/44/4ChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:EvenExecute on start:Execute on stop:External CommandsGTick LicenseIdleMaximum BPM:Minimum BPM:Other:Please choose a sound file.RunningSettingsShortcutsSineSoundSpeed RangeSpeed:Speed: FasterSpeed: SlowerStartStart/StopStopTapUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Project-Id-Version: gtick 0.2.12 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2004-01-02 16:00+2 Last-Translator: Ysbeer Language-Team: Afrikaans Language: af MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2/43/44/4KiesKon nie metronoom begin nie. Kyk asseblief of gespesifiseerde klanktoestel en voorbeeldlêers toeganklik is.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SVerstekKlantoestellêernaam:GelykVoer uit tydens begin:Voer uit tydens einde:Eksterne beveleGTick LisensieStilstaandeMaksimum SPM:Minimum SPM:Ander:Kies asseblief 'n klanklêerAan die gangInstellingsKortpaaieSinKlankSpoedstrekkingSpoed:Spoed: vinnigerSpoed: stadigerBeginBegin/StopStopTikGebruik: %s [OPSIE...] Opsies: -h, --hulp Wys hierdie hulpboodskap -v, --weergawe Druk weergawe-inligting -d, --ontfout[=vlak] Druk addisionele looptydontfoutingsdata na stdout Volumegtick-0.5.2/po/stamp-po0000644000175000017500000000001212116334677011644 00000000000000timestamp gtick-0.5.2/po/gl.po0000644000175000017500000002431712116334676011140 00000000000000# Galician translation of gtick. # This file is distributed under the same license as the gtick package. # Copyright (C) 2011 Roland Stigge (msgids) # Copyright (C) 2000 Free Software Foundation, Inc. # Copyright (C) 2013 Leandro Regueiro. # # Leandro Regueiro , 2013. # # Proxecto Trasno - Adaptación do software libre á lingua galega: Se desexas # colaborar connosco, podes atopar máis información en # msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2013-01-11 19:40+0200\n" "Last-Translator: Leandro Regueiro \n" "Language-Team: Galician \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Uso: %s [OPCIÓN...]\n" "\n" "Opcións:\n" " -h, --help Mostrar esta mensaxe de axuda\n" " -v, --version Mostrar información da versión\n" " -d, --debug[=level] Mostrar datos de depuración adicionais en tempo de " "execución en stdout\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Sobre GTick" #: src/help.c:79 msgid "License" msgstr "Licenza" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logotipo por Mario Andres Pagella \n" "\n" "Páxina web:\n" "http://www.antcom.de/gtick/\n" "\n" "Envíe informes de fallos, comentarios, etc. á\n" "lista de correo dos desenvolvedores:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licenza de GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" #: src/help.c:155 msgid "Shortcuts" msgstr "Atallos de teclado" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Maiús-w" #: src/help.c:228 msgid "Shift-q" msgstr "Maiús-q" #: src/help.c:234 msgid "Shift-a" msgstr "Maiús-a" #: src/help.c:240 msgid "Shift-s" msgstr "Maiús-s" #: src/help.c:246 msgid "Shift-z" msgstr "Maiús-z" #: src/help.c:252 msgid "Shift-x" msgstr "Maiús-x" #: src/help.c:258 msgid "Start/Stop" msgstr "" #: src/help.c:264 msgid "Speed: Faster" msgstr "Velocidade: máis rápido" #: src/help.c:270 msgid "Speed: Slower" msgstr "Velocidade: máis lento" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Medidor" #: src/help.c:282 msgid "Double Speed" msgstr "" #: src/help.c:288 msgid "Half Speed" msgstr "" #: src/help.c:294 msgid "Speed: -10" msgstr "Velocidade: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Velocidade: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Velocidade: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Velocidade: +2" #: src/help.c:318 msgid "Double Volume" msgstr "" #: src/help.c:324 msgid "Half Volume" msgstr "" #: src/help.c:330 msgid "Volume: -10" msgstr "Volume: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Volume: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Volume: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Volume: +2" #: src/metro.c:74 msgid "Idle" msgstr "Inactivo" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Iniciar" #: src/metro.c:75 msgid "Running" msgstr "En execución" #: src/metro.c:75 msgid "Stop" msgstr "Deter" #: src/metro.c:79 msgid "_Help" msgstr "A_xuda" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metrónomo" #: src/metro.c:81 msgid "_Quit" msgstr "_Saír" #: src/metro.c:82 msgid "_Edit" msgstr "_Editar" #: src/metro.c:83 msgid "_Preferences" msgstr "_Preferencias" #: src/metro.c:84 msgid "_View" msgstr "_Ver" #: src/metro.c:85 msgid "_About" msgstr "_Sobre" #: src/metro.c:86 msgid "_Shortcuts" msgstr "Atallo_s" #: src/metro.c:90 msgid "Start the metronome" msgstr "Iniciar metronome" #: src/metro.c:91 msgid "_Visual Tick" msgstr "" #: src/metro.c:92 msgid "_Accent Table" msgstr "" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pe_rfís" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "Configuración" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "" #: src/metro.c:1625 msgid "Speed:" msgstr "Velocidade:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Outras:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Non foi posíbel iniciar metronome.\n" "Comprobe se o dispositivo de son\n" "especificado e o ficheiro de mostra\n" "son accesíbeis." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Seleccione un ficheiro de son." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Preferencias" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Son" #: src/gtkoptions.c:331 msgid "Default" msgstr "Predefinido" #: src/gtkoptions.c:344 msgid "Sine" msgstr "" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Seleccionar" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Sistema de Son" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Nome de ficheiro do dispositivo:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Ordes externas" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Executar ao iniciar:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Executar ao deter:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Intervalo de velocidades" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Perfil sen nome" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Editar perfil" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Introduza un novo nome de perfil:" #: src/profiles.c:682 msgid "Profiles" msgstr "Perfís" gtick-0.5.2/po/ca.po0000644000175000017500000003354012116334675011116 00000000000000# Catalan localization for GTick. # Copyright (C) 2003 Roland Stigge # Roland Stigge , 2003. # msgid "" msgstr "" "Project-Id-Version: gtick 0.2.12\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2004-07-28 18:01+0100\n" "Last-Translator: Toni Vall \n" "Language-Team: \n" "Language: ca\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Ús: %s [OPCIÓ...]\n" "\n" "Opcions:\n" " -h, --help Mostra aquest missatge d'ajuda\n" " -v, --version Mostra informació de la versió\n" " -d, --debug[=nivell] Escriu dades de depuració adicional a la sortida " "del programa\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "" #: src/help.c:79 #, fuzzy msgid "License" msgstr "Llicencia de GTick" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "Logotip de Mario Andrés Pagella \n" "\n" "Lloc web:\n" "http://www.antcom.de/gtick/\n" "\n" "Podeu enviar informes d'error o comentaris a\n" "la llista de correu de desenvolupament:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Llicencia de GTick" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - El Metrònom\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "\n" "Aquest programa és programari lliure; el podeu redistribuir i/o\n" "modificar sota els termes de la \"GNU General Public License\"\n" "publicada per la \"Free Software Foundation\"; versió 2\n" "o posterior.\n" "\n" "Aquest programa es distribueix esperant que sigui útil,\n" "però SENSE CAP MENA DE GARANTIA; sense garantia de\n" "VENDA ni d'ENCAIX A CAP OBJECTIU CONCRET. Consulteu la\n" "\"GNU General Public License\" per a més informació.\n" "\n" "Haurieu d'haver rebut una còpia de la \"GNU General Public License\"\n" "amb aquest programa; si no és així, podeu solicitar-ne una a: \n" "Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA " "02111-1307, Estats Units d'Amèrica." #: src/help.c:155 msgid "Shortcuts" msgstr "Dreceres de teclat" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "" #: src/help.c:192 msgid "Alt-q" msgstr "" #: src/help.c:198 msgid "Alt-a" msgstr "" #: src/help.c:204 msgid "Alt-s" msgstr "" #: src/help.c:210 msgid "Alt-z" msgstr "" #: src/help.c:216 msgid "Alt-x" msgstr "" #: src/help.c:222 msgid "Shift-w" msgstr "" #: src/help.c:228 msgid "Shift-q" msgstr "" #: src/help.c:234 msgid "Shift-a" msgstr "" #: src/help.c:240 msgid "Shift-s" msgstr "" #: src/help.c:246 msgid "Shift-z" msgstr "" #: src/help.c:252 msgid "Shift-x" msgstr "" #: src/help.c:258 msgid "Start/Stop" msgstr "Inicia/Atura" #: src/help.c:264 msgid "Speed: Faster" msgstr "Més de pressa" #: src/help.c:270 msgid "Speed: Slower" msgstr "Més a poc a poc" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Unitat de base" #: src/help.c:282 msgid "Double Speed" msgstr "" #: src/help.c:288 #, fuzzy msgid "Half Speed" msgstr "Velocitat:" #: src/help.c:294 #, fuzzy msgid "Speed: -10" msgstr "Velocitat:" #: src/help.c:300 #, fuzzy msgid "Speed: +10" msgstr "Velocitat:" #: src/help.c:306 #, fuzzy msgid "Speed: -2" msgstr "Velocitat:" #: src/help.c:312 #, fuzzy msgid "Speed: +2" msgstr "Velocitat:" #: src/help.c:318 #, fuzzy msgid "Double Volume" msgstr "Volum:" #: src/help.c:324 #, fuzzy msgid "Half Volume" msgstr "Volum:" #: src/help.c:330 #, fuzzy msgid "Volume: -10" msgstr "Volum:" #: src/help.c:336 #, fuzzy msgid "Volume: +10" msgstr "Volum:" #: src/help.c:342 #, fuzzy msgid "Volume: -2" msgstr "Volum:" #: src/help.c:348 #, fuzzy msgid "Volume: +2" msgstr "Volum:" #: src/metro.c:74 msgid "Idle" msgstr "Inactiu" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Inicia" #: src/metro.c:75 msgid "Running" msgstr "En funcionament" #: src/metro.c:75 msgid "Stop" msgstr "Atura" # TRANSLATORS: This is the Help menu. The strings start with a slash # ("/"), followed by the menu name, another slash and the menu entry. # Please make sure that you translate the menu name everywhere with the same # string. Otherwise, the menu is endangered to be split. # An underscore marks a shortcut (also visually marked in the menu) which # is only intended to mark menu names and menu entry names directly, i.e. # just the menu name of a menu entry usually doesn't include an underscore. #: src/metro.c:79 #, fuzzy msgid "_Help" msgstr "/_Ajuda" # TRANSLATORS: This is the Metronome menu. The strings start with a slash # ("/"), followed by the menu name, another slash and the menu entry. # Please make sure that you translate the menu name everywhere with the same # string. Otherwise, the menu is endangered to be split. # An underscore marks a shortcut (also visually marked in the menu) which # is only intended to mark menu names and menu entry names directly, i.e. # just the menu name of a menu entry usually doesn't include an underscore. #: src/metro.c:80 #, fuzzy msgid "_Metronome" msgstr "/_Metrònom" #: src/metro.c:81 msgid "_Quit" msgstr "" #: src/metro.c:82 msgid "_Edit" msgstr "" #: src/metro.c:83 msgid "_Preferences" msgstr "" #: src/metro.c:84 msgid "_View" msgstr "" #: src/metro.c:85 #, fuzzy msgid "_About" msgstr "/Ajuda/_Quant a" #: src/metro.c:86 #, fuzzy msgid "_Shortcuts" msgstr "Dreceres de teclat" #: src/metro.c:90 msgid "Start the metronome" msgstr "" #: src/metro.c:91 #, fuzzy msgid "_Visual Tick" msgstr "/Opcions/Mostra l'indicador _visual" #: src/metro.c:92 #, fuzzy msgid "_Accent Table" msgstr "Taula d'accents" #: src/metro.c:93 #, fuzzy msgid "Pr_ofiles" msgstr "Preferències" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "Ajustaments" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Cop" #: src/metro.c:1625 msgid "Speed:" msgstr "Velocitat:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volum:" # TRANSLATORS: all beats are equal #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Uniforme" # TRANSLATORS: duple meter #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" # TRANSLATORS: triple meter #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" # TRANSLATORS: quadruple meter / common meter #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" # TRANSLATORS: meter with more than 4 beats per measure #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Un altre:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "No s'ha pogut iniciar el metrònom.\n" "Comproveu que el dispositiu de so\n" "i l'arxiu de mostreig especificats són accessibles." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Seleccioneu un fitxer de so." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "" #: src/gtkoptions.c:315 msgid "Sound" msgstr "So" #: src/gtkoptions.c:331 msgid "Default" msgstr "Predeterminat" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Alternatiu" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Seleccioneu" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Nom del fitxer de dispositiu:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Ordres externes" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Executa en iniciar:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Executa en aturar:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Rang de velocitats" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Velocitat mínima (en pulsacions per minut):" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Velocitat màxima (en pulsacions per minut):" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "Preferències" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "Preferències" #~ msgid "Sound Device" #~ msgstr "Dispositiu de so" #~ msgid "Beat" #~ msgstr "Compàs" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Preferències" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "Temporitzador manual" #~ msgid "Manual Timer" #~ msgstr "Temporitzador manual" #~ msgid "Reset" #~ msgstr "Reinicia" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Podeu ajustar de manera aproximada la velocitat\n" #~ "desitjada polsant repetidament el botó \"Cop\".\n" #~ "\n" #~ "Ho podeu fer amb el ratolí o amb la tecla \"Intro\".\n" #~ "\n" #~ "Per usar la velocitat calculada, feu clic a \"D'acord\".\n" #~ "Si voleu tornar a començar, feu clic a \"Reinicia\".\n" #~ msgid "/Metronome/Start" #~ msgstr "/Metrònom/Inicia" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metrònom/_Temporitzador manual" #~ msgid "/Metronome/" #~ msgstr "/Metrònom/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metrònom/_Surt" # TRANSLATORS: This is the Options menu. The strings start with a slash # ("/"), followed by the menu name, another slash and the menu entry. # Please make sure that you translate the menu name everywhere with the same # string. Otherwise, the menu is endangered to be split. # An underscore marks a shortcut (also visually marked in the menu) which # is only intended to mark menu names and menu entry names directly, i.e. # just the menu name of a menu entry usually doesn't include an underscore. #~ msgid "/_Options" #~ msgstr "/_Opcions" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Opcions/Mostra la taula d'_accents" #~ msgid "/Options/_Properties" #~ msgstr "/Opcions/_Preferències" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Ajuda/_Dreceres de teclat" #~ msgid "/Help/_License" #~ msgstr "/Ajuda/_Llicència" gtick-0.5.2/po/en@boldquot.po0000644000175000017500000002773412116334675013017 00000000000000# English translations for gtick package. # Copyright (C) 2013 Roland Stigge # This file is distributed under the same license as the gtick package. # Automatically generated, 2013. # # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # msgid "" msgstr "" "Project-Id-Version: gtick 0.5.2\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2013-03-08 11:13+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en@boldquot\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "About GTick" #: src/help.c:79 msgid "License" msgstr "License" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick License" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." #: src/help.c:155 msgid "Shortcuts" msgstr "Shortcuts" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Start/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Speed: Faster" #: src/help.c:270 msgid "Speed: Slower" msgstr "Speed: Slower" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Meter" #: src/help.c:282 msgid "Double Speed" msgstr "Double Speed" #: src/help.c:288 msgid "Half Speed" msgstr "Half Speed" #: src/help.c:294 msgid "Speed: -10" msgstr "Speed: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Speed: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Speed: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Speed: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Double Volume" #: src/help.c:324 msgid "Half Volume" msgstr "Half Volume" #: src/help.c:330 msgid "Volume: -10" msgstr "Volume: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Volume: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Volume: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Volume: +2" #: src/metro.c:74 msgid "Idle" msgstr "Idle" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Start" #: src/metro.c:75 msgid "Running" msgstr "Running" #: src/metro.c:75 msgid "Stop" msgstr "Stop" #: src/metro.c:79 msgid "_Help" msgstr "_Help" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronome" #: src/metro.c:81 msgid "_Quit" msgstr "_Quit" #: src/metro.c:82 msgid "_Edit" msgstr "_Edit" #: src/metro.c:83 msgid "_Preferences" msgstr "_Preferences" #: src/metro.c:84 msgid "_View" msgstr "_View" #: src/metro.c:85 msgid "_About" msgstr "_About" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Shortcuts" #: src/metro.c:90 msgid "Start the metronome" msgstr "Start the metronome" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Visual Tick" #: src/metro.c:92 msgid "_Accent Table" msgstr "_Accent Table" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofiles" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Settings" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Tap" #: src/metro.c:1625 msgid "Speed:" msgstr "Speed:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Even" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Other:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Beat Accent" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Please choose a sound file." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Preferences" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Sound" #: src/gtkoptions.c:331 msgid "Default" msgstr "Default" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sine" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Choose" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Sound System" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Device filename:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "External Commands" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Execute on start:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Execute on stop:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Speed Range" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimum BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maximum BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Unnamed Profile" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Edit Profile" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Please enter new Profile name: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profiles" gtick-0.5.2/po/POTFILES.in0000644000175000017500000000027710660406274011746 00000000000000# List of source files containing translatable strings # Copyright 2003, 2004, 2005, 2006 Roland Stigge src/gtick.c src/help.c src/metro.c src/gtkoptions.c src/profiles.c gtick-0.5.2/po/uk.po0000644000175000017500000003101012116334676011141 00000000000000# Translation of `gtick' messages to Ukrainian. # Copyright (C) 2007 Roland Stigge (msgid) # This file is distributed under the same license as the gtick package. # Youri Bulka , 2006. # msgid "" msgstr "" "Project-Id-Version: gtick 0.3.12\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2007-02-19 10:00+0300\n" "Last-Translator: Youri Bulka \n" "Language-Team: Ukrainian \n" "Language: uk\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Використання: %s [ПАРАМЕТР...]\n" "\n" "Параметри:\n" " -h, --help\tПоказати це повідомлення\n" " -v, --version\tПоказати інформацію про версію\n" " -d, --debug[=level]\tДрукувати додаткову інформацію, корисну для " "ліквідації помилок\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Про GTick" #: src/help.c:79 msgid "License" msgstr "Ліцензія" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "Автор лоґотипу Mario Andres Pagella \n" "\n" "Домашня сторінка:\n" "http://www.antcom.de/gtick/\n" "\n" "Висилайте повідомлення про помилки, коментарі, і т.д. на\n" "список розсилки розробників:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Ліцензія GTick" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Метроном\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Ця програма - вільне програмне забезпечення; ви маєте право розповсюджувати " "і змінювати його згідно з Загальною Публічною Ґну,\n" "виданою Free Software Foundation; версією 2, або (за вашим вибором) будь-" "якою наступною версією.\n" "\n" "Ця програма розповсюджується з надією що вона буде корисною,\n" "але БЕЗ ЖОДНИХ ГАРАНТІЙ; навіть без передбачено гарантії на\n" "ПРАЦЕЗДАТНІСТЬ, або на придатність на використання В БУДЬ-ЯКИХ ЦІЛЯХ. " "Дивіться Загальну Публічну Ліцензію Ґну задля подробиць.\n" "Ви повинні були отримати копію Загальної Публічної Ліцензії Ґну разом з цією " "програмою; якщо ні, напишіть до Фундації Вільного Програмного Забезпечення, " "51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "Швидкі клавіші" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Старт/Стоп" #: src/help.c:264 msgid "Speed: Faster" msgstr "Темп: швидший" #: src/help.c:270 msgid "Speed: Slower" msgstr "Темп: повільніший" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Базовий Метр" #: src/help.c:282 msgid "Double Speed" msgstr "Подвійний темп" #: src/help.c:288 msgid "Half Speed" msgstr "Пів-темп" #: src/help.c:294 msgid "Speed: -10" msgstr "Темп: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Темп: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Темп: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Темп: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Подвійна гучність" #: src/help.c:324 msgid "Half Volume" msgstr "Пів-гучність" #: src/help.c:330 msgid "Volume: -10" msgstr "Гучність: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Гучність: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Гучність: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Гучність: +2" #: src/metro.c:74 msgid "Idle" msgstr "Бездіяльність" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Старт" #: src/metro.c:75 msgid "Running" msgstr "Запущено" #: src/metro.c:75 msgid "Stop" msgstr "Стоп" #: src/metro.c:79 msgid "_Help" msgstr "_Довідка" #: src/metro.c:80 msgid "_Metronome" msgstr "_Метроном" #: src/metro.c:81 msgid "_Quit" msgstr "_Вихід" #: src/metro.c:82 msgid "_Edit" msgstr "_Редагування" #: src/metro.c:83 msgid "_Preferences" msgstr "_Налаштування" #: src/metro.c:84 msgid "_View" msgstr "_Вигляд" #: src/metro.c:85 msgid "_About" msgstr "_Про" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Швидкі клавіші" #: src/metro.c:90 msgid "Start the metronome" msgstr "Запустити метроном" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Візуальний пульс" #: src/metro.c:92 msgid "_Accent Table" msgstr "Таблиця _акцентів" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Про_файли" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Налаштування" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Стук!" #: src/metro.c:1625 msgid "Speed:" msgstr "Темп:" #: src/metro.c:1694 msgid "Volume:" msgstr "Гучність:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Поодинчий" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Інший:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Акцент" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Не можливо запустити метроном.\n" "Будь-ласка перевірте чи вибраний звуковий пристрій і файл звуку (стуку) є " "доступними." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Будь-ласка виберіть звуковий пристрій." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Налаштування" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Звук" #: src/gtkoptions.c:331 msgid "Default" msgstr "Типовий" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Синусоподібний" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Вибрати" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Файл пристрою:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Зовнішні команди" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Виконувати при старті:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Виконувати під-час зупинки:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Швидкісні межі темпу" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Мінімальна к-сть ударів/хв.:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Максимальна к-сть ударів/хв.:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Неназваний профайл" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Про_файли" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Будь-ласка введіть назву нового профайлу:" #: src/profiles.c:682 msgid "Profiles" msgstr "Про_файли" #~ msgid "Sound Device" #~ msgstr "Звуковий пристрій" #~ msgid "Beat" #~ msgstr "Метр" gtick-0.5.2/po/da.po0000644000175000017500000002571012116334675011117 00000000000000# Danish translation for gtick # Copyright (C) 2008 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # Frederik 'Freso' S. Olesen , 2008 # msgid "" msgstr "" "Project-Id-Version: gtick 0.4.1\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2008-05-01 02:32+0100\n" "Last-Translator: Frederik 'Freso' S. Olesen \n" "Language-Team: Danish \n" "Language: da\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plurals=(n != 1);\n" "X-Poedit-Language: Danish\n" "X-Poedit-Country: DENMARK\n" #: src/gtick.c:81 #, fuzzy, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Brug: %s [TILVALG...]\n" "\n" "Tilvalg:\n" " -h, --help Vis denne hjlpebesked\n" " -v, --version Vis versionsinformation\n" " -d, --debug[=niveau] Vis yderligere [[runtime]] fejlsgningsdata til " "standardud\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Om GTick" #: src/help.c:79 msgid "License" msgstr "Licens" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Ophavsret (c) 1999, Alex Roberts \n" "Ophavsret (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo af Mario Andres Pagella \n" "\n" "Hjemmeside:\n" "http://www.antcom.de/gtick/\n" "\n" "Send fejlrapporter, kommentarer o.lign. til\n" "udviklerpostlisten (engelsksproget):\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick-licens" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Metronomen\n" "Ophavsret (c) 1999, Alex Roberts \n" "Ophavsret (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Dette program er fri software. Du kan redistribuere og/eller\n" "modificere det under de betingelser som er angivet i GNU General\n" "Public License, som udgivet af Free Software Foundation. Enten\n" "version 3 af licensen eller (efter eget valg) enhver senere version.\n" "\n" "Dette program distribueres i hb om at det vil vise sig nyttigt, men\n" "UDEN NOGEN FORM FOR GARANTI, uden selv de underforstede garantier\n" "omkring SALGBARHED eller EGNETHED TIL ET BESTEMT FORML. Yderligere\n" "detaljer kan lses i GNU General Public License.\n" "\n" "Du skulle have modtaget en kopi af GNU General Public License sammen\n" "med dette program. Hvis ikke, s se ." #: src/help.c:155 msgid "Shortcuts" msgstr "Genveje" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Start/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Tempo: Hurtigere" #: src/help.c:270 msgid "Speed: Slower" msgstr "Tempo: Langsommere" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Takt" #: src/help.c:282 msgid "Double Speed" msgstr "Dobbelt tempo" #: src/help.c:288 msgid "Half Speed" msgstr "Halvt tempo" #: src/help.c:294 msgid "Speed: -10" msgstr "Tempo: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Tempo: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Tempo: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Tempo: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Dobbel lydstyrke" #: src/help.c:324 msgid "Half Volume" msgstr "Halv lydstyrke" #: src/help.c:330 msgid "Volume: -10" msgstr "Lydstyrke: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Lydstyrke: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Lydstyrke: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Lydstyrke: +2" #: src/metro.c:74 msgid "Idle" msgstr "Inaktiv" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Start" #: src/metro.c:75 msgid "Running" msgstr "Krer" #: src/metro.c:75 msgid "Stop" msgstr "Stop" #: src/metro.c:79 msgid "_Help" msgstr "_Hjlp" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronom" #: src/metro.c:81 msgid "_Quit" msgstr "_Afslut" #: src/metro.c:82 msgid "_Edit" msgstr "_Redigr" #: src/metro.c:83 msgid "_Preferences" msgstr "_Indstillinger" #: src/metro.c:84 msgid "_View" msgstr "_Vis" #: src/metro.c:85 msgid "_About" msgstr "_Om" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Genveje" #: src/metro.c:90 msgid "Start the metronome" msgstr "Start metronomen" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Visuelt slag" #: src/metro.c:92 msgid "_Accent Table" msgstr "Pulst_abel" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofiler" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Opstning" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Klik" #: src/metro.c:1625 msgid "Speed:" msgstr "Tempo:" #: src/metro.c:1694 msgid "Volume:" msgstr "Lydstyrke:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Jvn" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Anden:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Pulsslag" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Kunne ikke starte metronomen.\n" "Tjek venligst at den angivne lydenhed\n" "og lydfil er tilgngelige." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Vlg venligst en lydfil." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Indstillinger" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Lyd" #: src/gtkoptions.c:331 msgid "Default" msgstr "Standard" #: src/gtkoptions.c:344 #, fuzzy msgid "Sine" msgstr "Sinus" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Vlg" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Enhedsfilnavn:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Eksterne kommandoer" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Kr ved start:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Kr ved stop:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Tempoomrde" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimum BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maksimum BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Unavngiven profil" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Rediger profil" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Indtast venligst et nyt profilnavn: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profiler" #~ msgid "Sound Device" #~ msgstr "Lydenhed" #~ msgid "Beat" #~ msgstr "Takt" gtick-0.5.2/po/ca.gmo0000644000175000017500000000513012116334676011255 00000000000000%D5l@AEIM`T  /= B O\c     >  z   .A,I,v      % 4 E L Y _ c Q   $# " % !2/43/44/4ChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:EvenExecute on start:Execute on stop:External CommandsGTick LicenseIdleMaximum BPM:Minimum BPM:Other:Please choose a sound file.RunningSettingsShortcutsSineSoundSpeed RangeSpeed:Speed: FasterSpeed: SlowerStartStart/StopStopTapUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Project-Id-Version: gtick 0.2.12 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2004-07-28 18:01+0100 Last-Translator: Toni Vall Language-Team: Language: ca MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2/43/44/4SeleccioneuNo s'ha pogut iniciar el metrònom. Comproveu que el dispositiu de so i l'arxiu de mostreig especificats són accessibles.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SPredeterminatNom del fitxer de dispositiu:UniformeExecuta en iniciar:Executa en aturar:Ordres externesLlicencia de GTickInactiuVelocitat màxima (en pulsacions per minut):Velocitat mínima (en pulsacions per minut):Un altre:Seleccioneu un fitxer de so.En funcionamentAjustamentsDreceres de teclatAlternatiuSoRang de velocitatsVelocitat:Més de pressaMés a poc a pocIniciaInicia/AturaAturaCopÚs: %s [OPCIÓ...] Opcions: -h, --help Mostra aquest missatge d'ajuda -v, --version Mostra informació de la versió -d, --debug[=nivell] Escriu dades de depuració adicional a la sortida del programa Volum:gtick-0.5.2/po/nl.po0000644000175000017500000002627212116334676011151 00000000000000# Dutch translations for GNU gtick. # Copyright (C) 2011 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # # Taco Witte , 2003. # Elros Cyriatan , 2003, 2004. # Benno Schulenberg , 2007, 2008, 2011. msgid "" msgstr "" "Project-Id-Version: gtick-0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2011-08-07 16:44+0200\n" "Last-Translator: Benno Schulenberg \n" "Language-Team: Dutch \n" "Language: nl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Lokalize 1.0\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Gebruik: %s [OPTIE...]\n" "\n" "Opties:\n" " -h, --help deze hulptekst tonen\n" " -v, --version versie-informatie tonen\n" " -d, --debug[=niveau] extra debug-gegevens weergeven\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Over GTick" #: src/help.c:79 msgid "License" msgstr "Licentie" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (C) 1999, Alex Roberts \n" "Copyright (C) 2003–2008, Roland Stigge \n" "Logo gemaakt door Mario Andres Pagella \n" "\n" "Homepage: http://www.antcom.de/gtick/\n" "\n" "Stuur foutrapportages, opmerkingen en dergelijke\n" "naar ." #: src/help.c:127 msgid "GTick License" msgstr "GTick-licentie" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - de Metronoom\n" "Copyright (C) 1999, Alex Roberts \n" "Copyright (C) 2003–2008, Roland Stigge \n" "\n" "Dit programma is vrije software; u mag het verder verspreiden en/of\n" "wijzigen onder de voorwaarden van de GNU General Public License zoals\n" "gepubliceerd door de Free Software Foundation, naar keuze ofwel onder\n" "versie 3 ofwel onder een nieuwere versie van die licentie.\n" "\n" "Dit programma wordt uitgegeven in de hoop dat het nuttig is,\n" "maar ZONDER ENIGE GARANTIE; zelfs zonder de impliciete garantie\n" "van VERKOOPBAARHEID of GESCHIKTHEID VOOR EEN BEPAALD DOEL.\n" "Zie de GNU General Public License voor meer details.\n" "\n" "Bij dit programma hoort u een kopie van de GNU General Public License\n" "ontvangen te hebben; mocht dit niet het geval zijn, schrijf dan naar\n" "Free Software Foundation, Inc., 51 Franklin Street, fifth floor,\n" "Boston, MA 02110-1301, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "Sneltoetsen" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" # Deze wordt geblokkeerd door standaard Be_werken. #: src/help.c:186 msgid "Alt-w" msgstr " " #: src/help.c:192 msgid "Alt-q" msgstr "Alt-Q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-A" # Deze wordt geblokkeerd door standaard Op_slaan. #: src/help.c:204 msgid "Alt-s" msgstr " " #: src/help.c:210 msgid "Alt-z" msgstr "Alt-Z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-X" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-W" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-Q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-A" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-S" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-Z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-X" #: src/help.c:258 msgid "Start/Stop" msgstr "Starten/stoppen" #: src/help.c:264 msgid "Speed: Faster" msgstr "Vlugger" #: src/help.c:270 msgid "Speed: Slower" msgstr "Langzamer" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Maat" # Alt-W werkt niet. #: src/help.c:282 msgid "Double Speed" msgstr "(Tempo verdubbelen)" #: src/help.c:288 msgid "Half Speed" msgstr "Tempo halveren" #: src/help.c:294 msgid "Speed: -10" msgstr "Tempo - 10" # Alt-S werkt niet. #: src/help.c:300 msgid "Speed: +10" msgstr "(Tempo + 10)" #: src/help.c:306 msgid "Speed: -2" msgstr "Tempo - 2" #: src/help.c:312 msgid "Speed: +2" msgstr "Tempo + 2" #: src/help.c:318 msgid "Double Volume" msgstr "Volume verdubbelen" #: src/help.c:324 msgid "Half Volume" msgstr "Volume halveren" #: src/help.c:330 msgid "Volume: -10" msgstr "Volume - 10" #: src/help.c:336 msgid "Volume: +10" msgstr "Volume + 10" #: src/help.c:342 msgid "Volume: -2" msgstr "Volume - 2" #: src/help.c:348 msgid "Volume: +2" msgstr "Volume + 2" #: src/metro.c:74 msgid "Idle" msgstr "Rust" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Starten" #: src/metro.c:75 msgid "Running" msgstr "Tikkend" #: src/metro.c:75 msgid "Stop" msgstr "Stoppen" #: src/metro.c:79 msgid "_Help" msgstr "_Help" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronoom" #: src/metro.c:81 msgid "_Quit" msgstr "_Afsluiten" #: src/metro.c:82 msgid "_Edit" msgstr "_Bewerken" #: src/metro.c:83 msgid "_Preferences" msgstr "_Voorkeuren" #: src/metro.c:84 msgid "_View" msgstr "Beel_d" #: src/metro.c:85 msgid "_About" msgstr "_Info" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Sneltoetsen" #: src/metro.c:90 msgid "Start the metronome" msgstr "Metronoom starten" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Visuele tikken" #: src/metro.c:92 msgid "_Accent Table" msgstr "_Accententabel" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "_Profielen" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Instellingen" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d – %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Klik tempo hier" #: src/metro.c:1625 msgid "Speed:" msgstr "Tempo:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Even" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Anders:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Maataccent" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Kan de metronoom niet starten.\n" "Controleer of geluidsapparaat en\n" "geluidsbestand toegankelijk zijn." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Kies een geluidsbestand." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Voorkeuren" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Geluid" #: src/gtkoptions.c:331 msgid "Default" msgstr "Standaard" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinus" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Kiezen" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Audiosysteem" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Apparaatbestandsnaam:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Externe opdrachten" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Uitvoeren bij opstarten:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Uitvoeren bij stoppen:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Tempobereik" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimale BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maximale BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Naamloos profiel" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Profiel bewerken" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Nieuwe profielnaam: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profielen" #~ msgid "Sound Device" #~ msgstr "Geluidsapparaat" gtick-0.5.2/po/id.po0000644000175000017500000002563412116334676011135 00000000000000# Indonesian translations for gtick package. # Copyright (C) 2008 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # Andhika Padmawan , 2008-2012. # msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2012-05-18 15:48+0700\n" "Last-Translator: Andhika Padmawan \n" "Language-Team: Indonesian \n" "Language: id\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Penggunaan: %s [OPSI...]\n" "\n" "Opsi:\n" " -h, --help Tampilkan pesan bantuan ini\n" " -v, --version Cetak informasi versi\n" " -d, --debug[=level] Cetak data awakutu waktu operasi tambahan ke " "keluaran standar\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Tentang GTick" #: src/help.c:79 msgid "License" msgstr "Lisensi" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Hak cipta (c) 1999, Alex Roberts \n" "Hak cipta (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo oleh Mario Andres Pagella \n" "\n" "Laman:\n" "http://www.antcom.de/gtick/\n" "\n" "Email laporan kutu, komentar, dsb. ke\n" "Milis pengembang:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Lisensi GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Metronom\n" "Hak cipta (c) 1999, Alex Roberts \n" "Hak cipta (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Program ini adalah perangkat lunak bebas; anda dapat mendistribusikan\n" "ulang atau memodifikasinya di bawah perjanjian Lisensi Publik Umum GNU\n" "yang diterbitkan oleh Free Software Foundation; baik versi 3 dari\n" "Lisensi, atau (sesuai pilihan anda) versi manapun setelahnya.\n" "\n" "Program ini didistribusikan dengan harapan dapat berguna,\n" "tapi TANPA GARANSI APAPUN; tanpa pula garansi implisit dari\n" "PENJUALAN atau PENGGUNAAN UNTUK TUJUAN KHUSUS. Lihat\n" "Lisensi Publik Umum GNU untuk detail lebih lanjut.\n" "\n" "Anda seharusnya menerima salinan dari Lisensi Publik Umum GNU\n" "bersama dengan program ini; jika tidak, lihat ." #: src/help.c:155 msgid "Shortcuts" msgstr "Jalan pintas" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Mulai/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Kecepatan: Lebih Cepat" #: src/help.c:270 msgid "Speed: Slower" msgstr "Kecepatan: Lebih Lambat" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Meter" #: src/help.c:282 msgid "Double Speed" msgstr "Kecepatan Ganda" #: src/help.c:288 msgid "Half Speed" msgstr "Kecepatan Setengah" #: src/help.c:294 msgid "Speed: -10" msgstr "Kecepatan: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Kecepatan: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Kecepatan: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Kecepatan: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Volume Ganda" #: src/help.c:324 msgid "Half Volume" msgstr "Volume Setengah" #: src/help.c:330 msgid "Volume: -10" msgstr "Volume: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Volume: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Volume: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Volume: +2" #: src/metro.c:74 msgid "Idle" msgstr "Menganggur" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Mulai" #: src/metro.c:75 msgid "Running" msgstr "Berjalan" #: src/metro.c:75 msgid "Stop" msgstr "Stop" #: src/metro.c:79 msgid "_Help" msgstr "_Bantuan" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronom" #: src/metro.c:81 msgid "_Quit" msgstr "_Keluar" #: src/metro.c:82 msgid "_Edit" msgstr "_Sunting" #: src/metro.c:83 msgid "_Preferences" msgstr "_Pengaturan" #: src/metro.c:84 msgid "_View" msgstr "_Tampilan" #: src/metro.c:85 msgid "_About" msgstr "T_entang" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Jalan Pintas" #: src/metro.c:90 msgid "Start the metronome" msgstr "Mulai metronom" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Tanda Visual" #: src/metro.c:92 msgid "_Accent Table" msgstr "Tabel _Aksen" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofil" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Pengaturan" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Bunyi Sentuh" #: src/metro.c:1625 msgid "Speed:" msgstr "Kecepatan:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Sama" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Lainnya:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Aksen Irama" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Tak dapat memulai metronom.\n" "Silakan cek apakah divais suara ditentukan\n" "dan berkas contoh dapat diakses." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Silakan pilih berkas suara." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Pengaturan" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Suara" #: src/gtkoptions.c:331 msgid "Default" msgstr "Standar" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinus" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Pilih" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Sistem Suara" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Nama berkas divais:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Perintah Eksternal" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Eksekusi saat mulai:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Eksekusi saat stop:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Jangkauan Kecepatan" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimum BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maksimum BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Profil Tak Dinamai" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Sunting Profil" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Silakan masukkan nama Profil baru: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profil" #~ msgid "Sound Device" #~ msgstr "Divais Suara" gtick-0.5.2/po/fa.po0000644000175000017500000002410212116334676011114 00000000000000# Persian Translation of gtick package # Copyright (C) 2010 Free Software Foundation, Inc. # This file is distributed under the same license as the gtick package. # Mahyar Moghimi , 2010. # msgid "" msgstr "" "Project-Id-Version: gtick 0.4.2\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2010-08-23 13:29+0330\n" "Last-Translator: Mahyar Moghimi \n" "Language-Team: Persian \n" "Language: fa\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" #: src/help.c:77 msgid "About GTick" msgstr "درباره‌ی جی‌تیک" #: src/help.c:79 msgid "License" msgstr "مجوز" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" #: src/help.c:127 msgid "GTick License" msgstr "مجوز جی‌تیک" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" #: src/help.c:155 msgid "Shortcuts" msgstr "میانبُرهای صفحه‌کلید" #: src/help.c:162 #, fuzzy msgid "Ctrl-S" msgstr "مهار" #: src/help.c:168 #, fuzzy msgid "Ctrl-+" msgstr "مهار" #: src/help.c:174 #, fuzzy msgid "Ctrl--" msgstr "مهار" #: src/help.c:180 #, fuzzy msgid "Ctrl-1 ... Ctrl-9" msgstr "مهار" #: src/help.c:186 #, fuzzy msgid "Alt-w" msgstr "دگرساز" #: src/help.c:192 #, fuzzy msgid "Alt-q" msgstr "دگرساز" #: src/help.c:198 #, fuzzy msgid "Alt-a" msgstr "دگرساز" #: src/help.c:204 #, fuzzy msgid "Alt-s" msgstr "دگرساز" #: src/help.c:210 #, fuzzy msgid "Alt-z" msgstr "دگرساز" #: src/help.c:216 #, fuzzy msgid "Alt-x" msgstr "دگرساز" #: src/help.c:222 #, fuzzy msgid "Shift-w" msgstr "تبدیل" #: src/help.c:228 #, fuzzy msgid "Shift-q" msgstr "تبدیل" #: src/help.c:234 #, fuzzy msgid "Shift-a" msgstr "تبدیل" #: src/help.c:240 #, fuzzy msgid "Shift-s" msgstr "تبدیل" #: src/help.c:246 #, fuzzy msgid "Shift-z" msgstr "تبدیل" #: src/help.c:252 #, fuzzy msgid "Shift-x" msgstr "تبدیل" #: src/help.c:258 #, fuzzy msgid "Start/Stop" msgstr "توقف صفحه‌کلید" #: src/help.c:264 #, fuzzy msgid "Speed: Faster" msgstr "_سرعت اتصال:" #: src/help.c:270 #, fuzzy msgid "Speed: Slower" msgstr "_سرعت اتصال:" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "" #: src/help.c:282 #, fuzzy msgid "Double Speed" msgstr "_سرعت اتصال:" #: src/help.c:288 #, fuzzy msgid "Half Speed" msgstr "_سرعت اتصال:" #: src/help.c:294 #, fuzzy msgid "Speed: -10" msgstr "Sans 10" #: src/help.c:300 #, fuzzy msgid "Speed: +10" msgstr "Sans 10" #: src/help.c:306 #, fuzzy msgid "Speed: -2" msgstr "سرعت" #: src/help.c:312 #, fuzzy msgid "Speed: +2" msgstr "سرعت" #: src/help.c:318 msgid "Double Volume" msgstr "دوبرابر کردن صدا" #: src/help.c:324 msgid "Half Volume" msgstr "نصف‌کردن صدا" #: src/help.c:330 msgid "Volume: -10" msgstr "صدا: ۱۰-" #: src/help.c:336 msgid "Volume: +10" msgstr "صدا: ۱۰+" #: src/help.c:342 msgid "Volume: -2" msgstr "صدا: ۲-" #: src/help.c:348 msgid "Volume: +2" msgstr "صدا: ۲+" #: src/metro.c:74 msgid "Idle" msgstr "عاطل" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "شروع" #: src/metro.c:75 msgid "Running" msgstr "در حال اجرا" #: src/metro.c:75 msgid "Stop" msgstr "توقف" #: src/metro.c:79 msgid "_Help" msgstr "_راهنما" #: src/metro.c:80 msgid "_Metronome" msgstr "" #: src/metro.c:81 msgid "_Quit" msgstr "خروج" #: src/metro.c:82 msgid "_Edit" msgstr "ویرایش" #: src/metro.c:83 msgid "_Preferences" msgstr "_ترجیحات" #: src/metro.c:84 msgid "_View" msgstr "نمایش" #: src/metro.c:85 msgid "_About" msgstr "درباره" #: src/metro.c:86 msgid "_Shortcuts" msgstr "میانبُرهای صفحه‌کلید" #: src/metro.c:90 msgid "Start the metronome" msgstr "آغاز مترونوم" #: src/metro.c:91 msgid "_Visual Tick" msgstr "تیک _تصویری" #: src/metro.c:92 msgid "_Accent Table" msgstr "جدول _اَکسانت" #: src/metro.c:93 #, fuzzy msgid "Pr_ofiles" msgstr "_ترجیحات" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 #, fuzzy msgid "Settings" msgstr "تنظیمات" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "" #: src/metro.c:1625 #, fuzzy msgid "Speed:" msgstr "سرعت:" #: src/metro.c:1694 #, fuzzy msgid "Volume:" msgstr "جلد:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 #, fuzzy msgid "Even" msgstr "صفحه‌های زوج" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 #, fuzzy msgid "Other:" msgstr "غیره..." #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "" #: src/gtkoptions.c:270 #, fuzzy msgid "Preferences" msgstr "تنظیمات" #: src/gtkoptions.c:315 #, fuzzy msgid "Sound" msgstr "صدا" #: src/gtkoptions.c:331 #, fuzzy msgid "Default" msgstr "پیش‌فرض" #: src/gtkoptions.c:344 #, fuzzy msgid "Sine" msgstr "تابع سینوس" #: src/gtkoptions.c:389 #, fuzzy msgid "Choose" msgstr "پرونده را انتخاب کنید" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 #, fuzzy msgid "Device filename:" msgstr "تنظیم نام پرونده" #: src/gtkoptions.c:477 #, fuzzy msgid "External Commands" msgstr "فرمان‌های مشترک" #: src/gtkoptions.c:495 #, fuzzy msgid "Execute on start:" msgstr "آغاز با کلید فاصله" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "" #: src/gtkoptions.c:534 #, fuzzy msgid "Speed Range" msgstr "محدوده‌ی چاپ" #: src/gtkoptions.c:552 #, fuzzy msgid "Minimum BPM:" msgstr "_حداقل اندازه:" #: src/gtkoptions.c:569 #, fuzzy msgid "Maximum BPM:" msgstr "طول حداکثر" #: src/profiles.c:330 src/profiles.c:616 #, fuzzy msgid "Unnamed Profile" msgstr "_تغییر شرح‌حال" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "ویرایش مجموعه تنظیمات صوتی" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "مجموعه‌های‌ تنظیمات" #, fuzzy #~ msgid "Sound Device" #~ msgstr "اطلاعات دستگاه" gtick-0.5.2/po/en@quot.header0000644000175000017500000000226310661555202012750 00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # gtick-0.5.2/po/fi.gmo0000644000175000017500000001171112116334677011273 00000000000000[  % -9`@      1 C Q \ h m w          ) 1 : B J R Z b j t y             & 4 : @ K X ^ i o q|   !)/5;AGM Ubwj !6Xko   =]fk      !38 ?K S _ j v  *AW `nw } 2VK!+PLT[0N< 5?$-7=#XQJWD6OC&: 3@894" I'; . * MBE/FRAYGUH,)S1Z%(>%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:Minimum BPM:ModeratoOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.3.15 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2007-07-21 17:57+0300 Last-Translator: Lauri Nurmi Language-Team: Finnish Language: fi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %s (%d–%d)2/43/44/4Tietoja GTickistäAdagioAllegroAlt-AAlt-QAlt-SAlt-WAlt-XAlt-ZAndanteTahdin iskutValitseMetronomin käynnistys ei onnistunut. Tarkista, että määritelty äänilaite ja äänitiedosto ovat käytettävissä.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SOletusLaitetiedosto:Kaksinkertainen nopeusKaksinkertainen äänenvoimakkuusProfiilin muokkaus1/4Suorita käynnistettäessä:Suorita pysäytettäessä:Ulkoiset komennotGTickin lisenssiPuolinopeusPuolitettu äänenvoimakkuusJoutenLarghettoLarghissimoLargoLisenssiIskuja minuutissa enintään:Iskuja minuutissa vähintään:ModeratoMuu:Valitse äänitiedosto.Anna uusi nimi profiilille: Pr_ofiilitOminaisuudetPrestissimoPrestoProfiilitKäynnissäAsetuksetVaihto-AVaihto-QVaihto-SVaihto-WVaihto-XVaihto-ZNäppäinoikotietSiniÄäniNopeusväliNopeus:Nopeus: +10Nopeus: +2Nopeus: -10Nopeus: -2Nopeus: NopeampiNopeus: HitaampiKäynnistäKäynnistä metronomiKäynnistä/PysäytäPysäytäNaputaNimetön profiiliKäyttö: %s [VALITSIN...] Valitsimet: -h, --help Näytä tämä ohje -v, --version Tulosta versiotiedot -d, --debug[=taso] Tulosta ylimääräistä ajonaikaista vianetsintätietoa vakiotulosteeseen Äänenvoimakkuus:Äänenvoimakkuus: +10Äänenvoimakkuus: +2Äänenvoimakkuus: -10Äänenvoimakkuus: -2_TietojaI_skuvalinnat_MuokkaaO_hjeM_etronomi_Ominaisuudet_Lopeta_Näppäinoikotiet_NäytäNäytä _iskutgtick-0.5.2/po/ko.po0000644000175000017500000002555612116334676011155 00000000000000msgid "" msgstr "" "Project-Id-Version: gtick\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2007-01-06 02:38+0900\n" "Last-Translator: jacojang \n" "Language-Team: jacojang \n" "Language: ko\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Korean\n" "X-Poedit-Country: KOREA, REPUBLIC OF\n" "X-Poedit-SourceCharset: utf-8\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help 도움말 출력\n" " -v, --version 버젼 정보 출력\n" " -d, --debug[=level] 표준출력으로 추가적인 디버그 메세지 출력\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "GTick 정보" #: src/help.c:79 msgid "License" msgstr "라이센스" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "홈페이지:\n" "http://www.antcom.de/gtick/\n" "\n" "버그 리포트나 코멘트, 기타 사항은\n" "아래 개발자 메일링 리스트를 이용 하시기 바랍니다 :\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick 라이센스" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 2\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, write to the Free Software\n" "Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "단축키" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "시작/멈춤" #: src/help.c:264 msgid "Speed: Faster" msgstr "속도: 빠르게" #: src/help.c:270 msgid "Speed: Slower" msgstr "속도: 느리게" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "" #: src/help.c:282 msgid "Double Speed" msgstr "2배속" #: src/help.c:288 msgid "Half Speed" msgstr "1/2속도" #: src/help.c:294 msgid "Speed: -10" msgstr "속도: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "속도: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "속도: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "속도: +2" #: src/help.c:318 msgid "Double Volume" msgstr "볼률 2배" #: src/help.c:324 msgid "Half Volume" msgstr "볼륨 절반" #: src/help.c:330 msgid "Volume: -10" msgstr "볼륨: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "볼륨: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "볼륨: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "볼륨: +2" #: src/metro.c:74 msgid "Idle" msgstr "" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "시작" #: src/metro.c:75 msgid "Running" msgstr "동작중" #: src/metro.c:75 msgid "Stop" msgstr "멈춤" #: src/metro.c:79 msgid "_Help" msgstr "도움말(_H)" #: src/metro.c:80 msgid "_Metronome" msgstr "메트로놈(_M)" #: src/metro.c:81 msgid "_Quit" msgstr "종료(_Q)" #: src/metro.c:82 msgid "_Edit" msgstr "편집(_E)" #: src/metro.c:83 msgid "_Preferences" msgstr "설정(_P)" #: src/metro.c:84 msgid "_View" msgstr "보기(_V)" #: src/metro.c:85 msgid "_About" msgstr "이 프로그램은(_A)" #: src/metro.c:86 msgid "_Shortcuts" msgstr "단축키(_S)" #: src/metro.c:90 msgid "Start the metronome" msgstr "메트로놈 시작" #: src/metro.c:91 msgid "_Visual Tick" msgstr "" #: src/metro.c:92 msgid "_Accent Table" msgstr "강세 테이블(_A)" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "프로파일(_O)" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "설정" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "탭" #: src/metro.c:1625 msgid "Speed:" msgstr "속도:" #: src/metro.c:1694 msgid "Volume:" msgstr "볼륨:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "그외:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "강세 박자" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "메트로놈을 시작할 수 없습니다..\n" "선택된 사운드 장치 와 샘플 파일이 접근 가능한지\n" "확인해 보시기 바랍니다." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "음악 파일 선택." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "환경설정" #: src/gtkoptions.c:315 msgid "Sound" msgstr "사운드" #: src/gtkoptions.c:331 msgid "Default" msgstr "기본겂" #: src/gtkoptions.c:344 msgid "Sine" msgstr "사인" #: src/gtkoptions.c:389 msgid "Choose" msgstr "선택" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "장치 파일명:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "외부 명령" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "시작시 실행:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "정지시 실행" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "속도 범위" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "최소 BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "최대 BPM" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "프로파일(_O)" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "프로파일(_O)" #~ msgid "Sound Device" #~ msgstr "사운드 장치" #~ msgid "Beat" #~ msgstr "박자" gtick-0.5.2/po/boldquot.sed0000644000175000017500000000033110661555202012503 00000000000000s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g s/“/“/g s/”/”/g s/‘/‘/g s/’/’/g gtick-0.5.2/po/zh_CN.po0000644000175000017500000003035112116334676011532 00000000000000# Simple Chinese Translation for gtick # Copyright (C) 2006 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # Wenshu Liu , 2006. # Ji ZhengYu , 2010, 2011 msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2011-08-08 16:10+0800\n" "Last-Translator: Ji ZhengYu \n" "Language-Team: Chinese (simplified) \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "用法:%s [选项...]\n" "\n" "选项:\n" " -h, --help 显示帮助信息\n" " -v, --version 显示版本信息\n" " -d, --debug[=level] 输出更多的运行时调试信息到标准输出\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "关于 GTick" #: src/help.c:79 msgid "License" msgstr "版权协议" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "版权所有 (c) 1999, Alex Roberts \n" "版权所有 (c) 2003, Roland Stigge \n" "Logo设计:Mario Andres Pagella \n" "\n" "主页:\n" "http://www.antcom.de/gtick/\n" "\n" "将错误报告,意见发送到\n" "开发人员邮件列表:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick 版权协议" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - 节拍器\n" "版权所有 (c) 1999, Alex Roberts \n" "版权所有 (c) 2003, Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 2\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, write to the Free Software\n" "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "快捷键" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "开始/停止" #: src/help.c:264 msgid "Speed: Faster" msgstr "速度加快" #: src/help.c:270 msgid "Speed: Slower" msgstr "速度降低" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "节拍" #: src/help.c:282 msgid "Double Speed" msgstr "速度加倍" #: src/help.c:288 msgid "Half Speed" msgstr "速度减半" #: src/help.c:294 msgid "Speed: -10" msgstr "速度减10" #: src/help.c:300 msgid "Speed: +10" msgstr "速度加10" #: src/help.c:306 msgid "Speed: -2" msgstr "速度减2" #: src/help.c:312 msgid "Speed: +2" msgstr "速度加2" #: src/help.c:318 msgid "Double Volume" msgstr "音量加倍" #: src/help.c:324 msgid "Half Volume" msgstr "音量减半" #: src/help.c:330 msgid "Volume: -10" msgstr "音量减10" #: src/help.c:336 msgid "Volume: +10" msgstr "音量加10" #: src/help.c:342 msgid "Volume: -2" msgstr "音量减2" #: src/help.c:348 msgid "Volume: +2" msgstr "音量加2" #: src/metro.c:74 msgid "Idle" msgstr "空闲" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "开始" #: src/metro.c:75 msgid "Running" msgstr "正在运行" #: src/metro.c:75 msgid "Stop" msgstr "停止" #: src/metro.c:79 msgid "_Help" msgstr "帮助(_H)" #: src/metro.c:80 msgid "_Metronome" msgstr "节拍器(_M)" #: src/metro.c:81 msgid "_Quit" msgstr "退出(_Q)" #: src/metro.c:82 msgid "_Edit" msgstr "编辑(_E)" #: src/metro.c:83 msgid "_Preferences" msgstr "选项(_P)" #: src/metro.c:84 msgid "_View" msgstr "视图(_V)" #: src/metro.c:85 msgid "_About" msgstr "关于(_A)" #: src/metro.c:86 msgid "_Shortcuts" msgstr "快捷键(_S)" #: src/metro.c:90 msgid "Start the metronome" msgstr "启动 metronome" #: src/metro.c:91 msgid "_Visual Tick" msgstr "视觉化节拍器(_V)" #: src/metro.c:92 msgid "_Accent Table" msgstr "重音表(_A)" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "属性(_O)" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "深远的,缓慢的,缓板" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "宽广的,慢板" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "稍慢板" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "柔板" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "行板" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "中速" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "快板" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "急板" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "快速的,最急板" #: src/metro.c:1577 msgid "Settings" msgstr "设置" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "点击" #: src/metro.c:1625 msgid "Speed:" msgstr "速度:" #: src/metro.c:1694 msgid "Volume:" msgstr "音量:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "1/4" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "其他:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "重音位置" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "不能启动节拍器,\n" "请检查音频设备和\n" "声音文件是否访问正常。" #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "请选择一个声音文件。" #: src/gtkoptions.c:270 msgid "Preferences" msgstr "选项" #: src/gtkoptions.c:315 msgid "Sound" msgstr "声音" #: src/gtkoptions.c:331 msgid "Default" msgstr "默认" #: src/gtkoptions.c:344 msgid "Sine" msgstr "正弦" #: src/gtkoptions.c:389 msgid "Choose" msgstr "选择" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "音频驱动" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "设备文件名:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "外部命令" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "在开始时执行:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "在停止时执行:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "速度范围" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "每分钟拍数(最小):" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "每分钟拍数(最大):" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "未命名的配置文件" #: src/profiles.c:508 msgid "Edit Profile" msgstr "编辑配置文件" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "请输入配置文件新名称:" #: src/profiles.c:682 msgid "Profiles" msgstr "配置文件" #~ msgid "Sound Device" #~ msgstr "音频设备" #~ msgid "Beat" #~ msgstr "节拍" #, fuzzy #~ msgid "_Profiles" #~ msgstr "属性" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "手动计时" #~ msgid "Manual Timer" #~ msgstr "手动计时" #~ msgid "Reset" #~ msgstr "复位" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "这里,你可以通过单击\"点击\"\n" #~ "按钮来估计期望的速度\n" #~ "\n" #~ "使用鼠标单击或者回车键开始。\n" #~ "\n" #~ "点击\"确定\"使用计算出的速度。\n" #~ "要重新开始,单击\"复位\"。\n" #~ msgid "/Metronome/Start" #~ msgstr "/节拍器(M)/开始" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/节拍器(M)/手动定时(_M)" #~ msgid "/Metronome/" #~ msgstr "/节拍器(M)/" #~ msgid "/Metronome/_Quit" #~ msgstr "/节拍器(M)/退出(_Q)" #~ msgid "/_Options" #~ msgstr "/选项(_O)" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/选项(O)/显示重音表(_A)" #~ msgid "/Options/_Properties" #~ msgstr "/选项(O)/属性(_P)" #~ msgid "/Help/_Shortcuts" #~ msgstr "/帮助(H)/快捷键(_S)" #~ msgid "/Help/_License" #~ msgstr "/帮助(H)/授权(_L)" gtick-0.5.2/po/de.gmo0000644000175000017500000001640512116334676011271 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /S<  7? + =KbyD   #* DQktx"    !)19 AKQ Wc"3DMUh FSdt   (+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2011-08-06 18:58+0200 Last-Translator: Roland Stigge Language-Team: German Language: de MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %s (%d ... %d)2/43/44/4Über GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteAkzenteAuswählenCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo von Mario Andrés Pagella Homepage: http://www.antcom.de/gtick/ Fehler, Kommentare usw. gehen an Die Entwickler-Mailinglist: gtick-devel@gnu.orgKonnte das Metronom nicht starten. Bitte überprüfen Sie, ob das angegebene Sound-Gerät und die Sample-Datei zugreifbar sind.Strg-+Strg--Strg-1 ... Strg-9Strg-SStandardGerätedatei:Doppelte GeschwindigkeitDoppelte LautstärkeProfil bearbeitenGleichmäßigBeim Start ausführen:Beim Stopp ausführen:Externe BefehleGTick - Das Metronom Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge Dieses Programm ist Freie Software; Sie können es unter den Bedingungen der GNU General Public License Version 3 oder (nach Belieben) neuer, wie von der Free Software Foundation veröffentlicht, weitergeben und/oder modifizieren. Dieses Programm wird in der Hoffnung, dass es nützlich sein wird, herausgegeben. Es wird jedoch KEINE GARANTIE übernommen. Selbst die implizite Garantie der MARKTGÄNGIGKEIT oder TAUGLICHKEIT FÜR EINEN BESTIMMTEN ZWECK kann nicht gewährleistet werden. Siehe GNU General Public License für Details. Sie sollten eine Kopie der GNU General Public License zusammen mit diesem Programm erhalten haben. Falls nicht, siehe auch .GTick LizenzHalbe GeschwindigkeitHalbe LautstärkeAusLarghettoLarghissimoLargoLizenzMaximale Geschwindigkeit:GrundtaktartMinimale Geschwindigkeit:ModeratoOSSAndere:Bitte wählen Sie eine Klangdatei.Geben Sie den Profilnamen ein: Pr_ofileEinstellungenPrestissimoPrestoProfilePulseaudioAnEinstellungenShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSinusKlangSoundsystemGeschwindigkeits-WertebereichGeschwindigkeit:Geschwindigkeit: +10Geschwindigkeit: +2Geschwindigkeit: -10Geschwindigkeit: -2Geschwindigkeit: SchnellerGeschwindigkeit: LangsamerStartenMetronom StartenStarten/AnhaltenAnhaltenKlopfenUnbenanntes ProfilAufruf: %s [OPTION...] Optionen: -h, --help Diese Hilfemeldung anzeigen -v, --version Versionsinformation ausgeben -d, --debug[=level] Testausgabe aktivieren, ggf. mit angegebener Stufe Lautstärke:Lautstärke: +10Lautstärke: +2Lautstärke: -10Lautstärke: -2_Über_Akzent-Tabelle_Bearbeiten_Hilfe_Metronom_Einstellungen_Beenden_Shortcuts_Ansicht_Visueller Tickgtick-0.5.2/po/en@quot.gmo0000644000175000017500000001565412116334676012321 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /l<  7 `X   !&8I[ Q _ jv {      %18 ALT]emu}          "-26F ! - 8 DO Vdj p {  (+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.2 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2013-03-08 11:13+0100 Last-Translator: Automatically generated Language-Team: none Language: en@quot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual Tickgtick-0.5.2/po/pt_BR.po0000644000175000017500000003121712116334676011541 00000000000000# Brazilian Portuguese localization for GTick. # Copyright (C) 2003 Roland Stigge # Marco Tulio Gontijo e Silva , 2005. # msgid "" msgstr "" "Project-Id-Version: gtick 0.2.3\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2005-01-15 10:14-0200\n" "Last-Translator: Marco Tulio Gontijo e Silva \n" "Language-Team: Brazilian Portuguese \n" "Language: pt_BR\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Uso: %s [OPÇÃO...]\n" "\n" "Opções:\n" " -h, --help Mostra essa mensagem de ajuda\n" " -v, --version Mostra informação sobre a versão\n" " -d, --debug[=level] Mostra dados de tempo de execução para depuração " "na saída padrão\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "" #: src/help.c:79 #, fuzzy msgid "License" msgstr "Licença do GTick" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "Logo por Mario Andres Pagella \n" "\n" "Página web:\n" "http://www.antcom.de/gtick/\n" "\n" "Relatório de erros, comentários, etc. para\n" "Lista de discussão dos desenvolvedores:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licença do GTick" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - O metrônomo\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "\n" "Esse programa é Software Livre; você pode redistribuí-lo e/ou\n" "modificá-lo sob os termos da Licença Pública Geral do GNU\n" "como publicado pela Fundação do Software Livre; tanto na versão 2\n" "da Licença, ou (à sua escolha) qualquer versão posterior..\n" "\n" "Esse programa é distribuído na intenção de ser útil,\n" "mas SEM NENHUMA GARANTIA; sem mesmo a garantia implicada de\n" "COMERCIALIZAÇÃO ou SERVIR A UM DADO PROPÓSITO. Veja a\n" "Licença Pública Geral do GNU para mais informações.\n" "\n" "Você deve ter recebido uma cópia da Licença Pública Geral GNU\n" "juntamente com esse programa; se não, escreva para a Free Software,\n" "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "Atalhos" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "" #: src/help.c:192 msgid "Alt-q" msgstr "" #: src/help.c:198 msgid "Alt-a" msgstr "" #: src/help.c:204 msgid "Alt-s" msgstr "" #: src/help.c:210 msgid "Alt-z" msgstr "" #: src/help.c:216 msgid "Alt-x" msgstr "" #: src/help.c:222 msgid "Shift-w" msgstr "" #: src/help.c:228 msgid "Shift-q" msgstr "" #: src/help.c:234 msgid "Shift-a" msgstr "" #: src/help.c:240 msgid "Shift-s" msgstr "" #: src/help.c:246 msgid "Shift-z" msgstr "" #: src/help.c:252 msgid "Shift-x" msgstr "" #: src/help.c:258 msgid "Start/Stop" msgstr "Começar/Parar" #: src/help.c:264 msgid "Speed: Faster" msgstr "Velocidade: Mais rápido" #: src/help.c:270 msgid "Speed: Slower" msgstr "Velocidade: Mais devagar" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Passo base" #: src/help.c:282 msgid "Double Speed" msgstr "" #: src/help.c:288 #, fuzzy msgid "Half Speed" msgstr "Velocidade:" #: src/help.c:294 #, fuzzy msgid "Speed: -10" msgstr "Velocidade:" #: src/help.c:300 #, fuzzy msgid "Speed: +10" msgstr "Velocidade:" #: src/help.c:306 #, fuzzy msgid "Speed: -2" msgstr "Velocidade:" #: src/help.c:312 #, fuzzy msgid "Speed: +2" msgstr "Velocidade:" #: src/help.c:318 #, fuzzy msgid "Double Volume" msgstr "Volume:" #: src/help.c:324 #, fuzzy msgid "Half Volume" msgstr "Volume:" #: src/help.c:330 #, fuzzy msgid "Volume: -10" msgstr "Volume:" #: src/help.c:336 #, fuzzy msgid "Volume: +10" msgstr "Volume:" #: src/help.c:342 #, fuzzy msgid "Volume: -2" msgstr "Volume:" #: src/help.c:348 #, fuzzy msgid "Volume: +2" msgstr "Volume:" #: src/metro.c:74 msgid "Idle" msgstr "Parado" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Começar" #: src/metro.c:75 msgid "Running" msgstr "Rodando" #: src/metro.c:75 msgid "Stop" msgstr "Parar" #: src/metro.c:79 #, fuzzy msgid "_Help" msgstr "/_Ajuda" #: src/metro.c:80 #, fuzzy msgid "_Metronome" msgstr "/_Metrônomo" #: src/metro.c:81 #, fuzzy msgid "_Quit" msgstr "Sair" #: src/metro.c:82 msgid "_Edit" msgstr "" #: src/metro.c:83 msgid "_Preferences" msgstr "" #: src/metro.c:84 msgid "_View" msgstr "" #: src/metro.c:85 #, fuzzy msgid "_About" msgstr "Sobre" #: src/metro.c:86 #, fuzzy msgid "_Shortcuts" msgstr "Atalhos" #: src/metro.c:90 #, fuzzy msgid "Start the metronome" msgstr "Ligar Metrônomo" #: src/metro.c:91 #, fuzzy msgid "_Visual Tick" msgstr "/Opções/Exibir _Batida Visual" #: src/metro.c:92 #, fuzzy msgid "_Accent Table" msgstr "Tabela de Acento" #: src/metro.c:93 #, fuzzy msgid "Pr_ofiles" msgstr "Propriedades" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "Configurações" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Tempo" #: src/metro.c:1625 msgid "Speed:" msgstr "Velocidade:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Constante" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Outro:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Não foi possível iniciar o metrônomo.\n" "Por favor confira se o dispositivo de som\n" "e o arquivo de exemplos especificados estão acessíveis." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Por favor escolha um arquivo de som." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Som" #: src/gtkoptions.c:331 msgid "Default" msgstr "Padrão" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sino" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Escolha" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Arquivo do dispositivo:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Comandos externos" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Executar no começo:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Executar no final:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Faixa de velocidades:" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "BPM mínimo:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "BPM Máximo:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "Propriedades" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "Propriedades" #~ msgid "Sound Device" #~ msgstr "Dispositivo de Som" #~ msgid "Beat" #~ msgstr "Batida" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Propriedades" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "Temporizador Manual" #~ msgid "Manual Timer" #~ msgstr "Temporizador Manual" #~ msgid "Reset" #~ msgstr "Reiniciar" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Aqui você pode aproximar a velocidade desejada\n" #~ "clicando no botão \"Tempo\".\n" #~ "\n" #~ "Simplesmente comece a pressionar com o mouse ou Enter.\n" #~ "\n" #~ "Para usar o valor calculado, clique em \"OK\".\n" #~ "Para recomeçar, clique em \"Reiniciar\".\n" #~ msgid "/Metronome/Start" #~ msgstr "/Metrônomo/Parar" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metrônomo/_Temporizador Manual" #~ msgid "/Metronome/" #~ msgstr "/Metrônomo/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metrônomo/_Sair" #~ msgid "/_Options" #~ msgstr "/_Opções" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Opções/Exibir _Tabela de Acento" #~ msgid "/Options/_Properties" #~ msgstr "/Opções/_Propriedades" #~ msgid "/Help/_About" #~ msgstr "/Ajuda/_Sobre" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Ajuda/_Atalhos" #~ msgid "/Help/_License" #~ msgstr "/Ajuda/_Licença" #~ msgid "Error loading file: \"%s\"." #~ msgstr "Erro carregando arquivo: \"%s\"." #~ msgid "Couldn't set up sound device: \"%s\"." #~ msgstr "Não foi possível iniciar o dispositivo de som: \"%s\"." #~ msgid "Metronome (On)" #~ msgstr "Metrônomo (Ligado)" #~ msgid "Metronome (Off)" #~ msgstr "Metrônomo (Desligado)" #~ msgid "OK" #~ msgstr "OK" gtick-0.5.2/po/eo.gmo0000644000175000017500000001617212116334676011305 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /v<   "D)un ,<L _i{    " (5>BH*e       %0 @ J X e s       +4 ; FP Xek(+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2011-08-25 16:11-0300 Last-Translator: Felipe Castro Language-Team: Esperanto Language: eo MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit %s (%d ... %d)2/43/44/4Pri GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteFrap-akcentoElektiKopirajto (c) 1999, Alex Roberts Kopirajto (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Bildo de Mario Andres Pagella Retejo: http://www.antcom.de/gtick/ Sendu raportojn pri eraroj, komentojn, ktp, al Diskut-listo de programantoj: gtick-devel@gnu.orgNe eblis ekigi la metronomon. Bonvolu kontroli ĉu la specifita son-aparato kaj la specimena dosiero estas alireblaj.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SOriginalaDosiernomo de aparato:Duobla rapidecoDuobla laŭtecoRedakti PersonigonKonstantaPlenumi je ekigo:Plenumi je halto:Eksteraj komandojGTick - La Metronomo Kopirajto (c) 1999, Alex Roberts Kopirajto (c) 2003, 2004, 2005, 2006 Roland Stigge Tiu ĉi programo estas libera programaro; vi povas redistribui ĝin kaj/aŭ modifi ĝin laŭ la termoj de la GNU-a Ĝenerala Publika Liber-permeso kiel publikigite de 'Free Software Foundation'; aŭ versio 3 de la Liberpermeso, aŭ (laŭ via elekto) iu ajn posta versio. Tiu ĉi programo estas distribuita esperante ke ĝi estu utila, sed SEN IU AJN GARANTIO; sen eĉ implicita garantio pri VENDEBLECO aŭ TAŬGECO POR IU SPECIFA APLIKO. Vidu la GNU-an Ĝeneralan Publikan Liberpermeson por pli da detaloj. Vi devus ricevi kopion de la GNU-a Ĝenerala Publika Liberpermeso kune kun tiu ĉi programo; se ne, vidu .Permeso de GTickDuona rapidecoDuona laŭtecoSenokupaLarghettoLarghissimoLargoPermesoMaksimuma FPMTaktoMinimuma FPMModeratoOSSAlia:Bonvolu elekti son-dosieron.Bonvolu enmeti novan nomon por Personigo: Pers_onigojPreferojPrestissimoPrestoPersonigojPulseaudioAktivaAgordojShift-aShift-qShift-sShift-wShift-xShift-zTujkomandojSinusaSonoSonsistemoRapidecaj limojRapideco:Rapideco: +10Rapideco: +2Rapideco: -10Rapideco: -2Rapideco: pliRapideco: malpliEkigiEkigi la metronomonEkigi/HaltigiHaltigiFrapaduSennoma personigoUzado: %s [ELEKTEBLO...] Elektebloj: -h, --help Montri tiun ĉi help-mesaĝon -v, --version Montri informon pri versio -d, --debug[=nivelo] Sendi kroman funkcitempan rafinigan datumaron al 'stdout' Laŭteco:Laŭteco: +10Laŭteco: +2Laŭteco: -10Laŭteco: -2_PriTabelo de _Akcentoj_Redakti_Helpo_Metronomo_Preferoj_Foriri_Tujkomandoj_Vidi_Videbla Klakogtick-0.5.2/po/id.gmo0000644000175000017500000001612112116334677011271 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /<   '3/9gi $1@EZn        #<` h s     ! 0> M[r         # + 9 C(+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2012-05-18 15:48+0700 Last-Translator: Andhika Padmawan Language-Team: Indonesian Language: id MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit %s (%d ... %d)2/43/44/4Tentang GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteAksen IramaPilihHak cipta (c) 1999, Alex Roberts Hak cipta (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo oleh Mario Andres Pagella Laman: http://www.antcom.de/gtick/ Email laporan kutu, komentar, dsb. ke Milis pengembang: gtick-devel@gnu.orgTak dapat memulai metronom. Silakan cek apakah divais suara ditentukan dan berkas contoh dapat diakses.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SStandarNama berkas divais:Kecepatan GandaVolume GandaSunting ProfilSamaEksekusi saat mulai:Eksekusi saat stop:Perintah EksternalGTick - Metronom Hak cipta (c) 1999, Alex Roberts Hak cipta (c) 2003, 2004, 2005, 2006 Roland Stigge Program ini adalah perangkat lunak bebas; anda dapat mendistribusikan ulang atau memodifikasinya di bawah perjanjian Lisensi Publik Umum GNU yang diterbitkan oleh Free Software Foundation; baik versi 3 dari Lisensi, atau (sesuai pilihan anda) versi manapun setelahnya. Program ini didistribusikan dengan harapan dapat berguna, tapi TANPA GARANSI APAPUN; tanpa pula garansi implisit dari PENJUALAN atau PENGGUNAAN UNTUK TUJUAN KHUSUS. Lihat Lisensi Publik Umum GNU untuk detail lebih lanjut. Anda seharusnya menerima salinan dari Lisensi Publik Umum GNU bersama dengan program ini; jika tidak, lihat .Lisensi GTickKecepatan SetengahVolume SetengahMenganggurLarghettoLarghissimoLargoLisensiMaksimum BPM:MeterMinimum BPM:ModeratoOSSLainnya:Silakan pilih berkas suara.Silakan masukkan nama Profil baru: Pr_ofilPengaturanPrestissimoPrestoProfilPulseaudioBerjalanPengaturanShift-aShift-qShift-sShift-wShift-xShift-zJalan pintasSinusSuaraSistem SuaraJangkauan KecepatanKecepatan:Kecepatan: +10Kecepatan: +2Kecepatan: -10Kecepatan: -2Kecepatan: Lebih CepatKecepatan: Lebih LambatMulaiMulai metronomMulai/StopStopBunyi SentuhProfil Tak DinamaiPenggunaan: %s [OPSI...] Opsi: -h, --help Tampilkan pesan bantuan ini -v, --version Cetak informasi versi -d, --debug[=level] Cetak data awakutu waktu operasi tambahan ke keluaran standar Volume:Volume: +10Volume: +2Volume: -10Volume: -2T_entangTabel _Aksen_Sunting_Bantuan_Metronom_Pengaturan_Keluar_Jalan Pintas_Tampilan_Tanda Visualgtick-0.5.2/po/cs.gmo0000644000175000017500000001667112116334676011313 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /< #*28>DJPV^qxw  "<U*h    ;DH O'p     )/4 ER Y d n y     &2G P \ f r| (+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2012-04-07 19:59+0100 Last-Translator: Marek Černocký Language-Team: Czech Language: cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2; %s (%d … %d)2/43/44/4O aplikaci GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndantePřízvučná dobaVybratCopyright © 1999, Alex Roberts Copyright © 2003, 2004, 2005, 2006 Roland Stigge Logo Mario Andrés Pagella Přeložili Jiří Pejchal a Marek Černocký Domovská stránka: http://www.antcom.de/gtick/ Hlášení o chybách, připomínky, atd. posílejte do vývojářské konference: gtick-devel@gnu.orgMetronom nelze spustit. Zkontrolujte prosím, zda jsou vybrané zvukové zařízení a vzorkovací soubor přístupné.Ctrl-+Ctrl--Ctrl-1 … Ctrl-9Ctrl-SVýchozíNázev zařízení:Dvojnásobné tempoDvojnásobná hlasitostUpravit profilStejnoměrnýVykonat při spuštění:Vykonat při zastavení:Externí příkazyGTick - Metronom Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge GTick je svobodný software: Můžete jej dále šířit a/nebo upravovat za podmínek licence GNU General Public License v podobě, v jaké ji vydala Free Software Foundation, a to buď ve verzi 3 této licence nebo (dle vaší volby) v libovolné novější verzi. GTick je šířen ve víře, že bude užitečný, ale BEZ JAKÝCHKOLIV ZÁRUK, a to i bez předpokládané záruky na PRODEJNOST nebo VHODNOST PRO KONKRÉTNÍ ÚČEL. Více podrobností najdete přímo v licenci GNU General Public License. Spolu s tímto programem byste měli obdržet kopii licence GNU General Public License. Pokud se tak nestalo, podívejte se na .Licence GTickPoloviční tempoPoloviční hlasitostZastavenýLarghettoLarghissimoLargoLicenceMaximálně úderů za minutu:TaktMinimálně úderů za minutu:ModeratoOSSJiný:Vyberte prosím zvukový soubor.Zadejte prosím název nového profilu:Pr_ofilyPředvolbyPrestissimoPrestoProfilyPulseaudioBěžíNastaveníShift-aShift-qShift-sShift-wShift-xShift-zKlávesové zkratkySinusZvukZvukový systémRozsah tempaTempo:Tempo: +10Tempo: +2Tempo: -10Tempo: -2Tempo: rychlejiTempo: pomalejiSpustitSpustit metronomSpustit/ZastavitZastavitVyťukatNepojmenovaný profilPoužití: %s [PŘEPÍNAČ…] Přepínače: -h, --help Vypíše tuto nápovědu -v, --version Vypíše informaci o verzi -d, --debug[=úroveň] Vypíše doplňující ladicí data o běhu programu Hlasitost:Hlasitost: +10Hlasitost: +2Hlasitost: -10Hlasitost: -2O _aplikaciT_abulka přízvuků_Upravit_Nápověda_Metronom_PředvolbyU_končitKláve_sové zkratky_ZobrazitZobrazit tikání _vizuálněgtick-0.5.2/po/fa.gmo0000644000175000017500000000323212116334677011262 00000000000000%@ A M [ iuz          &30IR[(p       *8H(Q z     About GTickDouble VolumeGTick LicenseHalf VolumeIdleLicenseRunningShortcutsStartStart the metronomeStopVolume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.4.2 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2010-08-23 13:29+0330 Last-Translator: Mahyar Moghimi Language-Team: Persian Language: fa MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); درباره‌ی جی‌تیکدوبرابر کردن صدامجوز جی‌تیکنصف‌کردن صداعاطلمجوزدر حال اجرامیانبُرهای صفحه‌کلیدشروعآغاز مترونومتوقفصدا: ۱۰+صدا: ۲+صدا: ۱۰-صدا: ۲-دربارهجدول _اَکسانتویرایش_راهنما_ترجیحاتخروجمیانبُرهای صفحه‌کلیدنمایشتیک _تصویریgtick-0.5.2/po/ru.po0000644000175000017500000003426012116334676011162 00000000000000# Translation of gtick messages to Russian # Copyright (C) 2003 Roland Stigge (msgid) # This file is distributed under the same license as the gtick package. # Pavel Maryanov , 2003, 2004, 2006, 2007, 2008. msgid "" msgstr "" "Project-Id-Version: gtick 0.4.1\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2008-01-18 00:54+0200\n" "Last-Translator: Pavel Maryanov \n" "Language-Team: Russian \n" "Language: ru\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Использование: %s [ОПЦИЯ...]\n" "\n" "Опции:\n" " -h, --help Вывод этого справочного сообщения\n" " -v, --version Вывод информации о версии\n" " -d, --debug[=уровень] Вывод дополнительной отладочной информации на " "стандартный вывод\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "О программе GTick" #: src/help.c:79 msgid "License" msgstr "Лицензия" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Автор логотипа: Mario Andres Pagella \n" "\n" "Домашняя страница:\n" "http://www.antcom.de/gtick/\n" "\n" "Сообщения об ошибках, замечания и т.п.\n" "отправляйте в почтовую рассылку разработчиков:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Лицензия GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "Метроном GTick\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Эта программа является открытым программным обеспечением; вы можете\n" "распространять её далее и/или изменять её согласно условиями GNU\n" "General Public License, опубликованной Free Software Foundation\n" "2-й версии или (на своё усмотрение) любой другой более поздней версии.\n" "\n" "Эта программа распространяется в надежде, что она будет полезна,\n" "но БЕЗ ВСЯКОЙ ГАРАНТИИ; даже без подразумеваемой гарантии\n" "РАБОТОСПОСОБНОСТИ или ПРИГОДНОСТИ ДЛЯ КАКОЙ-ЛИБО ЦЕЛИ.\n" "За более подробной информацией обращайтесь к GNU General Public License.\n" "\n" "Вы должны были получить копию GNU General Public License вместе\n" "с этой программой; если это не так, см. ." #: src/help.c:155 msgid "Shortcuts" msgstr "Горячие клавиши" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Запуск/Останов" #: src/help.c:264 msgid "Speed: Faster" msgstr "Скорость: Быстрее" #: src/help.c:270 msgid "Speed: Slower" msgstr "Скорость: Медленнее" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Измеритель основания" #: src/help.c:282 msgid "Double Speed" msgstr "Удвоенная скорость" #: src/help.c:288 msgid "Half Speed" msgstr "Половина скорости" #: src/help.c:294 msgid "Speed: -10" msgstr "Скорость: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Скорость: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Скорость: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Скорость: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Удвоенная громкость" #: src/help.c:324 msgid "Half Volume" msgstr "Половина громкости" #: src/help.c:330 msgid "Volume: -10" msgstr "Громкость: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Громкость: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Громкость: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Громкость: +2" #: src/metro.c:74 msgid "Idle" msgstr "Простой" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Запуск" #: src/metro.c:75 msgid "Running" msgstr "Запущен" #: src/metro.c:75 msgid "Stop" msgstr "Остановка" #: src/metro.c:79 msgid "_Help" msgstr "_Справка" #: src/metro.c:80 msgid "_Metronome" msgstr "_Метроном" #: src/metro.c:81 msgid "_Quit" msgstr "_Выход" #: src/metro.c:82 msgid "_Edit" msgstr "П_равка" #: src/metro.c:83 msgid "_Preferences" msgstr "_Параметры" #: src/metro.c:84 msgid "_View" msgstr "_Вид" #: src/metro.c:85 msgid "_About" msgstr "_О программе" #: src/metro.c:86 msgid "_Shortcuts" msgstr "Горячие _клавиши" #: src/metro.c:90 msgid "Start the metronome" msgstr "Запустить метроном" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Визуальный щелчок" #: src/metro.c:92 msgid "_Accent Table" msgstr "Таблица метрических _ударений" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "П_рофили" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Ларгиссимо" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Ларго" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Ларгетто" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Адажио" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Анданте" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Модерато" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Аллегро" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Престо" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Престиссимо" #: src/metro.c:1577 msgid "Settings" msgstr "Параметры" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Удар" #: src/metro.c:1625 msgid "Speed:" msgstr "Скорость:" #: src/metro.c:1694 msgid "Volume:" msgstr "Громкость:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Целые" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Другие:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Метрические ударения" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Невозможно запустить метроном.\n" "Проверьте, доступны ли\n" "указанное звуковое устройство\n" "и файл сэмпла." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Выберите звуковой файл." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Настройки" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Звук" #: src/gtkoptions.c:331 msgid "Default" msgstr "По умолчанию" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Синусоида" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Выбрать" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Файл устройства:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Внешние команды" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Выполнить при запуске:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Выполнить при остановке:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Диапазон скоростей" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Минимальный BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Максимальный BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Безымянный профиль" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Изменение профиля" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Введите название профиля:" #: src/profiles.c:682 msgid "Profiles" msgstr "Профили" #~ msgid "Sound Device" #~ msgstr "Звуковое устройство" #~ msgid "Beat" #~ msgstr "Длительности метра" #~ msgid "/Metronome/Start" #~ msgstr "/Метроном/Запуск" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Метроном/_Ручной таймер" #~ msgid "/Metronome/" #~ msgstr "/Метроном/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Метроном/_Выход" #~ msgid "/_Options" #~ msgstr "/_Сервис" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Сервис/Показать _таблицу метрич. ударений" #~ msgid "/Options/_Properties" #~ msgstr "/Сервис/_Настройки" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Справка/_Горячие клавиши" #~ msgid "/Help/_License" #~ msgstr "/Справка/_Лицензия" #~ msgid "Manual Timer" #~ msgstr "Ручной таймер" #~ msgid "Reset" #~ msgstr "Сброс" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Здесь вы можете приблизительно\n" #~ "определить нужную скорость,\n" #~ "нажимая на кнопку \"Удар\".\n" #~ "\n" #~ "Просто начните щелкать мышкой или,\n" #~ "нажимать на клавишу Enter.\n" #~ "\n" #~ "Чтобы использовать вычисленное\n" #~ "значение, нажмите \"OK\".\n" #~ "Чтобы начать заново, нажмите \"Сброс\".\n" gtick-0.5.2/po/eu.po0000644000175000017500000003031012116334676011135 00000000000000# Basq8e translation of gtick # Copyright (C) 2004 Free Software Foundation, Inc. # This file is distributed under the same license as the gtick package. # Mikel Olasagasti , 2004. # , fuzzy # # msgid "" msgstr "" "Project-Id-Version: gtick 0.2.12\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2004-04-22 16:07+0200\n" "Last-Translator: Mikel Olasagasti \n" "Language-Team: Basque \n" "Language: eu\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Erabilera: %s [AUKERA...]\n" "\n" "Aukerak:\n" " -h, --help Laguntza mezu hau erakutsi\n" " -v, --version Bertsioari buruzko informazioa erakutsi\n" " -d, --debug[=maila] Erakutsi debug informazio adiozanal gehiago " "programa exekutatua dagoen bitartean\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "" #: src/help.c:79 #, fuzzy msgid "License" msgstr "GTick lizentzia" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "Logoa Mario Andres Pagella \n" "\n" "Etxe-orria:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug-ak, azalpenak, etab. hona\n" "Garatzaileen posta zerrenda:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick lizentzia" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Metronomoa\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "\n" "Programa hau software askea da; berriz distribuitu dezakezu\n" "edo/eta GNU General Public Licence-pean modifikatu, Free Software Foundation-" "ek \n" "publikatua; lizentziaren 2. bertsioan, edo (zure aukeran) edozein bertsio " "berriago batean oinarrituz.\n" "\n" "Programa hau erabilgarria izango delakoan distribuitzen\n" "da, baina INOLAKO BERMERIK GABE; gainera MERKATU edo\n" "ARRAZOI JAKIN BATEN OSASUNERAKO bermerik ere ez du.\n" "Ikusi GNU General Public Licence azalpen gehiagorako.\n" "\n" "Kopia honekin GNU General Public License-ren kopia bat\n" "jasoko zenuen; honela izango ez balitz, idatzi hona: Free Software\n" "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "Lasterbideak" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "" #: src/help.c:192 msgid "Alt-q" msgstr "" #: src/help.c:198 msgid "Alt-a" msgstr "" #: src/help.c:204 msgid "Alt-s" msgstr "" #: src/help.c:210 msgid "Alt-z" msgstr "" #: src/help.c:216 msgid "Alt-x" msgstr "" #: src/help.c:222 msgid "Shift-w" msgstr "" #: src/help.c:228 msgid "Shift-q" msgstr "" #: src/help.c:234 msgid "Shift-a" msgstr "" #: src/help.c:240 msgid "Shift-s" msgstr "" #: src/help.c:246 msgid "Shift-z" msgstr "" #: src/help.c:252 msgid "Shift-x" msgstr "" #: src/help.c:258 msgid "Start/Stop" msgstr "Hasi/Gelditu" #: src/help.c:264 msgid "Speed: Faster" msgstr "Abiadura: Azkarrago" #: src/help.c:270 msgid "Speed: Slower" msgstr "Abiadura: Motelago" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Oinarrizko neurgailua" #: src/help.c:282 msgid "Double Speed" msgstr "" #: src/help.c:288 #, fuzzy msgid "Half Speed" msgstr "Abiadura" #: src/help.c:294 #, fuzzy msgid "Speed: -10" msgstr "Abiadura" #: src/help.c:300 #, fuzzy msgid "Speed: +10" msgstr "Abiadura" #: src/help.c:306 #, fuzzy msgid "Speed: -2" msgstr "Abiadura" #: src/help.c:312 #, fuzzy msgid "Speed: +2" msgstr "Abiadura" #: src/help.c:318 #, fuzzy msgid "Double Volume" msgstr "Bolumena:" #: src/help.c:324 #, fuzzy msgid "Half Volume" msgstr "Bolumena:" #: src/help.c:330 #, fuzzy msgid "Volume: -10" msgstr "Bolumena:" #: src/help.c:336 #, fuzzy msgid "Volume: +10" msgstr "Bolumena:" #: src/help.c:342 #, fuzzy msgid "Volume: -2" msgstr "Bolumena:" #: src/help.c:348 #, fuzzy msgid "Volume: +2" msgstr "Bolumena:" #: src/metro.c:74 msgid "Idle" msgstr "Inaktibo" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Hasi" #: src/metro.c:75 msgid "Running" msgstr "Exekutatzen" #: src/metro.c:75 msgid "Stop" msgstr "Gelditu" #: src/metro.c:79 #, fuzzy msgid "_Help" msgstr "/_Laguntza" #: src/metro.c:80 #, fuzzy msgid "_Metronome" msgstr "/_Metronomoa" #: src/metro.c:81 msgid "_Quit" msgstr "" #: src/metro.c:82 msgid "_Edit" msgstr "" #: src/metro.c:83 msgid "_Preferences" msgstr "" #: src/metro.c:84 msgid "_View" msgstr "" #: src/metro.c:85 #, fuzzy msgid "_About" msgstr "/Laguntza/_Honi buruz" #: src/metro.c:86 #, fuzzy msgid "_Shortcuts" msgstr "Lasterbideak" #: src/metro.c:90 msgid "Start the metronome" msgstr "" #: src/metro.c:91 #, fuzzy msgid "_Visual Tick" msgstr "/Aukerak/Erakutsi tick-a _bisualki" #: src/metro.c:92 #, fuzzy msgid "_Accent Table" msgstr "Azentu taula" #: src/metro.c:93 #, fuzzy msgid "Pr_ofiles" msgstr "Propietateak" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "Ezarpenak" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Kolpea" #: src/metro.c:1625 msgid "Speed:" msgstr "Abiadura" #: src/metro.c:1694 msgid "Volume:" msgstr "Bolumena:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Berdin" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Beste bat:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Ezin izan da abiaratu metronomoa.\n" "Mesedez egiaztatu aukeratutako soinu gailua\n" "eta soinu fitxategiak eskuragarri daudela." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Mesedez aukeratu soinu fitxategi bat." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Soinua" #: src/gtkoptions.c:331 msgid "Default" msgstr "Lehenetsia" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinua" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Aukeratu" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Gailuaren fitxategia:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Komando externoak" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Exekutatu abiaratzean:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Exekutatu gelditzean:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Abiadura tartea" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Gutxienezko BPMa:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Gehienezko BPMa:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "Propietateak" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "Propietateak" #~ msgid "Sound Device" #~ msgstr "Soinu gailua" #~ msgid "Beat" #~ msgstr "Konpasa" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Propietateak" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "Esku kontagailua" #~ msgid "Manual Timer" #~ msgstr "Esku kontagailua" #~ msgid "Reset" #~ msgstr "Garbitu" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Hemen, lortu nahi duzun abiadura\n" #~ "gerturatu zaitezke \"Kolpea\" klikatuz.\n" #~ "\n" #~ "Hasteko klikatu xaguan edo sakatu Intro.\n" #~ "\n" #~ "Kalkulatutako abiadura erabiltzeko, klikatu \"OK\".\n" #~ "Berriz hasteko, sakatu \"Garbitu\".\n" #~ msgid "/Metronome/Start" #~ msgstr "/Metronomoa/Hasi" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metronomoa/_Denbora manualki ezarri" #~ msgid "/Metronome/" #~ msgstr "/Metronomoa/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metronomoa/_Irten" #~ msgid "/_Options" #~ msgstr "/_Aukerak" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Aukerak/Erakutsi _azentu taula" #~ msgid "/Options/_Properties" #~ msgstr "/Aukerak/_Propietateak" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Laguntza/_Lasterbideak" #~ msgid "/Help/_License" #~ msgstr "/Laguntza/_Lizentzia" gtick-0.5.2/po/Rules-quot0000644000175000017500000000340011617270156012164 00000000000000# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header gtick-0.5.2/po/uk.gmo0000644000175000017500000001326112116334677011316 00000000000000[  % -9`@      1 C Q \ h m w          ) 1 : B J R Z b j t y             & 4 : @ K X ^ i o t|    "*06<BHN VcrGNUgn}!)2%Xx  424g pG|L# <HOar& $ . < I Wd } # #[t -? Ye  2VK!+PLT[0N< 5?$-7=#XQJWD6OC&: 3@894" I'; . * MBE/FRAYGUH,)S1Z%(>%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:Minimum BPM:ModeratoOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.3.12 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2007-02-19 10:00+0300 Last-Translator: Youri Bulka Language-Team: Ukrainian Language: uk MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit %s (%d ... %d)2/43/44/4Про GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteАкцентВибратиНе можливо запустити метроном. Будь-ласка перевірте чи вибраний звуковий пристрій і файл звуку (стуку) є доступними.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SТиповийФайл пристрою:Подвійний темпПодвійна гучністьПро_файлиПоодинчийВиконувати при старті:Виконувати під-час зупинки:Зовнішні командиЛіцензія GTickПів-темпПів-гучністьБездіяльністьLarghettoLarghissimoLargoЛіцензіяМаксимальна к-сть ударів/хв.:Мінімальна к-сть ударів/хв.:ModeratoІнший:Будь-ласка виберіть звуковий пристрій.Будь-ласка введіть назву нового профайлу:Про_файлиНалаштуванняPrestissimoPrestoПро_файлиЗапущеноНалаштуванняShift-aShift-qShift-sShift-wShift-xShift-zШвидкі клавішіСинусоподібнийЗвукШвидкісні межі темпуТемп:Темп: +10Темп: +2Темп: -10Темп: -2Темп: швидшийТемп: повільнішийСтартЗапустити метрономСтарт/СтопСтопСтук!Неназваний профайлВикористання: %s [ПАРАМЕТР...] Параметри: -h, --help Показати це повідомлення -v, --version Показати інформацію про версію -d, --debug[=level] Друкувати додаткову інформацію, корисну для ліквідації помилок Гучність:Гучність: +10Гучність: +2Гучність: -10Гучність: -2_ПроТаблиця _акцентів_Редагування_Довідка_Метроном_Налаштування_Вихід_Швидкі клавіші_Вигляд_Візуальний пульсgtick-0.5.2/po/sv.gmo0000644000175000017500000000507612116334677011334 00000000000000%D5l@AEIM`T  /= B O\c     a+/37w=( :G Op    $ 2 9 @ 7   $# " % !2/43/44/4ChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:EvenExecute on start:Execute on stop:External CommandsGTick LicenseIdleMaximum BPM:Minimum BPM:Other:Please choose a sound file.RunningSettingsShortcutsSineSoundSpeed RangeSpeed:Speed: FasterSpeed: SlowerStartStart/StopStopTapUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Project-Id-Version: gtick 0.2.12 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2004-06-08 01:26+0100 Last-Translator: Patrik Johansson Language-Team: Swedish Language: sv MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2/43/44/4VäljKunde inte starta metronom. Var god kontrollera att den specificerade ljudenheten och samplingsfilen är tillgängliga.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SStandardFilnamn för enhet: JämnExekvera vid start:Exekvera vid stopp:Externa kommandonGTick-licensInaktivHögsta antalet slag per minut: Lägsta antalet slag per minut:Annan:Välj en ljudfil.KörInställningarGenvägarSinusLjudHastighetsintervallHastighet:Hastighet: SnabbareHastighet: LångsammareStartaStarta/stoppaStoppaKlickaAnvändning: %s [FLAGGA...] Alternativ: -h, --help Visa detta hjälpmeddelande -v, --version Skriv ut versionsinformation -d, --debug[=nivå] Skriv ut ytterligare felsökningsdata vid körning till standard ut Volym:gtick-0.5.2/po/it.po0000644000175000017500000002734312116334676011154 00000000000000# Italian messages for gtick. # Copyright (C) 2006 Roland Stigge (msgids) # Copyright (C) 2005 Free Software Foundation, Inc. # This file is distributed under the same license as the gtick package. # Marco Colombo , 2005, 2006, 2007, 2008, 2011. msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2011-09-14 11:59+0100\n" "Last-Translator: Marco Colombo \n" "Language-Team: Italian \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Uso: %s [OPZIONE...]\n" "\n" "Opzioni:\n" " -h, --help Mostra questo messaggio d'aiuto\n" " -v, --version Stampa informazioni sulla versione\n" " -d, --debug[=livello] Stampa dati di debug sullo standard output " "durante\n" " l'esecuzione\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Informazioni su GTick" #: src/help.c:79 msgid "License" msgstr "Licenza" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo di Mario Andrés Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Segnalare bug, commenti ed altro alla\n" "mailing list degli sviluppatori:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licenza di GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Il Metronomo\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Questo è software libero; potete redistribuirlo e/o modificarlo\n" "secondo i termini della GNU General Public Licence come pubblicata\n" "dalla Free Software Foundation; la versione 3 della Licenza o\n" "(a vostra scelta) ogni versione successiva.\n" "\n" "Questo programma è distribuito nella speranza che possa essere utile,\n" "ma SENZA ALCUNA GARANZIA; anche senza la garanzia implicita di\n" "COMMERCIABILITÀ o di IDONEITÀ AD UNO SCOPO PARTICOLARE.\n" "Si consulti la GNU General Public License per ulteriori dettagli.\n" "\n" "Dovreste aver ricevuto una copia della GNU General Public License\n" "con questo programma; altrimenti consultare a ." #: src/help.c:155 msgid "Shortcuts" msgstr "Scorciatoie" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Maiusc-w" #: src/help.c:228 msgid "Shift-q" msgstr "Maiusc-q" #: src/help.c:234 msgid "Shift-a" msgstr "Maiusc-a" #: src/help.c:240 msgid "Shift-s" msgstr "Maiusc-s" #: src/help.c:246 msgid "Shift-z" msgstr "Maiusc-z" #: src/help.c:252 msgid "Shift-x" msgstr "Maiusc-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Avvia/Arresta" #: src/help.c:264 msgid "Speed: Faster" msgstr "Tempo: più veloce" #: src/help.c:270 msgid "Speed: Slower" msgstr "Tempo: più lento" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Battiti" #: src/help.c:282 msgid "Double Speed" msgstr "Raddoppia tempo" #: src/help.c:288 msgid "Half Speed" msgstr "Dimezza tempo" #: src/help.c:294 msgid "Speed: -10" msgstr "Tempo: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Tempo: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Tempo: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Tempo: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Raddoppia volume" #: src/help.c:324 msgid "Half Volume" msgstr "Dimezza volume" #: src/help.c:330 msgid "Volume: -10" msgstr "Volume: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Volume: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Volume: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Volume: +2" #: src/metro.c:74 msgid "Idle" msgstr "Fermo" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Avvia" #: src/metro.c:75 msgid "Running" msgstr "In esecuzione" #: src/metro.c:75 msgid "Stop" msgstr "Arresta" #: src/metro.c:79 msgid "_Help" msgstr "A_iuto" #: src/metro.c:80 msgid "_Metronome" msgstr "M_etronomo" #: src/metro.c:81 msgid "_Quit" msgstr "_Esci" #: src/metro.c:82 msgid "_Edit" msgstr "_Modifica" #: src/metro.c:83 msgid "_Preferences" msgstr "Preferen_ze" #: src/metro.c:84 msgid "_View" msgstr "_Visualizza" #: src/metro.c:85 msgid "_About" msgstr "I_nformazioni" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Scorciatoie" #: src/metro.c:90 msgid "Start the metronome" msgstr "Avvia il metronomo" #: src/metro.c:91 msgid "_Visual Tick" msgstr "Movimento _visuale" #: src/metro.c:92 msgid "_Accent Table" msgstr "_Tabella degli accenti" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "_Profili" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Impostazioni" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Batti il tempo" #: src/metro.c:1625 msgid "Speed:" msgstr "Tempo:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Semplice" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Altro:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Accento" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Impossibile avviare il metronomo.\n" "Controllare che il dispositivo di suono indicato\n" "e il file campione siano accessibili." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Scegliere un file audio." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Preferenze" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Suono" #: src/gtkoptions.c:331 msgid "Default" msgstr "Predefinito" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinusoide" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Scegli" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Sistema audio" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Nome del file di dispositivo:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Comandi esterni" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Esegui all'avvio:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Esegui all'arresto:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Intervallo di velocità" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Tempo minimo:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Tempo massimo:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Profilo senza nome" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Modifica profilo" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Inserire il nome del nuovo profilo: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profili" #~ msgid "Sound Device" #~ msgstr "Dispositivo audio" #~ msgid "Beat" #~ msgstr "Battiti" #~ msgid "Manual Timer" #~ msgstr "Tempo manuale" #~ msgid "Reset" #~ msgstr "Azzera" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Qui è possibile approssimare il tempo\n" #~ "desiderato premendo sul pulsante \"Dai il tempo\".\n" #~ "\n" #~ "Per cominciare, fare clic con il mouse o\n" #~ "premere Invio.\n" #~ "\n" #~ "Per usare il valore calcolato, scegliere \"OK\".\n" #~ "Per ricominciare, scegliere \"Azzera\".\n" gtick-0.5.2/po/insert-header.sin0000644000175000017500000000124010661555202013422 00000000000000# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } gtick-0.5.2/po/zh_CN.gmo0000644000175000017500000001611612116334677011702 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /s<    )'SQ  ) =)Jt     $+/7V v       $1 9 E P \ g t              ,7(+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2011-08-08 16:10+0800 Last-Translator: Ji ZhengYu Language-Team: Chinese (simplified) Language: zh_CN MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %s (%d ... %d)2/43/44/4关于 GTick柔板快板Alt-aAlt-qAlt-sAlt-wAlt-xAlt-z行板重音位置选择版权所有 (c) 1999, Alex Roberts 版权所有 (c) 2003, Roland Stigge Logo设计:Mario Andres Pagella 主页: http://www.antcom.de/gtick/ 将错误报告,意见发送到 开发人员邮件列表: gtick-devel@nongnu.org不能启动节拍器, 请检查音频设备和 声音文件是否访问正常。Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-S默认设备文件名:速度加倍音量加倍编辑配置文件1/4在开始时执行:在停止时执行:外部命令GTick - 节拍器 版权所有 (c) 1999, Alex Roberts 版权所有 (c) 2003, Roland Stigge 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.GTick 版权协议速度减半音量减半空闲稍慢板深远的,缓慢的,缓板宽广的,慢板版权协议每分钟拍数(最大):节拍每分钟拍数(最小):中速OSS其他:请选择一个声音文件。请输入配置文件新名称:属性(_O)选项快速的,最急板急板配置文件Pulseaudio正在运行设置Shift-aShift-qShift-sShift-wShift-xShift-z快捷键正弦声音音频驱动速度范围速度:速度加10速度加2速度减10速度减2速度加快速度降低开始启动 metronome开始/停止停止点击未命名的配置文件用法:%s [选项...] 选项: -h, --help 显示帮助信息 -v, --version 显示版本信息 -d, --debug[=level] 输出更多的运行时调试信息到标准输出 音量:音量加10音量加2音量减10音量减2关于(_A)重音表(_A)编辑(_E)帮助(_H)节拍器(_M)选项(_P)退出(_Q)快捷键(_S)视图(_V)视觉化节拍器(_V)gtick-0.5.2/po/vi.gmo0000644000175000017500000001744712116334677011327 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /<\mquyuZ &BSe t     -NW[b!       # +7 ;E\ r~  !+@ Tas     (+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2012-04-27 08:05+0700 Last-Translator: Trần Ngọc Quân Language-Team: Vietnamese Language: vi MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=1; plural=0; X-Generator: LocFactoryEditor 1.7b3 X-Poedit-Language: Vietnamese X-Poedit-Country: VIET NAM X-Poedit-SourceCharset: utf-8 %s (%d ... %d)2/43/44/4Giới thiệu về GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteGiọng nhịpChọnBản quyền © năm 1999, Alex Roberts Bản quyền © năm 2003, 2004, 2005, 2006, 2007 Roland Stigge Biểu hình của Mario Andrés Pagella Trang chủ: http://www.antcom.de/gtick/ Hãy gửi thông báo lỗi, chú thích v.v. cho Hộp thư chung của nhà phát triển: gtick-devel@gnu.orgKhông thể khởi chạy máy nhịp. Hãy kiểm tra có truy cập được cả thiết bị âm thanh lẫn tập tin mẫu đều đã ghi rõ.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SMặc địnhTên tập tin thiết bịTốc độ képÂm lượng képSửa hồ sơĐều đềuThi hành khi khởi chạy:Thi hành khi ngừng:Lệnh bên ngoàiGTick - Máy Nhịp Tác quyền © năm 1999, Alex Roberts Tác quyền © năm 2003, 2004, 2005, 2006, 2007 Roland Stigge Chương trình này là phần mềm tự do; bạn có thể phát hành lại nó và/hoặc sửa đổi nó với điều kiện của Giấy Phép Công Cộng GNU như được xuất bản bởi Tổ Chức Phần Mềm Tự Do; hoặc phiên bản 2 của Giấy Phép này, hoặc (tùy chọn) bất kỳ phiên bản sau nào. Chương trình này được phát hành vì mong muốn nó có ích, nhưng KHÔNG CÓ BẢO HÀNH GÌ CẢ, THẬM CHÍ KHÔNG CÓ BẢO ĐẢM ĐƯỢC NGỤ Ý KHẢ NĂNG BÁN HAY KHẢ NĂNG LÀM ĐƯỢC VIỆC DỨT KHOÁT. Xem Giấy Phép Công Cộng GNU để biết thêm chi tiết. Bạn đã nhận một bản sao của Giấy Phép Công Cộng GNU cùng với chương trình này; nếu không, xem địa chỉ « http://www.gnu.org/licenses/ ».Quyền phép GTickNửa tốc độNửa âm lượngNghỉLarghettoLarghissimoLargoGiấy phépNhịp mỗi phút tối đaNhịp pháchNhịp mỗi phút tối thiểuModeratoOSSKhác:Hãy chọn tập tin âm thanhHãy nhập tên hồ sơ mới: Hồ _sơTùy thíchPrestissimoPrestoHồ sơTiếng gõĐang chạyCài đặtShift-aShift-qShift-sShift-wShift-xShift-zPhím tắtSinÂm thanhHệ thống âm thanhPhạm vi tốc độTốc độTốc độ : +10Tốc độ : +2Tốc độ : -10Tốc độ : -2Tăng tốc độGiảm tốc độChạyKhởi chạy máy nhịpChạy/NgừngNgừngGõ nhẹHồ sơ không tênCách sử dụng: %s [TÙYCHỌN...] Tùy chọn: -h, --help Hiển thị "trợ giúp" này -v, --version In ra thông tin "phiên bản" -d, --debug[=level] Xuất dữ liệu gõ lỗi giờ chạy thêm ra thiết bị xuất chuẩn Âm lượngÂm lượng: +10Âm lượng: +2Âm lượng: -10Âm lượng: -2_Giới thiệu_Bảng giọng_SửaTrợ g_iúp_Máy nhịpTù_y thíchT_hoát_Phím tắt_Xem_Kêu tích trực quangtick-0.5.2/po/pt_BR.gmo0000644000175000017500000000520312116334677011702 00000000000000%D5l@AEIM`T  /= B O\c     VZ^bj& >H]p  $   , E ^ g v | {   $# " % !2/43/44/4ChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:EvenExecute on start:Execute on stop:External CommandsGTick LicenseIdleMaximum BPM:Minimum BPM:Other:Please choose a sound file.RunningSettingsShortcutsSineSoundSpeed RangeSpeed:Speed: FasterSpeed: SlowerStartStart/StopStopTapUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Project-Id-Version: gtick 0.2.3 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2005-01-15 10:14-0200 Last-Translator: Marco Tulio Gontijo e Silva Language-Team: Brazilian Portuguese Language: pt_BR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2/43/44/4EscolhaNão foi possível iniciar o metrônomo. Por favor confira se o dispositivo de som e o arquivo de exemplos especificados estão acessíveis.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SPadrãoArquivo do dispositivo:ConstanteExecutar no começo:Executar no final:Comandos externosLicença do GTickParadoBPM Máximo:BPM mínimo:Outro:Por favor escolha um arquivo de som.RodandoConfiguraçõesAtalhosSinoSomFaixa de velocidades:Velocidade:Velocidade: Mais rápidoVelocidade: Mais devagarComeçarComeçar/PararPararTempoUso: %s [OPÇÃO...] Opções: -h, --help Mostra essa mensagem de ajuda -v, --version Mostra informação sobre a versão -d, --debug[=level] Mostra dados de tempo de execução para depuração na saída padrão Volume:gtick-0.5.2/po/nl.gmo0000644000175000017500000001620412116334677011310 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /< %+/39? GR.Ya  1EXink,;K P Zfl u       ,4<DLT \hn u      &     .8 > I U `mt(+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick-0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2011-08-07 16:44+0200 Last-Translator: Benno Schulenberg Language-Team: Dutch Language: nl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Generator: Lokalize 1.0 Plural-Forms: nplurals=2; plural=(n != 1); %s (%d – %d)2/43/44/4Over GTickAdagioAllegroAlt-AAlt-Q Alt-XAlt-ZAndanteMaataccentKiezenCopyright (C) 1999, Alex Roberts Copyright (C) 2003–2008, Roland Stigge Logo gemaakt door Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Stuur foutrapportages, opmerkingen en dergelijke naar .Kan de metronoom niet starten. Controleer of geluidsapparaat en geluidsbestand toegankelijk zijn.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SStandaardApparaatbestandsnaam:(Tempo verdubbelen)Volume verdubbelenProfiel bewerkenEvenUitvoeren bij opstarten:Uitvoeren bij stoppen:Externe opdrachtenGTick - de Metronoom Copyright (C) 1999, Alex Roberts Copyright (C) 2003–2008, Roland Stigge Dit programma is vrije software; u mag het verder verspreiden en/of wijzigen onder de voorwaarden van de GNU General Public License zoals gepubliceerd door de Free Software Foundation, naar keuze ofwel onder versie 3 ofwel onder een nieuwere versie van die licentie. Dit programma wordt uitgegeven in de hoop dat het nuttig is, maar ZONDER ENIGE GARANTIE; zelfs zonder de impliciete garantie van VERKOOPBAARHEID of GESCHIKTHEID VOOR EEN BEPAALD DOEL. Zie de GNU General Public License voor meer details. Bij dit programma hoort u een kopie van de GNU General Public License ontvangen te hebben; mocht dit niet het geval zijn, schrijf dan naar Free Software Foundation, Inc., 51 Franklin Street, fifth floor, Boston, MA 02110-1301, USA.GTick-licentieTempo halverenVolume halverenRustLarghettoLarghissimoLargoLicentieMaximale BPM:MaatMinimale BPM:ModeratoOSSAnders:Kies een geluidsbestand.Nieuwe profielnaam: _ProfielenVoorkeurenPrestissimoPrestoProfielenPulseaudioTikkendInstellingenShift-AShift-QShift-SShift-WShift-XShift-ZSneltoetsenSinusGeluidAudiosysteemTempobereikTempo:(Tempo + 10)Tempo + 2Tempo - 10Tempo - 2VluggerLangzamerStartenMetronoom startenStarten/stoppenStoppenKlik tempo hierNaamloos profielGebruik: %s [OPTIE...] Opties: -h, --help deze hulptekst tonen -v, --version versie-informatie tonen -d, --debug[=niveau] extra debug-gegevens weergeven Volume:Volume + 10Volume + 2Volume - 10Volume - 2_Info_Accententabel_Bewerken_Help_Metronoom_Voorkeuren_Afsluiten_SneltoetsenBeel_d_Visuele tikkengtick-0.5.2/po/ro.gmo0000644000175000017500000000513712116334677011322 00000000000000%D5l@AEIM`T  /= B O\c     yCGKO|X#8L\k  (    # 7 = H M Z W   $# " % !2/43/44/4ChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:EvenExecute on start:Execute on stop:External CommandsGTick LicenseIdleMaximum BPM:Minimum BPM:Other:Please choose a sound file.RunningSettingsShortcutsSineSoundSpeed RangeSpeed:Speed: FasterSpeed: SlowerStartStart/StopStopTapUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Project-Id-Version: gtick 0.2.9 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2003-12-10 09:13+0200 Last-Translator: Eugen Hoanca Language-Team: Romanian Language: ro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2/43/44/4AlegeţiNu am putut porni metronomul. Vă rugăm verificaţi dacă dispozitivul de sunet şi fişierele specificate sunt accesibile.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SImplicitNume fişier dispozitiv:EgalExecută la pornire:Execută la oprire:Comenzi ExterneLicenţa GTickÎn aşteptare(Idle)Maximum BPM:Minimum BPM:Altele:Vă rugăm alegeţi un fişier de sunet.În rulareSetăriScurtăturiSineSunetInterval VitezăViteză:Viteză: Mai RepedeViteză: Mai ÎncetStartStart/StopStopBătaie(tap)Folosire: %s [OPŢIUNE...] Opţiuni: -h, --help Afişează acest mesaj de ajutor -v, --version Afişează informaţii despre versiune -d, --debug[=nivel] Afişează date de debug adiţionale ale programului la stdout Volum :gtick-0.5.2/po/fr.po0000644000175000017500000003101112116334676011132 00000000000000# Messages français pour GNU gtick. # Copyright (C) 2008 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # # Michel Robitaille , 2004. # Marc Veillet , 2008. # David Prévot , 2012. msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2012-10-07 16:55-0400\n" "Last-Translator: David Prévot \n" "Language-Team: French \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" "X-Generator: Lokalize 1.4\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Utilisation : %s [OPTION...]\n" "\n" "Options:\n" " -h, --help afficher l'aide-mémoire\n" " -v, --version afficher la version du logiciel\n" " -d, --debug[=NIVEAU] afficher des données de débogage sur sortie " "standard\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "À propos de GTick" #: src/help.c:79 msgid "License" msgstr "Licence" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright © 1999, Alex Roberts \n" "Copyright © 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo de Mario Andres Pagella \n" "\n" "Page d'accueil :\n" "http://www.antcom.de/gtick/\n" "\n" "Signaler tous rapports de bogue, commentaires, etc. à\n" "la liste de diffusion des développeurs :\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licence de GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick — le métronome\n" "Copyright © 1999, Alex Roberts \n" "Copyright © 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Ce programme est un logiciel libre ; vous pouvez le redistribuer ou le\n" "modifier selon les termes de la Licence Publique Générale de GNU, publiée\n" "par la Free Software Foundation, soit la version 3, soit (selon votre\n" "préférence) toute version ultérieure.\n" "\n" "Ce programme est distribué dans l'espoir qu'il soit utile,\n" "mais AUCUNE garantie n'est donnée tant pour des raisons COMMERCIALES\n" "que pour RÉPONDRE À UN BESOIN PARTICULIER. Consulter la Licence\n" "Publique Générale de GNU pour plus de précisions.\n" "\n" "Vous devriez avoir reçu copie de la Licence Publique Générale de GNU\n" "avec ce programme ; sinon, consultez ." #: src/help.c:155 msgid "Shortcuts" msgstr "Raccourcis" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Maj-w" #: src/help.c:228 msgid "Shift-q" msgstr "Maj-q" #: src/help.c:234 msgid "Shift-a" msgstr "Maj-a" #: src/help.c:240 msgid "Shift-s" msgstr "Maj-s" #: src/help.c:246 msgid "Shift-z" msgstr "Maj-z" #: src/help.c:252 msgid "Shift-x" msgstr "Maj-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Démarrer/Arrêter" #: src/help.c:264 msgid "Speed: Faster" msgstr "Vitesse : accélérer" #: src/help.c:270 msgid "Speed: Slower" msgstr "Vitesse : ralentir" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Mesure" #: src/help.c:282 msgid "Double Speed" msgstr "Vitesse double" #: src/help.c:288 msgid "Half Speed" msgstr "Demi-vitesse" #: src/help.c:294 msgid "Speed: -10" msgstr "Vitesse : -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Vitesse : +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Vitesse : -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Vitesse : +2" #: src/help.c:318 msgid "Double Volume" msgstr "Volume double" #: src/help.c:324 msgid "Half Volume" msgstr "Demi-volume" #: src/help.c:330 msgid "Volume: -10" msgstr "Volume : -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Volume : +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Volume : -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Volume : +2" #: src/metro.c:74 msgid "Idle" msgstr "Au ralenti" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Démarrer" #: src/metro.c:75 msgid "Running" msgstr "Exécution" #: src/metro.c:75 msgid "Stop" msgstr "Arrêter" #: src/metro.c:79 msgid "_Help" msgstr "_Aide" #: src/metro.c:80 msgid "_Metronome" msgstr "_Métronome" #: src/metro.c:81 msgid "_Quit" msgstr "_Quitter" #: src/metro.c:82 msgid "_Edit" msgstr "_Édition" #: src/metro.c:83 msgid "_Preferences" msgstr "_Préférences" #: src/metro.c:84 msgid "_View" msgstr "_Vue" #: src/metro.c:85 msgid "_About" msgstr "_À propos" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Raccourcis" #: src/metro.c:90 msgid "Start the metronome" msgstr "Démarrer le métronome" #: src/metro.c:91 msgid "_Visual Tick" msgstr "Tics _visuels" #: src/metro.c:92 msgid "_Accent Table" msgstr "Table d'_accents" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofils" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Configuration" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Marque" #: src/metro.c:1625 msgid "Speed:" msgstr "Vitesse :" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume :" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "un temps" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "deux temps" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "trois temps" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "quatre temps" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Autre :" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Accent rythmique" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Impossible de démarrer le métronome.\n" "Veuillez vérifier que le périphérique de son\n" "et le fichier d'échantillonnage sont accessibles." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Veuillez choisir un fichier de son." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Préférences" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Son" #: src/gtkoptions.c:331 msgid "Default" msgstr "Défaut" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinusoïdal" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Choisir" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Système de son" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "PulseAudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Nom de fichier du périphérique :" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Commandes externes" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Exécuter au démarrage :" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Exécuter à l'arrêt :" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Étendue des vitesses" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "BPM minimal :" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "BPM maximal :" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Profil sans nom" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Éditer un profil" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Veuillez saisir un nouveau nom de profil :" #: src/profiles.c:682 msgid "Profiles" msgstr "Profils" #~ msgid "Sound Device" #~ msgstr "Périphérique de son" #~ msgid "/Metronome/Start" #~ msgstr "/Métronome/Démarrer" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Métronome/_Minuterie manuelle" #~ msgid "/Metronome/" #~ msgstr "/Métronome/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Métronome/_Quitter" #~ msgid "/_Options" #~ msgstr "/_Options" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Options/Afficher la table des _Accents" #~ msgid "/Options/_Properties" #~ msgstr "/Options/_Propriétés" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Aide/_Raccourcis" #~ msgid "/Help/_License" #~ msgstr "/Aide/_Licence" #~ msgid "Beat" #~ msgstr "Rythme" #~ msgid "Manual Timer" #~ msgstr "Minuterie manuelle" #~ msgid "Reset" #~ msgstr "Réinitialiser" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Vous pouvez approximer la vitesse désirée\n" #~ "en appuyant sur le bouton \"Tap\".\n" #~ "\n" #~ "Vous n'avez qu'à cliquer avec la souris ou appuyer sur la touche \"Retour" #~ "\".\n" #~ "\n" #~ "Pour utiliser la valeur calculée, cliquer sur \"OK\".\n" #~ "Pour recommencer, cliquer sur \"Reset\".\n" gtick-0.5.2/po/sr.gmo0000644000175000017500000002141312116334677011321 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) / <FW[_c y  !!3U q'|+!"1@ S^+m + :21dt       (2APYs    # ( H Y #d w "" "1"C"T"i" " """ """"(+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick-0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2011-12-06 22:11+0200 Last-Translator: Мирослав Николић Language-Team: Serbian Language: sr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); X-Generator: Virtaal 0.7.0 %s (%d ... %d)2/43/44/4О ГоткуцајуАдађоАлегроAlt - aAlt - qAlt - sAlt - wAlt - xAlt - zАндантеНагласак ритмаИзабериАуторска права (c) 1999, Алекс Робертс Ауторска права (c) 2003, 2004, 2005, 2006, 2007 Роланд Стиџ Амблем је урадио Марио Андрес Пађела Матична страница: http://www.antcom.de/gtik/ Пошаљите извештаје о грешкама, примедбе, и остало на дописну листу програмера: gtick-devel@gnu.orgНе могу да покренем метроном. Проверите да ли су доступни наведени звучни уређај и датотека узорка.Ctrl - +Ctrl - -Ctrl - 1 ... Ctrl - 9Ctrl - SОсновниДатотека уређаја:Удвостручи брзинуУдвостручи јачинуУредите профилПарниИзврши при покретању:Изврши при заустављању:Спољне наредбеГоткуцај — Метроном Ауторска права (c) 1999, Алекс Робертс Ауторска права (c) 2003, 2004, 2005, 2006 Роланд Стиџ Овај програм је слободан софтвер; можете га прослеђивати и/или мењати под условима ГНУ Опште јавне лиценце коју је објавила Задужбина слободног софтвера; било верзије 3 лиценце, или (по вашем избору) било које новије верзије. Овај програм се расподељује у нади да ће бити користан, али БЕЗ ИКАКВЕ ГАРАНЦИЈЕ; чак и без примењене гаранције ТРЖИШНЕ ВРЕДНОСТИ или ПРИЛАГОЂЕНОСТИ ОДРЕЂЕНОЈ НАМЕНИ. Погледајте ГНУ Општу јавну лиценцу за више детаља. Требали сте да примите примерак ГНУ Опште јавне лиценце уз овај програм; ако нисте, погледајте .Лиценца ГоткуцајаУполовичи брзинуУполовичи јачинуМирујемЛаргетоЛаргисимоЛаргоЛиценцаНајвише откуцаја у мин.:МерачНајмање откуцаја у мин.:МодератоОССОстали:Молим изаберите датотеку звука.Унесите нови назив профила:_ПрофилиПодешавањаПрестисимоПрестоПрофилиПулс‑аудиоПокренутПодешавањаShift - aShift - qShift - sShift - wShift - xShift - zПречицеСинусниЗвукЗвучни системОпсег брзинеБрзина:Брзина: +10Брзина: +2Брзина: -10Брзина: -2УбрзајУспориПочниПокрените метрономПокрени/ЗауставиЗауставиЛупниНеименовани профилУпотреба: %s [ОПЦИЈА...] Опције: -h, --help Приказује ову поруку помоћи -v, --version Исписује податке о издању -d, --debug[=ниво] Штампа додатне податке за исправљање грешака покретања у стандардни излаз Јачина:Јачина: +10Јачина: +2Јачина: -10Јачина: -2_О програму_Табела нагласка_УредиПо_моћМе_трономПо_ставке_ИзађиП_речицеПре_глед_Видни откуцајgtick-0.5.2/po/en@quot.po0000644000175000017500000002752212116334675012151 00000000000000# English translations for gtick package. # Copyright (C) 2013 Roland Stigge # This file is distributed under the same license as the gtick package. # Automatically generated, 2013. # # All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # msgid "" msgstr "" "Project-Id-Version: gtick 0.5.2\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2013-03-08 11:13+0100\n" "Last-Translator: Automatically generated\n" "Language-Team: none\n" "Language: en@quot\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "About GTick" #: src/help.c:79 msgid "License" msgstr "License" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick License" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." #: src/help.c:155 msgid "Shortcuts" msgstr "Shortcuts" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Start/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Speed: Faster" #: src/help.c:270 msgid "Speed: Slower" msgstr "Speed: Slower" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Meter" #: src/help.c:282 msgid "Double Speed" msgstr "Double Speed" #: src/help.c:288 msgid "Half Speed" msgstr "Half Speed" #: src/help.c:294 msgid "Speed: -10" msgstr "Speed: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Speed: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Speed: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Speed: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Double Volume" #: src/help.c:324 msgid "Half Volume" msgstr "Half Volume" #: src/help.c:330 msgid "Volume: -10" msgstr "Volume: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Volume: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Volume: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Volume: +2" #: src/metro.c:74 msgid "Idle" msgstr "Idle" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Start" #: src/metro.c:75 msgid "Running" msgstr "Running" #: src/metro.c:75 msgid "Stop" msgstr "Stop" #: src/metro.c:79 msgid "_Help" msgstr "_Help" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronome" #: src/metro.c:81 msgid "_Quit" msgstr "_Quit" #: src/metro.c:82 msgid "_Edit" msgstr "_Edit" #: src/metro.c:83 msgid "_Preferences" msgstr "_Preferences" #: src/metro.c:84 msgid "_View" msgstr "_View" #: src/metro.c:85 msgid "_About" msgstr "_About" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Shortcuts" #: src/metro.c:90 msgid "Start the metronome" msgstr "Start the metronome" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Visual Tick" #: src/metro.c:92 msgid "_Accent Table" msgstr "_Accent Table" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofiles" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Settings" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Tap" #: src/metro.c:1625 msgid "Speed:" msgstr "Speed:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Even" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Other:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Beat Accent" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Please choose a sound file." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Preferences" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Sound" #: src/gtkoptions.c:331 msgid "Default" msgstr "Default" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sine" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Choose" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Sound System" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Device filename:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "External Commands" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Execute on start:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Execute on stop:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Speed Range" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimum BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maximum BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Unnamed Profile" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Edit Profile" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Please enter new Profile name: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profiles" gtick-0.5.2/po/gl.gmo0000644000175000017500000001145612116334677011305 00000000000000JlePQbfj nz7`>EL^em ~  ( 2 > G R Z c k s {       # ( 8    * 6 A H N T _ l r }   , 0 4 8 D J P V \ b h Ut yDKRd k w  !2T ]j r } +:JYs       )H%32A&@(0'F8 .><:*7DB!C5,4)=1?9- J; 6/ + "#EI$G%s (%d ... %d)2/43/44/4About GTickAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Edit ProfileExecute on start:Execute on stop:External CommandsGTick LicenseIdleLicenseMeterOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStopUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Edit_Help_Metronome_Preferences_Quit_Shortcuts_ViewProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2013-01-11 19:40+0200 Last-Translator: Leandro Regueiro Language-Team: Galician Language: gl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %s (%d ... %d)2/43/44/4Sobre GTickAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zSeleccionarCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logotipo por Mario Andres Pagella Páxina web: http://www.antcom.de/gtick/ Envíe informes de fallos, comentarios, etc. á lista de correo dos desenvolvedores: gtick-devel@gnu.orgNon foi posíbel iniciar metronome. Comprobe se o dispositivo de son especificado e o ficheiro de mostra son accesíbeis.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SPredefinidoNome de ficheiro do dispositivo:Editar perfilExecutar ao iniciar:Executar ao deter:Ordes externasLicenza de GTickInactivoLicenzaMedidorOSSOutras:Seleccione un ficheiro de son.Introduza un novo nome de perfil:Pe_rfísPreferenciasPerfísPulseaudioEn execuciónConfiguraciónMaiús-aMaiús-qMaiús-sMaiús-wMaiús-xMaiús-zAtallos de tecladoSonSistema de SonIntervalo de velocidadesVelocidade:Velocidade: +10Velocidade: +2Velocidade: -10Velocidade: -2Velocidade: máis rápidoVelocidade: máis lentoIniciarIniciar metronomeDeterPerfil sen nomeUso: %s [OPCIÓN...] Opcións: -h, --help Mostrar esta mensaxe de axuda -v, --version Mostrar información da versión -d, --debug[=level] Mostrar datos de depuración adicionais en tempo de execución en stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_Sobre_EditarA_xuda_Metrónomo_Preferencias_SaírAtallo_s_Vergtick-0.5.2/po/sk.po0000644000175000017500000002605312116334676011152 00000000000000# translation of gtick.po to Slovak # Jozef Riha , 2007. # # msgid "" msgstr "" "Project-Id-Version: gtick 0.3.9\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2007-04-29 22:35+0200\n" "Last-Translator: Jozef Riha =2 && n<=4) ? 1 : 2;\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Použitie: %s [PREPÍNAČ...]\n" "\n" "Prepínače:\n" " -h, --help Vypíše túto nápovedu\n" " -v, --version Vypíše informáciu o verzii\n" " -d, --debug[=level] Vypíše ďalšie ladiace dáta o behu programu na " "stdout\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "O GTick" #: src/help.c:79 msgid "License" msgstr "Licencia" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "Logo Mario Andrés Pagella \n" "Preložil Jozef Říha \n" "\n" "Domovská stránka:\n" "http://www.antcom.de/gtick/\n" "\n" "Hlásenia o chybách, pripomienky, atď.\n" "posielajte do vývojárskej konferencie:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licencia GTick" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Metronóm\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "GTick je free software; môžete ho redistribuovať a upravovať\n" "za podmienok GNU General Public License zverejnenej Free Software\n" "Foundation; a to buď verzie 2 licencie, alebo (podľa vášho zváženia)\n" "ľubovoľnej neskoršej verzie.\n" "\n" "GTick je šírený v nádeji, že bude užitočný, ale BEZ AKEJKOĽVEK\n" "ZÁRUKY; a to ani bez predpokladanej záruky PREDAJNOSTI alebo\n" "VHODNOSTI PRE KONKRÉTNY ÚČEL. Pre ďalšie podrobnosti viď\n" "GNU General Public License.\n" "\n" "Kópiu GNU General Public License ste meli dostať spolu s GTick;\n" "ak sa tak nestalo, napíšte Free Software Foundation, Inc.,\n" "59 Temple Place, Suite 330, Boston, MA 02111-1307 USA" #: src/help.c:155 msgid "Shortcuts" msgstr "Klávesové skratky" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Štart/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Tempo: rýchlejšie" #: src/help.c:270 msgid "Speed: Slower" msgstr "Tempo: pomalšie" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Výber taktu" #: src/help.c:282 msgid "Double Speed" msgstr "Dvojnásobné tempo" #: src/help.c:288 msgid "Half Speed" msgstr "Polovičné tempo" #: src/help.c:294 msgid "Speed: -10" msgstr "Tempo: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Tempo: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Tempo: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Tempo: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Dvojnásobná hlasitosť" #: src/help.c:324 msgid "Half Volume" msgstr "Polovičná hlasitosť" #: src/help.c:330 msgid "Volume: -10" msgstr "Hlasitosť: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Hlasitosť: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Hlasitosť: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Hlasitosť: +2" #: src/metro.c:74 msgid "Idle" msgstr "Nečinný" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Štart" #: src/metro.c:75 msgid "Running" msgstr "Spustený" #: src/metro.c:75 msgid "Stop" msgstr "Stop" #: src/metro.c:79 msgid "_Help" msgstr "_Nápoveda" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronóm" #: src/metro.c:81 msgid "_Quit" msgstr "_Ukončiť" #: src/metro.c:82 msgid "_Edit" msgstr "_Upraviť" #: src/metro.c:83 msgid "_Preferences" msgstr "_Nastavenia" #: src/metro.c:84 msgid "_View" msgstr "_Zobraziť" #: src/metro.c:85 msgid "_About" msgstr "O _aplikácii" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Klávesové skratky" #: src/metro.c:90 msgid "Start the metronome" msgstr "Spustiť metronóm" #: src/metro.c:91 msgid "_Visual Tick" msgstr "Zobrazit ť_ukanie vizuálne" #: src/metro.c:92 msgid "_Accent Table" msgstr "T_abuľka prízvukov" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofily" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Nastavenia" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Ťuk" #: src/metro.c:1625 msgid "Speed:" msgstr "Tempo:" #: src/metro.c:1694 msgid "Volume:" msgstr "Hlasitosť:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Pravidelný" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Iný:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Prízvučná doba" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Metronóm nemožno spustiť.\n" "Skontrolujte prosím, či sú vybrané zvukové zariadenia\n" "a vzorkovací súbor prístupné." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Vyberte prosím zvukový súbor." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Nastavenia" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Zvuk" #: src/gtkoptions.c:331 msgid "Default" msgstr "Východzie" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sínus" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Vybrať" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Názov zariadenia:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Externé príkazy" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Vykonať pri štarte:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Vykonať pri zastavení:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Rozmedzie tempa" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Najnižšie BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Najvyššie BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Nepomenovaný profil" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Upraviť profil" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Prosím zadajte názov nového profilu: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profily" #~ msgid "Sound Device" #~ msgstr "Zvukové zariadenie" #~ msgid "Beat" #~ msgstr "Takt" gtick-0.5.2/po/vi.po0000644000175000017500000003170712116334676011155 00000000000000# Vietnamese Translation for GTick. # Copyright © 2012 Roland Stigge (msgids) # Copyright © 2012 Free Software Foundation, Inc. # This file is distributed under the same license as the gtick package. # Clytie Siddall , 2005-2008. # Trần Ngọc Quân , 2012. # msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2012-04-27 08:05+0700\n" "Last-Translator: Trần Ngọc Quân \n" "Language-Team: Vietnamese \n" "Language: vi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Generator: LocFactoryEditor 1.7b3\n" "X-Poedit-Language: Vietnamese\n" "X-Poedit-Country: VIET NAM\n" "X-Poedit-SourceCharset: utf-8\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Cách sử dụng: %s [TÙYCHỌN...]\n" "\n" "Tùy chọn:\n" " -h, --help Hiển thị \"trợ giúp\" này\n" " -v, --version In ra thông tin \"phiên bản\"\n" " -d, --debug[=level] Xuất dữ liệu gõ lỗi giờ chạy thêm ra thiết bị xuất " "chuẩn \n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Giới thiệu về GTick" #: src/help.c:79 msgid "License" msgstr "Giấy phép" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Bản quyền © năm 1999, Alex Roberts \n" "Bản quyền © năm 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Biểu hình của Mario Andrés Pagella \n" "\n" "Trang chủ:\n" "http://www.antcom.de/gtick/\n" "\n" "Hãy gửi thông báo lỗi, chú thích v.v. cho\n" "Hộp thư chung của nhà phát triển:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Quyền phép GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Máy Nhịp\n" "Tác quyền © năm 1999, Alex Roberts \n" "Tác quyền © năm 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "\n" "Chương trình này là phần mềm tự do; bạn có thể phát hành lại nó và/hoặc sửa " "đổi nó với điều kiện của Giấy Phép Công Cộng GNU như được xuất bản bởi Tổ " "Chức Phần Mềm Tự Do; hoặc phiên bản 2 của Giấy Phép này, hoặc (tùy chọn) bất " "kỳ phiên bản sau nào.\n" "\n" "Chương trình này được phát hành vì mong muốn nó có ích, nhưng KHÔNG CÓ BẢO " "HÀNH GÌ CẢ, THẬM CHÍ KHÔNG CÓ BẢO ĐẢM ĐƯỢC NGỤ Ý KHẢ NĂNG BÁN HAY KHẢ NĂNG " "LÀM ĐƯỢC VIỆC DỨT KHOÁT. Xem Giấy Phép Công Cộng GNU để biết thêm chi tiết.\n" "\n" "Bạn đã nhận một bản sao của Giấy Phép Công Cộng GNU cùng với chương trình " "này; nếu không, xem địa chỉ « http://www.gnu.org/licenses/ »." #: src/help.c:155 msgid "Shortcuts" msgstr "Phím tắt" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Chạy/Ngừng" #: src/help.c:264 msgid "Speed: Faster" msgstr "Tăng tốc độ" #: src/help.c:270 msgid "Speed: Slower" msgstr "Giảm tốc độ" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Nhịp phách" #: src/help.c:282 msgid "Double Speed" msgstr "Tốc độ kép" #: src/help.c:288 msgid "Half Speed" msgstr "Nửa tốc độ" #: src/help.c:294 msgid "Speed: -10" msgstr "Tốc độ : -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Tốc độ : +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Tốc độ : -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Tốc độ : +2" #: src/help.c:318 msgid "Double Volume" msgstr "Âm lượng kép" #: src/help.c:324 msgid "Half Volume" msgstr "Nửa âm lượng" #: src/help.c:330 msgid "Volume: -10" msgstr "Âm lượng: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Âm lượng: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Âm lượng: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Âm lượng: +2" #: src/metro.c:74 msgid "Idle" msgstr "Nghỉ" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Chạy" #: src/metro.c:75 msgid "Running" msgstr "Đang chạy" #: src/metro.c:75 msgid "Stop" msgstr "Ngừng" #: src/metro.c:79 msgid "_Help" msgstr "Trợ g_iúp" #: src/metro.c:80 msgid "_Metronome" msgstr "_Máy nhịp" #: src/metro.c:81 msgid "_Quit" msgstr "T_hoát" #: src/metro.c:82 msgid "_Edit" msgstr "_Sửa" #: src/metro.c:83 msgid "_Preferences" msgstr "Tù_y thích" #: src/metro.c:84 msgid "_View" msgstr "_Xem" #: src/metro.c:85 msgid "_About" msgstr "_Giới thiệu" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Phím tắt" #: src/metro.c:90 msgid "Start the metronome" msgstr "Khởi chạy máy nhịp" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Kêu tích trực quan" #: src/metro.c:92 msgid "_Accent Table" msgstr "_Bảng giọng" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Hồ _sơ" # Literal: don't translate/Nghĩa chữ : đừng dịch # Meaning: very slow and stately, <40 BPM/Có nghĩa là: rất chấm và oai vệ, <40 nhịp/phút #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" # Literal: don't translate/Nghĩa chữ : đừng dịch # Meaning: slow and stately, 40-60 BPM/Có nghĩa là: chậm và oai vệ, 40-60 nhịp/phút #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" # Literal: don't translate/Nghĩa chữ : đừng dịch # Meaning: not quite as slow as Largo, 60-66 BPM/ít nhanh hơn Largo, 60-66 nhịp/phút #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" # Name: don't translate/Tên: đừng dịch # Meaning: at ease, 60-76 BPM/Có nghĩa là được thoải mái, 60-76 nhịp/phút #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" # Name: don't translate/Tên: đừng dịch # Meaning: at a walking pace, 76-108 BPM/Có nghĩa là tốc độ đi bộ, 76-108 nhịp/phút #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" # Name: don't translate/Tên: đừng dịch # Meaning: moderate, restrained, ~108 BPM/Có nghĩa là vừa phải, giản dị, khoảng 108 nhịp/phút #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" # Name: don't translate/Tên: đừng dịch # Meaning: fast (between Allegretto and Vivace)/Có nghĩa là nhanh (giữa Allegretto và Vivace) #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" # Name: don't translate/Tên: đừng dịch # Meaning: soon, rather quickly/Có nghĩa là sớm, hơi nhanh #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" # Name: don't translate/Tên: đừng dịch # Meaning: extremely quickly/Có nghĩa là nhanh lắm #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Cài đặt" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Gõ nhẹ" #: src/metro.c:1625 msgid "Speed:" msgstr "Tốc độ" #: src/metro.c:1694 msgid "Volume:" msgstr "Âm lượng" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Đều đều" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Khác:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Giọng nhịp" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Không thể khởi chạy máy nhịp.\n" "Hãy kiểm tra có truy cập được\n" "cả thiết bị âm thanh lẫn tập tin mẫu\n" "đều đã ghi rõ." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Hãy chọn tập tin âm thanh" #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Tùy thích" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Âm thanh" #: src/gtkoptions.c:331 msgid "Default" msgstr "Mặc định" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sin" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Chọn" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Hệ thống âm thanh" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Tiếng gõ" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Tên tập tin thiết bị" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Lệnh bên ngoài" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Thi hành khi khởi chạy:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Thi hành khi ngừng:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Phạm vi tốc độ" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Nhịp mỗi phút tối thiểu" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Nhịp mỗi phút tối đa" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Hồ sơ không tên" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Sửa hồ sơ" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Hãy nhập tên hồ sơ mới: " #: src/profiles.c:682 msgid "Profiles" msgstr "Hồ sơ" #~ msgid "Sound Device" #~ msgstr "Thiết bị âm thanh" gtick-0.5.2/po/ga.gmo0000644000175000017500000001576512116334677011301 00000000000000^   ")17=CIOU ]i7p`    ) 0 8 I V d q v        ; [ e q}        .<B VafjzM U a l x     vWhlpt  fg=    (=Q2f       %D ` j w      2DL ansyZ a l v      5YN#.SOW^3Q?"8B&0:@%[T MZG9RF(= 6C;!<7$ L)+ 1 - >PEH2IUD\JXK/,V4]'*A%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.4.2 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2008-05-22 15:53-0500 Last-Translator: Kevin Scannell Language-Team: Irish Language: ga MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit %s (%d ... %d)2/43/44/4Maidir le GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBim BhuilleRoghnaighCipcheart/Copyright 1999, Alex Roberts Cipcheart/Copyright 2003, 2004, 2005, 2006, 2007 Roland Stigge Lg le Mario Andrs Pagella Leathanach Baile: http://www.antcom.de/gtick/ Seol tuairisc fabhtanna, nta trchta, srl. chuig Liosta r-phoist na bhforbrir: gtick-devel@gnu.orgNorbh fhidir an madranm a chur ar sil. Fach an bhfuil an glas fuaime agus comhad sampla ar fil.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SRamhshocrAinm comhaid glis:Luas DbailteAirde DhbailteCuir Prifl in EagarCothromRith ag am tosaithe:Rith ag am stoptha:Orduithe SeachtrachaGTick - An Madranm Cipcheart/Copyright 1999, Alex Roberts Cipcheart/Copyright 2003, 2004, 2005, 2006 Roland Stigge Is saorbhogearra an romhchlr seo; is fidir leat a scaipeadh agus/n a athr de rir na gcoinnollacha den GNU General Public License mar at foilsithe ag an Free Software Foundation; faoi leagan 3 den cheadnas, n (ms mian leat) aon leagan nos dana. Scaiptear an romhchlr seo le sil go mbeidh se isiil, ach GAN AON BARNTA; go fi gan an barntas intuigthe d'INDOLTACHT n FEILINACHT D'FHEIDHM AR LEITH. Fach ar an GNU General Public License chun nos m sonra a fhil. Ba chir go mbeife tar is cip den GNU General Public License a fhil in ineacht leis an romhchlr seo; mura bhfuair, fach ar .Ceadnas GTickLeathluasLeathairdeDomhaoinLarghettoLarghissimoLargoCeadnasUasmhid BSN:Madarosmhid BSN:ModeratoEile:Roghnaigh comhad fuaime, le do thoil.Iontril ainm na Prifle: _PriflSainroghannaPrestissimoPrestoPriflAg RithSocruitheShift-aShift-qShift-sShift-wShift-xShift-zAicearraSnFuaimRaon LuaisLuas:Luas: +10Luas: +2Luas: -10Luas: -2Luas: Nos TaplaLuas: Nos MoilleTosaighTosaigh an madranmTosaigh/StopStadCniogPrifl Gan Ainmsid: %s [ROGHA...] Roghanna: -h, --help Taispein an chabhair seo -v, --version Taispein eolas faoin leagan -d, --debug[=leibhal] Taispein tuilleadh eolais dfhabhtaithe Airde:Airde: +10Airde: +2Airde: -10Airde: -2_Faoi seoTbla _Bime_Eagar_Cabhair_Madranm_Sainroghanna_Scoir_Aicearra_AmharcTic _Radharcachgtick-0.5.2/po/cs.po0000644000175000017500000002636112116334675011143 00000000000000# Translation of gtick to Czech. # Copyright (C) 2012 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # # Jiří Pejchal , 2005. # Marek Černocký , 2010, 2012. # msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2012-04-07 19:59+0100\n" "Last-Translator: Marek Černocký \n" "Language-Team: Czech \n" "Language: cs\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Použití: %s [PŘEPÍNAČ…]\n" "\n" "Přepínače:\n" " -h, --help Vypíše tuto nápovědu\n" " -v, --version Vypíše informaci o verzi\n" " -d, --debug[=úroveň] Vypíše doplňující ladicí data o běhu programu\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "O aplikaci GTick" #: src/help.c:79 msgid "License" msgstr "Licence" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright © 1999, Alex Roberts \n" "Copyright © 2003, 2004, 2005, 2006 Roland Stigge \n" "Logo Mario Andrés Pagella \n" "Přeložili Jiří Pejchal a Marek Černocký " "\n" "\n" "Domovská stránka:\n" "http://www.antcom.de/gtick/\n" "\n" "Hlášení o chybách, připomínky, atd. posílejte do vývojářské konference:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licence GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Metronom\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "GTick je svobodný software: Můžete jej dále šířit a/nebo upravovat za\n" "podmínek licence GNU General Public License v podobě, v jaké ji vydala Free\n" "Software Foundation, a to buď ve verzi 3 této licence nebo (dle vaší volby)\n" "v libovolné novější verzi.\n" "\n" "GTick je šířen ve víře, že bude užitečný, ale BEZ JAKÝCHKOLIV ZÁRUK, a to\n" "i bez předpokládané záruky na PRODEJNOST nebo VHODNOST PRO KONKRÉTNÍ\n" "ÚČEL. Více podrobností najdete přímo v licenci GNU General Public License.\n" "\n" "Spolu s tímto programem byste měli obdržet kopii licence GNU General Public\n" "License. Pokud se tak nestalo, podívejte se na ." #: src/help.c:155 msgid "Shortcuts" msgstr "Klávesové zkratky" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 … Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Spustit/Zastavit" #: src/help.c:264 msgid "Speed: Faster" msgstr "Tempo: rychleji" #: src/help.c:270 msgid "Speed: Slower" msgstr "Tempo: pomaleji" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Takt" #: src/help.c:282 msgid "Double Speed" msgstr "Dvojnásobné tempo" #: src/help.c:288 msgid "Half Speed" msgstr "Poloviční tempo" #: src/help.c:294 msgid "Speed: -10" msgstr "Tempo: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Tempo: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Tempo: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Tempo: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Dvojnásobná hlasitost" #: src/help.c:324 msgid "Half Volume" msgstr "Poloviční hlasitost" #: src/help.c:330 msgid "Volume: -10" msgstr "Hlasitost: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Hlasitost: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Hlasitost: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Hlasitost: +2" #: src/metro.c:74 msgid "Idle" msgstr "Zastavený" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Spustit" #: src/metro.c:75 msgid "Running" msgstr "Běží" #: src/metro.c:75 msgid "Stop" msgstr "Zastavit" #: src/metro.c:79 msgid "_Help" msgstr "_Nápověda" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronom" #: src/metro.c:81 msgid "_Quit" msgstr "U_končit" #: src/metro.c:82 msgid "_Edit" msgstr "_Upravit" #: src/metro.c:83 msgid "_Preferences" msgstr "_Předvolby" #: src/metro.c:84 msgid "_View" msgstr "_Zobrazit" #: src/metro.c:85 msgid "_About" msgstr "O _aplikaci" #: src/metro.c:86 msgid "_Shortcuts" msgstr "Kláve_sové zkratky" #: src/metro.c:90 msgid "Start the metronome" msgstr "Spustit metronom" #: src/metro.c:91 msgid "_Visual Tick" msgstr "Zobrazit tikání _vizuálně" #: src/metro.c:92 msgid "_Accent Table" msgstr "T_abulka přízvuků" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofily" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Nastavení" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d … %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Vyťukat" #: src/metro.c:1625 msgid "Speed:" msgstr "Tempo:" #: src/metro.c:1694 msgid "Volume:" msgstr "Hlasitost:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Stejnoměrný" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Jiný:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Přízvučná doba" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Metronom nelze spustit.\n" "Zkontrolujte prosím, zda jsou vybrané zvukové zařízení\n" "a vzorkovací soubor přístupné." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Vyberte prosím zvukový soubor." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Předvolby" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Zvuk" #: src/gtkoptions.c:331 msgid "Default" msgstr "Výchozí" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinus" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Vybrat" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Zvukový systém" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Název zařízení:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Externí příkazy" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Vykonat při spuštění:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Vykonat při zastavení:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Rozsah tempa" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimálně úderů za minutu:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maximálně úderů za minutu:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Nepojmenovaný profil" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Upravit profil" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Zadejte prosím název nového profilu:" #: src/profiles.c:682 msgid "Profiles" msgstr "Profily" gtick-0.5.2/po/ro.po0000644000175000017500000003111512116334676011150 00000000000000# Mesajele în limba română pentru pachetul gtick # Copyright (C) 2003 Free Software Foundation, Inc. # Eugen Hoanca , 2003. # msgid "" msgstr "" "Project-Id-Version: gtick 0.2.9\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2003-12-10 09:13+0200\n" "Last-Translator: Eugen Hoanca \n" "Language-Team: Romanian \n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Folosire: %s [OPŢIUNE...]\n" "\n" "Opţiuni:\n" " -h, --help Afişează acest mesaj de ajutor\n" " -v, --version Afişează informaţii despre versiune\n" " -d, --debug[=nivel] Afişează date de debug adiţionale ale programului " "la stdout\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "" #: src/help.c:79 #, fuzzy msgid "License" msgstr "Licenţa GTick" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "Logo de Mario Andres Pagella \n" "\n" "Pagină web:\n" "http://www.antcom.de/gtick/\n" "\n" "Pentru rapoarte de buguri, comentarii, etc. email către\n" "Developer's mailing list:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licenţa GTick" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Metronomul\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, Roland Stigge \n" "\n" "Acest program este software liber; puteţi să-l redistribuiţi şi/sau\n" "modificaţi în termenii Licenţei Publice Generale GNU\n" "publicată de Free Software Foundatiom; fie versiunea 2\n" "a Licenţei, fie (la latitudinea dumneavoastră) orice altă versiune " "ulterioară.\n" "\n" "Acest program este distribuit în speranţa că va fi folositor,\n" "dar FĂRĂ NICI O GARANŢIE; chiar fără presupusa garanţie a\n" "VANDABILITĂŢII sau ADAPTĂRII ÎNTR-UN SCOP PRIVAT. Citiţi\n" "Licenţa Publică Generală GNU pentru mai multe detalii.\n" "\n" "Ar fi trebuit să primiţi şi o copie a Licenţei Publice Generale GNU\n" "împreună cu acest program; dacă nu, scrieţi la Free Software\n" "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "Scurtături" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "" #: src/help.c:192 msgid "Alt-q" msgstr "" #: src/help.c:198 msgid "Alt-a" msgstr "" #: src/help.c:204 msgid "Alt-s" msgstr "" #: src/help.c:210 msgid "Alt-z" msgstr "" #: src/help.c:216 msgid "Alt-x" msgstr "" #: src/help.c:222 msgid "Shift-w" msgstr "" #: src/help.c:228 msgid "Shift-q" msgstr "" #: src/help.c:234 msgid "Shift-a" msgstr "" #: src/help.c:240 msgid "Shift-s" msgstr "" #: src/help.c:246 msgid "Shift-z" msgstr "" #: src/help.c:252 msgid "Shift-x" msgstr "" #: src/help.c:258 msgid "Start/Stop" msgstr "Start/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Viteză: Mai Repede" #: src/help.c:270 msgid "Speed: Slower" msgstr "Viteză: Mai Încet" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Măsură(meter) de Bază" #: src/help.c:282 msgid "Double Speed" msgstr "" #: src/help.c:288 #, fuzzy msgid "Half Speed" msgstr "Viteză:" #: src/help.c:294 #, fuzzy msgid "Speed: -10" msgstr "Viteză:" #: src/help.c:300 #, fuzzy msgid "Speed: +10" msgstr "Viteză:" #: src/help.c:306 #, fuzzy msgid "Speed: -2" msgstr "Viteză:" #: src/help.c:312 #, fuzzy msgid "Speed: +2" msgstr "Viteză:" #: src/help.c:318 #, fuzzy msgid "Double Volume" msgstr "Volum :" #: src/help.c:324 #, fuzzy msgid "Half Volume" msgstr "Volum :" #: src/help.c:330 #, fuzzy msgid "Volume: -10" msgstr "Volum :" #: src/help.c:336 #, fuzzy msgid "Volume: +10" msgstr "Volum :" #: src/help.c:342 #, fuzzy msgid "Volume: -2" msgstr "Volum :" #: src/help.c:348 #, fuzzy msgid "Volume: +2" msgstr "Volum :" #: src/metro.c:74 msgid "Idle" msgstr "În aşteptare(Idle)" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Start" #: src/metro.c:75 msgid "Running" msgstr "În rulare" #: src/metro.c:75 msgid "Stop" msgstr "Stop" #: src/metro.c:79 #, fuzzy msgid "_Help" msgstr "/Ajutor(_Help)" #: src/metro.c:80 #, fuzzy msgid "_Metronome" msgstr "/_Metronom" #: src/metro.c:81 #, fuzzy msgid "_Quit" msgstr "Ieşire" #: src/metro.c:82 msgid "_Edit" msgstr "" #: src/metro.c:83 msgid "_Preferences" msgstr "" #: src/metro.c:84 msgid "_View" msgstr "" #: src/metro.c:85 #, fuzzy msgid "_About" msgstr "Despre" #: src/metro.c:86 #, fuzzy msgid "_Shortcuts" msgstr "Scurtături" #: src/metro.c:90 #, fuzzy msgid "Start the metronome" msgstr "Start Metronom" #: src/metro.c:91 #, fuzzy msgid "_Visual Tick" msgstr "/Opţiuni/Afişează _Visual Tick" #: src/metro.c:92 #, fuzzy msgid "_Accent Table" msgstr "Accent Table" #: src/metro.c:93 #, fuzzy msgid "Pr_ofiles" msgstr "Proprietăţi" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "Setări" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Bătaie(tap)" #: src/metro.c:1625 msgid "Speed:" msgstr "Viteză:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volum :" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Egal" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Altele:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Nu am putut porni metronomul.\n" "Vă rugăm verificaţi dacă dispozitivul de sunet\n" "şi fişierele specificate sunt accesibile." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Vă rugăm alegeţi un fişier de sunet." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Sunet" #: src/gtkoptions.c:331 msgid "Default" msgstr "Implicit" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sine" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Alegeţi" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Nume fişier dispozitiv:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Comenzi Externe" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Execută la pornire:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Execută la oprire:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Interval Viteză" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimum BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maximum BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "Proprietăţi" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "Proprietăţi" #~ msgid "Sound Device" #~ msgstr "Dispozitiv de Sunet" #~ msgid "Beat" #~ msgstr "Bătaie(beat)" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Proprietăţi" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "Timer Manual" #~ msgid "Manual Timer" #~ msgstr "Timer Manual" #~ msgid "Reset" #~ msgstr "Resetare" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Aici puteţi aproxima viteza dorită\n" #~ "bătând uşor pe butonul \"Bătaie\".\n" #~ "\n" #~ "Trebuie doar să bateţi uşor(tap) cu mouse-ul sau cu Enter.\n" #~ "\n" #~ "Pentru a folosi valoarea calculată, daţi click pe \"OK\".\n" #~ "Pentru a începe din nou daţi click pe \"Resetare\".\n" #, fuzzy #~ msgid "/Metronome/Start" #~ msgstr "/Metronom/" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metronom/Timer _Manual" #~ msgid "/Metronome/" #~ msgstr "/Metronom/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metronom/Ieşire(_Quit)" #~ msgid "/_Options" #~ msgstr "/_Opţiuni" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Opţiuni/Afişează _Accent Table" #~ msgid "/Options/_Properties" #~ msgstr "/Opţiuni/_Proprietăţi" #~ msgid "/Help/_About" #~ msgstr "/Ajutor/Despre(_About)" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Ajutor/_Scurtături" #~ msgid "/Help/_License" #~ msgstr "/Ajutor/_Licenţa" #~ msgid "Error loading file: \"%s\"." #~ msgstr "Eroare la încărcarea fişierului: \"%s\"." #~ msgid "OK" #~ msgstr "OK" #~ msgid "Metronome (On)" #~ msgstr "Metronom (Activat)" #~ msgid "Metronome (Off)" #~ msgstr "Metronom (Dezactivat)" gtick-0.5.2/po/fi.po0000644000175000017500000003076212116334676011135 00000000000000# Finnish messages for gtick. # Copyright © 2007 Roland Stigge (msgid) # This file is distributed under the same license as the gtick package. # Lauri Nurmi , 2003, 2007. # msgid "" msgstr "" "Project-Id-Version: gtick 0.3.15\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2007-07-21 17:57+0300\n" "Last-Translator: Lauri Nurmi \n" "Language-Team: Finnish \n" "Language: fi\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Käyttö: %s [VALITSIN...]\n" "\n" "Valitsimet:\n" " -h, --help Näytä tämä ohje\n" " -v, --version Tulosta versiotiedot\n" " -d, --debug[=taso] Tulosta ylimääräistä ajonaikaista " "vianetsintätietoa vakiotulosteeseen\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Tietoja GTickistä" #: src/help.c:79 msgid "License" msgstr "Lisenssi" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Tekijänoikeus © 1999, Alex Roberts \n" "Tekijänoikeus © 2003, 2004, 2005, 2006 Roland Stigge \n" "Logon tehnyt Mario Andrés Pagella \n" "\n" "Kotisivu:\n" "http://www.antcom.de/gtick/\n" "\n" "Lähetä vikailmoitukset, kommentit, jne\n" "kehittäjien postituslistalle:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTickin lisenssi" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick – Metronomi\n" "Tekijänoikeus © 1999, Alex Roberts \n" "Tekijänoikeus © 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Tämä ohjelma on vapaaohjelmisto; voitte levittää edelleen ja/tai \n" "muuttaa sitä Free Software Foundationin julkaiseman GNU General Public\n" "Licensen ehtojen mukaisesti; joko version 2, tai (valintanne mukaan)\n" "minkä tahansa myöhemmän version.\n" "\n" "Tätä ohjelmaa levitetään siinä toivossa, että se olisi hyödyllinen,\n" "mutta TAKUUTA EI OLE; ei edes KAUPALLISESTI HYVÄKSYTTÄVÄSTÄ LAADUSTA\n" "tai SOPIVUUDESTA TIETTYYN TARKOITUKSEEN. Katsokaa lisätietoja GNU\n" "General Public Licensestä.\n" "\n" "Olette saaneet kopion GNU General Public Licensestä tämän\n" "ohjelman mukana. Ellette saaneet, kirjoittakaa osoitteeseen\n" "Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,\n" "Boston, MA 02110-1301, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "Näppäinoikotiet" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-W" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-Q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-A" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-S" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-Z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-X" #: src/help.c:222 msgid "Shift-w" msgstr "Vaihto-W" #: src/help.c:228 msgid "Shift-q" msgstr "Vaihto-Q" #: src/help.c:234 msgid "Shift-a" msgstr "Vaihto-A" #: src/help.c:240 msgid "Shift-s" msgstr "Vaihto-S" #: src/help.c:246 msgid "Shift-z" msgstr "Vaihto-Z" #: src/help.c:252 msgid "Shift-x" msgstr "Vaihto-X" #: src/help.c:258 msgid "Start/Stop" msgstr "Käynnistä/Pysäytä" #: src/help.c:264 msgid "Speed: Faster" msgstr "Nopeus: Nopeampi" #: src/help.c:270 msgid "Speed: Slower" msgstr "Nopeus: Hitaampi" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Perustahti" #: src/help.c:282 msgid "Double Speed" msgstr "Kaksinkertainen nopeus" #: src/help.c:288 msgid "Half Speed" msgstr "Puolinopeus" #: src/help.c:294 msgid "Speed: -10" msgstr "Nopeus: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Nopeus: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Nopeus: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Nopeus: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Kaksinkertainen äänenvoimakkuus" #: src/help.c:324 msgid "Half Volume" msgstr "Puolitettu äänenvoimakkuus" #: src/help.c:330 msgid "Volume: -10" msgstr "Äänenvoimakkuus: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Äänenvoimakkuus: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Äänenvoimakkuus: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Äänenvoimakkuus: +2" #: src/metro.c:74 msgid "Idle" msgstr "Jouten" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Käynnistä" #: src/metro.c:75 msgid "Running" msgstr "Käynnissä" #: src/metro.c:75 msgid "Stop" msgstr "Pysäytä" #: src/metro.c:79 msgid "_Help" msgstr "O_hje" #: src/metro.c:80 msgid "_Metronome" msgstr "M_etronomi" #: src/metro.c:81 msgid "_Quit" msgstr "_Lopeta" #: src/metro.c:82 msgid "_Edit" msgstr "_Muokkaa" #: src/metro.c:83 msgid "_Preferences" msgstr "_Ominaisuudet" #: src/metro.c:84 msgid "_View" msgstr "_Näytä" #: src/metro.c:85 msgid "_About" msgstr "_Tietoja" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Näppäinoikotiet" #: src/metro.c:90 msgid "Start the metronome" msgstr "Käynnistä metronomi" #: src/metro.c:91 msgid "_Visual Tick" msgstr "Näytä _iskut" #: src/metro.c:92 msgid "_Accent Table" msgstr "I_skuvalinnat" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofiilit" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Asetukset" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d–%d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Naputa" #: src/metro.c:1625 msgid "Speed:" msgstr "Nopeus:" #: src/metro.c:1694 msgid "Volume:" msgstr "Äänenvoimakkuus:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "1/4" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Muu:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Tahdin iskut" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Metronomin käynnistys ei onnistunut.\n" "Tarkista, että määritelty äänilaite ja\n" "äänitiedosto ovat käytettävissä." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Valitse äänitiedosto." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Ominaisuudet" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Ääni" #: src/gtkoptions.c:331 msgid "Default" msgstr "Oletus" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sini" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Valitse" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Laitetiedosto:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Ulkoiset komennot" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Suorita käynnistettäessä:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Suorita pysäytettäessä:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Nopeusväli" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Iskuja minuutissa vähintään:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Iskuja minuutissa enintään:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Nimetön profiili" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Profiilin muokkaus" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Anna uusi nimi profiilille: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profiilit" #~ msgid "Sound Device" #~ msgstr "Äänilaite" #~ msgid "Beat" #~ msgstr "Tahtilaji" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Ominaisuudet" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "Käsin tehtävä ajastus" #~ msgid "Manual Timer" #~ msgstr "Käsin tehtävä ajastus" #~ msgid "Reset" #~ msgstr "Nollaus" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Tässä voit arvioida halutun nopeuden\n" #~ "naputtamalla \"Naputa\"-painiketta.\n" #~ "\n" #~ "Aloita naputus hiirellä tai painamalla Enteriä.\n" #~ "\n" #~ "Paina \"OK\" lasketun arvon käyttämiseksi.\n" #~ "Uudelleenaloitus \"Nollaus\"-painikkeella.\n" #~ msgid "/Metronome/Start" #~ msgstr "/Metronomi/Käynnistä" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metronomi/_Käsin tehtävä ajastus" #~ msgid "/Metronome/" #~ msgstr "/Metronomi/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metronomi/_Lopeta" #~ msgid "/_Options" #~ msgstr "/_Valinnat" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Valinnat/Näytä _korostustaulukko" #~ msgid "/Options/_Properties" #~ msgstr "/Valinnat/_Ominaisuudet" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Ohje/_Näppäinoikotiet" #~ msgid "/Help/_License" #~ msgstr "/Ohje/_Lisenssi" gtick-0.5.2/po/ko.gmo0000644000175000017500000001101612116334677011304 00000000000000Tq\ !26: >JQY_ekqw} ` ( 9 FTfw         " . : A I R Z b j r z             ' . < B H S ` f q w 0 A E I M Z a i o u {     =DK] dn         %1:BX i v        );MT hv}R Z f q }      *DG81%$K ;I@4Q+'&5>(PLM"T<= S-:NBOJC7  R0 !A3,6#/FE.9?)2H%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeExecute on start:Execute on stop:External CommandsGTick LicenseHalf SpeedHalf VolumeLarghettoLarghissimoLargoLicenseMaximum BPM:Minimum BPM:ModeratoOther:Please choose a sound file.Pr_ofilesPreferencesPrestissimoPrestoRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_ViewProject-Id-Version: gtick Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2007-01-06 02:38+0900 Last-Translator: jacojang Language-Team: jacojang Language: ko MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Korean X-Poedit-Country: KOREA, REPUBLIC OF X-Poedit-SourceCharset: utf-8 %s (%d ... %d)2/43/44/4GTick 정보AdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndante강세 박자선택메트로놈을 시작할 수 없습니다.. 선택된 사운드 장치 와 샘플 파일이 접근 가능한지 확인해 보시기 바랍니다.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-S기본겂장치 파일명:2배속볼률 2배시작시 실행:정지시 실행외부 명령GTick 라이센스1/2속도볼륨 절반LarghettoLarghissimoLargo라이센스최대 BPM최소 BPM:Moderato그외:음악 파일 선택.프로파일(_O)환경설정PrestissimoPresto동작중설정Shift-aShift-qShift-sShift-wShift-xShift-z단축키사인사운드속도 범위속도:속도: +10속도: +2속도: -10속도: -2속도: 빠르게속도: 느리게시작메트로놈 시작시작/멈춤멈춤탭Usage: %s [OPTION...] Options: -h, --help 도움말 출력 -v, --version 버젼 정보 출력 -d, --debug[=level] 표준출력으로 추가적인 디버그 메세지 출력 볼륨:볼륨: +10볼륨: +2볼륨: -10볼륨: -2이 프로그램은(_A)강세 테이블(_A)편집(_E)도움말(_H)메트로놈(_M)설정(_P)종료(_Q)단축키(_S)보기(_V)gtick-0.5.2/po/eu.gmo0000644000175000017500000000515712116334677011315 00000000000000%D5l@AEIM`T  /= B O\c     {EIMQxZ "9Oaqz %     + > C P X _ e   $# " % !2/43/44/4ChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:EvenExecute on start:Execute on stop:External CommandsGTick LicenseIdleMaximum BPM:Minimum BPM:Other:Please choose a sound file.RunningSettingsShortcutsSineSoundSpeed RangeSpeed:Speed: FasterSpeed: SlowerStartStart/StopStopTapUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Project-Id-Version: gtick 0.2.12 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2004-04-22 16:07+0200 Last-Translator: Mikel Olasagasti Language-Team: Basque Language: eu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2/43/44/4AukeratuEzin izan da abiaratu metronomoa. Mesedez egiaztatu aukeratutako soinu gailua eta soinu fitxategiak eskuragarri daudela.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SLehenetsiaGailuaren fitxategia:BerdinExekutatu abiaratzean:Exekutatu gelditzean:Komando externoakGTick lizentziaInaktiboGehienezko BPMa:Gutxienezko BPMa:Beste bat:Mesedez aukeratu soinu fitxategi bat.ExekutatzenEzarpenakLasterbideakSinuaSoinuaAbiadura tarteaAbiaduraAbiadura: AzkarragoAbiadura: MotelagoHasiHasi/GeldituGeldituKolpeaErabilera: %s [AUKERA...] Aukerak: -h, --help Laguntza mezu hau erakutsi -v, --version Bertsioari buruzko informazioa erakutsi -d, --debug[=maila] Erakutsi debug informazio adiozanal gehiago programa exekutatua dagoen bitartean Bolumena:gtick-0.5.2/po/en@boldquot.gmo0000644000175000017500000001566012116334676013157 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /p<   7$`\   %*<M_ U c nz       )5< EPXaiqy           &16:J % 1 < HS Zhn t   (+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.2 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2013-03-08 11:13+0100 Last-Translator: Automatically generated Language-Team: none Language: en@boldquot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n != 1); %s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual Tickgtick-0.5.2/po/pl.po0000644000175000017500000002646712116334676011161 00000000000000# GTick Polish Translation. # Copyright (C) 2007 Roland Stigge (msgids) # This file is distributed under the same license as the GTick package. # Michał Trzebiatowski , 2011. # msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2011-08-08 00:56+0100\n" "Last-Translator: Michał Trzebiatowski \n" "Language-Team: Polish \n" "Language: pl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Polish\n" "X-Poedit-Country: POLAND\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Użycie: %s [OPCJA...]\n" "\n" "Opcje:\n" " -h, --help Pokaż to okno pomocy\n" " -v, --version Pokaż informacje o wersji\n" " -d, --debug[=poziom] Wypisz dodatkowe informacje debugujące na stdout\n" #: src/help.c:77 msgid "About GTick" msgstr "O programie" #: src/help.c:79 msgid "License" msgstr "Licencja" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo przez Mario Andres Pagella \n" "\n" "Strona główna:\n" "http://www.antcom.de/gtick/\n" "\n" "Pisz E-maile dotyczące raportów o błędach, komentarze, itp.\n" "do listy mailingowej deweloperów:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Licencja GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Niniejszy program jest wolnym oprogramowaniem; możesz go\n" "rozprowadzać dalej i/lub modyfikować na warunkach Powszechnej\n" "Licencji Publicznej GNU, wydanej przez Fundację Wolnego\n" "Oprogramowania - według wersji 3 tej Licencji lub (według\n" "twojego wyboru) którejś z późniejszych wersji.\n" "\n" "Niniejszy program rozpowszechniany jest z nadzieją, iż będzie on\n" "użyteczny - jednak BEZ JAKIEJKOLWIEK GWARANCJI, nawet domyślnej\n" "gwarancji PRZYDATNOŚCI HANDLOWEJ albo PRZYDATNOŚCI DO OKREŚLONYCH\n" "ZASTOSOWAŃ. W celu uzyskania bliższych informacji sięgnij do\n" "Powszechnej Licencji Publicznej GNU.\n" "\n" "Z pewnością wraz z niniejszym programem otrzymałeś też egzemplarz\n" "Powszechnej Licencji Publicznej GNU (GNU General Public License);\n" "jeśli nie, zobacz ." #: src/help.c:155 msgid "Shortcuts" msgstr "Skróty" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Start/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Prędkość: Szybciej" #: src/help.c:270 msgid "Speed: Slower" msgstr "Prędkość: Wolniej" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Metr" #: src/help.c:282 msgid "Double Speed" msgstr "Podwójna prędkość" #: src/help.c:288 msgid "Half Speed" msgstr "Połowa prędkości" #: src/help.c:294 msgid "Speed: -10" msgstr "Prędkość: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Prędkość: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Prędkość: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Prędkość: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Podwójna głośność" #: src/help.c:324 msgid "Half Volume" msgstr "Połowa głośności" #: src/help.c:330 msgid "Volume: -10" msgstr "Głośność: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Głośność: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Głośność: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Głośność: +2" #: src/metro.c:74 msgid "Idle" msgstr "Bezczynny" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Start" #: src/metro.c:75 msgid "Running" msgstr "Uruchomony" #: src/metro.c:75 msgid "Stop" msgstr "Stop" #: src/metro.c:79 msgid "_Help" msgstr "Pomo_c" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronom" #: src/metro.c:81 msgid "_Quit" msgstr "Z_akończ" #: src/metro.c:82 msgid "_Edit" msgstr "_Edycja" #: src/metro.c:83 msgid "_Preferences" msgstr "_Preference" #: src/metro.c:84 msgid "_View" msgstr "_Widok" #: src/metro.c:85 msgid "_About" msgstr "_O programie" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Skróty klawiszowe" #: src/metro.c:90 msgid "Start the metronome" msgstr "Uruchom metronom" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Wizualizacja uderzenia" #: src/metro.c:92 msgid "_Accent Table" msgstr "_Tabela akcentów" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "P_rofile" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Ustawienia" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Nabij" #: src/metro.c:1625 msgid "Speed:" msgstr "Prędkość:" #: src/metro.c:1694 msgid "Volume:" msgstr "Głośność:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Równe" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Inne:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Akcent na uderzenie" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Nie mogę uruchomić metronomu.\n" "Proszę sprawdzić czy urządzenie\n" "dźwiękowe i pliki z samplami są dostępne." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Proszę wybrać plik dźwiękowy" #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Preferencje" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Dźwięk" #: src/gtkoptions.c:331 msgid "Default" msgstr "Domyślny" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinusoidalny" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Wybierz" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Sound System" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Nazwa pliku urządzenia:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Polecenia zewnętrzne" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Uruchom na starcie:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Uruchom przy zatrzymaiu:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Zakres prędkości" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimalne BPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maksymalne BPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Profil bez nazwy" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Edycja profilu" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Proszę wpisz nową nazwę dla profilu: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profile" #~ msgid "Sound Device" #~ msgstr "Urządzenie dźwiękowe" #~ msgid "Beat" #~ msgstr "Uderzenie" gtick-0.5.2/po/LINGUAS0000644000175000017500000000021112074542130011173 00000000000000# Set of available languages. en@quot en@boldquot af ca da de cs eo es eu fa fi fr ga gl id it ko nl pl pt_BR ro ru sk sr sv uk vi zh_CN gtick-0.5.2/po/sr.po0000644000175000017500000003106012116334676011153 00000000000000# Serbian translation of gtick # Copyright (C) 2011 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # Мирослав Николић , 2011. msgid "" msgstr "" "Project-Id-Version: gtick-0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2011-12-06 22:11+0200\n" "Last-Translator: Мирослав Николић \n" "Language-Team: Serbian \n" "Language: sr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" "X-Generator: Virtaal 0.7.0\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Употреба: %s [ОПЦИЈА...]\n" "\n" "Опције:\n" " -h, --help Приказује ову поруку помоћи\n" " -v, --version Исписује податке о издању\n" " -d, --debug[=ниво] Штампа додатне податке за исправљање грешака " "покретања у стандардни излаз\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "О Готкуцају" #: src/help.c:79 msgid "License" msgstr "Лиценца" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Ауторска права (c) 1999, Алекс Робертс \n" "Ауторска права (c) 2003, 2004, 2005, 2006, 2007 Роланд Стиџ \n" "Амблем је урадио Марио Андрес Пађела \n" "\n" "Матична страница:\n" "http://www.antcom.de/gtik/\n" "\n" "Пошаљите извештаје о грешкама, примедбе,\n" "и остало на дописну листу програмера:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Лиценца Готкуцаја" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "Готкуцај — Метроном\n" "Ауторска права (c) 1999, Алекс Робертс \n" "Ауторска права (c) 2003, 2004, 2005, 2006 Роланд Стиџ \n" "\n" "Овај програм је слободан софтвер; можете га прослеђивати\n" "и/или мењати под условима ГНУ Опште јавне лиценце\n" "коју је објавила Задужбина слободног софтвера; било верзије 3\n" "лиценце, или (по вашем избору) било које новије верзије.\n" "\n" "Овај програм се расподељује у нади да ће бити користан,\n" "али БЕЗ ИКАКВЕ ГАРАНЦИЈЕ; чак и без примењене гаранције\n" "ТРЖИШНЕ ВРЕДНОСТИ или ПРИЛАГОЂЕНОСТИ ОДРЕЂЕНОЈ НАМЕНИ.\n" "Погледајте ГНУ Општу јавну лиценцу за више детаља.\n" "\n" "Требали сте да примите примерак ГНУ Опште јавне лиценце\n" "уз овај програм; ако нисте, погледајте ." #: src/help.c:155 msgid "Shortcuts" msgstr "Пречице" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl - S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl - +" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl - -" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl - 1 ... Ctrl - 9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt - w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt - q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt - a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt - s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt - z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt - x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift - w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift - q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift - a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift - s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift - z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift - x" #: src/help.c:258 msgid "Start/Stop" msgstr "Покрени/Заустави" #: src/help.c:264 msgid "Speed: Faster" msgstr "Убрзај" #: src/help.c:270 msgid "Speed: Slower" msgstr "Успори" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Мерач" #: src/help.c:282 msgid "Double Speed" msgstr "Удвостручи брзину" #: src/help.c:288 msgid "Half Speed" msgstr "Уполовичи брзину" #: src/help.c:294 msgid "Speed: -10" msgstr "Брзина: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Брзина: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Брзина: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Брзина: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Удвостручи јачину" #: src/help.c:324 msgid "Half Volume" msgstr "Уполовичи јачину" #: src/help.c:330 msgid "Volume: -10" msgstr "Јачина: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Јачина: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Јачина: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Јачина: +2" #: src/metro.c:74 msgid "Idle" msgstr "Мирујем" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Почни" #: src/metro.c:75 msgid "Running" msgstr "Покренут" #: src/metro.c:75 msgid "Stop" msgstr "Заустави" #: src/metro.c:79 msgid "_Help" msgstr "По_моћ" #: src/metro.c:80 msgid "_Metronome" msgstr "Ме_троном" #: src/metro.c:81 msgid "_Quit" msgstr "_Изађи" #: src/metro.c:82 msgid "_Edit" msgstr "_Уреди" #: src/metro.c:83 msgid "_Preferences" msgstr "По_ставке" #: src/metro.c:84 msgid "_View" msgstr "Пре_глед" #: src/metro.c:85 msgid "_About" msgstr "_О програму" #: src/metro.c:86 msgid "_Shortcuts" msgstr "П_речице" #: src/metro.c:90 msgid "Start the metronome" msgstr "Покрените метроном" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Видни откуцај" #: src/metro.c:92 msgid "_Accent Table" msgstr "_Табела нагласка" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "_Профили" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Ларгисимо" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Ларго" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Ларгето" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Адађо" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Анданте" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Модерато" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Алегро" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Престо" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Престисимо" #: src/metro.c:1577 msgid "Settings" msgstr "Подешавања" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Лупни" #: src/metro.c:1625 msgid "Speed:" msgstr "Брзина:" #: src/metro.c:1694 msgid "Volume:" msgstr "Јачина:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Парни" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Остали:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Нагласак ритма" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Не могу да покренем метроном.\n" "Проверите да ли су доступни наведени\n" "звучни уређај и датотека узорка." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Молим изаберите датотеку звука." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Подешавања" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Звук" #: src/gtkoptions.c:331 msgid "Default" msgstr "Основни" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Синусни" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Изабери" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Звучни систем" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Пулс‑аудио" #: src/gtkoptions.c:443 msgid "OSS" msgstr "ОСС" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Датотека уређаја:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Спољне наредбе" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Изврши при покретању:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Изврши при заустављању:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Опсег брзине" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Најмање откуцаја у мин.:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Највише откуцаја у мин.:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Неименовани профил" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Уредите профил" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Унесите нови назив профила:" #: src/profiles.c:682 msgid "Profiles" msgstr "Профили" gtick-0.5.2/po/gtick.pot0000644000175000017500000002051512116334675012016 00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR Roland Stigge # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: gtick 0.5.2\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" #: src/help.c:77 msgid "About GTick" msgstr "" #: src/help.c:79 msgid "License" msgstr "" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" #: src/help.c:127 msgid "GTick License" msgstr "" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" #: src/help.c:155 msgid "Shortcuts" msgstr "" #: src/help.c:162 msgid "Ctrl-S" msgstr "" #: src/help.c:168 msgid "Ctrl-+" msgstr "" #: src/help.c:174 msgid "Ctrl--" msgstr "" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "" #: src/help.c:186 msgid "Alt-w" msgstr "" #: src/help.c:192 msgid "Alt-q" msgstr "" #: src/help.c:198 msgid "Alt-a" msgstr "" #: src/help.c:204 msgid "Alt-s" msgstr "" #: src/help.c:210 msgid "Alt-z" msgstr "" #: src/help.c:216 msgid "Alt-x" msgstr "" #: src/help.c:222 msgid "Shift-w" msgstr "" #: src/help.c:228 msgid "Shift-q" msgstr "" #: src/help.c:234 msgid "Shift-a" msgstr "" #: src/help.c:240 msgid "Shift-s" msgstr "" #: src/help.c:246 msgid "Shift-z" msgstr "" #: src/help.c:252 msgid "Shift-x" msgstr "" #: src/help.c:258 msgid "Start/Stop" msgstr "" #: src/help.c:264 msgid "Speed: Faster" msgstr "" #: src/help.c:270 msgid "Speed: Slower" msgstr "" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "" #: src/help.c:282 msgid "Double Speed" msgstr "" #: src/help.c:288 msgid "Half Speed" msgstr "" #: src/help.c:294 msgid "Speed: -10" msgstr "" #: src/help.c:300 msgid "Speed: +10" msgstr "" #: src/help.c:306 msgid "Speed: -2" msgstr "" #: src/help.c:312 msgid "Speed: +2" msgstr "" #: src/help.c:318 msgid "Double Volume" msgstr "" #: src/help.c:324 msgid "Half Volume" msgstr "" #: src/help.c:330 msgid "Volume: -10" msgstr "" #: src/help.c:336 msgid "Volume: +10" msgstr "" #: src/help.c:342 msgid "Volume: -2" msgstr "" #: src/help.c:348 msgid "Volume: +2" msgstr "" #: src/metro.c:74 msgid "Idle" msgstr "" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "" #: src/metro.c:75 msgid "Running" msgstr "" #: src/metro.c:75 msgid "Stop" msgstr "" #: src/metro.c:79 msgid "_Help" msgstr "" #: src/metro.c:80 msgid "_Metronome" msgstr "" #: src/metro.c:81 msgid "_Quit" msgstr "" #: src/metro.c:82 msgid "_Edit" msgstr "" #: src/metro.c:83 msgid "_Preferences" msgstr "" #: src/metro.c:84 msgid "_View" msgstr "" #: src/metro.c:85 msgid "_About" msgstr "" #: src/metro.c:86 msgid "_Shortcuts" msgstr "" #: src/metro.c:90 msgid "Start the metronome" msgstr "" #: src/metro.c:91 msgid "_Visual Tick" msgstr "" #: src/metro.c:92 msgid "_Accent Table" msgstr "" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "" #: src/metro.c:1625 msgid "Speed:" msgstr "" #: src/metro.c:1694 msgid "Volume:" msgstr "" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "" #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "" #: src/gtkoptions.c:270 msgid "Preferences" msgstr "" #: src/gtkoptions.c:315 msgid "Sound" msgstr "" #: src/gtkoptions.c:331 msgid "Default" msgstr "" #: src/gtkoptions.c:344 msgid "Sine" msgstr "" #: src/gtkoptions.c:389 msgid "Choose" msgstr "" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 msgid "Edit Profile" msgstr "" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 msgid "Profiles" msgstr "" gtick-0.5.2/po/Makevars0000644000175000017500000000344010660406274011660 00000000000000# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Roland Stigge # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = stigge@antcom.de # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = gtick-0.5.2/po/de.po0000644000175000017500000003164612116334675011130 00000000000000# German localization for GTick. # Copyright (C) 2003, 2006, 2011 Roland Stigge # Roland Stigge , 2003, 2006, 2011 # Marco Tulio Gontijo e Silva , 2005 # msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2011-08-06 18:58+0200\n" "Last-Translator: Roland Stigge \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Aufruf: %s [OPTION...]\n" "\n" "Optionen:\n" " -h, --help Diese Hilfemeldung anzeigen\n" " -v, --version Versionsinformation ausgeben\n" " -d, --debug[=level] Testausgabe aktivieren, ggf. mit angegebener " "Stufe\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Über GTick" #: src/help.c:79 msgid "License" msgstr "Lizenz" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo von Mario Andrés Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Fehler, Kommentare usw. gehen an\n" "Die Entwickler-Mailinglist:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick Lizenz" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Das Metronom\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Dieses Programm ist Freie Software; Sie können es unter den\n" "Bedingungen der GNU General Public License Version 3 oder (nach\n" "Belieben) neuer, wie von der Free Software Foundation\n" "veröffentlicht, weitergeben und/oder modifizieren.\n" "\n" "Dieses Programm wird in der Hoffnung, dass es nützlich sein wird,\n" "herausgegeben. Es wird jedoch KEINE GARANTIE übernommen. Selbst\n" "die implizite Garantie der MARKTGÄNGIGKEIT oder TAUGLICHKEIT FÜR\n" "EINEN BESTIMMTEN ZWECK kann nicht gewährleistet werden.\n" "Siehe GNU General Public License für Details.\n" "\n" "Sie sollten eine Kopie der GNU General Public License\n" "zusammen mit diesem Programm erhalten haben. Falls nicht,\n" "siehe auch ." #: src/help.c:155 msgid "Shortcuts" msgstr "Shortcuts" #: src/help.c:162 msgid "Ctrl-S" msgstr "Strg-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Strg-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Strg--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Strg-1 ... Strg-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Starten/Anhalten" #: src/help.c:264 msgid "Speed: Faster" msgstr "Geschwindigkeit: Schneller" #: src/help.c:270 msgid "Speed: Slower" msgstr "Geschwindigkeit: Langsamer" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Grundtaktart" #: src/help.c:282 msgid "Double Speed" msgstr "Doppelte Geschwindigkeit" #: src/help.c:288 msgid "Half Speed" msgstr "Halbe Geschwindigkeit" #: src/help.c:294 msgid "Speed: -10" msgstr "Geschwindigkeit: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Geschwindigkeit: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Geschwindigkeit: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Geschwindigkeit: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Doppelte Lautstärke" #: src/help.c:324 msgid "Half Volume" msgstr "Halbe Lautstärke" #: src/help.c:330 msgid "Volume: -10" msgstr "Lautstärke: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Lautstärke: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Lautstärke: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Lautstärke: +2" #: src/metro.c:74 msgid "Idle" msgstr "Aus" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Starten" #: src/metro.c:75 msgid "Running" msgstr "An" #: src/metro.c:75 msgid "Stop" msgstr "Anhalten" #: src/metro.c:79 msgid "_Help" msgstr "_Hilfe" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronom" #: src/metro.c:81 msgid "_Quit" msgstr "_Beenden" #: src/metro.c:82 msgid "_Edit" msgstr "_Bearbeiten" #: src/metro.c:83 msgid "_Preferences" msgstr "_Einstellungen" #: src/metro.c:84 msgid "_View" msgstr "_Ansicht" #: src/metro.c:85 msgid "_About" msgstr "_Über" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Shortcuts" #: src/metro.c:90 msgid "Start the metronome" msgstr "Metronom Starten" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Visueller Tick" #: src/metro.c:92 msgid "_Accent Table" msgstr "_Akzent-Tabelle" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pr_ofile" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Einstellungen" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Klopfen" #: src/metro.c:1625 msgid "Speed:" msgstr "Geschwindigkeit:" #: src/metro.c:1694 msgid "Volume:" msgstr "Lautstärke:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Gleichmäßig" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Andere:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Akzente" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Konnte das Metronom nicht starten.\n" "Bitte überprüfen Sie, ob das angegebene\n" "Sound-Gerät und die Sample-Datei zugreifbar sind." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Bitte wählen Sie eine Klangdatei." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Einstellungen" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Klang" #: src/gtkoptions.c:331 msgid "Default" msgstr "Standard" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinus" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Auswählen" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Soundsystem" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Gerätedatei:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Externe Befehle" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Beim Start ausführen:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Beim Stopp ausführen:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Geschwindigkeits-Wertebereich" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimale Geschwindigkeit:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maximale Geschwindigkeit:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Unbenanntes Profil" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Profil bearbeiten" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Geben Sie den Profilnamen ein: " #: src/profiles.c:682 msgid "Profiles" msgstr "Profile" #~ msgid "Sound Device" #~ msgstr "Sound-Device" #~ msgid "Beat" #~ msgstr "Taktart" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Eigenschaften" #~ msgid "_Manual Timer" #~ msgstr "_Manuelle Taktvorgabe" #~ msgid "Manually enter a rhythm by tapping a button" #~ msgstr "Gib einen Rhythmus durch Anklicken der Taste an" #~ msgid "Manual Timer" #~ msgstr "Manuelle Taktvorgabe" #~ msgid "Reset" #~ msgstr "Zurücksetzen" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Hier können Sie die gewünschte Geschwindigkeit\n" #~ "mit dem \"Schlag\"-Knopf annähern.\n" #~ "\n" #~ "Beginnen Sie einfach mit der Maus oder der Enter-Taste.\n" #~ "\n" #~ "Um den errechneten Wert zu übernehmen, klicken Sie \"OK\".\n" #~ "Um neu zu starten, klicken Sie \"Zurücksetzen\".\n" #~ msgid "/Metronome/Start" #~ msgstr "/Metronom/Start" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metronom/_Manuelle Taktvorgabe" #~ msgid "/Metronome/" #~ msgstr "/Metronom/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metronom/_Beenden" #~ msgid "/_Options" #~ msgstr "/_Optionen" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Optionen/Zeige _Akzent-Tabelle" #~ msgid "/Options/_Properties" #~ msgstr "/Optionen/_Eigenschaften" #~ msgid "/Help/_About" #~ msgstr "/Hilfe/_Über" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Hilfe/_Shortcuts" #~ msgid "/Help/_License" #~ msgstr "/Hilfe/_Lizenz" #~ msgid "Error loading file: \"%s\"." #~ msgstr "Fehler beim Laden der Datei: \"%s\"." #~ msgid "Couldn't set up sound device: \"%s\"." #~ msgstr "Konnte das Sound-Device nicht einrichten: \"%s\"." #~ msgid "Metronome (On)" #~ msgstr "Metronom (An)" #~ msgid "Metronome (Off)" #~ msgstr "Metronom (Aus)" #~ msgid "OK" #~ msgstr "OK" gtick-0.5.2/po/sv.po0000644000175000017500000003414312116334676011164 00000000000000# Translation of gtick-0.2.12.po to Swedish # Copyright © 2004 Free Software Foundation, Inc. # This file is distributed under the same license as the gtick package. # Patrik Johansson , 2004 # # This file is not really copyrighted by FSF, Inc. # But the Translation Robot thinks the opposite! # msgid "" msgstr "" "Project-Id-Version: gtick 0.2.12\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2004-06-08 01:26+0100\n" "Last-Translator: Patrik Johansson \n" "Language-Team: Swedish \n" "Language: sv\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Användning: %s [FLAGGA...]\n" "\n" "Alternativ:\n" " -h, --help Visa detta hjälpmeddelande\n" " -v, --version Skriv ut versionsinformation\n" " -d, --debug[=nivå] Skriv ut ytterligare felsökningsdata vid körning " "till standard ut\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "" #: src/help.c:79 #, fuzzy msgid "License" msgstr "GTick-licens" # TRANSLATORS: actually, "Andrés" with acute accent (/) #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Copyright © 1999, Alex Roberts \n" "Copyright © 2003, Roland Stigge \n" "Logotyp av Mario Andrés Pagella \n" "\n" "Hemsida:\n" "http://www.antcom.de/gtick/\n" "\n" "E-posta felrapporter, kommentarer, etc. till\n" "utvecklarnas e-postlista:\n" "gtick-devel@nongnu.org\n" "Synpunkter på den svenska översättningen\n" "skickas till sv@li.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick-licens" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Metronomen\n" "Copyright © 1999, Alex Roberts \n" "Copyright © 2003, Roland Stigge \n" "\n" "Detta program är fri programvara. Du kan distribuera det och/eller\n" "modifiera det under villkoren i GNU General Public License,\n" "publicerad av Free Software Foundation,\n" "antingen version 2 eller (om du så vill) någon senare version.\n" " \n" "Detta program distribueras i hopp om att det ska vara användbart\n" "men UTAN NÅGON GARANTI, även utan underförstådd garanti vid \n" "KÖP eller LÄMPLIGHET FÖR NÅGOT SPECIELLT ÄNDAMÅL.\n" "Se GNU General Public License för ytterligare information.\n" "\n" "Du bör ha fått en kopia av GNU General Public License\n" "tillsammans med detta program. Om inte, skriv till Free Software\n" "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. " #: src/help.c:155 msgid "Shortcuts" msgstr "Genvägar" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "" #: src/help.c:192 msgid "Alt-q" msgstr "" #: src/help.c:198 msgid "Alt-a" msgstr "" #: src/help.c:204 msgid "Alt-s" msgstr "" #: src/help.c:210 msgid "Alt-z" msgstr "" #: src/help.c:216 msgid "Alt-x" msgstr "" #: src/help.c:222 msgid "Shift-w" msgstr "" #: src/help.c:228 msgid "Shift-q" msgstr "" #: src/help.c:234 msgid "Shift-a" msgstr "" #: src/help.c:240 msgid "Shift-s" msgstr "" #: src/help.c:246 msgid "Shift-z" msgstr "" #: src/help.c:252 msgid "Shift-x" msgstr "" #: src/help.c:258 msgid "Start/Stop" msgstr "Starta/stoppa" #: src/help.c:264 msgid "Speed: Faster" msgstr "Hastighet: Snabbare" #: src/help.c:270 msgid "Speed: Slower" msgstr "Hastighet: Långsammare" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Basmätare" #: src/help.c:282 msgid "Double Speed" msgstr "" #: src/help.c:288 #, fuzzy msgid "Half Speed" msgstr "Hastighet:" #: src/help.c:294 #, fuzzy msgid "Speed: -10" msgstr "Hastighet:" #: src/help.c:300 #, fuzzy msgid "Speed: +10" msgstr "Hastighet:" #: src/help.c:306 #, fuzzy msgid "Speed: -2" msgstr "Hastighet:" #: src/help.c:312 #, fuzzy msgid "Speed: +2" msgstr "Hastighet:" #: src/help.c:318 #, fuzzy msgid "Double Volume" msgstr "Volym:" #: src/help.c:324 #, fuzzy msgid "Half Volume" msgstr "Volym:" #: src/help.c:330 #, fuzzy msgid "Volume: -10" msgstr "Volym:" #: src/help.c:336 #, fuzzy msgid "Volume: +10" msgstr "Volym:" #: src/help.c:342 #, fuzzy msgid "Volume: -2" msgstr "Volym:" #: src/help.c:348 #, fuzzy msgid "Volume: +2" msgstr "Volym:" #: src/metro.c:74 msgid "Idle" msgstr "Inaktiv" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Starta" #: src/metro.c:75 msgid "Running" msgstr "Kör" #: src/metro.c:75 msgid "Stop" msgstr "Stoppa" # TRANSLATORS: This is the Help menu. The strings start with a slash # ("/"), followed by the menu name, another slash and the menu entry. # Please make sure that you translate the menu name everywhere with the same # string. Otherwise, the menu is endangered to be split. # An underscore marks a shortcut (also visually marked in the menu) which # is only intended to mark menu names and menu entry names directly, i.e. # just the menu name of a menu entry usually doesn't include an underscore. #: src/metro.c:79 #, fuzzy msgid "_Help" msgstr "/_Hjälp" # TRANSLATORS: This is the Metronome menu. The strings start with a slash # ("/"), followed by the menu name, another slash and the menu entry. # Please make sure that you translate the menu name everywhere with the same # string. Otherwise, the menu is endangered to be split. # An underscore marks a shortcut (also visually marked in the menu) which # is only intended to mark menu names and menu entry names directly, i.e. # just the menu name of a menu entry usually doesn't include an underscore. #: src/metro.c:80 #, fuzzy msgid "_Metronome" msgstr "/_Metronom" #: src/metro.c:81 msgid "_Quit" msgstr "" #: src/metro.c:82 msgid "_Edit" msgstr "" #: src/metro.c:83 msgid "_Preferences" msgstr "" #: src/metro.c:84 msgid "_View" msgstr "" #: src/metro.c:85 #, fuzzy msgid "_About" msgstr "/Hjälp/_Om" #: src/metro.c:86 #, fuzzy msgid "_Shortcuts" msgstr "Genvägar" #: src/metro.c:90 msgid "Start the metronome" msgstr "" #: src/metro.c:91 #, fuzzy msgid "_Visual Tick" msgstr "/Alternativ/Visa _grafiska tick" #: src/metro.c:92 #, fuzzy msgid "_Accent Table" msgstr "Tryckaccentstabell" #: src/metro.c:93 #, fuzzy msgid "Pr_ofiles" msgstr "Egenskaper" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "Inställningar" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Klicka" #: src/metro.c:1625 msgid "Speed:" msgstr "Hastighet:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volym:" # TRANSLATORS: all beats are equal #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Jämn" # TRANSLATORS: duple meter #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" # TRANSLATORS: triple meter #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" # TRANSLATORS: quadruple meter / common meter #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" # TRANSLATORS: meter with more than 4 beats per measure #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Annan:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Kunde inte starta metronom.\n" "Var god kontrollera att den specificerade ljudenheten\n" "och samplingsfilen är tillgängliga." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Välj en ljudfil." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Ljud" #: src/gtkoptions.c:331 msgid "Default" msgstr "Standard" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinus" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Välj" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Filnamn för enhet: " #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Externa kommandon" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Exekvera vid start:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Exekvera vid stopp:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Hastighetsintervall" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Lägsta antalet slag per minut:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Högsta antalet slag per minut: " #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "Egenskaper" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "Egenskaper" #~ msgid "Sound Device" #~ msgstr "Ljudenhet" #~ msgid "Beat" #~ msgstr "Takt" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Egenskaper" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "Manuellt tidtagarur" #~ msgid "Manual Timer" #~ msgstr "Manuellt tidtagarur" #~ msgid "Reset" #~ msgstr "Nollställ" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Här kan du approximera den önskade\n" #~ "hastigheten genom att klicka på \"Klicka\"-knappen.\n" #~ "\n" #~ "Börja bara att klicka med musen eller tryck på entertangenten.\n" #~ "\n" #~ "För att använde det beräknade värder, klicka på \"OK\".\n" #~ "För att starta igen, klicka på \"Nollställ\".\n" #~ msgid "/Metronome/Start" #~ msgstr "/Metronom/Starta" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metronom/_Manuellt tidtagarur" #~ msgid "/Metronome/" #~ msgstr "/Metronom/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metronom/_Avsluta" # TRANSLATORS: This is the Options menu. The strings start with a slash # ("/"), followed by the menu name, another slash and the menu entry. # Please make sure that you translate the menu name everywhere with the same # string. Otherwise, the menu is endangered to be split. # An underscore marks a shortcut (also visually marked in the menu) which # is only intended to mark menu names and menu entry names directly, i.e. # just the menu name of a menu entry usually doesn't include an underscore. #~ msgid "/_Options" #~ msgstr "/_Alternativ" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Alternativ/Visa tryck_accentstabell" #~ msgid "/Options/_Properties" #~ msgstr "/Alternativ/Egenska_per" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Hjälp/_Genvägar" #~ msgid "/Help/_License" #~ msgstr "/Hjälp/_Licens" gtick-0.5.2/po/Makefile.in.in0000644000175000017500000003744211617270156012650 00000000000000# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.18 GETTEXT_MACRO_VERSION = 0.18 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: check-macro-version all-@USE_NLS@ all-yes: stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. check-macro-version: @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \ package_gnu='GNU '; \ else \ package_gnu=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --package-name="$${package_gnu}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && @SHELL@ ./config.status $(subdir)/$@.in po-directories force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtick-0.5.2/po/ga.po0000644000175000017500000003030212116334676011114 00000000000000# Irish translations for gtick. # Copyright (C) 2006 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # Kevin Patrick Scannell , 2003, 2006, 2007, 2008 # msgid "" msgstr "" "Project-Id-Version: gtick 0.4.2\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2008-05-22 15:53-0500\n" "Last-Translator: Kevin Scannell \n" "Language-Team: Irish \n" "Language: ga\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=ISO-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "sid: %s [ROGHA...]\n" "\n" "Roghanna:\n" " -h, --help Taispein an chabhair seo\n" " -v, --version Taispein eolas faoin leagan\n" " -d, --debug[=leibhal] Taispein tuilleadh eolais dfhabhtaithe\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Maidir le GTick" #: src/help.c:79 msgid "License" msgstr "Ceadnas" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Cipcheart/Copyright 1999, Alex Roberts \n" "Cipcheart/Copyright 2003, 2004, 2005, 2006, 2007 Roland Stigge " "\n" "Lg le Mario Andrs Pagella \n" "\n" "Leathanach Baile:\n" "http://www.antcom.de/gtick/\n" "\n" "Seol tuairisc fabhtanna, nta trchta, srl. chuig\n" "Liosta r-phoist na bhforbrir:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Ceadnas GTick" # Diarmaid Mac Mathuna did some of this for our GaelSpell project - KPS #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - An Madranm\n" "Cipcheart/Copyright 1999, Alex Roberts \n" "Cipcheart/Copyright 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Is saorbhogearra an romhchlr seo; is fidir leat a scaipeadh agus/n\n" "a athr de rir na gcoinnollacha den GNU General Public License mar at\n" "foilsithe ag an Free Software Foundation; faoi leagan 3 den cheadnas,\n" "n (ms mian leat) aon leagan nos dana.\n" "\n" "Scaiptear an romhchlr seo le sil go mbeidh se isiil,\n" "ach GAN AON BARNTA; go fi gan an barntas intuigthe\n" "d'INDOLTACHT n FEILINACHT D'FHEIDHM AR LEITH. Fach ar an\n" "GNU General Public License chun nos m sonra a fhil.\n" "\n" "Ba chir go mbeife tar is cip den GNU General Public License a fhil in\n" "ineacht leis an romhchlr seo; mura bhfuair, fach ar\n" "." #: src/help.c:155 msgid "Shortcuts" msgstr "Aicearra" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Tosaigh/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Luas: Nos Tapla" #: src/help.c:270 msgid "Speed: Slower" msgstr "Luas: Nos Moille" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Madar" #: src/help.c:282 msgid "Double Speed" msgstr "Luas Dbailte" #: src/help.c:288 msgid "Half Speed" msgstr "Leathluas" #: src/help.c:294 msgid "Speed: -10" msgstr "Luas: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Luas: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Luas: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Luas: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Airde Dhbailte" #: src/help.c:324 msgid "Half Volume" msgstr "Leathairde" #: src/help.c:330 msgid "Volume: -10" msgstr "Airde: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Airde: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Airde: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Airde: +2" #: src/metro.c:74 msgid "Idle" msgstr "Domhaoin" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Tosaigh" #: src/metro.c:75 msgid "Running" msgstr "Ag Rith" #: src/metro.c:75 msgid "Stop" msgstr "Stad" #: src/metro.c:79 msgid "_Help" msgstr "_Cabhair" #: src/metro.c:80 msgid "_Metronome" msgstr "_Madranm" #: src/metro.c:81 msgid "_Quit" msgstr "_Scoir" #: src/metro.c:82 msgid "_Edit" msgstr "_Eagar" #: src/metro.c:83 msgid "_Preferences" msgstr "_Sainroghanna" #: src/metro.c:84 msgid "_View" msgstr "_Amharc" #: src/metro.c:85 msgid "_About" msgstr "_Faoi seo" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Aicearra" #: src/metro.c:90 msgid "Start the metronome" msgstr "Tosaigh an madranm" #: src/metro.c:91 msgid "_Visual Tick" msgstr "Tic _Radharcach" #: src/metro.c:92 msgid "_Accent Table" msgstr "Tbla _Bime" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "_Prifl" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Socruithe" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Cniog" #: src/metro.c:1625 msgid "Speed:" msgstr "Luas:" #: src/metro.c:1694 msgid "Volume:" msgstr "Airde:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Cothrom" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Eile:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Bim Bhuille" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Norbh fhidir an madranm a chur ar sil.\n" "Fach an bhfuil an glas fuaime agus\n" "comhad sampla ar fil." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Roghnaigh comhad fuaime, le do thoil." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Sainroghanna" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Fuaim" #: src/gtkoptions.c:331 msgid "Default" msgstr "Ramhshocr" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sn" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Roghnaigh" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Ainm comhaid glis:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Orduithe Seachtracha" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Rith ag am tosaithe:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Rith ag am stoptha:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Raon Luais" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "osmhid BSN:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Uasmhid BSN:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Prifl Gan Ainm" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Cuir Prifl in Eagar" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Iontril ainm na Prifle: " #: src/profiles.c:682 msgid "Profiles" msgstr "Prifl" #~ msgid "Sound Device" #~ msgstr "Glas Fuaime" #~ msgid "Beat" #~ msgstr "Buille" #~ msgid "/Metronome/Start" #~ msgstr "/Madranm/Tosaigh" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Madranm/_Amadir Limhe" #~ msgid "/Metronome/" #~ msgstr "/Madranm/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Madranm/_Scoir" #~ msgid "/_Options" #~ msgstr "/_Roghanna" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/Roghanna/Tbla Bime" #~ msgid "/Options/_Properties" #~ msgstr "/Roghanna/_Aironna" #~ msgid "/Help/_Shortcuts" #~ msgstr "/Cabhair/_Aicearra" #~ msgid "/Help/_License" #~ msgstr "/Cabhair/_Ceadnas" #~ msgid "Manual Timer" #~ msgstr "Amadir Limhe" #~ msgid "Reset" #~ msgstr "Athshocraigh" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Is fidir leat an luas a shocr anseo\n" #~ "tr chniogadh ar an gcnaipe \"Cniog\".\n" #~ "\n" #~ "N dan ach crom ar cniogadh leis an luch n leis an eochair \"Enter\".\n" #~ "\n" #~ "Chun an luach irithe a sid, cliceil ar \"OK\".\n" #~ "Cliceil \"Athshocraigh\" chun atos.\n" gtick-0.5.2/po/quot.sed0000644000175000017500000000023110661555202011641 00000000000000s/"\([^"]*\)"/“\1”/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“”/""/g gtick-0.5.2/po/it.gmo0000644000175000017500000001625712116334677011323 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /^< Cx\ &6GXas    (15<$Uz        !/G N Y c nx      % 0> U_ f q}  (+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2011-09-14 11:59+0100 Last-Translator: Marco Colombo Language-Team: Italian Language: it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit %s (%d ... %d)2/43/44/4Informazioni su GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteAccentoScegliCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo di Mario Andrés Pagella Homepage: http://www.antcom.de/gtick/ Segnalare bug, commenti ed altro alla mailing list degli sviluppatori: gtick-devel@nongnu.orgImpossibile avviare il metronomo. Controllare che il dispositivo di suono indicato e il file campione siano accessibili.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SPredefinitoNome del file di dispositivo:Raddoppia tempoRaddoppia volumeModifica profiloSempliceEsegui all'avvio:Esegui all'arresto:Comandi esterniGTick - Il Metronomo Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge Questo è software libero; potete redistribuirlo e/o modificarlo secondo i termini della GNU General Public Licence come pubblicata dalla Free Software Foundation; la versione 3 della Licenza o (a vostra scelta) ogni versione successiva. Questo programma è distribuito nella speranza che possa essere utile, ma SENZA ALCUNA GARANZIA; anche senza la garanzia implicita di COMMERCIABILITÀ o di IDONEITÀ AD UNO SCOPO PARTICOLARE. Si consulti la GNU General Public License per ulteriori dettagli. Dovreste aver ricevuto una copia della GNU General Public License con questo programma; altrimenti consultare a .Licenza di GTickDimezza tempoDimezza volumeFermoLarghettoLarghissimoLargoLicenzaTempo massimo:BattitiTempo minimo:ModeratoOSSAltro:Scegliere un file audio.Inserire il nome del nuovo profilo: _ProfiliPreferenzePrestissimoPrestoProfiliPulseaudioIn esecuzioneImpostazioniMaiusc-aMaiusc-qMaiusc-sMaiusc-wMaiusc-xMaiusc-zScorciatoieSinusoideSuonoSistema audioIntervallo di velocitàTempo:Tempo: +10Tempo: +2Tempo: -10Tempo: -2Tempo: più veloceTempo: più lentoAvviaAvvia il metronomoAvvia/ArrestaArrestaBatti il tempoProfilo senza nomeUso: %s [OPZIONE...] Opzioni: -h, --help Mostra questo messaggio d'aiuto -v, --version Stampa informazioni sulla versione -d, --debug[=livello] Stampa dati di debug sullo standard output durante l'esecuzione Volume:Volume: +10Volume: +2Volume: -10Volume: -2I_nformazioni_Tabella degli accenti_ModificaA_iutoM_etronomoPreferen_ze_Esci_Scorciatoie_VisualizzaMovimento _visualegtick-0.5.2/po/pl.gmo0000644000175000017500000001670112116334677011314 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /<  "*06<BHNVjerpIPWi pz   #38GPT Z({      % -: CP cp    / @M_g n x (+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2011-08-08 00:56+0100 Last-Translator: Michał Trzebiatowski Language-Team: Polish Language: pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Poedit-Language: Polish X-Poedit-Country: POLAND %s (%d ... %d)2/43/44/4O programieAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteAkcent na uderzenieWybierzCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo przez Mario Andres Pagella Strona główna: http://www.antcom.de/gtick/ Pisz E-maile dotyczące raportów o błędach, komentarze, itp. do listy mailingowej deweloperów: gtick-devel@gnu.orgNie mogę uruchomić metronomu. Proszę sprawdzić czy urządzenie dźwiękowe i pliki z samplami są dostępne.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDomyślnyNazwa pliku urządzenia:Podwójna prędkośćPodwójna głośnośćEdycja profiluRówneUruchom na starcie:Uruchom przy zatrzymaiu:Polecenia zewnętrzneGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge Niniejszy program jest wolnym oprogramowaniem; możesz go rozprowadzać dalej i/lub modyfikować na warunkach Powszechnej Licencji Publicznej GNU, wydanej przez Fundację Wolnego Oprogramowania - według wersji 3 tej Licencji lub (według twojego wyboru) którejś z późniejszych wersji. Niniejszy program rozpowszechniany jest z nadzieją, iż będzie on użyteczny - jednak BEZ JAKIEJKOLWIEK GWARANCJI, nawet domyślnej gwarancji PRZYDATNOŚCI HANDLOWEJ albo PRZYDATNOŚCI DO OKREŚLONYCH ZASTOSOWAŃ. W celu uzyskania bliższych informacji sięgnij do Powszechnej Licencji Publicznej GNU. Z pewnością wraz z niniejszym programem otrzymałeś też egzemplarz Powszechnej Licencji Publicznej GNU (GNU General Public License); jeśli nie, zobacz .Licencja GTickPołowa prędkościPołowa głośnościBezczynnyLarghettoLarghissimoLargoLicencjaMaksymalne BPM:MetrMinimalne BPM:ModeratoOSSInne:Proszę wybrać plik dźwiękowyProszę wpisz nową nazwę dla profilu: P_rofilePreferencjePrestissimoPrestoProfilePulseaudioUruchomonyUstawieniaShift-aShift-qShift-sShift-wShift-xShift-zSkrótySinusoidalnyDźwiękSound SystemZakres prędkościPrędkość:Prędkość: +10Prędkość: +2Prędkość: -10Prędkość: -2Prędkość: SzybciejPrędkość: WolniejStartUruchom metronomStart/StopStopNabijProfil bez nazwyUżycie: %s [OPCJA...] Opcje: -h, --help Pokaż to okno pomocy -v, --version Pokaż informacje o wersji -d, --debug[=poziom] Wypisz dodatkowe informacje debugujące na stdout Głośność:Głośność: +10Głośność: +2Głośność: -10Głośność: -2_O programie_Tabela akcentów_EdycjaPomo_c_Metronom_PreferenceZ_akończ_Skróty klawiszowe_Widok_Wizualizacja uderzeniagtick-0.5.2/po/eo.po0000644000175000017500000002566012116334675011142 00000000000000# Esperanto translation of GTick # Copyright (C) 2008, 2011 Roland Stigge (msgids) # This file is distributed under the same license as the gtick package. # Felipe Castro , 2008, 2011. msgid "" msgstr "" "Project-Id-Version: gtick 0.5.0\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2011-08-25 16:11-0300\n" "Last-Translator: Felipe Castro \n" "Language-Team: Esperanto \n" "Language: eo\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Uzado: %s [ELEKTEBLO...]\n" "\n" "Elektebloj:\n" " -h, --help Montri tiun ĉi help-mesaĝon\n" " -v, --version Montri informon pri versio\n" " -d, --debug[=nivelo] Sendi kroman funkcitempan rafinigan datumaron al " "'stdout'\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "Pri GTick" #: src/help.c:79 msgid "License" msgstr "Permeso" #: src/help.c:103 msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Kopirajto (c) 1999, Alex Roberts \n" "Kopirajto (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Bildo de Mario Andres Pagella \n" "\n" "Retejo:\n" "http://www.antcom.de/gtick/\n" "\n" "Sendu raportojn pri eraroj, komentojn, ktp, al\n" "Diskut-listo de programantoj:\n" "gtick-devel@gnu.org" #: src/help.c:127 msgid "GTick License" msgstr "Permeso de GTick" #: src/help.c:128 msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - La Metronomo\n" "Kopirajto (c) 1999, Alex Roberts \n" "Kopirajto (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "Tiu ĉi programo estas libera programaro; vi povas redistribui ĝin kaj/aŭ\n" "modifi ĝin laŭ la termoj de la GNU-a Ĝenerala Publika Liber-permeso\n" "kiel publikigite de 'Free Software Foundation'; aŭ versio 3\n" "de la Liberpermeso, aŭ (laŭ via elekto) iu ajn posta versio.\n" "\n" "Tiu ĉi programo estas distribuita esperante ke ĝi estu utila,\n" "sed SEN IU AJN GARANTIO; sen eĉ implicita garantio pri\n" "VENDEBLECO aŭ TAŬGECO POR IU SPECIFA APLIKO. Vidu la\n" "GNU-an Ĝeneralan Publikan Liberpermeson por pli da detaloj.\n" "\n" "Vi devus ricevi kopion de la GNU-a Ĝenerala Publika Liberpermeso\n" "kune kun tiu ĉi programo; se ne, vidu ." #: src/help.c:155 msgid "Shortcuts" msgstr "Tujkomandoj" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "Alt-w" #: src/help.c:192 msgid "Alt-q" msgstr "Alt-q" #: src/help.c:198 msgid "Alt-a" msgstr "Alt-a" #: src/help.c:204 msgid "Alt-s" msgstr "Alt-s" #: src/help.c:210 msgid "Alt-z" msgstr "Alt-z" #: src/help.c:216 msgid "Alt-x" msgstr "Alt-x" #: src/help.c:222 msgid "Shift-w" msgstr "Shift-w" #: src/help.c:228 msgid "Shift-q" msgstr "Shift-q" #: src/help.c:234 msgid "Shift-a" msgstr "Shift-a" #: src/help.c:240 msgid "Shift-s" msgstr "Shift-s" #: src/help.c:246 msgid "Shift-z" msgstr "Shift-z" #: src/help.c:252 msgid "Shift-x" msgstr "Shift-x" #: src/help.c:258 msgid "Start/Stop" msgstr "Ekigi/Haltigi" #: src/help.c:264 msgid "Speed: Faster" msgstr "Rapideco: pli" #: src/help.c:270 msgid "Speed: Slower" msgstr "Rapideco: malpli" #: src/help.c:276 src/metro.c:1728 msgid "Meter" msgstr "Takto" #: src/help.c:282 msgid "Double Speed" msgstr "Duobla rapideco" #: src/help.c:288 msgid "Half Speed" msgstr "Duona rapideco" #: src/help.c:294 msgid "Speed: -10" msgstr "Rapideco: -10" #: src/help.c:300 msgid "Speed: +10" msgstr "Rapideco: +10" #: src/help.c:306 msgid "Speed: -2" msgstr "Rapideco: -2" #: src/help.c:312 msgid "Speed: +2" msgstr "Rapideco: +2" #: src/help.c:318 msgid "Double Volume" msgstr "Duobla laŭteco" #: src/help.c:324 msgid "Half Volume" msgstr "Duona laŭteco" #: src/help.c:330 msgid "Volume: -10" msgstr "Laŭteco: -10" #: src/help.c:336 msgid "Volume: +10" msgstr "Laŭteco: +10" #: src/help.c:342 msgid "Volume: -2" msgstr "Laŭteco: -2" #: src/help.c:348 msgid "Volume: +2" msgstr "Laŭteco: +2" #: src/metro.c:74 msgid "Idle" msgstr "Senokupa" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Ekigi" #: src/metro.c:75 msgid "Running" msgstr "Aktiva" #: src/metro.c:75 msgid "Stop" msgstr "Haltigi" #: src/metro.c:79 msgid "_Help" msgstr "_Helpo" #: src/metro.c:80 msgid "_Metronome" msgstr "_Metronomo" #: src/metro.c:81 msgid "_Quit" msgstr "_Foriri" #: src/metro.c:82 msgid "_Edit" msgstr "_Redakti" #: src/metro.c:83 msgid "_Preferences" msgstr "_Preferoj" #: src/metro.c:84 msgid "_View" msgstr "_Vidi" #: src/metro.c:85 msgid "_About" msgstr "_Pri" #: src/metro.c:86 msgid "_Shortcuts" msgstr "_Tujkomandoj" #: src/metro.c:90 msgid "Start the metronome" msgstr "Ekigi la metronomon" #: src/metro.c:91 msgid "_Visual Tick" msgstr "_Videbla Klako" #: src/metro.c:92 msgid "_Accent Table" msgstr "Tabelo de _Akcentoj" #: src/metro.c:93 msgid "Pr_ofiles" msgstr "Pers_onigoj" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "Larghissimo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "Largo" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "Larghetto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "Adagio" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "Andante" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "Moderato" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "Allegro" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "Presto" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "Prestissimo" #: src/metro.c:1577 msgid "Settings" msgstr "Agordoj" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "%s (%d ... %d)" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Frapadu" #: src/metro.c:1625 msgid "Speed:" msgstr "Rapideco:" #: src/metro.c:1694 msgid "Volume:" msgstr "Laŭteco:" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Konstanta" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Alia:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "Frap-akcento" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Ne eblis ekigi la metronomon.\n" "Bonvolu kontroli ĉu la specifita son-aparato\n" "kaj la specimena dosiero estas alireblaj." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Bonvolu elekti son-dosieron." #: src/gtkoptions.c:270 msgid "Preferences" msgstr "Preferoj" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Sono" #: src/gtkoptions.c:331 msgid "Default" msgstr "Originala" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sinusa" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Elekti" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "Sonsistemo" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "Pulseaudio" #: src/gtkoptions.c:443 msgid "OSS" msgstr "OSS" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Dosiernomo de aparato:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Eksteraj komandoj" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Plenumi je ekigo:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Plenumi je halto:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Rapidecaj limoj" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimuma FPM" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maksimuma FPM" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "Sennoma personigo" #: src/profiles.c:508 msgid "Edit Profile" msgstr "Redakti Personigon" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "Bonvolu enmeti novan nomon por Personigo: " #: src/profiles.c:682 msgid "Profiles" msgstr "Personigoj" #~ msgid "Sound Device" #~ msgstr "Son-aparato" gtick-0.5.2/po/fr.gmo0000644000175000017500000001652612116334677011315 00000000000000a$,89JNR Vbiqw} 7` I P W i p x        !' /< BOX\c      ', 2 ?K R ] g r |          ) /<   %,4:@FLRX`qdyhov# ' :[ l y   #+? H Vbi q |     " 1?V jt         . 7C H(+Y^H30@;<&'G?SQ,Da8[5! -W297*]$ZJK`OFN=A>) URVC\:E # / LP._1%IXTB"64M%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:MeterMinimum BPM:ModeratoOSSOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesPulseaudioRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSound SystemSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.5.0 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2012-10-07 16:55-0400 Last-Translator: David Prévot Language-Team: French Language: fr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plural=(n > 1); X-Generator: Lokalize 1.4 %s (%d ... %d)deux tempstrois tempsquatre tempsÀ propos de GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteAccent rythmiqueChoisirCopyright © 1999, Alex Roberts Copyright © 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo de Mario Andres Pagella Page d'accueil : http://www.antcom.de/gtick/ Signaler tous rapports de bogue, commentaires, etc. à la liste de diffusion des développeurs : gtick-devel@nongnu.orgImpossible de démarrer le métronome. Veuillez vérifier que le périphérique de son et le fichier d'échantillonnage sont accessibles.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDéfautNom de fichier du périphérique :Vitesse doubleVolume doubleÉditer un profilun tempsExécuter au démarrage :Exécuter à l'arrêt :Commandes externesGTick — le métronome Copyright © 1999, Alex Roberts Copyright © 2003, 2004, 2005, 2006 Roland Stigge Ce programme est un logiciel libre ; vous pouvez le redistribuer ou le modifier selon les termes de la Licence Publique Générale de GNU, publiée par la Free Software Foundation, soit la version 3, soit (selon votre préférence) toute version ultérieure. Ce programme est distribué dans l'espoir qu'il soit utile, mais AUCUNE garantie n'est donnée tant pour des raisons COMMERCIALES que pour RÉPONDRE À UN BESOIN PARTICULIER. Consulter la Licence Publique Générale de GNU pour plus de précisions. Vous devriez avoir reçu copie de la Licence Publique Générale de GNU avec ce programme ; sinon, consultez .Licence de GTickDemi-vitesseDemi-volumeAu ralentiLarghettoLarghissimoLargoLicenceBPM maximal :MesureBPM minimal :ModeratoOSSAutre :Veuillez choisir un fichier de son.Veuillez saisir un nouveau nom de profil :Pr_ofilsPréférencesPrestissimoPrestoProfilsPulseAudioExécutionConfigurationMaj-aMaj-qMaj-sMaj-wMaj-xMaj-zRaccourcisSinusoïdalSonSystème de sonÉtendue des vitessesVitesse :Vitesse : +10Vitesse : +2Vitesse : -10Vitesse : -2Vitesse : accélérerVitesse : ralentirDémarrerDémarrer le métronomeDémarrer/ArrêterArrêterMarqueProfil sans nomUtilisation : %s [OPTION...] Options: -h, --help afficher l'aide-mémoire -v, --version afficher la version du logiciel -d, --debug[=NIVEAU] afficher des données de débogage sur sortie standard Volume :Volume : +10Volume : +2Volume : -10Volume : -2_À proposTable d'_accents_Édition_Aide_Métronome_Préférences_Quitter_Raccourcis_VueTics _visuelsgtick-0.5.2/po/da.gmo0000644000175000017500000001477212116334676011272 00000000000000[  % -97@`x        & 4 A F X i { q         % / ;GNW_hpx         &+/? G S ^ ju |    K^b .3 BPd ~     $ : D R^en t~     ! 2=BG Yd s    4VL#-PWT[2N"7@&/9>%XQ KE8OD(< 5A:!;6$ J)= 0 , MCF1GRBYHUI.+S3Z'*?%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCopyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo by Mario Andres Pagella Homepage: http://www.antcom.de/gtick/ Email bug reports, comments, etc. to Developer's mailing list: gtick-devel@gnu.orgCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick - The Metronome Copyright (c) 1999, Alex Roberts Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge 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 3 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, see .GTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:Minimum BPM:ModeratoOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSoundSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileVolume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.4.1 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2008-05-01 02:32+0100 Last-Translator: Frederik 'Freso' S. Olesen Language-Team: Danish Language: da MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Plural-Forms: nplurals=2; plurals=(n != 1); X-Poedit-Language: Danish X-Poedit-Country: DENMARK %s (%d ... %d)2/43/44/4Om GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndantePulsslagVlgOphavsret (c) 1999, Alex Roberts Ophavsret (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge Logo af Mario Andres Pagella Hjemmeside: http://www.antcom.de/gtick/ Send fejlrapporter, kommentarer o.lign. til udviklerpostlisten (engelsksproget): gtick-devel@gnu.orgKunne ikke starte metronomen. Tjek venligst at den angivne lydenhed og lydfil er tilgngelige.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SStandardEnhedsfilnavn:Dobbelt tempoDobbel lydstyrkeRediger profilJvnKr ved start:Kr ved stop:Eksterne kommandoerGTick - Metronomen Ophavsret (c) 1999, Alex Roberts Ophavsret (c) 2003, 2004, 2005, 2006 Roland Stigge Dette program er fri software. Du kan redistribuere og/eller modificere det under de betingelser som er angivet i GNU General Public License, som udgivet af Free Software Foundation. Enten version 3 af licensen eller (efter eget valg) enhver senere version. Dette program distribueres i hb om at det vil vise sig nyttigt, men UDEN NOGEN FORM FOR GARANTI, uden selv de underforstede garantier omkring SALGBARHED eller EGNETHED TIL ET BESTEMT FORML. Yderligere detaljer kan lses i GNU General Public License. Du skulle have modtaget en kopi af GNU General Public License sammen med dette program. Hvis ikke, s se .GTick-licensHalvt tempoHalv lydstyrkeInaktivLarghettoLarghissimoLargoLicensMaksimum BPM:Minimum BPM:ModeratoAnden:Vlg venligst en lydfil.Indtast venligst et nyt profilnavn: Pr_ofilerIndstillingerPrestissimoPrestoProfilerKrerOpstningShift-aShift-qShift-sShift-wShift-xShift-zGenvejeLydTempoomrdeTempo:Tempo: +10Tempo: +2Tempo: -10Tempo: -2Tempo: HurtigereTempo: LangsommereStartStart metronomenStart/StopStopKlikUnavngiven profilLydstyrke:Lydstyrke: +10Lydstyrke: +2Lydstyrke: -10Lydstyrke: -2_OmPulst_abel_Redigr_Hjlp_Metronom_Indstillinger_Afslut_Genveje_Vis_Visuelt slaggtick-0.5.2/po/en@boldquot.header0000644000175000017500000000247110661555202013612 00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # gtick-0.5.2/po/sk.gmo0000644000175000017500000001167212116334677011320 00000000000000[  % -9`@      1 C Q \ h m w          ) 1 : B J R Z b j t y             & 4 : @ K X ^ i o |  !%-4<BHNTZ`hzy  #.AUn ~   #)2CT] c(     !5<AQ X c m x   #1 F P [ f r} 2VK!+PLT[0N< 5?$-7=#XQJWD6OC&: 3@894" I'; . * MBE/FRAYGUH,)S1Z%(>%s (%d ... %d)2/43/44/4About GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndanteBeat AccentChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEdit ProfileEvenExecute on start:Execute on stop:External CommandsGTick LicenseHalf SpeedHalf VolumeIdleLarghettoLarghissimoLargoLicenseMaximum BPM:Minimum BPM:ModeratoOther:Please choose a sound file.Please enter new Profile name: Pr_ofilesPreferencesPrestissimoPrestoProfilesRunningSettingsShift-aShift-qShift-sShift-wShift-xShift-zShortcutsSineSoundSpeed RangeSpeed:Speed: +10Speed: +2Speed: -10Speed: -2Speed: FasterSpeed: SlowerStartStart the metronomeStart/StopStopTapUnnamed ProfileUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:Volume: +10Volume: +2Volume: -10Volume: -2_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.3.9 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2007-04-29 22:35+0200 Last-Translator: Jozef Riha =2 && n<=4) ? 1 : 2; %s (%d ... %d)2/43/44/4O GTickAdagioAllegroAlt-aAlt-qAlt-sAlt-wAlt-xAlt-zAndantePrízvučná dobaVybraťMetronóm nemožno spustiť. Skontrolujte prosím, či sú vybrané zvukové zariadenia a vzorkovací súbor prístupné.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SVýchodzieNázov zariadenia:Dvojnásobné tempoDvojnásobná hlasitosťUpraviť profilPravidelnýVykonať pri štarte:Vykonať pri zastavení:Externé príkazyLicencia GTickPolovičné tempoPolovičná hlasitosťNečinnýLarghettoLarghissimoLargoLicenciaNajvyššie BPM:Najnižšie BPM:ModeratoIný:Vyberte prosím zvukový súbor.Prosím zadajte názov nového profilu: Pr_ofilyNastaveniaPrestissimoPrestoProfilySpustenýNastaveniaShift-aShift-qShift-sShift-wShift-xShift-zKlávesové skratkySínusZvukRozmedzie tempaTempo:Tempo: +10Tempo: +2Tempo: -10Tempo: -2Tempo: rýchlejšieTempo: pomalšieŠtartSpustiť metronómŠtart/StopStopŤukNepomenovaný profilPoužitie: %s [PREPÍNAČ...] Prepínače: -h, --help Vypíše túto nápovedu -v, --version Vypíše informáciu o verzii -d, --debug[=level] Vypíše ďalšie ladiace dáta o behu programu na stdout Hlasitosť:Hlasitosť: +10Hlasitosť: +2Hlasitosť: -10Hlasitosť: -2O _aplikáciiT_abuľka prízvukov_Upraviť_Nápoveda_Metronóm_Nastavenia_Ukončiť_Klávesové skratky_ZobraziťZobrazit ť_ukanie vizuálnegtick-0.5.2/po/af.po0000644000175000017500000003004612116334675011117 00000000000000# GTick is 'n metronoomapplikasie. # Copyright (C) 2004 Free Software Foundation, Inc. # This file is distributed under the same license as the gtick package. # Hanlie Pretorius , 2004 msgid "" msgstr "" "Project-Id-Version: gtick 0.2.12\n" "Report-Msgid-Bugs-To: stigge@antcom.de\n" "POT-Creation-Date: 2013-03-08 11:13+0100\n" "PO-Revision-Date: 2004-01-02 16:00+2\n" "Last-Translator: Ysbeer \n" "Language-Team: Afrikaans \n" "Language: af\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #: src/gtick.c:81 #, c-format msgid "" "Usage: %s [OPTION...]\n" "\n" "Options:\n" " -h, --help Show this help message\n" " -v, --version Print version information\n" " -d, --debug[=level] Print additional runtime debugging data to stdout\n" "\n" msgstr "" "Gebruik: %s [OPSIE...]\n" "\n" "Opsies:\n" " -h, --hulp Wys hierdie hulpboodskap\n" " -v, --weergawe Druk weergawe-inligting\n" " -d, --ontfout[=vlak] Druk addisionele looptydontfoutingsdata na " "stdout\n" "\n" #: src/help.c:77 msgid "About GTick" msgstr "" #: src/help.c:79 #, fuzzy msgid "License" msgstr "GTick Lisensie" #: src/help.c:103 #, fuzzy msgid "" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" msgstr "" "Kopiereg (c) 1999, Alex Roberts \n" "Kopiereg (c) 2003, Roland Stigge \n" "Logo deur Mario Andres Pagella \n" "\n" "Tuisblad:\n" "http://www.antcom.de/gtick/\n" "\n" "E-pos foutverslae, kommentaar, ens. aan\n" "Programmeerders se poslys:\n" "gtick-devel@nongnu.org" #: src/help.c:127 msgid "GTick License" msgstr "GTick Lisensie" #: src/help.c:128 #, fuzzy msgid "" "GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ." msgstr "" "GTick - Die Metronoom\n" "Kopiereg (c) 1999, Alex Roberts \n" "Kopiereg (c) 2003, Roland Stigge \n" "\n" "Hierdie program is gratis sagteware; jy kan dit versprei en/of\n" "verander in terme van die 'GNU General Public License'\n" "soos gepubliseer deur die Free Software Foundation; of weergawe 2\n" "van die lisensie, of (as jy wil) enige latere weergawe.\n" "\n" "Hierdie program word versprei in die hoop dat dit nuttig sal wees,\n" "maar SONDER ENIGE WAARBORG; sonder selfs die geïmpliseerde waarborg\n" "VERKOOPBAARHEID of TOEPASLIKHEID VIR 'N SEKERE DOEL. Kyk na die\n" "'GNU General Public License' vir meer besonderhede.\n" "\n" "Jy behoort 'n kopie van die 'GNU General Public License' saam met hierdie " "program\n" "te gekry het; indien nie, skryf aan die Free Software\n" "Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA." #: src/help.c:155 msgid "Shortcuts" msgstr "Kortpaaie" #: src/help.c:162 msgid "Ctrl-S" msgstr "Ctrl-S" #: src/help.c:168 msgid "Ctrl-+" msgstr "Ctrl-+" #: src/help.c:174 msgid "Ctrl--" msgstr "Ctrl--" #: src/help.c:180 msgid "Ctrl-1 ... Ctrl-9" msgstr "Ctrl-1 ... Ctrl-9" #: src/help.c:186 msgid "Alt-w" msgstr "" #: src/help.c:192 msgid "Alt-q" msgstr "" #: src/help.c:198 msgid "Alt-a" msgstr "" #: src/help.c:204 msgid "Alt-s" msgstr "" #: src/help.c:210 msgid "Alt-z" msgstr "" #: src/help.c:216 msgid "Alt-x" msgstr "" #: src/help.c:222 msgid "Shift-w" msgstr "" #: src/help.c:228 msgid "Shift-q" msgstr "" #: src/help.c:234 msgid "Shift-a" msgstr "" #: src/help.c:240 msgid "Shift-s" msgstr "" #: src/help.c:246 msgid "Shift-z" msgstr "" #: src/help.c:252 msgid "Shift-x" msgstr "" #: src/help.c:258 msgid "Start/Stop" msgstr "Begin/Stop" #: src/help.c:264 msgid "Speed: Faster" msgstr "Spoed: vinniger" #: src/help.c:270 msgid "Speed: Slower" msgstr "Spoed: stadiger" #: src/help.c:276 src/metro.c:1728 #, fuzzy msgid "Meter" msgstr "Basisritme" #: src/help.c:282 msgid "Double Speed" msgstr "" #: src/help.c:288 #, fuzzy msgid "Half Speed" msgstr "Spoed:" #: src/help.c:294 #, fuzzy msgid "Speed: -10" msgstr "Spoed:" #: src/help.c:300 #, fuzzy msgid "Speed: +10" msgstr "Spoed:" #: src/help.c:306 #, fuzzy msgid "Speed: -2" msgstr "Spoed:" #: src/help.c:312 #, fuzzy msgid "Speed: +2" msgstr "Spoed:" #: src/help.c:318 #, fuzzy msgid "Double Volume" msgstr "Volume" #: src/help.c:324 #, fuzzy msgid "Half Volume" msgstr "Volume" #: src/help.c:330 #, fuzzy msgid "Volume: -10" msgstr "Volume" #: src/help.c:336 #, fuzzy msgid "Volume: +10" msgstr "Volume" #: src/help.c:342 #, fuzzy msgid "Volume: -2" msgstr "Volume" #: src/help.c:348 #, fuzzy msgid "Volume: +2" msgstr "Volume" #: src/metro.c:74 msgid "Idle" msgstr "Stilstaande" #: src/metro.c:74 src/metro.c:90 msgid "Start" msgstr "Begin" #: src/metro.c:75 msgid "Running" msgstr "Aan die gang" #: src/metro.c:75 msgid "Stop" msgstr "Stop" #: src/metro.c:79 #, fuzzy msgid "_Help" msgstr "/_Hulp" #: src/metro.c:80 #, fuzzy msgid "_Metronome" msgstr "/_Metronoom" #: src/metro.c:81 msgid "_Quit" msgstr "" #: src/metro.c:82 msgid "_Edit" msgstr "" #: src/metro.c:83 msgid "_Preferences" msgstr "" #: src/metro.c:84 msgid "_View" msgstr "" #: src/metro.c:85 #, fuzzy msgid "_About" msgstr "/_Hulp/Alles aangaande" #: src/metro.c:86 #, fuzzy msgid "_Shortcuts" msgstr "Kortpaaie" #: src/metro.c:90 msgid "Start the metronome" msgstr "" #: src/metro.c:91 #, fuzzy msgid "_Visual Tick" msgstr "/_Opsies/Wys _visuele tiek" #: src/metro.c:92 #, fuzzy msgid "_Accent Table" msgstr "Aksenttabel" #: src/metro.c:93 #, fuzzy msgid "Pr_ofiles" msgstr "Eienskappe" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:133 msgid "Larghissimo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:136 msgid "Largo" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:139 msgid "Larghetto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:142 msgid "Adagio" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:145 msgid "Andante" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:148 msgid "Moderato" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:151 msgid "Allegro" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:154 msgid "Presto" msgstr "" #. TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's #. not not translated, at least not in languages with latin alphabets. #: src/metro.c:157 msgid "Prestissimo" msgstr "" #: src/metro.c:1577 msgid "Settings" msgstr "Instellings" #. TRANSLATORS: This is a tempo name with its associated BPM #. (beats per minute) range #: src/metro.c:1606 #, c-format msgid "%s (%d ... %d)" msgstr "" #. TRANSLATORS: This button needs to be clicked ("tapped") at least twice for #. specifying a tempo #: src/metro.c:1620 msgid "Tap" msgstr "Tik" #: src/metro.c:1625 msgid "Speed:" msgstr "Spoed:" #: src/metro.c:1694 msgid "Volume:" msgstr "Volume" #. TRANSLATORS: all beats are equal #: src/metro.c:1751 msgid "Even" msgstr "Gelyk" #. TRANSLATORS: duple meter #: src/metro.c:1764 msgid "2/4" msgstr "2/4" #. TRANSLATORS: triple meter #: src/metro.c:1775 msgid "3/4" msgstr "3/4" #. TRANSLATORS: quadruple meter / common meter #: src/metro.c:1786 msgid "4/4" msgstr "4/4" #. TRANSLATORS: meter with more than 4 beats per measure #: src/metro.c:1797 src/gtkoptions.c:362 msgid "Other:" msgstr "Ander:" #: src/metro.c:1819 msgid "Beat Accent" msgstr "" #: src/metro.c:1987 msgid "" "Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible." msgstr "" "Kon nie metronoom begin nie.\n" "Kyk asseblief of gespesifiseerde klanktoestel\n" "en voorbeeldlêers toeganklik is." #: src/gtkoptions.c:214 msgid "Please choose a sound file." msgstr "Kies asseblief 'n klanklêer" #: src/gtkoptions.c:270 msgid "Preferences" msgstr "" #: src/gtkoptions.c:315 msgid "Sound" msgstr "Klank" #: src/gtkoptions.c:331 msgid "Default" msgstr "Verstek" #: src/gtkoptions.c:344 msgid "Sine" msgstr "Sin" #: src/gtkoptions.c:389 msgid "Choose" msgstr "Kies" #: src/gtkoptions.c:410 msgid "Sound System" msgstr "" #: src/gtkoptions.c:430 msgid "Pulseaudio" msgstr "" #: src/gtkoptions.c:443 msgid "OSS" msgstr "" #: src/gtkoptions.c:458 msgid "Device filename:" msgstr "Klantoestellêernaam:" #: src/gtkoptions.c:477 msgid "External Commands" msgstr "Eksterne bevele" #: src/gtkoptions.c:495 msgid "Execute on start:" msgstr "Voer uit tydens begin:" #: src/gtkoptions.c:513 msgid "Execute on stop:" msgstr "Voer uit tydens einde:" #: src/gtkoptions.c:534 msgid "Speed Range" msgstr "Spoedstrekking" #: src/gtkoptions.c:552 msgid "Minimum BPM:" msgstr "Minimum SPM:" #: src/gtkoptions.c:569 msgid "Maximum BPM:" msgstr "Maksimum SPM:" #: src/profiles.c:330 src/profiles.c:616 msgid "Unnamed Profile" msgstr "" #: src/profiles.c:508 #, fuzzy msgid "Edit Profile" msgstr "Eienskappe" #: src/profiles.c:524 msgid "Please enter new Profile name: " msgstr "" #: src/profiles.c:682 #, fuzzy msgid "Profiles" msgstr "Eienskappe" #~ msgid "Sound Device" #~ msgstr "Klanktoestel" #~ msgid "Beat" #~ msgstr "Ritme" #, fuzzy #~ msgid "_Profiles" #~ msgstr "Eienskappe" #, fuzzy #~ msgid "_Manual Timer" #~ msgstr "Handtydhouer" #~ msgid "Manual Timer" #~ msgstr "Handtydhouer" #~ msgid "Reset" #~ msgstr "Herstel" #~ msgid "" #~ "Here, you can approximate the desired\n" #~ "speed by tapping at the \"Tap\" button.\n" #~ "\n" #~ "Just start tapping with the mouse or Enter.\n" #~ "\n" #~ "To use the calculated value, click \"OK\".\n" #~ "To start again, click \"Reset\".\n" #~ msgstr "" #~ "Hier kan jy die verlangde speod benader\n" #~ "deur die Tikknoppie te kliek.\n" #~ "\n" #~ "begin kliek met die muis of druk Enter.\n" #~ "\n" #~ "Om die berekende waarde te gebruik, kliek OK.\n" #~ "Om weer te begin, kliek Herstel.\n" #~ msgid "/Metronome/Start" #~ msgstr "/Metronoom/Begin" #~ msgid "/Metronome/_Manual Timer" #~ msgstr "/Metronoom/_Handtydhouer" #~ msgid "/Metronome/" #~ msgstr "/Metronoom/" #~ msgid "/Metronome/_Quit" #~ msgstr "/Metronoom/_Verlaat program" #~ msgid "/_Options" #~ msgstr "/_Opsies" #~ msgid "/Options/Show _Accent Table" #~ msgstr "/_Opsies/Wys _aksenttabel" #~ msgid "/Options/_Properties" #~ msgstr "/_Opsies/_Eienskappe" #~ msgid "/Help/_Shortcuts" #~ msgstr "/_Hulp/_Kortpaaie" #~ msgid "/Help/_License" #~ msgstr "/_Hulp/_Lisensie" gtick-0.5.2/po/es.gmo0000644000175000017500000000642712116334676011313 000000000000006I| `!(/AHP a n|      #-5 >HM S_ f t ow ~    K $ ( , 4 ?       % 3 < Q d v     +    $ ) 0 E P h           )-% 61&. / "352(' 0*,+ !#4 $2/43/44/4Beat AccentChooseCouldn't start metronome. Please check if specified sound device and sample file are accessible.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SDefaultDevice filename:Double SpeedDouble VolumeEvenExecute on start:Execute on stop:External CommandsGTick LicenseHalf SpeedHalf VolumeIdleMaximum BPM:MeterMinimum BPM:Other:Please choose a sound file.Pr_ofilesRunningSettingsShortcutsSineSoundSpeed RangeSpeed:Speed: FasterSpeed: SlowerStartStart/StopStopTapUsage: %s [OPTION...] Options: -h, --help Show this help message -v, --version Print version information -d, --debug[=level] Print additional runtime debugging data to stdout Volume:_About_Accent Table_Edit_Help_Metronome_Preferences_Quit_Shortcuts_View_Visual TickProject-Id-Version: gtick 0.2.12 Report-Msgid-Bugs-To: stigge@antcom.de POT-Creation-Date: 2013-03-08 11:13+0100 PO-Revision-Date: 2004-01-04 14:22+0100 Last-Translator: Bernardo Arlandis Mañó Language-Team: Language: es MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2/43/44/4AcentosSeleccionaNo se puede iniciar el metrónomo. Por favor, compruebe que el dispositivo de sonido especificado y el fichero de sonido están accesibles.Ctrl-+Ctrl--Ctrl-1 ... Ctrl-9Ctrl-SEstándarFichero del dispositivo:Velocidad dobleVolumen dobleUniformeEjecutar al iniciar:Ejecutar al parar:Comandos externosLicencia de GTickVelocidad mitadVolumen mitadInactivoBPM máximo:MedidaBPM mínimo:Otro:Por favor, seleccione un fichero de sonido.PerfilesEn marchaAjustesAtajosSenoSonidoRango de velocidadesVelocidad:Velocidad: más rápidoVelocidad: más despacioIniciarIniciar/PararPararGolpeModo de empleo: %s [OPCIÓN...] Opciones: -h, --help Mostrar este mensaje de ayuda -v, --version Mostrar información de la versión -d, --debug[=nivel] Escribe datos adicionales para la depuración en ejecución Volumen:_Acerca deTabla de _acentos_Editar_Ayuda_Metrónomo_Preferencias_SalirAtajos de teclado_VerPulso _visualgtick-0.5.2/po/remove-potcdate.sin0000644000175000017500000000066010661555202013773 00000000000000# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } gtick-0.5.2/config.guess0000755000175000017500000012743212116334337012074 00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-02-10' # This file 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, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[4567]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) UNAME_PROCESSOR=`/usr/bin/uname -p` case ${UNAME_PROCESSOR} in amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:MSYS*:*) echo ${UNAME_MACHINE}-pc-msys exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; aarch64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; aarch64_be:Linux:*:*) UNAME_MACHINE=aarch64_be echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_PCS_VFP then echo ${UNAME_MACHINE}-unknown-linux-gnueabi else echo ${UNAME_MACHINE}-unknown-linux-gnueabihf fi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo ${UNAME_MACHINE}-axis-linux-gnu exit ;; frv:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; hexagon:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; tile*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NEO-?:NONSTOP_KERNEL:*:*) echo neo-tandem-nsk${UNAME_RELEASE} exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; x86_64:VMkernel:*:*) echo ${UNAME_MACHINE}-unknown-esx exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gtick-0.5.2/COPYING0000644000175000017500000010451310660406274010604 00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 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 3 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, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . gtick-0.5.2/intl/0000755000175000017500000000000012116334674010575 500000000000000gtick-0.5.2/intl/printf-parse.h0000644000175000017500000000431211617270153013274 00000000000000/* Parse printf format string. Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PRINTF_PARSE_H #define _PRINTF_PARSE_H #include "printf-args.h" /* Flags */ #define FLAG_GROUP 1 /* ' flag */ #define FLAG_LEFT 2 /* - flag */ #define FLAG_SHOWSIGN 4 /* + flag */ #define FLAG_SPACE 8 /* space flag */ #define FLAG_ALT 16 /* # flag */ #define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ #define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct { const char* dir_start; const char* dir_end; int flags; const char* width_start; const char* width_end; size_t width_arg_index; const char* precision_start; const char* precision_end; size_t precision_arg_index; char conversion; /* d i o u x X f e E g G c s p n U % but not C S */ size_t arg_index; } char_directive; /* A parsed format string. */ typedef struct { size_t count; char_directive *dir; size_t max_width_length; size_t max_precision_length; } char_directives; /* Parses the format string. Fills in the number N of directives, and fills in directives[0], ..., directives[N-1], and sets directives[N].dir_start to the end of the format string. Also fills in the arg_type fields of the arguments and the needed count of arguments. */ #ifdef STATIC STATIC #else extern #endif int printf_parse (const char *format, char_directives *d, arguments *a); #endif /* _PRINTF_PARSE_H */ gtick-0.5.2/intl/setlocale.c0000644000175000017500000007467411617270153012652 00000000000000/* setlocale() function that respects the locale chosen by the user. Copyright (C) 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2009. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif /* Override setlocale() and newlocale() so that when the default locale is requested (locale = "") and no relevant environment variable is set, the locale chosen by the user is used. This matters on MacOS X 10 and Windows. See the comments in localename.c, function gl_locale_name_default. */ #include #include #include /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ #if HAVE_VISIBILITY && BUILDING_DLL # define DLL_EXPORTED __attribute__((__visibility__("default"))) #elif defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED #endif #include "gettextP.h" #if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ # undef setlocale # undef newlocale /* Return string representation of locale category CATEGORY. */ static const char * category_to_name (int category) { const char *retval; switch (category) { case LC_COLLATE: retval = "LC_COLLATE"; break; case LC_CTYPE: retval = "LC_CTYPE"; break; case LC_MONETARY: retval = "LC_MONETARY"; break; case LC_NUMERIC: retval = "LC_NUMERIC"; break; case LC_TIME: retval = "LC_TIME"; break; case LC_MESSAGES: retval = "LC_MESSAGES"; break; default: /* If you have a better idea for a default value let me know. */ retval = "LC_XXX"; } return retval; } # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* The native Win32 setlocale() function expects locale names of the form "German" or "German_Germany" or "DEU", but not "de" or "de_DE". We need to convert the names from the form with ISO 639 language code and ISO 3166 country code to the form with English names or with three-letter identifier. The three-letter identifiers known by a Windows XP SP2 or SP3 are: AFK Afrikaans_South Africa.1252 ARA Arabic_Saudi Arabia.1256 ARB Arabic_Lebanon.1256 ARE Arabic_Egypt.1256 ARG Arabic_Algeria.1256 ARH Arabic_Bahrain.1256 ARI Arabic_Iraq.1256 ARJ Arabic_Jordan.1256 ARK Arabic_Kuwait.1256 ARL Arabic_Libya.1256 ARM Arabic_Morocco.1256 ARO Arabic_Oman.1256 ARQ Arabic_Qatar.1256 ARS Arabic_Syria.1256 ART Arabic_Tunisia.1256 ARU Arabic_U.A.E..1256 ARY Arabic_Yemen.1256 AZE Azeri (Latin)_Azerbaijan.1254 BEL Belarusian_Belarus.1251 BGR Bulgarian_Bulgaria.1251 BSB Bosnian_Bosnia and Herzegovina.1250 BSC Bosnian (Cyrillic)_Bosnia and Herzegovina.1250 (wrong encoding!) CAT Catalan_Spain.1252 CHH Chinese_Hong Kong S.A.R..950 CHI Chinese_Singapore.936 CHS Chinese_People's Republic of China.936 CHT Chinese_Taiwan.950 CSY Czech_Czech Republic.1250 CYM Welsh_United Kingdom.1252 DAN Danish_Denmark.1252 DEA German_Austria.1252 DEC German_Liechtenstein.1252 DEL German_Luxembourg.1252 DES German_Switzerland.1252 DEU German_Germany.1252 ELL Greek_Greece.1253 ENA English_Australia.1252 ENB English_Caribbean.1252 ENC English_Canada.1252 ENG English_United Kingdom.1252 ENI English_Ireland.1252 ENJ English_Jamaica.1252 ENL English_Belize.1252 ENP English_Republic of the Philippines.1252 ENS English_South Africa.1252 ENT English_Trinidad and Tobago.1252 ENU English_United States.1252 ENW English_Zimbabwe.1252 ENZ English_New Zealand.1252 ESA Spanish_Panama.1252 ESB Spanish_Bolivia.1252 ESC Spanish_Costa Rica.1252 ESD Spanish_Dominican Republic.1252 ESE Spanish_El Salvador.1252 ESF Spanish_Ecuador.1252 ESG Spanish_Guatemala.1252 ESH Spanish_Honduras.1252 ESI Spanish_Nicaragua.1252 ESL Spanish_Chile.1252 ESM Spanish_Mexico.1252 ESN Spanish_Spain.1252 ESO Spanish_Colombia.1252 ESP Spanish_Spain.1252 ESR Spanish_Peru.1252 ESS Spanish_Argentina.1252 ESU Spanish_Puerto Rico.1252 ESV Spanish_Venezuela.1252 ESY Spanish_Uruguay.1252 ESZ Spanish_Paraguay.1252 ETI Estonian_Estonia.1257 EUQ Basque_Spain.1252 FAR Farsi_Iran.1256 FIN Finnish_Finland.1252 FOS Faroese_Faroe Islands.1252 FPO Filipino_Philippines.1252 FRA French_France.1252 FRB French_Belgium.1252 FRC French_Canada.1252 FRL French_Luxembourg.1252 FRM French_Principality of Monaco.1252 FRS French_Switzerland.1252 FYN Frisian_Netherlands.1252 GLC Galician_Spain.1252 HEB Hebrew_Israel.1255 HRB Croatian_Bosnia and Herzegovina.1250 HRV Croatian_Croatia.1250 HUN Hungarian_Hungary.1250 IND Indonesian_Indonesia.1252 IRE Irish_Ireland.1252 ISL Icelandic_Iceland.1252 ITA Italian_Italy.1252 ITS Italian_Switzerland.1252 IUK Inuktitut (Latin)_Canada.1252 JPN Japanese_Japan.932 KKZ Kazakh_Kazakhstan.1251 KOR Korean_Korea.949 KYR Kyrgyz_Kyrgyzstan.1251 LBX Luxembourgish_Luxembourg.1252 LTH Lithuanian_Lithuania.1257 LVI Latvian_Latvia.1257 MKI FYRO Macedonian_Former Yugoslav Republic of Macedonia.1251 MON Mongolian_Mongolia.1251 MPD Mapudungun_Chile.1252 MSB Malay_Brunei Darussalam.1252 MSL Malay_Malaysia.1252 MWK Mohawk_Canada.1252 NLB Dutch_Belgium.1252 NLD Dutch_Netherlands.1252 NON Norwegian-Nynorsk_Norway.1252 NOR Norwegian (Bokmål)_Norway.1252 NSO Northern Sotho_South Africa.1252 PLK Polish_Poland.1250 PTB Portuguese_Brazil.1252 PTG Portuguese_Portugal.1252 QUB Quechua_Bolivia.1252 QUE Quechua_Ecuador.1252 QUP Quechua_Peru.1252 RMC Romansh_Switzerland.1252 ROM Romanian_Romania.1250 RUS Russian_Russia.1251 SKY Slovak_Slovakia.1250 SLV Slovenian_Slovenia.1250 SMA Sami (Southern)_Norway.1252 SMB Sami (Southern)_Sweden.1252 SME Sami (Northern)_Norway.1252 SMF Sami (Northern)_Sweden.1252 SMG Sami (Northern)_Finland.1252 SMJ Sami (Lule)_Norway.1252 SMK Sami (Lule)_Sweden.1252 SMN Sami (Inari)_Finland.1252 SMS Sami (Skolt)_Finland.1252 SQI Albanian_Albania.1250 SRB Serbian (Cyrillic)_Serbia and Montenegro.1251 SRL Serbian (Latin)_Serbia and Montenegro.1250 SRN Serbian (Cyrillic)_Bosnia and Herzegovina.1251 SRS Serbian (Latin)_Bosnia and Herzegovina.1250 SVE Swedish_Sweden.1252 SVF Swedish_Finland.1252 SWK Swahili_Kenya.1252 THA Thai_Thailand.874 TRK Turkish_Turkey.1254 TSN Tswana_South Africa.1252 TTT Tatar_Russia.1251 UKR Ukrainian_Ukraine.1251 URD Urdu_Islamic Republic of Pakistan.1256 USA English_United States.1252 UZB Uzbek (Latin)_Uzbekistan.1254 VIT Vietnamese_Viet Nam.1258 XHO Xhosa_South Africa.1252 ZHH Chinese_Hong Kong S.A.R..950 ZHI Chinese_Singapore.936 ZHM Chinese_Macau S.A.R..950 ZUL Zulu_South Africa.1252 */ /* Table from ISO 639 language code, optionally with country or script suffix, to English name. Keep in sync with the gl_locale_name_from_win32_LANGID function in localename.c! */ struct table_entry { const char *code; const char *english; }; static const struct table_entry language_table[] = { { "af", "Afrikaans" }, { "am", "Amharic" }, { "ar", "Arabic" }, { "arn", "Mapudungun" }, { "as", "Assamese" }, { "az@cyrillic", "Azeri (Cyrillic)" }, { "az@latin", "Azeri (Latin)" }, { "ba", "Bashkir" }, { "be", "Belarusian" }, { "ber", "Tamazight" }, { "ber@arabic", "Tamazight (Arabic)" }, { "ber@latin", "Tamazight (Latin)" }, { "bg", "Bulgarian" }, { "bin", "Edo" }, { "bn", "Bengali" }, { "bn_BD", "Bengali (Bangladesh)" }, { "bn_IN", "Bengali (India)" }, { "bnt", "Sutu" }, { "bo", "Tibetan" }, { "br", "Breton" }, { "bs", "BSB" }, /* "Bosnian (Latin)" */ { "bs@cyrillic", "BSC" }, /* Bosnian (Cyrillic) */ { "ca", "Catalan" }, { "chr", "Cherokee" }, { "co", "Corsican" }, { "cpe", "Hawaiian" }, { "cs", "Czech" }, { "cy", "Welsh" }, { "da", "Danish" }, { "de", "German" }, { "dsb", "Lower Sorbian" }, { "dv", "Divehi" }, { "el", "Greek" }, { "en", "English" }, { "es", "Spanish" }, { "et", "Estonian" }, { "eu", "Basque" }, { "fa", "Farsi" }, { "ff", "Fulfulde" }, { "fi", "Finnish" }, { "fo", "Faroese" }, /* "Faeroese" does not work */ { "fr", "French" }, { "fy", "Frisian" }, { "ga", "IRE" }, /* Gaelic (Ireland) */ { "gd", "Gaelic (Scotland)" }, { "gd", "Scottish Gaelic" }, { "gl", "Galician" }, { "gn", "Guarani" }, { "gsw", "Alsatian" }, { "gu", "Gujarati" }, { "ha", "Hausa" }, { "he", "Hebrew" }, { "hi", "Hindi" }, { "hr", "Croatian" }, { "hsb", "Upper Sorbian" }, { "hu", "Hungarian" }, { "hy", "Armenian" }, { "id", "Indonesian" }, { "ig", "Igbo" }, { "ii", "Yi" }, { "is", "Icelandic" }, { "it", "Italian" }, { "iu", "IUK" }, /* Inuktitut */ { "ja", "Japanese" }, { "ka", "Georgian" }, { "kk", "Kazakh" }, { "kl", "Greenlandic" }, { "km", "Cambodian" }, { "km", "Khmer" }, { "kn", "Kannada" }, { "ko", "Korean" }, { "kok", "Konkani" }, { "kr", "Kanuri" }, { "ks", "Kashmiri" }, { "ks_IN", "Kashmiri_India" }, { "ks_PK", "Kashmiri (Arabic)_Pakistan" }, { "ky", "Kyrgyz" }, { "la", "Latin" }, { "lb", "Luxembourgish" }, { "lo", "Lao" }, { "lt", "Lithuanian" }, { "lv", "Latvian" }, { "mi", "Maori" }, { "mk", "FYRO Macedonian" }, { "mk", "Macedonian" }, { "ml", "Malayalam" }, { "mn", "Mongolian" }, { "mni", "Manipuri" }, { "moh", "Mohawk" }, { "mr", "Marathi" }, { "ms", "Malay" }, { "mt", "Maltese" }, { "my", "Burmese" }, { "nb", "NOR" }, /* Norwegian Bokmål */ { "ne", "Nepali" }, { "nic", "Ibibio" }, { "nl", "Dutch" }, { "nn", "NON" }, /* Norwegian Nynorsk */ { "no", "Norwegian" }, { "nso", "Northern Sotho" }, { "nso", "Sepedi" }, { "oc", "Occitan" }, { "om", "Oromo" }, { "or", "Oriya" }, { "pa", "Punjabi" }, { "pap", "Papiamentu" }, { "pl", "Polish" }, { "prs", "Dari" }, { "ps", "Pashto" }, { "pt", "Portuguese" }, { "qu", "Quechua" }, { "qut", "K'iche'" }, { "rm", "Romansh" }, { "ro", "Romanian" }, { "ru", "Russian" }, { "rw", "Kinyarwanda" }, { "sa", "Sanskrit" }, { "sah", "Yakut" }, { "sd", "Sindhi" }, { "se", "Sami (Northern)" }, { "se", "Northern Sami" }, { "si", "Sinhalese" }, { "sk", "Slovak" }, { "sl", "Slovenian" }, { "sma", "Sami (Southern)" }, { "sma", "Southern Sami" }, { "smj", "Sami (Lule)" }, { "smj", "Lule Sami" }, { "smn", "Sami (Inari)" }, { "smn", "Inari Sami" }, { "sms", "Sami (Skolt)" }, { "sms", "Skolt Sami" }, { "so", "Somali" }, { "sq", "Albanian" }, { "sr", "Serbian (Latin)" }, { "sr@cyrillic", "SRB" }, /* Serbian (Cyrillic) */ { "sw", "Swahili" }, { "syr", "Syriac" }, { "ta", "Tamil" }, { "te", "Telugu" }, { "tg", "Tajik" }, { "th", "Thai" }, { "ti", "Tigrinya" }, { "tk", "Turkmen" }, { "tl", "Filipino" }, { "tn", "Tswana" }, { "tr", "Turkish" }, { "ts", "Tsonga" }, { "tt", "Tatar" }, { "ug", "Uighur" }, { "uk", "Ukrainian" }, { "ur", "Urdu" }, { "uz", "Uzbek" }, { "uz", "Uzbek (Latin)" }, { "uz@cyrillic", "Uzbek (Cyrillic)" }, { "ve", "Venda" }, { "vi", "Vietnamese" }, { "wen", "Sorbian" }, { "wo", "Wolof" }, { "xh", "Xhosa" }, { "yi", "Yiddish" }, { "yo", "Yoruba" }, { "zh", "Chinese" }, { "zu", "Zulu" } }; /* Table from ISO 3166 country code to English name. Keep in sync with the gl_locale_name_from_win32_LANGID function in localename.c! */ static const struct table_entry country_table[] = { { "AE", "U.A.E." }, { "AF", "Afghanistan" }, { "AL", "Albania" }, { "AM", "Armenia" }, { "AN", "Netherlands Antilles" }, { "AR", "Argentina" }, { "AT", "Austria" }, { "AU", "Australia" }, { "AZ", "Azerbaijan" }, { "BA", "Bosnia and Herzegovina" }, { "BD", "Bangladesh" }, { "BE", "Belgium" }, { "BG", "Bulgaria" }, { "BH", "Bahrain" }, { "BN", "Brunei Darussalam" }, { "BO", "Bolivia" }, { "BR", "Brazil" }, { "BT", "Bhutan" }, { "BY", "Belarus" }, { "BZ", "Belize" }, { "CA", "Canada" }, { "CG", "Congo" }, { "CH", "Switzerland" }, { "CI", "Cote d'Ivoire" }, { "CL", "Chile" }, { "CM", "Cameroon" }, { "CN", "People's Republic of China" }, { "CO", "Colombia" }, { "CR", "Costa Rica" }, { "CS", "Serbia and Montenegro" }, { "CZ", "Czech Republic" }, { "DE", "Germany" }, { "DK", "Denmark" }, { "DO", "Dominican Republic" }, { "DZ", "Algeria" }, { "EC", "Ecuador" }, { "EE", "Estonia" }, { "EG", "Egypt" }, { "ER", "Eritrea" }, { "ES", "Spain" }, { "ET", "Ethiopia" }, { "FI", "Finland" }, { "FO", "Faroe Islands" }, { "FR", "France" }, { "GB", "United Kingdom" }, { "GD", "Caribbean" }, { "GE", "Georgia" }, { "GL", "Greenland" }, { "GR", "Greece" }, { "GT", "Guatemala" }, { "HK", "Hong Kong" }, { "HK", "Hong Kong S.A.R." }, { "HN", "Honduras" }, { "HR", "Croatia" }, { "HT", "Haiti" }, { "HU", "Hungary" }, { "ID", "Indonesia" }, { "IE", "Ireland" }, { "IL", "Israel" }, { "IN", "India" }, { "IQ", "Iraq" }, { "IR", "Iran" }, { "IS", "Iceland" }, { "IT", "Italy" }, { "JM", "Jamaica" }, { "JO", "Jordan" }, { "JP", "Japan" }, { "KE", "Kenya" }, { "KG", "Kyrgyzstan" }, { "KH", "Cambodia" }, { "KR", "South Korea" }, { "KW", "Kuwait" }, { "KZ", "Kazakhstan" }, { "LA", "Laos" }, { "LB", "Lebanon" }, { "LI", "Liechtenstein" }, { "LK", "Sri Lanka" }, { "LT", "Lithuania" }, { "LU", "Luxembourg" }, { "LV", "Latvia" }, { "LY", "Libya" }, { "MA", "Morocco" }, { "MC", "Principality of Monaco" }, { "MD", "Moldava" }, { "MD", "Moldova" }, { "ME", "Montenegro" }, { "MK", "Former Yugoslav Republic of Macedonia" }, { "ML", "Mali" }, { "MM", "Myanmar" }, { "MN", "Mongolia" }, { "MO", "Macau S.A.R." }, { "MT", "Malta" }, { "MV", "Maldives" }, { "MX", "Mexico" }, { "MY", "Malaysia" }, { "NG", "Nigeria" }, { "NI", "Nicaragua" }, { "NL", "Netherlands" }, { "NO", "Norway" }, { "NP", "Nepal" }, { "NZ", "New Zealand" }, { "OM", "Oman" }, { "PA", "Panama" }, { "PE", "Peru" }, { "PH", "Philippines" }, { "PK", "Islamic Republic of Pakistan" }, { "PL", "Poland" }, { "PR", "Puerto Rico" }, { "PT", "Portugal" }, { "PY", "Paraguay" }, { "QA", "Qatar" }, { "RE", "Reunion" }, { "RO", "Romania" }, { "RS", "Serbia" }, { "RU", "Russia" }, { "RW", "Rwanda" }, { "SA", "Saudi Arabia" }, { "SE", "Sweden" }, { "SG", "Singapore" }, { "SI", "Slovenia" }, { "SK", "Slovak" }, { "SN", "Senegal" }, { "SO", "Somalia" }, { "SR", "Suriname" }, { "SV", "El Salvador" }, { "SY", "Syria" }, { "TH", "Thailand" }, { "TJ", "Tajikistan" }, { "TM", "Turkmenistan" }, { "TN", "Tunisia" }, { "TR", "Turkey" }, { "TT", "Trinidad and Tobago" }, { "TW", "Taiwan" }, { "TZ", "Tanzania" }, { "UA", "Ukraine" }, { "US", "United States" }, { "UY", "Uruguay" }, { "VA", "Vatican" }, { "VE", "Venezuela" }, { "VN", "Viet Nam" }, { "YE", "Yemen" }, { "ZA", "South Africa" }, { "ZW", "Zimbabwe" } }; /* Given a string STRING, find the set of indices i such that TABLE[i].code is the given STRING. It is a range [lo,hi-1]. */ typedef struct { size_t lo; size_t hi; } range_t; static void search (const struct table_entry *table, size_t table_size, const char *string, range_t *result) { /* The table is sorted. Perform a binary search. */ size_t hi = table_size; size_t lo = 0; while (lo < hi) { /* Invariant: for i < lo, strcmp (table[i].code, string) < 0, for i >= hi, strcmp (table[i].code, string) > 0. */ size_t mid = (hi + lo) >> 1; /* >= lo, < hi */ int cmp = strcmp (table[mid].code, string); if (cmp < 0) lo = mid + 1; else if (cmp > 0) hi = mid; else { /* Found an i with strcmp (language_table[i].code, string) == 0. Find the entire interval of such i. */ { size_t i; for (i = mid; i > lo; ) { i--; if (strcmp (table[i].code, string) < 0) { lo = i + 1; break; } } } { size_t i; for (i = mid; i < hi; i++) { if (strcmp (table[i].code, string) > 0) { hi = i; break; } } } /* The set of i with strcmp (language_table[i].code, string) == 0 is the interval [lo, hi-1]. */ break; } } result->lo = lo; result->hi = hi; } /* Like setlocale, but accept also locale names in the form ll or ll_CC, where ll is an ISO 639 language code and CC is an ISO 3166 country code. */ static char * setlocale_unixlike (int category, const char *locale) { char *result; char llCC_buf[64]; char ll_buf[64]; char CC_buf[64]; /* First, try setlocale with the original argument unchanged. */ result = setlocale (category, locale); if (result != NULL) return result; /* Otherwise, assume the argument is in the form language[_territory][.codeset][@modifier] and try to map it using the tables. */ if (strlen (locale) < sizeof (llCC_buf)) { /* Second try: Remove the codeset part. */ { const char *p = locale; char *q = llCC_buf; /* Copy the part before the dot. */ for (; *p != '\0' && *p != '.'; p++, q++) *q = *p; if (*p == '.') /* Skip the part up to the '@', if any. */ for (; *p != '\0' && *p != '@'; p++) ; /* Copy the part starting with '@', if any. */ for (; *p != '\0'; p++, q++) *q = *p; *q = '\0'; } /* llCC_buf now contains language[_territory][@modifier] */ if (strcmp (llCC_buf, locale) != 0) { result = setlocale (category, llCC_buf); if (result != NULL) return result; } /* Look it up in language_table. */ { range_t range; size_t i; search (language_table, sizeof (language_table) / sizeof (language_table[0]), llCC_buf, &range); for (i = range.lo; i < range.hi; i++) { /* Try the replacement in language_table[i]. */ result = setlocale (category, language_table[i].english); if (result != NULL) return result; } } /* Split language[_territory][@modifier] into ll_buf = language[@modifier] and CC_buf = territory */ { const char *underscore = strchr (llCC_buf, '_'); if (underscore != NULL) { const char *territory_start = underscore + 1; const char *territory_end = strchr (territory_start, '@'); if (territory_end == NULL) territory_end = territory_start + strlen (territory_start); memcpy (ll_buf, llCC_buf, underscore - llCC_buf); strcpy (ll_buf + (underscore - llCC_buf), territory_end); memcpy (CC_buf, territory_start, territory_end - territory_start); CC_buf[territory_end - territory_start] = '\0'; { /* Look up ll_buf in language_table and CC_buf in country_table. */ range_t language_range; search (language_table, sizeof (language_table) / sizeof (language_table[0]), ll_buf, &language_range); if (language_range.lo < language_range.hi) { range_t country_range; search (country_table, sizeof (country_table) / sizeof (country_table[0]), CC_buf, &country_range); if (country_range.lo < country_range.hi) { size_t i; size_t j; for (i = language_range.lo; i < language_range.hi; i++) for (j = country_range.lo; j < country_range.hi; j++) { /* Concatenate the replacements. */ const char *part1 = language_table[i].english; size_t part1_len = strlen (part1); const char *part2 = country_table[j].english; size_t part2_len = strlen (part2) + 1; char buf[64+64]; if (!(part1_len + 1 + part2_len <= sizeof (buf))) abort (); memcpy (buf, part1, part1_len); buf[part1_len] = '_'; memcpy (buf + part1_len + 1, part2, part2_len); /* Try the concatenated replacements. */ result = setlocale (category, buf); if (result != NULL) return result; } } /* Try omitting the country entirely. This may set a locale corresponding to the wrong country, but is better than failing entirely. */ { size_t i; for (i = language_range.lo; i < language_range.hi; i++) { /* Try only the language replacement. */ result = setlocale (category, language_table[i].english); if (result != NULL) return result; } } } } } } } /* Failed. */ return NULL; } # else # define setlocale_unixlike setlocale # endif # if LC_MESSAGES == 1729 /* The system does not store an LC_MESSAGES locale category. Do it here. */ static char lc_messages_name[64] = "C"; /* Like setlocale, but support also LC_MESSAGES. */ static char * setlocale_single (int category, const char *locale) { if (category == LC_MESSAGES) { if (locale != NULL) { lc_messages_name[sizeof (lc_messages_name) - 1] = '\0'; strncpy (lc_messages_name, locale, sizeof (lc_messages_name) - 1); } return lc_messages_name; } else return setlocale_unixlike (category, locale); } # else # define setlocale_single setlocale_unixlike # endif DLL_EXPORTED char * libintl_setlocale (int category, const char *locale) { if (locale != NULL && locale[0] == '\0') { /* A request to the set the current locale to the default locale. */ if (category == LC_ALL) { /* Set LC_CTYPE first. Then the other categories. */ static int const categories[] = { LC_NUMERIC, LC_TIME, LC_COLLATE, LC_MONETARY, LC_MESSAGES }; char *saved_locale; const char *base_name; unsigned int i; /* Back up the old locale, in case one of the steps fails. */ saved_locale = setlocale (LC_ALL, NULL); if (saved_locale == NULL) return NULL; saved_locale = strdup (saved_locale); if (saved_locale == NULL) return NULL; /* Set LC_CTYPE category. Set all other categories (except possibly LC_MESSAGES) to the same value in the same call; this is likely to save calls. */ base_name = gl_locale_name_environ (LC_CTYPE, category_to_name (LC_CTYPE)); if (base_name == NULL) base_name = gl_locale_name_default (); if (setlocale_unixlike (LC_ALL, base_name) == NULL) goto fail; for (i = 0; i < sizeof (categories) / sizeof (categories[0]); i++) { int cat = categories[i]; const char *name; name = gl_locale_name_environ (cat, category_to_name (cat)); if (name == NULL) name = gl_locale_name_default (); /* If name is the same as base_name, it has already been set through the setlocale call before the loop. */ if (strcmp (name, base_name) != 0 # if LC_MESSAGES == 1729 || cat == LC_MESSAGES # endif ) if (setlocale_single (cat, name) == NULL) goto fail; } /* All steps were successful. */ free (saved_locale); return setlocale (LC_ALL, NULL); fail: if (saved_locale[0] != '\0') /* don't risk an endless recursion */ setlocale (LC_ALL, saved_locale); free (saved_locale); return NULL; } else { const char *name = gl_locale_name_environ (category, category_to_name (category)); if (name == NULL) name = gl_locale_name_default (); return setlocale_single (category, name); } } else return setlocale_single (category, locale); } # if HAVE_NEWLOCALE DLL_EXPORTED locale_t libintl_newlocale (int category_mask, const char *locale, locale_t base) { if (category_mask != 0 && locale != NULL && locale[0] == '\0') { /* A request to construct a locale_t object that refers to the default locale. */ /* Set LC_CTYPE first. Then the other categories. */ static struct { int cat; int mask; } const categories[] = { { LC_CTYPE, LC_CTYPE_MASK }, { LC_NUMERIC, LC_NUMERIC_MASK }, { LC_TIME, LC_TIME_MASK }, { LC_COLLATE, LC_COLLATE_MASK }, { LC_MONETARY, LC_MONETARY_MASK }, { LC_MESSAGES, LC_MESSAGES_MASK } }; locale_t orig_base = base; if ((LC_ALL_MASK & ~category_mask) == 0) { const char *base_name; unsigned int i; /* Set LC_CTYPE category. Set all other categories (except possibly LC_MESSAGES) to the same value in the same call; this is likely to save calls. */ base_name = gl_locale_name_environ (LC_CTYPE, category_to_name (LC_CTYPE)); if (base_name == NULL) base_name = gl_locale_name_default (); base = newlocale (LC_ALL_MASK, base_name, base); if (base == NULL) return NULL; for (i = 1; i < sizeof (categories) / sizeof (categories[0]); i++) { int category = categories[i].cat; int category_mask = categories[i].mask; const char *name; name = gl_locale_name_environ (category, category_to_name (category)); if (name == NULL) name = gl_locale_name_default (); /* If name is the same as base_name, it has already been set through the setlocale call before the loop. */ if (strcmp (name, base_name) != 0) { locale_t copy = newlocale (category_mask, name, base); if (copy == NULL) goto fail; /* No need to call freelocale (base) if copy != base; the newlocale function already takes care of doing it. */ base = copy; } } } else { unsigned int i; for (i = 0; i < sizeof (categories) / sizeof (categories[0]); i++) { int cat_mask = categories[i].mask; if ((category_mask & cat_mask) != 0) { int cat = categories[i].cat; const char *name; locale_t copy; name = gl_locale_name_environ (cat, category_to_name (cat)); if (name == NULL) name = gl_locale_name_default (); copy = newlocale (cat_mask, name, base); if (copy == NULL) goto fail; /* No need to call freelocale (base) if copy != base; the newlocale function already takes care of doing it. */ base = copy; } } } /* All steps were successful. */ return base; fail: if (base != NULL && orig_base == NULL) { int saved_errno = errno; freelocale (base); errno = saved_errno; } return NULL; } else return newlocale (category_mask, locale, base); } # endif #endif gtick-0.5.2/intl/osdep.c0000644000175000017500000000174110661555200011767 00000000000000/* OS dependent parts of libintl. Copyright (C) 2001-2002, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #if defined __CYGWIN__ # include "intl-exports.c" #elif defined __EMX__ # include "os2compat.c" #else /* Avoid AIX compiler warning. */ typedef int dummy; #endif gtick-0.5.2/intl/locale.alias0000644000175000017500000000510611617270152012764 00000000000000# Locale name alias data base. # Copyright (C) 1996-2001,2003,2007 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # The format of this file is the same as for the corresponding file of # the X Window System, which normally can be found in # /usr/lib/X11/locale/locale.alias # A single line contains two fields: an alias and a substitution value. # All entries are case independent. # Note: This file is obsolete and is kept around for the time being for # backward compatibility. Nobody should rely on the names defined here. # Locales should always be specified by their full name. # Packages using this file: bokmal nb_NO.ISO-8859-1 bokml nb_NO.ISO-8859-1 catalan ca_ES.ISO-8859-1 croatian hr_HR.ISO-8859-2 czech cs_CZ.ISO-8859-2 danish da_DK.ISO-8859-1 dansk da_DK.ISO-8859-1 deutsch de_DE.ISO-8859-1 dutch nl_NL.ISO-8859-1 eesti et_EE.ISO-8859-1 estonian et_EE.ISO-8859-1 finnish fi_FI.ISO-8859-1 franais fr_FR.ISO-8859-1 french fr_FR.ISO-8859-1 galego gl_ES.ISO-8859-1 galician gl_ES.ISO-8859-1 german de_DE.ISO-8859-1 greek el_GR.ISO-8859-7 hebrew he_IL.ISO-8859-8 hrvatski hr_HR.ISO-8859-2 hungarian hu_HU.ISO-8859-2 icelandic is_IS.ISO-8859-1 italian it_IT.ISO-8859-1 japanese ja_JP.eucJP japanese.euc ja_JP.eucJP ja_JP ja_JP.eucJP ja_JP.ujis ja_JP.eucJP japanese.sjis ja_JP.SJIS korean ko_KR.eucKR korean.euc ko_KR.eucKR ko_KR ko_KR.eucKR lithuanian lt_LT.ISO-8859-13 no_NO nb_NO.ISO-8859-1 no_NO.ISO-8859-1 nb_NO.ISO-8859-1 norwegian nb_NO.ISO-8859-1 nynorsk nn_NO.ISO-8859-1 polish pl_PL.ISO-8859-2 portuguese pt_PT.ISO-8859-1 romanian ro_RO.ISO-8859-2 russian ru_RU.ISO-8859-5 slovak sk_SK.ISO-8859-2 slovene sl_SI.ISO-8859-2 slovenian sl_SI.ISO-8859-2 spanish es_ES.ISO-8859-1 swedish sv_SE.ISO-8859-1 thai th_TH.TIS-620 turkish tr_TR.ISO-8859-9 gtick-0.5.2/intl/l10nflist.c0000644000175000017500000002557511617270151012505 00000000000000/* Copyright (C) 1995-1999, 2000-2007 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for stpcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #if defined _LIBC || defined HAVE_ARGZ_H # include #endif #include #include #include #include "loadinfo.h" /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # ifndef stpcpy # define stpcpy(dest, src) __stpcpy(dest, src) # endif #else # ifndef HAVE_STPCPY static char *stpcpy (char *dest, const char *src); # endif #endif /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, it may be concatenated to a directory pathname. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) #endif /* Define function which are usually not available. */ #ifdef _LIBC # define __argz_count(argz, len) INTUSE(__argz_count) (argz, len) #elif defined HAVE_ARGZ_COUNT # undef __argz_count # define __argz_count argz_count #else /* Returns the number of strings in ARGZ. */ static size_t argz_count__ (const char *argz, size_t len) { size_t count = 0; while (len > 0) { size_t part_len = strlen (argz); argz += part_len + 1; len -= part_len + 1; count++; } return count; } # undef __argz_count # define __argz_count(argz, len) argz_count__ (argz, len) #endif /* !_LIBC && !HAVE_ARGZ_COUNT */ #ifdef _LIBC # define __argz_stringify(argz, len, sep) \ INTUSE(__argz_stringify) (argz, len, sep) #elif defined HAVE_ARGZ_STRINGIFY # undef __argz_stringify # define __argz_stringify argz_stringify #else /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's except the last into the character SEP. */ static void argz_stringify__ (char *argz, size_t len, int sep) { while (len > 0) { size_t part_len = strlen (argz); argz += part_len; len -= part_len + 1; if (len > 0) *argz++ = sep; } } # undef __argz_stringify # define __argz_stringify(argz, len, sep) argz_stringify__ (argz, len, sep) #endif /* !_LIBC && !HAVE_ARGZ_STRINGIFY */ #ifdef _LIBC #elif defined HAVE_ARGZ_NEXT # undef __argz_next # define __argz_next argz_next #else static char * argz_next__ (char *argz, size_t argz_len, const char *entry) { if (entry) { if (entry < argz + argz_len) entry = strchr (entry, '\0') + 1; return entry >= argz + argz_len ? NULL : (char *) entry; } else if (argz_len > 0) return argz; else return 0; } # undef __argz_next # define __argz_next(argz, len, entry) argz_next__ (argz, len, entry) #endif /* !_LIBC && !HAVE_ARGZ_NEXT */ /* Return number of bits set in X. */ static inline int pop (int x) { /* We assume that no more than 16 bits are used. */ x = ((x & ~0x5555) >> 1) + (x & 0x5555); x = ((x & ~0x3333) >> 2) + (x & 0x3333); x = ((x >> 4) + x) & 0x0f0f; x = ((x >> 8) + x) & 0xff; return x; } struct loaded_l10nfile * _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, const char *dirlist, size_t dirlist_len, int mask, const char *language, const char *territory, const char *codeset, const char *normalized_codeset, const char *modifier, const char *filename, int do_allocate) { char *abs_filename; struct loaded_l10nfile **lastp; struct loaded_l10nfile *retval; char *cp; size_t dirlist_count; size_t entries; int cnt; /* If LANGUAGE contains an absolute directory specification, we ignore DIRLIST. */ if (IS_ABSOLUTE_PATH (language)) dirlist_len = 0; /* Allocate room for the full file name. */ abs_filename = (char *) malloc (dirlist_len + strlen (language) + ((mask & XPG_TERRITORY) != 0 ? strlen (territory) + 1 : 0) + ((mask & XPG_CODESET) != 0 ? strlen (codeset) + 1 : 0) + ((mask & XPG_NORM_CODESET) != 0 ? strlen (normalized_codeset) + 1 : 0) + ((mask & XPG_MODIFIER) != 0 ? strlen (modifier) + 1 : 0) + 1 + strlen (filename) + 1); if (abs_filename == NULL) return NULL; /* Construct file name. */ cp = abs_filename; if (dirlist_len > 0) { memcpy (cp, dirlist, dirlist_len); __argz_stringify (cp, dirlist_len, PATH_SEPARATOR); cp += dirlist_len; cp[-1] = '/'; } cp = stpcpy (cp, language); if ((mask & XPG_TERRITORY) != 0) { *cp++ = '_'; cp = stpcpy (cp, territory); } if ((mask & XPG_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, codeset); } if ((mask & XPG_NORM_CODESET) != 0) { *cp++ = '.'; cp = stpcpy (cp, normalized_codeset); } if ((mask & XPG_MODIFIER) != 0) { *cp++ = '@'; cp = stpcpy (cp, modifier); } *cp++ = '/'; stpcpy (cp, filename); /* Look in list of already loaded domains whether it is already available. */ lastp = l10nfile_list; for (retval = *l10nfile_list; retval != NULL; retval = retval->next) if (retval->filename != NULL) { int compare = strcmp (retval->filename, abs_filename); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It's not in the list. */ retval = NULL; break; } lastp = &retval->next; } if (retval != NULL || do_allocate == 0) { free (abs_filename); return retval; } dirlist_count = (dirlist_len > 0 ? __argz_count (dirlist, dirlist_len) : 1); /* Allocate a new loaded_l10nfile. */ retval = (struct loaded_l10nfile *) malloc (sizeof (*retval) + (((dirlist_count << pop (mask)) + (dirlist_count > 1 ? 1 : 0)) * sizeof (struct loaded_l10nfile *))); if (retval == NULL) { free (abs_filename); return NULL; } retval->filename = abs_filename; /* We set retval->data to NULL here; it is filled in later. Setting retval->decided to 1 here means that retval does not correspond to a real file (dirlist_count > 1) or is not worth looking up (if an unnormalized codeset was specified). */ retval->decided = (dirlist_count > 1 || ((mask & XPG_CODESET) != 0 && (mask & XPG_NORM_CODESET) != 0)); retval->data = NULL; retval->next = *lastp; *lastp = retval; entries = 0; /* Recurse to fill the inheritance list of RETVAL. If the DIRLIST is a real list (i.e. DIRLIST_COUNT > 1), the RETVAL entry does not correspond to a real file; retval->filename contains colons. In this case we loop across all elements of DIRLIST and across all bit patterns dominated by MASK. If the DIRLIST is a single directory or entirely redundant (i.e. DIRLIST_COUNT == 1), we loop across all bit patterns dominated by MASK, excluding MASK itself. In either case, we loop down from MASK to 0. This has the effect that the extra bits in the locale name are dropped in this order: first the modifier, then the territory, then the codeset, then the normalized_codeset. */ for (cnt = dirlist_count > 1 ? mask : mask - 1; cnt >= 0; --cnt) if ((cnt & ~mask) == 0 && !((cnt & XPG_CODESET) != 0 && (cnt & XPG_NORM_CODESET) != 0)) { if (dirlist_count > 1) { /* Iterate over all elements of the DIRLIST. */ char *dir = NULL; while ((dir = __argz_next ((char *) dirlist, dirlist_len, dir)) != NULL) retval->successor[entries++] = _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1, cnt, language, territory, codeset, normalized_codeset, modifier, filename, 1); } else retval->successor[entries++] = _nl_make_l10nflist (l10nfile_list, dirlist, dirlist_len, cnt, language, territory, codeset, normalized_codeset, modifier, filename, 1); } retval->successor[entries] = NULL; return retval; } /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. The return value is dynamically allocated and has to be freed by the caller. */ const char * _nl_normalize_codeset (const char *codeset, size_t name_len) { size_t len = 0; int only_digit = 1; char *retval; char *wp; size_t cnt; for (cnt = 0; cnt < name_len; ++cnt) if (isalnum ((unsigned char) codeset[cnt])) { ++len; if (isalpha ((unsigned char) codeset[cnt])) only_digit = 0; } retval = (char *) malloc ((only_digit ? 3 : 0) + len + 1); if (retval != NULL) { if (only_digit) wp = stpcpy (retval, "iso"); else wp = retval; for (cnt = 0; cnt < name_len; ++cnt) if (isalpha ((unsigned char) codeset[cnt])) *wp++ = tolower ((unsigned char) codeset[cnt]); else if (isdigit ((unsigned char) codeset[cnt])) *wp++ = codeset[cnt]; *wp = '\0'; } return (const char *) retval; } /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (char *dest, const char *src) { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif gtick-0.5.2/intl/localename.c0000644000175000017500000025072011617270152012762 00000000000000/* Determine name of the currently selected locale. Copyright (C) 1995-1999, 2000-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Ulrich Drepper , 1995. */ /* Win32 code written by Tor Lillqvist . */ /* MacOS X code written by Bruno Haible . */ #include /* Specification. */ #ifdef IN_LIBINTL # include "gettextP.h" #else # include "localename.h" #endif #include #include #include #include #include #if HAVE_USELOCALE /* MacOS X 10.5 defines the locale_t type in . */ # if defined __APPLE__ && defined __MACH__ # include # endif # include # if !defined IN_LIBINTL # include "glthread/lock.h" # endif #endif #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE # include # if HAVE_CFLOCALECOPYCURRENT # include # elif HAVE_CFPREFERENCESCOPYAPPVALUE # include # endif #endif #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ # define WIN32_LEAN_AND_MEAN # include /* List of language codes, sorted by value: 0x01 LANG_ARABIC 0x02 LANG_BULGARIAN 0x03 LANG_CATALAN 0x04 LANG_CHINESE 0x05 LANG_CZECH 0x06 LANG_DANISH 0x07 LANG_GERMAN 0x08 LANG_GREEK 0x09 LANG_ENGLISH 0x0a LANG_SPANISH 0x0b LANG_FINNISH 0x0c LANG_FRENCH 0x0d LANG_HEBREW 0x0e LANG_HUNGARIAN 0x0f LANG_ICELANDIC 0x10 LANG_ITALIAN 0x11 LANG_JAPANESE 0x12 LANG_KOREAN 0x13 LANG_DUTCH 0x14 LANG_NORWEGIAN 0x15 LANG_POLISH 0x16 LANG_PORTUGUESE 0x17 LANG_ROMANSH 0x18 LANG_ROMANIAN 0x19 LANG_RUSSIAN 0x1a LANG_CROATIAN == LANG_SERBIAN 0x1b LANG_SLOVAK 0x1c LANG_ALBANIAN 0x1d LANG_SWEDISH 0x1e LANG_THAI 0x1f LANG_TURKISH 0x20 LANG_URDU 0x21 LANG_INDONESIAN 0x22 LANG_UKRAINIAN 0x23 LANG_BELARUSIAN 0x24 LANG_SLOVENIAN 0x25 LANG_ESTONIAN 0x26 LANG_LATVIAN 0x27 LANG_LITHUANIAN 0x28 LANG_TAJIK 0x29 LANG_FARSI 0x2a LANG_VIETNAMESE 0x2b LANG_ARMENIAN 0x2c LANG_AZERI 0x2d LANG_BASQUE 0x2e LANG_SORBIAN 0x2f LANG_MACEDONIAN 0x30 LANG_SUTU 0x31 LANG_TSONGA 0x32 LANG_TSWANA 0x33 LANG_VENDA 0x34 LANG_XHOSA 0x35 LANG_ZULU 0x36 LANG_AFRIKAANS 0x37 LANG_GEORGIAN 0x38 LANG_FAEROESE 0x39 LANG_HINDI 0x3a LANG_MALTESE 0x3b LANG_SAMI 0x3c LANG_GAELIC 0x3d LANG_YIDDISH 0x3e LANG_MALAY 0x3f LANG_KAZAK 0x40 LANG_KYRGYZ 0x41 LANG_SWAHILI 0x42 LANG_TURKMEN 0x43 LANG_UZBEK 0x44 LANG_TATAR 0x45 LANG_BENGALI 0x46 LANG_PUNJABI 0x47 LANG_GUJARATI 0x48 LANG_ORIYA 0x49 LANG_TAMIL 0x4a LANG_TELUGU 0x4b LANG_KANNADA 0x4c LANG_MALAYALAM 0x4d LANG_ASSAMESE 0x4e LANG_MARATHI 0x4f LANG_SANSKRIT 0x50 LANG_MONGOLIAN 0x51 LANG_TIBETAN 0x52 LANG_WELSH 0x53 LANG_CAMBODIAN 0x54 LANG_LAO 0x55 LANG_BURMESE 0x56 LANG_GALICIAN 0x57 LANG_KONKANI 0x58 LANG_MANIPURI 0x59 LANG_SINDHI 0x5a LANG_SYRIAC 0x5b LANG_SINHALESE 0x5c LANG_CHEROKEE 0x5d LANG_INUKTITUT 0x5e LANG_AMHARIC 0x5f LANG_TAMAZIGHT 0x60 LANG_KASHMIRI 0x61 LANG_NEPALI 0x62 LANG_FRISIAN 0x63 LANG_PASHTO 0x64 LANG_TAGALOG 0x65 LANG_DIVEHI 0x66 LANG_EDO 0x67 LANG_FULFULDE 0x68 LANG_HAUSA 0x69 LANG_IBIBIO 0x6a LANG_YORUBA 0x6d LANG_BASHKIR 0x6e LANG_LUXEMBOURGISH 0x6f LANG_GREENLANDIC 0x70 LANG_IGBO 0x71 LANG_KANURI 0x72 LANG_OROMO 0x73 LANG_TIGRINYA 0x74 LANG_GUARANI 0x75 LANG_HAWAIIAN 0x76 LANG_LATIN 0x77 LANG_SOMALI 0x78 LANG_YI 0x79 LANG_PAPIAMENTU 0x7a LANG_MAPUDUNGUN 0x7c LANG_MOHAWK 0x7e LANG_BRETON 0x82 LANG_OCCITAN 0x83 LANG_CORSICAN 0x84 LANG_ALSATIAN 0x85 LANG_YAKUT 0x86 LANG_KICHE 0x87 LANG_KINYARWANDA 0x88 LANG_WOLOF 0x8c LANG_DARI 0x91 LANG_SCOTTISH_GAELIC */ /* Mingw headers don't have latest language and sublanguage codes. */ # ifndef LANG_AFRIKAANS # define LANG_AFRIKAANS 0x36 # endif # ifndef LANG_ALBANIAN # define LANG_ALBANIAN 0x1c # endif # ifndef LANG_ALSATIAN # define LANG_ALSATIAN 0x84 # endif # ifndef LANG_AMHARIC # define LANG_AMHARIC 0x5e # endif # ifndef LANG_ARABIC # define LANG_ARABIC 0x01 # endif # ifndef LANG_ARMENIAN # define LANG_ARMENIAN 0x2b # endif # ifndef LANG_ASSAMESE # define LANG_ASSAMESE 0x4d # endif # ifndef LANG_AZERI # define LANG_AZERI 0x2c # endif # ifndef LANG_BASHKIR # define LANG_BASHKIR 0x6d # endif # ifndef LANG_BASQUE # define LANG_BASQUE 0x2d # endif # ifndef LANG_BELARUSIAN # define LANG_BELARUSIAN 0x23 # endif # ifndef LANG_BENGALI # define LANG_BENGALI 0x45 # endif # ifndef LANG_BRETON # define LANG_BRETON 0x7e # endif # ifndef LANG_BURMESE # define LANG_BURMESE 0x55 # endif # ifndef LANG_CAMBODIAN # define LANG_CAMBODIAN 0x53 # endif # ifndef LANG_CATALAN # define LANG_CATALAN 0x03 # endif # ifndef LANG_CHEROKEE # define LANG_CHEROKEE 0x5c # endif # ifndef LANG_CORSICAN # define LANG_CORSICAN 0x83 # endif # ifndef LANG_DARI # define LANG_DARI 0x8c # endif # ifndef LANG_DIVEHI # define LANG_DIVEHI 0x65 # endif # ifndef LANG_EDO # define LANG_EDO 0x66 # endif # ifndef LANG_ESTONIAN # define LANG_ESTONIAN 0x25 # endif # ifndef LANG_FAEROESE # define LANG_FAEROESE 0x38 # endif # ifndef LANG_FARSI # define LANG_FARSI 0x29 # endif # ifndef LANG_FRISIAN # define LANG_FRISIAN 0x62 # endif # ifndef LANG_FULFULDE # define LANG_FULFULDE 0x67 # endif # ifndef LANG_GAELIC # define LANG_GAELIC 0x3c # endif # ifndef LANG_GALICIAN # define LANG_GALICIAN 0x56 # endif # ifndef LANG_GEORGIAN # define LANG_GEORGIAN 0x37 # endif # ifndef LANG_GREENLANDIC # define LANG_GREENLANDIC 0x6f # endif # ifndef LANG_GUARANI # define LANG_GUARANI 0x74 # endif # ifndef LANG_GUJARATI # define LANG_GUJARATI 0x47 # endif # ifndef LANG_HAUSA # define LANG_HAUSA 0x68 # endif # ifndef LANG_HAWAIIAN # define LANG_HAWAIIAN 0x75 # endif # ifndef LANG_HEBREW # define LANG_HEBREW 0x0d # endif # ifndef LANG_HINDI # define LANG_HINDI 0x39 # endif # ifndef LANG_IBIBIO # define LANG_IBIBIO 0x69 # endif # ifndef LANG_IGBO # define LANG_IGBO 0x70 # endif # ifndef LANG_INDONESIAN # define LANG_INDONESIAN 0x21 # endif # ifndef LANG_INUKTITUT # define LANG_INUKTITUT 0x5d # endif # ifndef LANG_KANNADA # define LANG_KANNADA 0x4b # endif # ifndef LANG_KANURI # define LANG_KANURI 0x71 # endif # ifndef LANG_KASHMIRI # define LANG_KASHMIRI 0x60 # endif # ifndef LANG_KAZAK # define LANG_KAZAK 0x3f # endif # ifndef LANG_KICHE # define LANG_KICHE 0x86 # endif # ifndef LANG_KINYARWANDA # define LANG_KINYARWANDA 0x87 # endif # ifndef LANG_KONKANI # define LANG_KONKANI 0x57 # endif # ifndef LANG_KYRGYZ # define LANG_KYRGYZ 0x40 # endif # ifndef LANG_LAO # define LANG_LAO 0x54 # endif # ifndef LANG_LATIN # define LANG_LATIN 0x76 # endif # ifndef LANG_LATVIAN # define LANG_LATVIAN 0x26 # endif # ifndef LANG_LITHUANIAN # define LANG_LITHUANIAN 0x27 # endif # ifndef LANG_LUXEMBOURGISH # define LANG_LUXEMBOURGISH 0x6e # endif # ifndef LANG_MACEDONIAN # define LANG_MACEDONIAN 0x2f # endif # ifndef LANG_MALAY # define LANG_MALAY 0x3e # endif # ifndef LANG_MALAYALAM # define LANG_MALAYALAM 0x4c # endif # ifndef LANG_MALTESE # define LANG_MALTESE 0x3a # endif # ifndef LANG_MANIPURI # define LANG_MANIPURI 0x58 # endif # ifndef LANG_MAORI # define LANG_MAORI 0x81 # endif # ifndef LANG_MAPUDUNGUN # define LANG_MAPUDUNGUN 0x7a # endif # ifndef LANG_MARATHI # define LANG_MARATHI 0x4e # endif # ifndef LANG_MOHAWK # define LANG_MOHAWK 0x7c # endif # ifndef LANG_MONGOLIAN # define LANG_MONGOLIAN 0x50 # endif # ifndef LANG_NEPALI # define LANG_NEPALI 0x61 # endif # ifndef LANG_OCCITAN # define LANG_OCCITAN 0x82 # endif # ifndef LANG_ORIYA # define LANG_ORIYA 0x48 # endif # ifndef LANG_OROMO # define LANG_OROMO 0x72 # endif # ifndef LANG_PAPIAMENTU # define LANG_PAPIAMENTU 0x79 # endif # ifndef LANG_PASHTO # define LANG_PASHTO 0x63 # endif # ifndef LANG_PUNJABI # define LANG_PUNJABI 0x46 # endif # ifndef LANG_QUECHUA # define LANG_QUECHUA 0x6b # endif # ifndef LANG_ROMANSH # define LANG_ROMANSH 0x17 # endif # ifndef LANG_SAMI # define LANG_SAMI 0x3b # endif # ifndef LANG_SANSKRIT # define LANG_SANSKRIT 0x4f # endif # ifndef LANG_SCOTTISH_GAELIC # define LANG_SCOTTISH_GAELIC 0x91 # endif # ifndef LANG_SERBIAN # define LANG_SERBIAN 0x1a # endif # ifndef LANG_SINDHI # define LANG_SINDHI 0x59 # endif # ifndef LANG_SINHALESE # define LANG_SINHALESE 0x5b # endif # ifndef LANG_SLOVAK # define LANG_SLOVAK 0x1b # endif # ifndef LANG_SOMALI # define LANG_SOMALI 0x77 # endif # ifndef LANG_SORBIAN # define LANG_SORBIAN 0x2e # endif # ifndef LANG_SOTHO # define LANG_SOTHO 0x6c # endif # ifndef LANG_SUTU # define LANG_SUTU 0x30 # endif # ifndef LANG_SWAHILI # define LANG_SWAHILI 0x41 # endif # ifndef LANG_SYRIAC # define LANG_SYRIAC 0x5a # endif # ifndef LANG_TAGALOG # define LANG_TAGALOG 0x64 # endif # ifndef LANG_TAJIK # define LANG_TAJIK 0x28 # endif # ifndef LANG_TAMAZIGHT # define LANG_TAMAZIGHT 0x5f # endif # ifndef LANG_TAMIL # define LANG_TAMIL 0x49 # endif # ifndef LANG_TATAR # define LANG_TATAR 0x44 # endif # ifndef LANG_TELUGU # define LANG_TELUGU 0x4a # endif # ifndef LANG_THAI # define LANG_THAI 0x1e # endif # ifndef LANG_TIBETAN # define LANG_TIBETAN 0x51 # endif # ifndef LANG_TIGRINYA # define LANG_TIGRINYA 0x73 # endif # ifndef LANG_TSONGA # define LANG_TSONGA 0x31 # endif # ifndef LANG_TSWANA # define LANG_TSWANA 0x32 # endif # ifndef LANG_TURKMEN # define LANG_TURKMEN 0x42 # endif # ifndef LANG_UIGHUR # define LANG_UIGHUR 0x80 # endif # ifndef LANG_UKRAINIAN # define LANG_UKRAINIAN 0x22 # endif # ifndef LANG_URDU # define LANG_URDU 0x20 # endif # ifndef LANG_UZBEK # define LANG_UZBEK 0x43 # endif # ifndef LANG_VENDA # define LANG_VENDA 0x33 # endif # ifndef LANG_VIETNAMESE # define LANG_VIETNAMESE 0x2a # endif # ifndef LANG_WELSH # define LANG_WELSH 0x52 # endif # ifndef LANG_WOLOF # define LANG_WOLOF 0x88 # endif # ifndef LANG_XHOSA # define LANG_XHOSA 0x34 # endif # ifndef LANG_YAKUT # define LANG_YAKUT 0x85 # endif # ifndef LANG_YI # define LANG_YI 0x78 # endif # ifndef LANG_YIDDISH # define LANG_YIDDISH 0x3d # endif # ifndef LANG_YORUBA # define LANG_YORUBA 0x6a # endif # ifndef LANG_ZULU # define LANG_ZULU 0x35 # endif # ifndef SUBLANG_AFRIKAANS_SOUTH_AFRICA # define SUBLANG_AFRIKAANS_SOUTH_AFRICA 0x01 # endif # ifndef SUBLANG_ALBANIAN_ALBANIA # define SUBLANG_ALBANIAN_ALBANIA 0x01 # endif # ifndef SUBLANG_ALSATIAN_FRANCE # define SUBLANG_ALSATIAN_FRANCE 0x01 # endif # ifndef SUBLANG_AMHARIC_ETHIOPIA # define SUBLANG_AMHARIC_ETHIOPIA 0x01 # endif # ifndef SUBLANG_ARABIC_SAUDI_ARABIA # define SUBLANG_ARABIC_SAUDI_ARABIA 0x01 # endif # ifndef SUBLANG_ARABIC_IRAQ # define SUBLANG_ARABIC_IRAQ 0x02 # endif # ifndef SUBLANG_ARABIC_EGYPT # define SUBLANG_ARABIC_EGYPT 0x03 # endif # ifndef SUBLANG_ARABIC_LIBYA # define SUBLANG_ARABIC_LIBYA 0x04 # endif # ifndef SUBLANG_ARABIC_ALGERIA # define SUBLANG_ARABIC_ALGERIA 0x05 # endif # ifndef SUBLANG_ARABIC_MOROCCO # define SUBLANG_ARABIC_MOROCCO 0x06 # endif # ifndef SUBLANG_ARABIC_TUNISIA # define SUBLANG_ARABIC_TUNISIA 0x07 # endif # ifndef SUBLANG_ARABIC_OMAN # define SUBLANG_ARABIC_OMAN 0x08 # endif # ifndef SUBLANG_ARABIC_YEMEN # define SUBLANG_ARABIC_YEMEN 0x09 # endif # ifndef SUBLANG_ARABIC_SYRIA # define SUBLANG_ARABIC_SYRIA 0x0a # endif # ifndef SUBLANG_ARABIC_JORDAN # define SUBLANG_ARABIC_JORDAN 0x0b # endif # ifndef SUBLANG_ARABIC_LEBANON # define SUBLANG_ARABIC_LEBANON 0x0c # endif # ifndef SUBLANG_ARABIC_KUWAIT # define SUBLANG_ARABIC_KUWAIT 0x0d # endif # ifndef SUBLANG_ARABIC_UAE # define SUBLANG_ARABIC_UAE 0x0e # endif # ifndef SUBLANG_ARABIC_BAHRAIN # define SUBLANG_ARABIC_BAHRAIN 0x0f # endif # ifndef SUBLANG_ARABIC_QATAR # define SUBLANG_ARABIC_QATAR 0x10 # endif # ifndef SUBLANG_ARMENIAN_ARMENIA # define SUBLANG_ARMENIAN_ARMENIA 0x01 # endif # ifndef SUBLANG_ASSAMESE_INDIA # define SUBLANG_ASSAMESE_INDIA 0x01 # endif # ifndef SUBLANG_AZERI_LATIN # define SUBLANG_AZERI_LATIN 0x01 # endif # ifndef SUBLANG_AZERI_CYRILLIC # define SUBLANG_AZERI_CYRILLIC 0x02 # endif # ifndef SUBLANG_BASHKIR_RUSSIA # define SUBLANG_BASHKIR_RUSSIA 0x01 # endif # ifndef SUBLANG_BASQUE_BASQUE # define SUBLANG_BASQUE_BASQUE 0x01 # endif # ifndef SUBLANG_BELARUSIAN_BELARUS # define SUBLANG_BELARUSIAN_BELARUS 0x01 # endif # ifndef SUBLANG_BENGALI_INDIA # define SUBLANG_BENGALI_INDIA 0x01 # endif # ifndef SUBLANG_BENGALI_BANGLADESH # define SUBLANG_BENGALI_BANGLADESH 0x02 # endif # ifndef SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN # define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN 0x05 # endif # ifndef SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC # define SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC 0x08 # endif # ifndef SUBLANG_BRETON_FRANCE # define SUBLANG_BRETON_FRANCE 0x01 # endif # ifndef SUBLANG_BULGARIAN_BULGARIA # define SUBLANG_BULGARIAN_BULGARIA 0x01 # endif # ifndef SUBLANG_CAMBODIAN_CAMBODIA # define SUBLANG_CAMBODIAN_CAMBODIA 0x01 # endif # ifndef SUBLANG_CATALAN_SPAIN # define SUBLANG_CATALAN_SPAIN 0x01 # endif # ifndef SUBLANG_CORSICAN_FRANCE # define SUBLANG_CORSICAN_FRANCE 0x01 # endif # ifndef SUBLANG_CROATIAN_CROATIA # define SUBLANG_CROATIAN_CROATIA 0x01 # endif # ifndef SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN # define SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN 0x04 # endif # ifndef SUBLANG_CHINESE_MACAU # define SUBLANG_CHINESE_MACAU 0x05 # endif # ifndef SUBLANG_CZECH_CZECH_REPUBLIC # define SUBLANG_CZECH_CZECH_REPUBLIC 0x01 # endif # ifndef SUBLANG_DANISH_DENMARK # define SUBLANG_DANISH_DENMARK 0x01 # endif # ifndef SUBLANG_DARI_AFGHANISTAN # define SUBLANG_DARI_AFGHANISTAN 0x01 # endif # ifndef SUBLANG_DIVEHI_MALDIVES # define SUBLANG_DIVEHI_MALDIVES 0x01 # endif # ifndef SUBLANG_DUTCH_SURINAM # define SUBLANG_DUTCH_SURINAM 0x03 # endif # ifndef SUBLANG_ENGLISH_SOUTH_AFRICA # define SUBLANG_ENGLISH_SOUTH_AFRICA 0x07 # endif # ifndef SUBLANG_ENGLISH_JAMAICA # define SUBLANG_ENGLISH_JAMAICA 0x08 # endif # ifndef SUBLANG_ENGLISH_CARIBBEAN # define SUBLANG_ENGLISH_CARIBBEAN 0x09 # endif # ifndef SUBLANG_ENGLISH_BELIZE # define SUBLANG_ENGLISH_BELIZE 0x0a # endif # ifndef SUBLANG_ENGLISH_TRINIDAD # define SUBLANG_ENGLISH_TRINIDAD 0x0b # endif # ifndef SUBLANG_ENGLISH_ZIMBABWE # define SUBLANG_ENGLISH_ZIMBABWE 0x0c # endif # ifndef SUBLANG_ENGLISH_PHILIPPINES # define SUBLANG_ENGLISH_PHILIPPINES 0x0d # endif # ifndef SUBLANG_ENGLISH_INDONESIA # define SUBLANG_ENGLISH_INDONESIA 0x0e # endif # ifndef SUBLANG_ENGLISH_HONGKONG # define SUBLANG_ENGLISH_HONGKONG 0x0f # endif # ifndef SUBLANG_ENGLISH_INDIA # define SUBLANG_ENGLISH_INDIA 0x10 # endif # ifndef SUBLANG_ENGLISH_MALAYSIA # define SUBLANG_ENGLISH_MALAYSIA 0x11 # endif # ifndef SUBLANG_ENGLISH_SINGAPORE # define SUBLANG_ENGLISH_SINGAPORE 0x12 # endif # ifndef SUBLANG_ESTONIAN_ESTONIA # define SUBLANG_ESTONIAN_ESTONIA 0x01 # endif # ifndef SUBLANG_FAEROESE_FAROE_ISLANDS # define SUBLANG_FAEROESE_FAROE_ISLANDS 0x01 # endif # ifndef SUBLANG_FARSI_IRAN # define SUBLANG_FARSI_IRAN 0x01 # endif # ifndef SUBLANG_FINNISH_FINLAND # define SUBLANG_FINNISH_FINLAND 0x01 # endif # ifndef SUBLANG_FRENCH_LUXEMBOURG # define SUBLANG_FRENCH_LUXEMBOURG 0x05 # endif # ifndef SUBLANG_FRENCH_MONACO # define SUBLANG_FRENCH_MONACO 0x06 # endif # ifndef SUBLANG_FRENCH_WESTINDIES # define SUBLANG_FRENCH_WESTINDIES 0x07 # endif # ifndef SUBLANG_FRENCH_REUNION # define SUBLANG_FRENCH_REUNION 0x08 # endif # ifndef SUBLANG_FRENCH_CONGO # define SUBLANG_FRENCH_CONGO 0x09 # endif # ifndef SUBLANG_FRENCH_SENEGAL # define SUBLANG_FRENCH_SENEGAL 0x0a # endif # ifndef SUBLANG_FRENCH_CAMEROON # define SUBLANG_FRENCH_CAMEROON 0x0b # endif # ifndef SUBLANG_FRENCH_COTEDIVOIRE # define SUBLANG_FRENCH_COTEDIVOIRE 0x0c # endif # ifndef SUBLANG_FRENCH_MALI # define SUBLANG_FRENCH_MALI 0x0d # endif # ifndef SUBLANG_FRENCH_MOROCCO # define SUBLANG_FRENCH_MOROCCO 0x0e # endif # ifndef SUBLANG_FRENCH_HAITI # define SUBLANG_FRENCH_HAITI 0x0f # endif # ifndef SUBLANG_FRISIAN_NETHERLANDS # define SUBLANG_FRISIAN_NETHERLANDS 0x01 # endif # ifndef SUBLANG_GALICIAN_SPAIN # define SUBLANG_GALICIAN_SPAIN 0x01 # endif # ifndef SUBLANG_GEORGIAN_GEORGIA # define SUBLANG_GEORGIAN_GEORGIA 0x01 # endif # ifndef SUBLANG_GERMAN_LUXEMBOURG # define SUBLANG_GERMAN_LUXEMBOURG 0x04 # endif # ifndef SUBLANG_GERMAN_LIECHTENSTEIN # define SUBLANG_GERMAN_LIECHTENSTEIN 0x05 # endif # ifndef SUBLANG_GREEK_GREECE # define SUBLANG_GREEK_GREECE 0x01 # endif # ifndef SUBLANG_GREENLANDIC_GREENLAND # define SUBLANG_GREENLANDIC_GREENLAND 0x01 # endif # ifndef SUBLANG_GUJARATI_INDIA # define SUBLANG_GUJARATI_INDIA 0x01 # endif # ifndef SUBLANG_HAUSA_NIGERIA_LATIN # define SUBLANG_HAUSA_NIGERIA_LATIN 0x01 # endif # ifndef SUBLANG_HEBREW_ISRAEL # define SUBLANG_HEBREW_ISRAEL 0x01 # endif # ifndef SUBLANG_HINDI_INDIA # define SUBLANG_HINDI_INDIA 0x01 # endif # ifndef SUBLANG_HUNGARIAN_HUNGARY # define SUBLANG_HUNGARIAN_HUNGARY 0x01 # endif # ifndef SUBLANG_ICELANDIC_ICELAND # define SUBLANG_ICELANDIC_ICELAND 0x01 # endif # ifndef SUBLANG_IGBO_NIGERIA # define SUBLANG_IGBO_NIGERIA 0x01 # endif # ifndef SUBLANG_INDONESIAN_INDONESIA # define SUBLANG_INDONESIAN_INDONESIA 0x01 # endif # ifndef SUBLANG_INUKTITUT_CANADA # define SUBLANG_INUKTITUT_CANADA 0x01 # endif # undef SUBLANG_INUKTITUT_CANADA_LATIN # define SUBLANG_INUKTITUT_CANADA_LATIN 0x02 # undef SUBLANG_IRISH_IRELAND # define SUBLANG_IRISH_IRELAND 0x02 # ifndef SUBLANG_JAPANESE_JAPAN # define SUBLANG_JAPANESE_JAPAN 0x01 # endif # ifndef SUBLANG_KANNADA_INDIA # define SUBLANG_KANNADA_INDIA 0x01 # endif # ifndef SUBLANG_KASHMIRI_INDIA # define SUBLANG_KASHMIRI_INDIA 0x02 # endif # ifndef SUBLANG_KAZAK_KAZAKHSTAN # define SUBLANG_KAZAK_KAZAKHSTAN 0x01 # endif # ifndef SUBLANG_KICHE_GUATEMALA # define SUBLANG_KICHE_GUATEMALA 0x01 # endif # ifndef SUBLANG_KINYARWANDA_RWANDA # define SUBLANG_KINYARWANDA_RWANDA 0x01 # endif # ifndef SUBLANG_KONKANI_INDIA # define SUBLANG_KONKANI_INDIA 0x01 # endif # ifndef SUBLANG_KYRGYZ_KYRGYZSTAN # define SUBLANG_KYRGYZ_KYRGYZSTAN 0x01 # endif # ifndef SUBLANG_LAO_LAOS # define SUBLANG_LAO_LAOS 0x01 # endif # ifndef SUBLANG_LATVIAN_LATVIA # define SUBLANG_LATVIAN_LATVIA 0x01 # endif # ifndef SUBLANG_LITHUANIAN_LITHUANIA # define SUBLANG_LITHUANIAN_LITHUANIA 0x01 # endif # undef SUBLANG_LOWER_SORBIAN_GERMANY # define SUBLANG_LOWER_SORBIAN_GERMANY 0x02 # ifndef SUBLANG_LUXEMBOURGISH_LUXEMBOURG # define SUBLANG_LUXEMBOURGISH_LUXEMBOURG 0x01 # endif # ifndef SUBLANG_MACEDONIAN_MACEDONIA # define SUBLANG_MACEDONIAN_MACEDONIA 0x01 # endif # ifndef SUBLANG_MALAY_MALAYSIA # define SUBLANG_MALAY_MALAYSIA 0x01 # endif # ifndef SUBLANG_MALAY_BRUNEI_DARUSSALAM # define SUBLANG_MALAY_BRUNEI_DARUSSALAM 0x02 # endif # ifndef SUBLANG_MALAYALAM_INDIA # define SUBLANG_MALAYALAM_INDIA 0x01 # endif # ifndef SUBLANG_MALTESE_MALTA # define SUBLANG_MALTESE_MALTA 0x01 # endif # ifndef SUBLANG_MAORI_NEW_ZEALAND # define SUBLANG_MAORI_NEW_ZEALAND 0x01 # endif # ifndef SUBLANG_MAPUDUNGUN_CHILE # define SUBLANG_MAPUDUNGUN_CHILE 0x01 # endif # ifndef SUBLANG_MARATHI_INDIA # define SUBLANG_MARATHI_INDIA 0x01 # endif # ifndef SUBLANG_MOHAWK_CANADA # define SUBLANG_MOHAWK_CANADA 0x01 # endif # ifndef SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA # define SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA 0x01 # endif # ifndef SUBLANG_MONGOLIAN_PRC # define SUBLANG_MONGOLIAN_PRC 0x02 # endif # ifndef SUBLANG_NEPALI_NEPAL # define SUBLANG_NEPALI_NEPAL 0x01 # endif # ifndef SUBLANG_NEPALI_INDIA # define SUBLANG_NEPALI_INDIA 0x02 # endif # ifndef SUBLANG_OCCITAN_FRANCE # define SUBLANG_OCCITAN_FRANCE 0x01 # endif # ifndef SUBLANG_ORIYA_INDIA # define SUBLANG_ORIYA_INDIA 0x01 # endif # ifndef SUBLANG_PASHTO_AFGHANISTAN # define SUBLANG_PASHTO_AFGHANISTAN 0x01 # endif # ifndef SUBLANG_POLISH_POLAND # define SUBLANG_POLISH_POLAND 0x01 # endif # ifndef SUBLANG_PUNJABI_INDIA # define SUBLANG_PUNJABI_INDIA 0x01 # endif # ifndef SUBLANG_PUNJABI_PAKISTAN # define SUBLANG_PUNJABI_PAKISTAN 0x02 # endif # ifndef SUBLANG_QUECHUA_BOLIVIA # define SUBLANG_QUECHUA_BOLIVIA 0x01 # endif # ifndef SUBLANG_QUECHUA_ECUADOR # define SUBLANG_QUECHUA_ECUADOR 0x02 # endif # ifndef SUBLANG_QUECHUA_PERU # define SUBLANG_QUECHUA_PERU 0x03 # endif # ifndef SUBLANG_ROMANIAN_ROMANIA # define SUBLANG_ROMANIAN_ROMANIA 0x01 # endif # ifndef SUBLANG_ROMANIAN_MOLDOVA # define SUBLANG_ROMANIAN_MOLDOVA 0x02 # endif # ifndef SUBLANG_ROMANSH_SWITZERLAND # define SUBLANG_ROMANSH_SWITZERLAND 0x01 # endif # ifndef SUBLANG_RUSSIAN_RUSSIA # define SUBLANG_RUSSIAN_RUSSIA 0x01 # endif # ifndef SUBLANG_RUSSIAN_MOLDAVIA # define SUBLANG_RUSSIAN_MOLDAVIA 0x02 # endif # ifndef SUBLANG_SAMI_NORTHERN_NORWAY # define SUBLANG_SAMI_NORTHERN_NORWAY 0x01 # endif # ifndef SUBLANG_SAMI_NORTHERN_SWEDEN # define SUBLANG_SAMI_NORTHERN_SWEDEN 0x02 # endif # ifndef SUBLANG_SAMI_NORTHERN_FINLAND # define SUBLANG_SAMI_NORTHERN_FINLAND 0x03 # endif # ifndef SUBLANG_SAMI_LULE_NORWAY # define SUBLANG_SAMI_LULE_NORWAY 0x04 # endif # ifndef SUBLANG_SAMI_LULE_SWEDEN # define SUBLANG_SAMI_LULE_SWEDEN 0x05 # endif # ifndef SUBLANG_SAMI_SOUTHERN_NORWAY # define SUBLANG_SAMI_SOUTHERN_NORWAY 0x06 # endif # ifndef SUBLANG_SAMI_SOUTHERN_SWEDEN # define SUBLANG_SAMI_SOUTHERN_SWEDEN 0x07 # endif # undef SUBLANG_SAMI_SKOLT_FINLAND # define SUBLANG_SAMI_SKOLT_FINLAND 0x08 # undef SUBLANG_SAMI_INARI_FINLAND # define SUBLANG_SAMI_INARI_FINLAND 0x09 # ifndef SUBLANG_SANSKRIT_INDIA # define SUBLANG_SANSKRIT_INDIA 0x01 # endif # ifndef SUBLANG_SERBIAN_LATIN # define SUBLANG_SERBIAN_LATIN 0x02 # endif # ifndef SUBLANG_SERBIAN_CYRILLIC # define SUBLANG_SERBIAN_CYRILLIC 0x03 # endif # ifndef SUBLANG_SINDHI_INDIA # define SUBLANG_SINDHI_INDIA 0x01 # endif # undef SUBLANG_SINDHI_PAKISTAN # define SUBLANG_SINDHI_PAKISTAN 0x02 # ifndef SUBLANG_SINDHI_AFGHANISTAN # define SUBLANG_SINDHI_AFGHANISTAN 0x02 # endif # ifndef SUBLANG_SINHALESE_SRI_LANKA # define SUBLANG_SINHALESE_SRI_LANKA 0x01 # endif # ifndef SUBLANG_SLOVAK_SLOVAKIA # define SUBLANG_SLOVAK_SLOVAKIA 0x01 # endif # ifndef SUBLANG_SLOVENIAN_SLOVENIA # define SUBLANG_SLOVENIAN_SLOVENIA 0x01 # endif # ifndef SUBLANG_SOTHO_SOUTH_AFRICA # define SUBLANG_SOTHO_SOUTH_AFRICA 0x01 # endif # ifndef SUBLANG_SPANISH_GUATEMALA # define SUBLANG_SPANISH_GUATEMALA 0x04 # endif # ifndef SUBLANG_SPANISH_COSTA_RICA # define SUBLANG_SPANISH_COSTA_RICA 0x05 # endif # ifndef SUBLANG_SPANISH_PANAMA # define SUBLANG_SPANISH_PANAMA 0x06 # endif # ifndef SUBLANG_SPANISH_DOMINICAN_REPUBLIC # define SUBLANG_SPANISH_DOMINICAN_REPUBLIC 0x07 # endif # ifndef SUBLANG_SPANISH_VENEZUELA # define SUBLANG_SPANISH_VENEZUELA 0x08 # endif # ifndef SUBLANG_SPANISH_COLOMBIA # define SUBLANG_SPANISH_COLOMBIA 0x09 # endif # ifndef SUBLANG_SPANISH_PERU # define SUBLANG_SPANISH_PERU 0x0a # endif # ifndef SUBLANG_SPANISH_ARGENTINA # define SUBLANG_SPANISH_ARGENTINA 0x0b # endif # ifndef SUBLANG_SPANISH_ECUADOR # define SUBLANG_SPANISH_ECUADOR 0x0c # endif # ifndef SUBLANG_SPANISH_CHILE # define SUBLANG_SPANISH_CHILE 0x0d # endif # ifndef SUBLANG_SPANISH_URUGUAY # define SUBLANG_SPANISH_URUGUAY 0x0e # endif # ifndef SUBLANG_SPANISH_PARAGUAY # define SUBLANG_SPANISH_PARAGUAY 0x0f # endif # ifndef SUBLANG_SPANISH_BOLIVIA # define SUBLANG_SPANISH_BOLIVIA 0x10 # endif # ifndef SUBLANG_SPANISH_EL_SALVADOR # define SUBLANG_SPANISH_EL_SALVADOR 0x11 # endif # ifndef SUBLANG_SPANISH_HONDURAS # define SUBLANG_SPANISH_HONDURAS 0x12 # endif # ifndef SUBLANG_SPANISH_NICARAGUA # define SUBLANG_SPANISH_NICARAGUA 0x13 # endif # ifndef SUBLANG_SPANISH_PUERTO_RICO # define SUBLANG_SPANISH_PUERTO_RICO 0x14 # endif # ifndef SUBLANG_SPANISH_US # define SUBLANG_SPANISH_US 0x15 # endif # ifndef SUBLANG_SWAHILI_KENYA # define SUBLANG_SWAHILI_KENYA 0x01 # endif # ifndef SUBLANG_SWEDISH_SWEDEN # define SUBLANG_SWEDISH_SWEDEN 0x01 # endif # ifndef SUBLANG_SWEDISH_FINLAND # define SUBLANG_SWEDISH_FINLAND 0x02 # endif # ifndef SUBLANG_SYRIAC_SYRIA # define SUBLANG_SYRIAC_SYRIA 0x01 # endif # ifndef SUBLANG_TAGALOG_PHILIPPINES # define SUBLANG_TAGALOG_PHILIPPINES 0x01 # endif # ifndef SUBLANG_TAJIK_TAJIKISTAN # define SUBLANG_TAJIK_TAJIKISTAN 0x01 # endif # ifndef SUBLANG_TAMAZIGHT_ARABIC # define SUBLANG_TAMAZIGHT_ARABIC 0x01 # endif # ifndef SUBLANG_TAMAZIGHT_ALGERIA_LATIN # define SUBLANG_TAMAZIGHT_ALGERIA_LATIN 0x02 # endif # ifndef SUBLANG_TAMIL_INDIA # define SUBLANG_TAMIL_INDIA 0x01 # endif # ifndef SUBLANG_TATAR_RUSSIA # define SUBLANG_TATAR_RUSSIA 0x01 # endif # ifndef SUBLANG_TELUGU_INDIA # define SUBLANG_TELUGU_INDIA 0x01 # endif # ifndef SUBLANG_THAI_THAILAND # define SUBLANG_THAI_THAILAND 0x01 # endif # ifndef SUBLANG_TIBETAN_PRC # define SUBLANG_TIBETAN_PRC 0x01 # endif # undef SUBLANG_TIBETAN_BHUTAN # define SUBLANG_TIBETAN_BHUTAN 0x02 # ifndef SUBLANG_TIGRINYA_ETHIOPIA # define SUBLANG_TIGRINYA_ETHIOPIA 0x01 # endif # ifndef SUBLANG_TIGRINYA_ERITREA # define SUBLANG_TIGRINYA_ERITREA 0x02 # endif # ifndef SUBLANG_TSWANA_SOUTH_AFRICA # define SUBLANG_TSWANA_SOUTH_AFRICA 0x01 # endif # ifndef SUBLANG_TURKISH_TURKEY # define SUBLANG_TURKISH_TURKEY 0x01 # endif # ifndef SUBLANG_TURKMEN_TURKMENISTAN # define SUBLANG_TURKMEN_TURKMENISTAN 0x01 # endif # ifndef SUBLANG_UIGHUR_PRC # define SUBLANG_UIGHUR_PRC 0x01 # endif # ifndef SUBLANG_UKRAINIAN_UKRAINE # define SUBLANG_UKRAINIAN_UKRAINE 0x01 # endif # ifndef SUBLANG_UPPER_SORBIAN_GERMANY # define SUBLANG_UPPER_SORBIAN_GERMANY 0x01 # endif # ifndef SUBLANG_URDU_PAKISTAN # define SUBLANG_URDU_PAKISTAN 0x01 # endif # ifndef SUBLANG_URDU_INDIA # define SUBLANG_URDU_INDIA 0x02 # endif # ifndef SUBLANG_UZBEK_LATIN # define SUBLANG_UZBEK_LATIN 0x01 # endif # ifndef SUBLANG_UZBEK_CYRILLIC # define SUBLANG_UZBEK_CYRILLIC 0x02 # endif # ifndef SUBLANG_VIETNAMESE_VIETNAM # define SUBLANG_VIETNAMESE_VIETNAM 0x01 # endif # ifndef SUBLANG_WELSH_UNITED_KINGDOM # define SUBLANG_WELSH_UNITED_KINGDOM 0x01 # endif # ifndef SUBLANG_WOLOF_SENEGAL # define SUBLANG_WOLOF_SENEGAL 0x01 # endif # ifndef SUBLANG_XHOSA_SOUTH_AFRICA # define SUBLANG_XHOSA_SOUTH_AFRICA 0x01 # endif # ifndef SUBLANG_YAKUT_RUSSIA # define SUBLANG_YAKUT_RUSSIA 0x01 # endif # ifndef SUBLANG_YI_PRC # define SUBLANG_YI_PRC 0x01 # endif # ifndef SUBLANG_YORUBA_NIGERIA # define SUBLANG_YORUBA_NIGERIA 0x01 # endif # ifndef SUBLANG_ZULU_SOUTH_AFRICA # define SUBLANG_ZULU_SOUTH_AFRICA 0x01 # endif /* GetLocaleInfoA operations. */ # ifndef LOCALE_SNAME # define LOCALE_SNAME 0x5c # endif #endif #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ /* Canonicalize a MacOS X locale name to a Unix locale name. NAME is a sufficiently large buffer. On input, it contains the MacOS X locale name. On output, it contains the Unix locale name. */ # if !defined IN_LIBINTL static # endif void gl_locale_name_canonicalize (char *name) { /* This conversion is based on a posting by Deborah GoldSmith on 2005-03-08, http://lists.apple.com/archives/carbon-dev/2005/Mar/msg00293.html */ /* Convert legacy (NeXTstep inherited) English names to Unix (ISO 639 and ISO 3166) names. Prior to MacOS X 10.3, there is no API for doing this. Therefore we do it ourselves, using a table based on the results of the MacOS X 10.3.8 function CFLocaleCreateCanonicalLocaleIdentifierFromString(). */ typedef struct { const char legacy[21+1]; const char unixy[5+1]; } legacy_entry; static const legacy_entry legacy_table[] = { { "Afrikaans", "af" }, { "Albanian", "sq" }, { "Amharic", "am" }, { "Arabic", "ar" }, { "Armenian", "hy" }, { "Assamese", "as" }, { "Aymara", "ay" }, { "Azerbaijani", "az" }, { "Basque", "eu" }, { "Belarusian", "be" }, { "Belorussian", "be" }, { "Bengali", "bn" }, { "Brazilian Portugese", "pt_BR" }, { "Brazilian Portuguese", "pt_BR" }, { "Breton", "br" }, { "Bulgarian", "bg" }, { "Burmese", "my" }, { "Byelorussian", "be" }, { "Catalan", "ca" }, { "Chewa", "ny" }, { "Chichewa", "ny" }, { "Chinese", "zh" }, { "Chinese, Simplified", "zh_CN" }, { "Chinese, Traditional", "zh_TW" }, { "Chinese, Tradtional", "zh_TW" }, { "Croatian", "hr" }, { "Czech", "cs" }, { "Danish", "da" }, { "Dutch", "nl" }, { "Dzongkha", "dz" }, { "English", "en" }, { "Esperanto", "eo" }, { "Estonian", "et" }, { "Faroese", "fo" }, { "Farsi", "fa" }, { "Finnish", "fi" }, { "Flemish", "nl_BE" }, { "French", "fr" }, { "Galician", "gl" }, { "Gallegan", "gl" }, { "Georgian", "ka" }, { "German", "de" }, { "Greek", "el" }, { "Greenlandic", "kl" }, { "Guarani", "gn" }, { "Gujarati", "gu" }, { "Hawaiian", "haw" }, /* Yes, "haw", not "cpe". */ { "Hebrew", "he" }, { "Hindi", "hi" }, { "Hungarian", "hu" }, { "Icelandic", "is" }, { "Indonesian", "id" }, { "Inuktitut", "iu" }, { "Irish", "ga" }, { "Italian", "it" }, { "Japanese", "ja" }, { "Javanese", "jv" }, { "Kalaallisut", "kl" }, { "Kannada", "kn" }, { "Kashmiri", "ks" }, { "Kazakh", "kk" }, { "Khmer", "km" }, { "Kinyarwanda", "rw" }, { "Kirghiz", "ky" }, { "Korean", "ko" }, { "Kurdish", "ku" }, { "Latin", "la" }, { "Latvian", "lv" }, { "Lithuanian", "lt" }, { "Macedonian", "mk" }, { "Malagasy", "mg" }, { "Malay", "ms" }, { "Malayalam", "ml" }, { "Maltese", "mt" }, { "Manx", "gv" }, { "Marathi", "mr" }, { "Moldavian", "mo" }, { "Mongolian", "mn" }, { "Nepali", "ne" }, { "Norwegian", "nb" }, /* Yes, "nb", not the obsolete "no". */ { "Nyanja", "ny" }, { "Nynorsk", "nn" }, { "Oriya", "or" }, { "Oromo", "om" }, { "Panjabi", "pa" }, { "Pashto", "ps" }, { "Persian", "fa" }, { "Polish", "pl" }, { "Portuguese", "pt" }, { "Portuguese, Brazilian", "pt_BR" }, { "Punjabi", "pa" }, { "Pushto", "ps" }, { "Quechua", "qu" }, { "Romanian", "ro" }, { "Ruanda", "rw" }, { "Rundi", "rn" }, { "Russian", "ru" }, { "Sami", "se_NO" }, /* Not just "se". */ { "Sanskrit", "sa" }, { "Scottish", "gd" }, { "Serbian", "sr" }, { "Simplified Chinese", "zh_CN" }, { "Sindhi", "sd" }, { "Sinhalese", "si" }, { "Slovak", "sk" }, { "Slovenian", "sl" }, { "Somali", "so" }, { "Spanish", "es" }, { "Sundanese", "su" }, { "Swahili", "sw" }, { "Swedish", "sv" }, { "Tagalog", "tl" }, { "Tajik", "tg" }, { "Tajiki", "tg" }, { "Tamil", "ta" }, { "Tatar", "tt" }, { "Telugu", "te" }, { "Thai", "th" }, { "Tibetan", "bo" }, { "Tigrinya", "ti" }, { "Tongan", "to" }, { "Traditional Chinese", "zh_TW" }, { "Turkish", "tr" }, { "Turkmen", "tk" }, { "Uighur", "ug" }, { "Ukrainian", "uk" }, { "Urdu", "ur" }, { "Uzbek", "uz" }, { "Vietnamese", "vi" }, { "Welsh", "cy" }, { "Yiddish", "yi" } }; /* Convert new-style locale names with language tags (ISO 639 and ISO 15924) to Unix (ISO 639 and ISO 3166) names. */ typedef struct { const char langtag[7+1]; const char unixy[12+1]; } langtag_entry; static const langtag_entry langtag_table[] = { /* MacOS X has "az-Arab", "az-Cyrl", "az-Latn". The default script for az on Unix is Latin. */ { "az-Latn", "az" }, /* MacOS X has "ga-dots". Does not yet exist on Unix. */ { "ga-dots", "ga" }, /* MacOS X has "kk-Cyrl". Does not yet exist on Unix. */ /* MacOS X has "mn-Cyrl", "mn-Mong". The default script for mn on Unix is Cyrillic. */ { "mn-Cyrl", "mn" }, /* MacOS X has "ms-Arab", "ms-Latn". The default script for ms on Unix is Latin. */ { "ms-Latn", "ms" }, /* MacOS X has "tg-Cyrl". The default script for tg on Unix is Cyrillic. */ { "tg-Cyrl", "tg" }, /* MacOS X has "tk-Cyrl". Does not yet exist on Unix. */ /* MacOS X has "tt-Cyrl". The default script for tt on Unix is Cyrillic. */ { "tt-Cyrl", "tt" }, /* MacOS X has "zh-Hans", "zh-Hant". Country codes are used to distinguish these on Unix. */ { "zh-Hans", "zh_CN" }, { "zh-Hant", "zh_TW" } }; /* Convert script names (ISO 15924) to Unix conventions. See http://www.unicode.org/iso15924/iso15924-codes.html */ typedef struct { const char script[4+1]; const char unixy[9+1]; } script_entry; static const script_entry script_table[] = { { "Arab", "arabic" }, { "Cyrl", "cyrillic" }, { "Mong", "mongolian" } }; /* Step 1: Convert using legacy_table. */ if (name[0] >= 'A' && name[0] <= 'Z') { unsigned int i1, i2; i1 = 0; i2 = sizeof (legacy_table) / sizeof (legacy_entry); while (i2 - i1 > 1) { /* At this point we know that if name occurs in legacy_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const legacy_entry *p = &legacy_table[i]; if (strcmp (name, p->legacy) < 0) i2 = i; else i1 = i; } if (strcmp (name, legacy_table[i1].legacy) == 0) { strcpy (name, legacy_table[i1].unixy); return; } } /* Step 2: Convert using langtag_table and script_table. */ if (strlen (name) == 7 && name[2] == '-') { unsigned int i1, i2; i1 = 0; i2 = sizeof (langtag_table) / sizeof (langtag_entry); while (i2 - i1 > 1) { /* At this point we know that if name occurs in langtag_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const langtag_entry *p = &langtag_table[i]; if (strcmp (name, p->langtag) < 0) i2 = i; else i1 = i; } if (strcmp (name, langtag_table[i1].langtag) == 0) { strcpy (name, langtag_table[i1].unixy); return; } i1 = 0; i2 = sizeof (script_table) / sizeof (script_entry); while (i2 - i1 > 1) { /* At this point we know that if (name + 3) occurs in script_table, its index must be >= i1 and < i2. */ unsigned int i = (i1 + i2) >> 1; const script_entry *p = &script_table[i]; if (strcmp (name + 3, p->script) < 0) i2 = i; else i1 = i; } if (strcmp (name + 3, script_table[i1].script) == 0) { name[2] = '@'; strcpy (name + 3, script_table[i1].unixy); return; } } /* Step 3: Convert new-style dash to Unix underscore. */ { char *p; for (p = name; *p != '\0'; p++) if (*p == '-') *p = '_'; } } #endif #if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ /* Canonicalize a Win32 native locale name to a Unix locale name. NAME is a sufficiently large buffer. On input, it contains the Win32 locale name. On output, it contains the Unix locale name. */ # if !defined IN_LIBINTL static # endif void gl_locale_name_canonicalize (char *name) { /* FIXME: This is probably incomplete: it does not handle "zh-Hans" and "zh-Hant". */ char *p; for (p = name; *p != '\0'; p++) if (*p == '-') { *p = '_'; p++; for (; *p != '\0'; p++) { if (*p >= 'a' && *p <= 'z') *p += 'A' - 'a'; if (*p == '-') { *p = '\0'; return; } } return; } } # if !defined IN_LIBINTL static # endif const char * gl_locale_name_from_win32_LANGID (LANGID langid) { /* Activate the new code only when the GETTEXT_MUI environment variable is set, for the time being, since the new code is not well tested. */ if (getenv ("GETTEXT_MUI") != NULL) { static char namebuf[256]; /* Query the system's notion of locale name. On Windows95/98/ME, GetLocaleInfoA returns some incorrect results. But we don't need to support systems that are so old. */ if (GetLocaleInfoA (MAKELCID (langid, SORT_DEFAULT), LOCALE_SNAME, namebuf, sizeof (namebuf) - 1)) { /* Convert it to a Unix locale name. */ gl_locale_name_canonicalize (namebuf); return namebuf; } } /* Internet Explorer has an LCID to RFC3066 name mapping stored in HKEY_CLASSES_ROOT\Mime\Database\Rfc1766. But we better don't use that since IE's i18n subsystem is known to be inconsistent with the Win32 base (e.g. they have different character conversion facilities that produce different results). */ /* Use our own table. */ { int primary, sub; /* Split into language and territory part. */ primary = PRIMARYLANGID (langid); sub = SUBLANGID (langid); /* Dispatch on language. See also http://www.unicode.org/unicode/onlinedat/languages.html . For details about languages, see http://www.ethnologue.com/ . */ switch (primary) { case LANG_AFRIKAANS: switch (sub) { case SUBLANG_AFRIKAANS_SOUTH_AFRICA: return "af_ZA"; } return "af"; case LANG_ALBANIAN: switch (sub) { case SUBLANG_ALBANIAN_ALBANIA: return "sq_AL"; } return "sq"; case LANG_ALSATIAN: switch (sub) { case SUBLANG_ALSATIAN_FRANCE: return "gsw_FR"; } return "gsw"; case LANG_AMHARIC: switch (sub) { case SUBLANG_AMHARIC_ETHIOPIA: return "am_ET"; } return "am"; case LANG_ARABIC: switch (sub) { case SUBLANG_ARABIC_SAUDI_ARABIA: return "ar_SA"; case SUBLANG_ARABIC_IRAQ: return "ar_IQ"; case SUBLANG_ARABIC_EGYPT: return "ar_EG"; case SUBLANG_ARABIC_LIBYA: return "ar_LY"; case SUBLANG_ARABIC_ALGERIA: return "ar_DZ"; case SUBLANG_ARABIC_MOROCCO: return "ar_MA"; case SUBLANG_ARABIC_TUNISIA: return "ar_TN"; case SUBLANG_ARABIC_OMAN: return "ar_OM"; case SUBLANG_ARABIC_YEMEN: return "ar_YE"; case SUBLANG_ARABIC_SYRIA: return "ar_SY"; case SUBLANG_ARABIC_JORDAN: return "ar_JO"; case SUBLANG_ARABIC_LEBANON: return "ar_LB"; case SUBLANG_ARABIC_KUWAIT: return "ar_KW"; case SUBLANG_ARABIC_UAE: return "ar_AE"; case SUBLANG_ARABIC_BAHRAIN: return "ar_BH"; case SUBLANG_ARABIC_QATAR: return "ar_QA"; } return "ar"; case LANG_ARMENIAN: switch (sub) { case SUBLANG_ARMENIAN_ARMENIA: return "hy_AM"; } return "hy"; case LANG_ASSAMESE: switch (sub) { case SUBLANG_ASSAMESE_INDIA: return "as_IN"; } return "as"; case LANG_AZERI: switch (sub) { /* FIXME: Adjust this when Azerbaijani locales appear on Unix. */ case 0x1e: return "az@latin"; case SUBLANG_AZERI_LATIN: return "az_AZ@latin"; case 0x1d: return "az@cyrillic"; case SUBLANG_AZERI_CYRILLIC: return "az_AZ@cyrillic"; } return "az"; case LANG_BASHKIR: switch (sub) { case SUBLANG_BASHKIR_RUSSIA: return "ba_RU"; } return "ba"; case LANG_BASQUE: switch (sub) { case SUBLANG_BASQUE_BASQUE: return "eu_ES"; } return "eu"; /* Ambiguous: could be "eu_ES" or "eu_FR". */ case LANG_BELARUSIAN: switch (sub) { case SUBLANG_BELARUSIAN_BELARUS: return "be_BY"; } return "be"; case LANG_BENGALI: switch (sub) { case SUBLANG_BENGALI_INDIA: return "bn_IN"; case SUBLANG_BENGALI_BANGLADESH: return "bn_BD"; } return "bn"; case LANG_BRETON: switch (sub) { case SUBLANG_BRETON_FRANCE: return "br_FR"; } return "br"; case LANG_BULGARIAN: switch (sub) { case SUBLANG_BULGARIAN_BULGARIA: return "bg_BG"; } return "bg"; case LANG_BURMESE: switch (sub) { case SUBLANG_DEFAULT: return "my_MM"; } return "my"; case LANG_CAMBODIAN: switch (sub) { case SUBLANG_CAMBODIAN_CAMBODIA: return "km_KH"; } return "km"; case LANG_CATALAN: switch (sub) { case SUBLANG_CATALAN_SPAIN: return "ca_ES"; } return "ca"; case LANG_CHEROKEE: switch (sub) { case SUBLANG_DEFAULT: return "chr_US"; } return "chr"; case LANG_CHINESE: switch (sub) { case SUBLANG_CHINESE_TRADITIONAL: case 0x1f: return "zh_TW"; case SUBLANG_CHINESE_SIMPLIFIED: case 0x00: return "zh_CN"; case SUBLANG_CHINESE_HONGKONG: return "zh_HK"; /* traditional */ case SUBLANG_CHINESE_SINGAPORE: return "zh_SG"; /* simplified */ case SUBLANG_CHINESE_MACAU: return "zh_MO"; /* traditional */ } return "zh"; case LANG_CORSICAN: switch (sub) { case SUBLANG_CORSICAN_FRANCE: return "co_FR"; } return "co"; case LANG_CROATIAN: /* LANG_CROATIAN == LANG_SERBIAN == LANG_BOSNIAN * What used to be called Serbo-Croatian * should really now be two separate * languages because of political reasons. * (Says tml, who knows nothing about Serbian * or Croatian.) * (I can feel those flames coming already.) */ switch (sub) { /* Croatian */ case 0x00: return "hr"; case SUBLANG_CROATIAN_CROATIA: return "hr_HR"; case SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN: return "hr_BA"; /* Serbian */ case 0x1f: return "sr"; case 0x1c: return "sr"; /* latin */ case SUBLANG_SERBIAN_LATIN: return "sr_CS"; /* latin */ case 0x09: return "sr_RS"; /* latin */ case 0x0b: return "sr_ME"; /* latin */ case 0x06: return "sr_BA"; /* latin */ case 0x1b: return "sr@cyrillic"; case SUBLANG_SERBIAN_CYRILLIC: return "sr_CS@cyrillic"; case 0x0a: return "sr_RS@cyrillic"; case 0x0c: return "sr_ME@cyrillic"; case 0x07: return "sr_BA@cyrillic"; /* Bosnian */ case 0x1e: return "bs"; case 0x1a: return "bs"; /* latin */ case SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN: return "bs_BA"; /* latin */ case 0x19: return "bs@cyrillic"; case SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC: return "bs_BA@cyrillic"; } return "hr"; case LANG_CZECH: switch (sub) { case SUBLANG_CZECH_CZECH_REPUBLIC: return "cs_CZ"; } return "cs"; case LANG_DANISH: switch (sub) { case SUBLANG_DANISH_DENMARK: return "da_DK"; } return "da"; case LANG_DARI: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { case SUBLANG_DARI_AFGHANISTAN: return "prs_AF"; } return "prs"; case LANG_DIVEHI: switch (sub) { case SUBLANG_DIVEHI_MALDIVES: return "dv_MV"; } return "dv"; case LANG_DUTCH: switch (sub) { case SUBLANG_DUTCH: return "nl_NL"; case SUBLANG_DUTCH_BELGIAN: /* FLEMISH, VLAAMS */ return "nl_BE"; case SUBLANG_DUTCH_SURINAM: return "nl_SR"; } return "nl"; case LANG_EDO: switch (sub) { case SUBLANG_DEFAULT: return "bin_NG"; } return "bin"; case LANG_ENGLISH: switch (sub) { /* SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. Heh. I thought * English was the language spoken in England. * Oh well. */ case SUBLANG_ENGLISH_US: return "en_US"; case SUBLANG_ENGLISH_UK: return "en_GB"; case SUBLANG_ENGLISH_AUS: return "en_AU"; case SUBLANG_ENGLISH_CAN: return "en_CA"; case SUBLANG_ENGLISH_NZ: return "en_NZ"; case SUBLANG_ENGLISH_EIRE: return "en_IE"; case SUBLANG_ENGLISH_SOUTH_AFRICA: return "en_ZA"; case SUBLANG_ENGLISH_JAMAICA: return "en_JM"; case SUBLANG_ENGLISH_CARIBBEAN: return "en_GD"; /* Grenada? */ case SUBLANG_ENGLISH_BELIZE: return "en_BZ"; case SUBLANG_ENGLISH_TRINIDAD: return "en_TT"; case SUBLANG_ENGLISH_ZIMBABWE: return "en_ZW"; case SUBLANG_ENGLISH_PHILIPPINES: return "en_PH"; case SUBLANG_ENGLISH_INDONESIA: return "en_ID"; case SUBLANG_ENGLISH_HONGKONG: return "en_HK"; case SUBLANG_ENGLISH_INDIA: return "en_IN"; case SUBLANG_ENGLISH_MALAYSIA: return "en_MY"; case SUBLANG_ENGLISH_SINGAPORE: return "en_SG"; } return "en"; case LANG_ESTONIAN: switch (sub) { case SUBLANG_ESTONIAN_ESTONIA: return "et_EE"; } return "et"; case LANG_FAEROESE: switch (sub) { case SUBLANG_FAEROESE_FAROE_ISLANDS: return "fo_FO"; } return "fo"; case LANG_FARSI: switch (sub) { case SUBLANG_FARSI_IRAN: return "fa_IR"; } return "fa"; case LANG_FINNISH: switch (sub) { case SUBLANG_FINNISH_FINLAND: return "fi_FI"; } return "fi"; case LANG_FRENCH: switch (sub) { case SUBLANG_FRENCH: return "fr_FR"; case SUBLANG_FRENCH_BELGIAN: /* WALLOON */ return "fr_BE"; case SUBLANG_FRENCH_CANADIAN: return "fr_CA"; case SUBLANG_FRENCH_SWISS: return "fr_CH"; case SUBLANG_FRENCH_LUXEMBOURG: return "fr_LU"; case SUBLANG_FRENCH_MONACO: return "fr_MC"; case SUBLANG_FRENCH_WESTINDIES: return "fr"; /* Caribbean? */ case SUBLANG_FRENCH_REUNION: return "fr_RE"; case SUBLANG_FRENCH_CONGO: return "fr_CG"; case SUBLANG_FRENCH_SENEGAL: return "fr_SN"; case SUBLANG_FRENCH_CAMEROON: return "fr_CM"; case SUBLANG_FRENCH_COTEDIVOIRE: return "fr_CI"; case SUBLANG_FRENCH_MALI: return "fr_ML"; case SUBLANG_FRENCH_MOROCCO: return "fr_MA"; case SUBLANG_FRENCH_HAITI: return "fr_HT"; } return "fr"; case LANG_FRISIAN: switch (sub) { case SUBLANG_FRISIAN_NETHERLANDS: return "fy_NL"; } return "fy"; case LANG_FULFULDE: /* Spoken in Nigeria, Guinea, Senegal, Mali, Niger, Cameroon, Benin. */ switch (sub) { case SUBLANG_DEFAULT: return "ff_NG"; } return "ff"; case LANG_GAELIC: switch (sub) { case 0x01: /* SCOTTISH */ /* old, superseded by LANG_SCOTTISH_GAELIC */ return "gd_GB"; case SUBLANG_IRISH_IRELAND: return "ga_IE"; } return "ga"; case LANG_GALICIAN: switch (sub) { case SUBLANG_GALICIAN_SPAIN: return "gl_ES"; } return "gl"; case LANG_GEORGIAN: switch (sub) { case SUBLANG_GEORGIAN_GEORGIA: return "ka_GE"; } return "ka"; case LANG_GERMAN: switch (sub) { case SUBLANG_GERMAN: return "de_DE"; case SUBLANG_GERMAN_SWISS: return "de_CH"; case SUBLANG_GERMAN_AUSTRIAN: return "de_AT"; case SUBLANG_GERMAN_LUXEMBOURG: return "de_LU"; case SUBLANG_GERMAN_LIECHTENSTEIN: return "de_LI"; } return "de"; case LANG_GREEK: switch (sub) { case SUBLANG_GREEK_GREECE: return "el_GR"; } return "el"; case LANG_GREENLANDIC: switch (sub) { case SUBLANG_GREENLANDIC_GREENLAND: return "kl_GL"; } return "kl"; case LANG_GUARANI: switch (sub) { case SUBLANG_DEFAULT: return "gn_PY"; } return "gn"; case LANG_GUJARATI: switch (sub) { case SUBLANG_GUJARATI_INDIA: return "gu_IN"; } return "gu"; case LANG_HAUSA: switch (sub) { case 0x1f: return "ha"; case SUBLANG_HAUSA_NIGERIA_LATIN: return "ha_NG"; } return "ha"; case LANG_HAWAIIAN: /* FIXME: Do they mean Hawaiian ("haw_US", 1000 speakers) or Hawaii Creole English ("cpe_US", 600000 speakers)? */ switch (sub) { case SUBLANG_DEFAULT: return "cpe_US"; } return "cpe"; case LANG_HEBREW: switch (sub) { case SUBLANG_HEBREW_ISRAEL: return "he_IL"; } return "he"; case LANG_HINDI: switch (sub) { case SUBLANG_HINDI_INDIA: return "hi_IN"; } return "hi"; case LANG_HUNGARIAN: switch (sub) { case SUBLANG_HUNGARIAN_HUNGARY: return "hu_HU"; } return "hu"; case LANG_IBIBIO: switch (sub) { case SUBLANG_DEFAULT: return "nic_NG"; } return "nic"; case LANG_ICELANDIC: switch (sub) { case SUBLANG_ICELANDIC_ICELAND: return "is_IS"; } return "is"; case LANG_IGBO: switch (sub) { case SUBLANG_IGBO_NIGERIA: return "ig_NG"; } return "ig"; case LANG_INDONESIAN: switch (sub) { case SUBLANG_INDONESIAN_INDONESIA: return "id_ID"; } return "id"; case LANG_INUKTITUT: switch (sub) { case 0x1e: return "iu"; /* syllabic */ case SUBLANG_INUKTITUT_CANADA: return "iu_CA"; /* syllabic */ case 0x1f: return "iu@latin"; case SUBLANG_INUKTITUT_CANADA_LATIN: return "iu_CA@latin"; } return "iu"; case LANG_ITALIAN: switch (sub) { case SUBLANG_ITALIAN: return "it_IT"; case SUBLANG_ITALIAN_SWISS: return "it_CH"; } return "it"; case LANG_JAPANESE: switch (sub) { case SUBLANG_JAPANESE_JAPAN: return "ja_JP"; } return "ja"; case LANG_KANNADA: switch (sub) { case SUBLANG_KANNADA_INDIA: return "kn_IN"; } return "kn"; case LANG_KANURI: switch (sub) { case SUBLANG_DEFAULT: return "kr_NG"; } return "kr"; case LANG_KASHMIRI: switch (sub) { case SUBLANG_DEFAULT: return "ks_PK"; case SUBLANG_KASHMIRI_INDIA: return "ks_IN"; } return "ks"; case LANG_KAZAK: switch (sub) { case SUBLANG_KAZAK_KAZAKHSTAN: return "kk_KZ"; } return "kk"; case LANG_KICHE: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { case SUBLANG_KICHE_GUATEMALA: return "qut_GT"; } return "qut"; case LANG_KINYARWANDA: switch (sub) { case SUBLANG_KINYARWANDA_RWANDA: return "rw_RW"; } return "rw"; case LANG_KONKANI: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { case SUBLANG_KONKANI_INDIA: return "kok_IN"; } return "kok"; case LANG_KOREAN: switch (sub) { case SUBLANG_DEFAULT: return "ko_KR"; } return "ko"; case LANG_KYRGYZ: switch (sub) { case SUBLANG_KYRGYZ_KYRGYZSTAN: return "ky_KG"; } return "ky"; case LANG_LAO: switch (sub) { case SUBLANG_LAO_LAOS: return "lo_LA"; } return "lo"; case LANG_LATIN: switch (sub) { case SUBLANG_DEFAULT: return "la_VA"; } return "la"; case LANG_LATVIAN: switch (sub) { case SUBLANG_LATVIAN_LATVIA: return "lv_LV"; } return "lv"; case LANG_LITHUANIAN: switch (sub) { case SUBLANG_LITHUANIAN_LITHUANIA: return "lt_LT"; } return "lt"; case LANG_LUXEMBOURGISH: switch (sub) { case SUBLANG_LUXEMBOURGISH_LUXEMBOURG: return "lb_LU"; } return "lb"; case LANG_MACEDONIAN: switch (sub) { case SUBLANG_MACEDONIAN_MACEDONIA: return "mk_MK"; } return "mk"; case LANG_MALAY: switch (sub) { case SUBLANG_MALAY_MALAYSIA: return "ms_MY"; case SUBLANG_MALAY_BRUNEI_DARUSSALAM: return "ms_BN"; } return "ms"; case LANG_MALAYALAM: switch (sub) { case SUBLANG_MALAYALAM_INDIA: return "ml_IN"; } return "ml"; case LANG_MALTESE: switch (sub) { case SUBLANG_MALTESE_MALTA: return "mt_MT"; } return "mt"; case LANG_MANIPURI: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { case SUBLANG_DEFAULT: return "mni_IN"; } return "mni"; case LANG_MAORI: switch (sub) { case SUBLANG_MAORI_NEW_ZEALAND: return "mi_NZ"; } return "mi"; case LANG_MAPUDUNGUN: switch (sub) { case SUBLANG_MAPUDUNGUN_CHILE: return "arn_CL"; } return "arn"; case LANG_MARATHI: switch (sub) { case SUBLANG_MARATHI_INDIA: return "mr_IN"; } return "mr"; case LANG_MOHAWK: switch (sub) { case SUBLANG_MOHAWK_CANADA: return "moh_CA"; } return "moh"; case LANG_MONGOLIAN: switch (sub) { case SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA: case 0x1e: return "mn_MN"; case SUBLANG_MONGOLIAN_PRC: case 0x1f: return "mn_CN"; } return "mn"; /* Ambiguous: could be "mn_CN" or "mn_MN". */ case LANG_NEPALI: switch (sub) { case SUBLANG_NEPALI_NEPAL: return "ne_NP"; case SUBLANG_NEPALI_INDIA: return "ne_IN"; } return "ne"; case LANG_NORWEGIAN: switch (sub) { case 0x1f: return "nb"; case SUBLANG_NORWEGIAN_BOKMAL: return "nb_NO"; case 0x1e: return "nn"; case SUBLANG_NORWEGIAN_NYNORSK: return "nn_NO"; } return "no"; case LANG_OCCITAN: switch (sub) { case SUBLANG_OCCITAN_FRANCE: return "oc_FR"; } return "oc"; case LANG_ORIYA: switch (sub) { case SUBLANG_ORIYA_INDIA: return "or_IN"; } return "or"; case LANG_OROMO: switch (sub) { case SUBLANG_DEFAULT: return "om_ET"; } return "om"; case LANG_PAPIAMENTU: switch (sub) { case SUBLANG_DEFAULT: return "pap_AN"; } return "pap"; case LANG_PASHTO: switch (sub) { case SUBLANG_PASHTO_AFGHANISTAN: return "ps_AF"; } return "ps"; /* Ambiguous: could be "ps_PK" or "ps_AF". */ case LANG_POLISH: switch (sub) { case SUBLANG_POLISH_POLAND: return "pl_PL"; } return "pl"; case LANG_PORTUGUESE: switch (sub) { /* Hmm. SUBLANG_PORTUGUESE_BRAZILIAN == SUBLANG_DEFAULT. Same phenomenon as SUBLANG_ENGLISH_US == SUBLANG_DEFAULT. */ case SUBLANG_PORTUGUESE_BRAZILIAN: return "pt_BR"; case SUBLANG_PORTUGUESE: return "pt_PT"; } return "pt"; case LANG_PUNJABI: switch (sub) { case SUBLANG_PUNJABI_INDIA: return "pa_IN"; /* Gurmukhi script */ case SUBLANG_PUNJABI_PAKISTAN: return "pa_PK"; /* Arabic script */ } return "pa"; case LANG_QUECHUA: /* Note: Microsoft uses the non-ISO language code "quz". */ switch (sub) { case SUBLANG_QUECHUA_BOLIVIA: return "qu_BO"; case SUBLANG_QUECHUA_ECUADOR: return "qu_EC"; case SUBLANG_QUECHUA_PERU: return "qu_PE"; } return "qu"; case LANG_ROMANIAN: switch (sub) { case SUBLANG_ROMANIAN_ROMANIA: return "ro_RO"; case SUBLANG_ROMANIAN_MOLDOVA: return "ro_MD"; } return "ro"; case LANG_ROMANSH: switch (sub) { case SUBLANG_ROMANSH_SWITZERLAND: return "rm_CH"; } return "rm"; case LANG_RUSSIAN: switch (sub) { case SUBLANG_RUSSIAN_RUSSIA: return "ru_RU"; case SUBLANG_RUSSIAN_MOLDAVIA: return "ru_MD"; } return "ru"; /* Ambiguous: could be "ru_RU" or "ru_UA" or "ru_MD". */ case LANG_SAMI: switch (sub) { /* Northern Sami */ case 0x00: return "se"; case SUBLANG_SAMI_NORTHERN_NORWAY: return "se_NO"; case SUBLANG_SAMI_NORTHERN_SWEDEN: return "se_SE"; case SUBLANG_SAMI_NORTHERN_FINLAND: return "se_FI"; /* Lule Sami */ case 0x1f: return "smj"; case SUBLANG_SAMI_LULE_NORWAY: return "smj_NO"; case SUBLANG_SAMI_LULE_SWEDEN: return "smj_SE"; /* Southern Sami */ case 0x1e: return "sma"; case SUBLANG_SAMI_SOUTHERN_NORWAY: return "sma_NO"; case SUBLANG_SAMI_SOUTHERN_SWEDEN: return "sma_SE"; /* Skolt Sami */ case 0x1d: return "sms"; case SUBLANG_SAMI_SKOLT_FINLAND: return "sms_FI"; /* Inari Sami */ case 0x1c: return "smn"; case SUBLANG_SAMI_INARI_FINLAND: return "smn_FI"; } return "se"; /* or "smi"? */ case LANG_SANSKRIT: switch (sub) { case SUBLANG_SANSKRIT_INDIA: return "sa_IN"; } return "sa"; case LANG_SCOTTISH_GAELIC: switch (sub) { case SUBLANG_DEFAULT: return "gd_GB"; } return "gd"; case LANG_SINDHI: switch (sub) { case SUBLANG_SINDHI_INDIA: return "sd_IN"; case SUBLANG_SINDHI_PAKISTAN: return "sd_PK"; /*case SUBLANG_SINDHI_AFGHANISTAN: return "sd_AF";*/ } return "sd"; case LANG_SINHALESE: switch (sub) { case SUBLANG_SINHALESE_SRI_LANKA: return "si_LK"; } return "si"; case LANG_SLOVAK: switch (sub) { case SUBLANG_SLOVAK_SLOVAKIA: return "sk_SK"; } return "sk"; case LANG_SLOVENIAN: switch (sub) { case SUBLANG_SLOVENIAN_SLOVENIA: return "sl_SI"; } return "sl"; case LANG_SOMALI: switch (sub) { case SUBLANG_DEFAULT: return "so_SO"; } return "so"; case LANG_SORBIAN: /* FIXME: Adjust this when such locales appear on Unix. */ switch (sub) { /* Upper Sorbian */ case 0x00: return "hsb"; case SUBLANG_UPPER_SORBIAN_GERMANY: return "hsb_DE"; /* Lower Sorbian */ case 0x1f: return "dsb"; case SUBLANG_LOWER_SORBIAN_GERMANY: return "dsb_DE"; } return "wen"; case LANG_SOTHO: /* calls it "Sepedi"; according to it's the same as Northern Sotho. */ switch (sub) { case SUBLANG_SOTHO_SOUTH_AFRICA: return "nso_ZA"; } return "nso"; case LANG_SPANISH: switch (sub) { case SUBLANG_SPANISH: return "es_ES"; case SUBLANG_SPANISH_MEXICAN: return "es_MX"; case SUBLANG_SPANISH_MODERN: return "es_ES@modern"; /* not seen on Unix */ case SUBLANG_SPANISH_GUATEMALA: return "es_GT"; case SUBLANG_SPANISH_COSTA_RICA: return "es_CR"; case SUBLANG_SPANISH_PANAMA: return "es_PA"; case SUBLANG_SPANISH_DOMINICAN_REPUBLIC: return "es_DO"; case SUBLANG_SPANISH_VENEZUELA: return "es_VE"; case SUBLANG_SPANISH_COLOMBIA: return "es_CO"; case SUBLANG_SPANISH_PERU: return "es_PE"; case SUBLANG_SPANISH_ARGENTINA: return "es_AR"; case SUBLANG_SPANISH_ECUADOR: return "es_EC"; case SUBLANG_SPANISH_CHILE: return "es_CL"; case SUBLANG_SPANISH_URUGUAY: return "es_UY"; case SUBLANG_SPANISH_PARAGUAY: return "es_PY"; case SUBLANG_SPANISH_BOLIVIA: return "es_BO"; case SUBLANG_SPANISH_EL_SALVADOR: return "es_SV"; case SUBLANG_SPANISH_HONDURAS: return "es_HN"; case SUBLANG_SPANISH_NICARAGUA: return "es_NI"; case SUBLANG_SPANISH_PUERTO_RICO: return "es_PR"; case SUBLANG_SPANISH_US: return "es_US"; } return "es"; case LANG_SUTU: switch (sub) { case SUBLANG_DEFAULT: return "bnt_TZ"; /* or "st_LS" or "nso_ZA"? */ } return "bnt"; case LANG_SWAHILI: switch (sub) { case SUBLANG_SWAHILI_KENYA: return "sw_KE"; } return "sw"; case LANG_SWEDISH: switch (sub) { case SUBLANG_SWEDISH_SWEDEN: return "sv_SE"; case SUBLANG_SWEDISH_FINLAND: return "sv_FI"; } return "sv"; case LANG_SYRIAC: switch (sub) { case SUBLANG_SYRIAC_SYRIA: return "syr_SY"; /* An extinct language. */ } return "syr"; case LANG_TAGALOG: switch (sub) { case SUBLANG_TAGALOG_PHILIPPINES: return "tl_PH"; /* or "fil_PH"? */ } return "tl"; /* or "fil"? */ case LANG_TAJIK: switch (sub) { case 0x1f: return "tg"; case SUBLANG_TAJIK_TAJIKISTAN: return "tg_TJ"; } return "tg"; case LANG_TAMAZIGHT: /* Note: Microsoft uses the non-ISO language code "tmz". */ switch (sub) { /* FIXME: Adjust this when Tamazight locales appear on Unix. */ case SUBLANG_TAMAZIGHT_ARABIC: return "ber_MA@arabic"; case 0x1f: return "ber@latin"; case SUBLANG_TAMAZIGHT_ALGERIA_LATIN: return "ber_DZ@latin"; } return "ber"; case LANG_TAMIL: switch (sub) { case SUBLANG_TAMIL_INDIA: return "ta_IN"; } return "ta"; /* Ambiguous: could be "ta_IN" or "ta_LK" or "ta_SG". */ case LANG_TATAR: switch (sub) { case SUBLANG_TATAR_RUSSIA: return "tt_RU"; } return "tt"; case LANG_TELUGU: switch (sub) { case SUBLANG_TELUGU_INDIA: return "te_IN"; } return "te"; case LANG_THAI: switch (sub) { case SUBLANG_THAI_THAILAND: return "th_TH"; } return "th"; case LANG_TIBETAN: switch (sub) { case SUBLANG_TIBETAN_PRC: /* Most Tibetans would not like "bo_CN". But Tibet does not yet have a country code of its own. */ return "bo"; case SUBLANG_TIBETAN_BHUTAN: return "bo_BT"; } return "bo"; case LANG_TIGRINYA: switch (sub) { case SUBLANG_TIGRINYA_ETHIOPIA: return "ti_ET"; case SUBLANG_TIGRINYA_ERITREA: return "ti_ER"; } return "ti"; case LANG_TSONGA: switch (sub) { case SUBLANG_DEFAULT: return "ts_ZA"; } return "ts"; case LANG_TSWANA: /* Spoken in South Africa, Botswana. */ switch (sub) { case SUBLANG_TSWANA_SOUTH_AFRICA: return "tn_ZA"; } return "tn"; case LANG_TURKISH: switch (sub) { case SUBLANG_TURKISH_TURKEY: return "tr_TR"; } return "tr"; case LANG_TURKMEN: switch (sub) { case SUBLANG_TURKMEN_TURKMENISTAN: return "tk_TM"; } return "tk"; case LANG_UIGHUR: switch (sub) { case SUBLANG_UIGHUR_PRC: return "ug_CN"; } return "ug"; case LANG_UKRAINIAN: switch (sub) { case SUBLANG_UKRAINIAN_UKRAINE: return "uk_UA"; } return "uk"; case LANG_URDU: switch (sub) { case SUBLANG_URDU_PAKISTAN: return "ur_PK"; case SUBLANG_URDU_INDIA: return "ur_IN"; } return "ur"; case LANG_UZBEK: switch (sub) { case 0x1f: return "uz"; case SUBLANG_UZBEK_LATIN: return "uz_UZ"; case 0x1e: return "uz@cyrillic"; case SUBLANG_UZBEK_CYRILLIC: return "uz_UZ@cyrillic"; } return "uz"; case LANG_VENDA: switch (sub) { case SUBLANG_DEFAULT: return "ve_ZA"; } return "ve"; case LANG_VIETNAMESE: switch (sub) { case SUBLANG_VIETNAMESE_VIETNAM: return "vi_VN"; } return "vi"; case LANG_WELSH: switch (sub) { case SUBLANG_WELSH_UNITED_KINGDOM: return "cy_GB"; } return "cy"; case LANG_WOLOF: switch (sub) { case SUBLANG_WOLOF_SENEGAL: return "wo_SN"; } return "wo"; case LANG_XHOSA: switch (sub) { case SUBLANG_XHOSA_SOUTH_AFRICA: return "xh_ZA"; } return "xh"; case LANG_YAKUT: switch (sub) { case SUBLANG_YAKUT_RUSSIA: return "sah_RU"; } return "sah"; case LANG_YI: switch (sub) { case SUBLANG_YI_PRC: return "ii_CN"; } return "ii"; case LANG_YIDDISH: switch (sub) { case SUBLANG_DEFAULT: return "yi_IL"; } return "yi"; case LANG_YORUBA: switch (sub) { case SUBLANG_YORUBA_NIGERIA: return "yo_NG"; } return "yo"; case LANG_ZULU: switch (sub) { case SUBLANG_ZULU_SOUTH_AFRICA: return "zu_ZA"; } return "zu"; default: return "C"; } } } # if !defined IN_LIBINTL static # endif const char * gl_locale_name_from_win32_LCID (LCID lcid) { LANGID langid; /* Strip off the sorting rules, keep only the language part. */ langid = LANGIDFROMLCID (lcid); return gl_locale_name_from_win32_LANGID (langid); } #endif #if HAVE_USELOCALE /* glibc or MacOS X */ /* Simple hash set of strings. We don't want to drag in lots of hash table code here. */ # define SIZE_BITS (sizeof (size_t) * CHAR_BIT) /* A hash function for NUL-terminated char* strings using the method described by Bruno Haible. See http://www.haible.de/bruno/hashfunc.html. */ static size_t string_hash (const void *x) { const char *s = (const char *) x; size_t h = 0; for (; *s; s++) h = *s + ((h << 9) | (h >> (SIZE_BITS - 9))); return h; } /* A hash table of fixed size. Multiple threads can access it read-only simultaneously, but only one thread can insert into it at the same time. */ /* A node in a hash bucket collision list. */ struct hash_node { struct hash_node * volatile next; char contents[100]; /* has variable size */ }; # define HASH_TABLE_SIZE 257 static struct hash_node * volatile struniq_hash_table[HASH_TABLE_SIZE] /* = { NULL, ..., NULL } */; /* This lock protects the struniq_hash_table against multiple simultaneous insertions. */ gl_lock_define_initialized(static, struniq_lock) /* Store a copy of the given string in a string pool with indefinite extent. Return a pointer to this copy. */ static const char * struniq (const char *string) { size_t hashcode = string_hash (string); size_t slot = hashcode % HASH_TABLE_SIZE; size_t size; struct hash_node *new_node; struct hash_node *p; for (p = struniq_hash_table[slot]; p != NULL; p = p->next) if (strcmp (p->contents, string) == 0) return p->contents; size = strlen (string) + 1; new_node = (struct hash_node *) malloc (offsetof (struct hash_node, contents[0]) + size); if (new_node == NULL) /* Out of memory. Return a statically allocated string. */ return "C"; memcpy (new_node->contents, string, size); /* Lock while inserting new_node. */ gl_lock_lock (struniq_lock); /* Check whether another thread already added the string while we were waiting on the lock. */ for (p = struniq_hash_table[slot]; p != NULL; p = p->next) if (strcmp (p->contents, string) == 0) { free (new_node); new_node = p; goto done; } /* Really insert new_node into the hash table. Fill new_node entirely first, because other threads may be iterating over the linked list. */ new_node->next = struniq_hash_table[slot]; struniq_hash_table[slot] = new_node; done: /* Unlock after new_node is inserted. */ gl_lock_unlock (struniq_lock); return new_node->contents; } #endif #if defined IN_LIBINTL || HAVE_USELOCALE /* Like gl_locale_name_thread, except that the result is not in storage of indefinite extent. */ # if !defined IN_LIBINTL static # endif const char * gl_locale_name_thread_unsafe (int category, const char *categoryname) { # if HAVE_USELOCALE { locale_t thread_locale = uselocale (NULL); if (thread_locale != LC_GLOBAL_LOCALE) { # if __GLIBC__ >= 2 /* Work around an incorrect definition of the _NL_LOCALE_NAME macro in glibc < 2.12. See . */ const char *name = nl_langinfo (_NL_ITEM ((category), _NL_ITEM_INDEX (-1))); if (name[0] == '\0') /* Fallback code for glibc < 2.4, which did not implement nl_langinfo (_NL_LOCALE_NAME (category)). */ name = thread_locale->__names[category]; return name; # endif # if defined __APPLE__ && defined __MACH__ /* MacOS X */ /* The locale name is found deep in an undocumented data structure. Since it's stored in a buffer of size 32 and newlocale() rejects locale names of length > 31, we can assume that it is NUL terminated in this buffer. But we need to make a copy of the locale name, of indefinite extent. */ struct _xlocale_part1_v0 /* used in MacOS X 10.5 */ { int32_t __refcount; void (*__free_extra)(void *); __darwin_mbstate_t __mbs[10]; int64_t __magic; }; struct _xlocale_part1_v1 /* used in MacOS X >= 10.6.0 */ { int32_t __refcount; void (*__free_extra)(void *); __darwin_mbstate_t __mbs[10]; /*pthread_lock_t*/ int __lock; int64_t __magic; }; struct _xlocale_part2 { int64_t __magic; unsigned char __collate_load_error; unsigned char __collate_substitute_nontrivial; unsigned char _messages_using_locale; unsigned char _monetary_using_locale; unsigned char _numeric_using_locale; unsigned char _time_using_locale; unsigned char __mlocale_changed; unsigned char __nlocale_changed; unsigned char __numeric_fp_cvt; struct __xlocale_st_collate *__lc_collate; struct __xlocale_st_runelocale *__lc_ctype; struct __xlocale_st_messages *__lc_messages; struct __xlocale_st_monetary *__lc_monetary; struct __xlocale_st_numeric *__lc_numeric; struct _xlocale *__lc_numeric_loc; struct __xlocale_st_time *__lc_time; /* more */ }; struct __xlocale_st_collate { int32_t __refcount; void (*__free_extra)(void *); char __encoding[32]; /* more */ }; struct __xlocale_st_runelocale { int32_t __refcount; void (*__free_extra)(void *); char __ctype_encoding[32]; /* more */ }; struct __xlocale_st_messages { int32_t __refcount; void (*__free_extra)(void *); char *_messages_locale_buf; /* more */ }; struct __xlocale_st_monetary { int32_t __refcount; void (*__free_extra)(void *); char *_monetary_locale_buf; /* more */ }; struct __xlocale_st_numeric { int32_t __refcount; void (*__free_extra)(void *); char *_numeric_locale_buf; /* more */ }; struct __xlocale_st_time { int32_t __refcount; void (*__free_extra)(void *); char *_time_locale_buf; /* more */ }; struct _xlocale_part2 *tlp; if (((struct _xlocale_part1_v0 *) thread_locale)->__magic == 0x786C6F63616C6530LL) /* MacOS X 10.5 */ tlp = (struct _xlocale_part2 *) &((struct _xlocale_part1_v0 *) thread_locale)->__magic; else if (((struct _xlocale_part1_v1 *) thread_locale)->__magic == 0x786C6F63616C6530LL) /* MacOS X >= 10.6.0 */ tlp = (struct _xlocale_part2 *) &((struct _xlocale_part1_v1 *) thread_locale)->__magic; else /* Unsupported version of MacOS X: The internals of 'struct _xlocale' have changed again. */ return ""; switch (category) { case LC_CTYPE: return tlp->__lc_ctype->__ctype_encoding; case LC_NUMERIC: return tlp->_numeric_using_locale ? tlp->__lc_numeric->_numeric_locale_buf : "C"; case LC_TIME: return tlp->_time_using_locale ? tlp->__lc_time->_time_locale_buf : "C"; case LC_COLLATE: return !tlp->__collate_load_error ? tlp->__lc_collate->__encoding : "C"; case LC_MONETARY: return tlp->_monetary_using_locale ? tlp->__lc_monetary->_monetary_locale_buf : "C"; case LC_MESSAGES: return tlp->_messages_using_locale ? tlp->__lc_messages->_messages_locale_buf : "C"; default: /* We shouldn't get here. */ return ""; } # endif } } # endif return NULL; } #endif const char * gl_locale_name_thread (int category, const char *categoryname) { #if HAVE_USELOCALE const char *name = gl_locale_name_thread_unsafe (category, categoryname); if (name != NULL) return struniq (name); #endif return NULL; } /* XPG3 defines the result of 'setlocale (category, NULL)' as: "Directs 'setlocale()' to query 'category' and return the current setting of 'local'." However it does not specify the exact format. Neither do SUSV2 and ISO C 99. So we can use this feature only on selected systems (e.g. those using GNU C Library). */ #if defined _LIBC || (defined __GLIBC__ && __GLIBC__ >= 2) # define HAVE_LOCALE_NULL #endif const char * gl_locale_name_posix (int category, const char *categoryname) { /* Use the POSIX methods of looking to 'LC_ALL', 'LC_xxx', and 'LANG'. On some systems this can be done by the 'setlocale' function itself. */ #if defined HAVE_SETLOCALE && defined HAVE_LC_MESSAGES && defined HAVE_LOCALE_NULL return setlocale (category, NULL); #else /* On other systems we ignore what setlocale reports and instead look at the environment variables directly. This is necessary 1. on systems which have a facility for customizing the default locale (MacOS X, native Windows, Cygwin) and where the system's setlocale() function ignores this default locale (MacOS X, Cygwin), in two cases: a. when the user missed to use the setlocale() override from libintl (for example by not including ), b. when setlocale supports only the "C" locale, such as on Cygwin 1.5.x. In this case even the override from libintl cannot help. 2. on all systems where setlocale supports only the "C" locale. */ /* Strictly speaking, it is a POSIX violation to look at the environment variables regardless whether setlocale has been called or not. POSIX says: "For C-language programs, the POSIX locale shall be the default locale when the setlocale() function is not called." But we assume that all programs that use internationalized APIs call setlocale (LC_ALL, ""). */ return gl_locale_name_environ (category, categoryname); #endif } const char * gl_locale_name_environ (int category, const char *categoryname) { const char *retval; /* Setting of LC_ALL overrides all other. */ retval = getenv ("LC_ALL"); if (retval != NULL && retval[0] != '\0') return retval; /* Next comes the name of the desired category. */ retval = getenv (categoryname); if (retval != NULL && retval[0] != '\0') return retval; /* Last possibility is the LANG environment variable. */ retval = getenv ("LANG"); if (retval != NULL && retval[0] != '\0') { #if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer. Ignore invalid LANG value set by the Terminal application. */ if (strcmp (retval, "UTF-8") != 0) #endif #if defined __CYGWIN__ /* Cygwin. Ignore dummy LANG value set by ~/.profile. */ if (strcmp (retval, "C.UTF-8") != 0) #endif return retval; } return NULL; } const char * gl_locale_name_default (void) { /* POSIX:2001 says: "All implementations shall define a locale as the default locale, to be invoked when no environment variables are set, or set to the empty string. This default locale can be the POSIX locale or any other implementation-defined locale. Some implementations may provide facilities for local installation administrators to set the default locale, customizing it for each location. POSIX:2001 does not require such a facility. The systems with such a facility are MacOS X and Windows: They provide a GUI that allows the user to choose a locale. - On MacOS X, by default, none of LC_* or LANG are set. Starting with MacOS X 10.4 or 10.5, LANG is set for processes launched by the 'Terminal' application (but sometimes to an incorrect value "UTF-8"). When no environment variable is set, setlocale (LC_ALL, "") uses the "C" locale. - On native Windows, by default, none of LC_* or LANG are set. When no environment variable is set, setlocale (LC_ALL, "") uses the locale chosen by the user. - On Cygwin 1.5.x, by default, none of LC_* or LANG are set. When no environment variable is set, setlocale (LC_ALL, "") uses the "C" locale. - On Cygwin 1.7, by default, LANG is set to "C.UTF-8" when the default ~/.profile is executed. When no environment variable is set, setlocale (LC_ALL, "") uses the "C.UTF-8" locale, which operates in the same way as the "C" locale. */ #if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE || defined WIN32_NATIVE || defined __CYGWIN__) /* The system does not have a way of setting the locale, other than the POSIX specified environment variables. We use C as default locale. */ return "C"; #else /* Return an XPG style locale name language[_territory][@modifier]. Don't even bother determining the codeset; it's not useful in this context, because message catalogs are not specific to a single codeset. */ # if HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ { /* Cache the locale name, since CoreFoundation calls are expensive. */ static const char *cached_localename; if (cached_localename == NULL) { char namebuf[256]; # if HAVE_CFLOCALECOPYCURRENT /* MacOS X 10.3 or newer */ CFLocaleRef locale = CFLocaleCopyCurrent (); CFStringRef name = CFLocaleGetIdentifier (locale); if (CFStringGetCString (name, namebuf, sizeof (namebuf), kCFStringEncodingASCII)) { gl_locale_name_canonicalize (namebuf); cached_localename = strdup (namebuf); } CFRelease (locale); # elif HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ CFTypeRef value = CFPreferencesCopyAppValue (CFSTR ("AppleLocale"), kCFPreferencesCurrentApplication); if (value != NULL && CFGetTypeID (value) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)value, namebuf, sizeof (namebuf), kCFStringEncodingASCII)) { gl_locale_name_canonicalize (namebuf); cached_localename = strdup (namebuf); } # endif if (cached_localename == NULL) cached_localename = "C"; } return cached_localename; } # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* WIN32 or Cygwin */ { LCID lcid; /* Use native Win32 API locale ID. */ lcid = GetThreadLocale (); return gl_locale_name_from_win32_LCID (lcid); } # endif #endif } /* Determine the current locale's name, and canonicalize it into XPG syntax language[_territory][.codeset][@modifier] The codeset part in the result is not reliable; the locale_charset() should be used for codeset information instead. The result must not be freed; it is statically allocated. */ const char * gl_locale_name (int category, const char *categoryname) { const char *retval; retval = gl_locale_name_thread (category, categoryname); if (retval != NULL) return retval; retval = gl_locale_name_posix (category, categoryname); if (retval != NULL) return retval; return gl_locale_name_default (); } gtick-0.5.2/intl/lock.c0000644000175000017500000006434611617270152011621 00000000000000/* Locking in multithreaded situations. Copyright (C) 2005-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible , 2005. Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, gthr-win32.h. */ #include #include "lock.h" /* ========================================================================= */ #if USE_POSIX_THREADS /* -------------------------- gl_lock_t datatype -------------------------- */ /* ------------------------- gl_rwlock_t datatype ------------------------- */ # if HAVE_PTHREAD_RWLOCK # if !defined PTHREAD_RWLOCK_INITIALIZER int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_rwlock_init (&lock->rwlock, NULL); if (err != 0) return err; lock->initialized = 1; return 0; } int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) { int err; err = pthread_mutex_lock (&lock->guard); if (err != 0) return err; if (!lock->initialized) { err = glthread_rwlock_init_multithreaded (lock); if (err != 0) { pthread_mutex_unlock (&lock->guard); return err; } } err = pthread_mutex_unlock (&lock->guard); if (err != 0) return err; } return pthread_rwlock_rdlock (&lock->rwlock); } int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) { int err; err = pthread_mutex_lock (&lock->guard); if (err != 0) return err; if (!lock->initialized) { err = glthread_rwlock_init_multithreaded (lock); if (err != 0) { pthread_mutex_unlock (&lock->guard); return err; } } err = pthread_mutex_unlock (&lock->guard); if (err != 0) return err; } return pthread_rwlock_wrlock (&lock->rwlock); } int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) { if (!lock->initialized) return EINVAL; return pthread_rwlock_unlock (&lock->rwlock); } int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) { int err; if (!lock->initialized) return EINVAL; err = pthread_rwlock_destroy (&lock->rwlock); if (err != 0) return err; lock->initialized = 0; return 0; } # endif # else int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_init (&lock->lock, NULL); if (err != 0) return err; err = pthread_cond_init (&lock->waiting_readers, NULL); if (err != 0) return err; err = pthread_cond_init (&lock->waiting_writers, NULL); if (err != 0) return err; lock->waiting_writers_count = 0; lock->runcount = 0; return 0; } int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_lock (&lock->lock); if (err != 0) return err; /* Test whether only readers are currently running, and whether the runcount field will not overflow. */ /* POSIX says: "It is implementation-defined whether the calling thread acquires the lock when a writer does not hold the lock and there are writers blocked on the lock." Let's say, no: give the writers a higher priority. */ while (!(lock->runcount + 1 > 0 && lock->waiting_writers_count == 0)) { /* This thread has to wait for a while. Enqueue it among the waiting_readers. */ err = pthread_cond_wait (&lock->waiting_readers, &lock->lock); if (err != 0) { pthread_mutex_unlock (&lock->lock); return err; } } lock->runcount++; return pthread_mutex_unlock (&lock->lock); } int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_lock (&lock->lock); if (err != 0) return err; /* Test whether no readers or writers are currently running. */ while (!(lock->runcount == 0)) { /* This thread has to wait for a while. Enqueue it among the waiting_writers. */ lock->waiting_writers_count++; err = pthread_cond_wait (&lock->waiting_writers, &lock->lock); if (err != 0) { lock->waiting_writers_count--; pthread_mutex_unlock (&lock->lock); return err; } lock->waiting_writers_count--; } lock->runcount--; /* runcount becomes -1 */ return pthread_mutex_unlock (&lock->lock); } int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_lock (&lock->lock); if (err != 0) return err; if (lock->runcount < 0) { /* Drop a writer lock. */ if (!(lock->runcount == -1)) { pthread_mutex_unlock (&lock->lock); return EINVAL; } lock->runcount = 0; } else { /* Drop a reader lock. */ if (!(lock->runcount > 0)) { pthread_mutex_unlock (&lock->lock); return EINVAL; } lock->runcount--; } if (lock->runcount == 0) { /* POSIX recommends that "write locks shall take precedence over read locks", to avoid "writer starvation". */ if (lock->waiting_writers_count > 0) { /* Wake up one of the waiting writers. */ err = pthread_cond_signal (&lock->waiting_writers); if (err != 0) { pthread_mutex_unlock (&lock->lock); return err; } } else { /* Wake up all waiting readers. */ err = pthread_cond_broadcast (&lock->waiting_readers); if (err != 0) { pthread_mutex_unlock (&lock->lock); return err; } } } return pthread_mutex_unlock (&lock->lock); } int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock) { int err; err = pthread_mutex_destroy (&lock->lock); if (err != 0) return err; err = pthread_cond_destroy (&lock->waiting_readers); if (err != 0) return err; err = pthread_cond_destroy (&lock->waiting_writers); if (err != 0) return err; return 0; } # endif /* --------------------- gl_recursive_lock_t datatype --------------------- */ # if HAVE_PTHREAD_MUTEX_RECURSIVE # if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { pthread_mutexattr_t attributes; int err; err = pthread_mutexattr_init (&attributes); if (err != 0) return err; err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); if (err != 0) { pthread_mutexattr_destroy (&attributes); return err; } err = pthread_mutex_init (lock, &attributes); if (err != 0) { pthread_mutexattr_destroy (&attributes); return err; } err = pthread_mutexattr_destroy (&attributes); if (err != 0) return err; return 0; } # else int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { pthread_mutexattr_t attributes; int err; err = pthread_mutexattr_init (&attributes); if (err != 0) return err; err = pthread_mutexattr_settype (&attributes, PTHREAD_MUTEX_RECURSIVE); if (err != 0) { pthread_mutexattr_destroy (&attributes); return err; } err = pthread_mutex_init (&lock->recmutex, &attributes); if (err != 0) { pthread_mutexattr_destroy (&attributes); return err; } err = pthread_mutexattr_destroy (&attributes); if (err != 0) return err; lock->initialized = 1; return 0; } int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { if (!lock->initialized) { int err; err = pthread_mutex_lock (&lock->guard); if (err != 0) return err; if (!lock->initialized) { err = glthread_recursive_lock_init_multithreaded (lock); if (err != 0) { pthread_mutex_unlock (&lock->guard); return err; } } err = pthread_mutex_unlock (&lock->guard); if (err != 0) return err; } return pthread_mutex_lock (&lock->recmutex); } int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (!lock->initialized) return EINVAL; return pthread_mutex_unlock (&lock->recmutex); } int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { int err; if (!lock->initialized) return EINVAL; err = pthread_mutex_destroy (&lock->recmutex); if (err != 0) return err; lock->initialized = 0; return 0; } # endif # else int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { int err; err = pthread_mutex_init (&lock->mutex, NULL); if (err != 0) return err; lock->owner = (pthread_t) 0; lock->depth = 0; return 0; } int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { pthread_t self = pthread_self (); if (lock->owner != self) { int err; err = pthread_mutex_lock (&lock->mutex); if (err != 0) return err; lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ { lock->depth--; return EAGAIN; } return 0; } int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != pthread_self ()) return EPERM; if (lock->depth == 0) return EINVAL; if (--(lock->depth) == 0) { lock->owner = (pthread_t) 0; return pthread_mutex_unlock (&lock->mutex); } else return 0; } int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != (pthread_t) 0) return EBUSY; return pthread_mutex_destroy (&lock->mutex); } # endif /* -------------------------- gl_once_t datatype -------------------------- */ static const pthread_once_t fresh_once = PTHREAD_ONCE_INIT; int glthread_once_singlethreaded (pthread_once_t *once_control) { /* We don't know whether pthread_once_t is an integer type, a floating-point type, a pointer type, or a structure type. */ char *firstbyte = (char *)once_control; if (*firstbyte == *(const char *)&fresh_once) { /* First time use of once_control. Invert the first byte. */ *firstbyte = ~ *(const char *)&fresh_once; return 1; } else return 0; } #endif /* ========================================================================= */ #if USE_PTH_THREADS /* Use the GNU Pth threads library. */ /* -------------------------- gl_lock_t datatype -------------------------- */ /* ------------------------- gl_rwlock_t datatype ------------------------- */ /* --------------------- gl_recursive_lock_t datatype --------------------- */ /* -------------------------- gl_once_t datatype -------------------------- */ static void glthread_once_call (void *arg) { void (**gl_once_temp_addr) (void) = (void (**) (void)) arg; void (*initfunction) (void) = *gl_once_temp_addr; initfunction (); } int glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)) { void (*temp) (void) = initfunction; return (!pth_once (once_control, glthread_once_call, &temp) ? errno : 0); } int glthread_once_singlethreaded (pth_once_t *once_control) { /* We know that pth_once_t is an integer type. */ if (*once_control == PTH_ONCE_INIT) { /* First time use of once_control. Invert the marker. */ *once_control = ~ PTH_ONCE_INIT; return 1; } else return 0; } #endif /* ========================================================================= */ #if USE_SOLARIS_THREADS /* Use the old Solaris threads library. */ /* -------------------------- gl_lock_t datatype -------------------------- */ /* ------------------------- gl_rwlock_t datatype ------------------------- */ /* --------------------- gl_recursive_lock_t datatype --------------------- */ int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock) { int err; err = mutex_init (&lock->mutex, USYNC_THREAD, NULL); if (err != 0) return err; lock->owner = (thread_t) 0; lock->depth = 0; return 0; } int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock) { thread_t self = thr_self (); if (lock->owner != self) { int err; err = mutex_lock (&lock->mutex); if (err != 0) return err; lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ { lock->depth--; return EAGAIN; } return 0; } int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != thr_self ()) return EPERM; if (lock->depth == 0) return EINVAL; if (--(lock->depth) == 0) { lock->owner = (thread_t) 0; return mutex_unlock (&lock->mutex); } else return 0; } int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock) { if (lock->owner != (thread_t) 0) return EBUSY; return mutex_destroy (&lock->mutex); } /* -------------------------- gl_once_t datatype -------------------------- */ int glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)) { if (!once_control->inited) { int err; /* Use the mutex to guarantee that if another thread is already calling the initfunction, this thread waits until it's finished. */ err = mutex_lock (&once_control->mutex); if (err != 0) return err; if (!once_control->inited) { once_control->inited = 1; initfunction (); } return mutex_unlock (&once_control->mutex); } else return 0; } int glthread_once_singlethreaded (gl_once_t *once_control) { /* We know that gl_once_t contains an integer type. */ if (!once_control->inited) { /* First time use of once_control. Invert the marker. */ once_control->inited = ~ 0; return 1; } else return 0; } #endif /* ========================================================================= */ #if USE_WIN32_THREADS /* -------------------------- gl_lock_t datatype -------------------------- */ void glthread_lock_init_func (gl_lock_t *lock) { InitializeCriticalSection (&lock->lock); lock->guard.done = 1; } int glthread_lock_lock_func (gl_lock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) /* This thread is the first one to need this lock. Initialize it. */ glthread_lock_init (lock); else /* Yield the CPU while waiting for another thread to finish initializing this lock. */ while (!lock->guard.done) Sleep (0); } EnterCriticalSection (&lock->lock); return 0; } int glthread_lock_unlock_func (gl_lock_t *lock) { if (!lock->guard.done) return EINVAL; LeaveCriticalSection (&lock->lock); return 0; } int glthread_lock_destroy_func (gl_lock_t *lock) { if (!lock->guard.done) return EINVAL; DeleteCriticalSection (&lock->lock); lock->guard.done = 0; return 0; } /* ------------------------- gl_rwlock_t datatype ------------------------- */ /* In this file, the waitqueues are implemented as circular arrays. */ #define gl_waitqueue_t gl_carray_waitqueue_t static inline void gl_waitqueue_init (gl_waitqueue_t *wq) { wq->array = NULL; wq->count = 0; wq->alloc = 0; wq->offset = 0; } /* Enqueues the current thread, represented by an event, in a wait queue. Returns INVALID_HANDLE_VALUE if an allocation failure occurs. */ static HANDLE gl_waitqueue_add (gl_waitqueue_t *wq) { HANDLE event; unsigned int index; if (wq->count == wq->alloc) { unsigned int new_alloc = 2 * wq->alloc + 1; HANDLE *new_array = (HANDLE *) realloc (wq->array, new_alloc * sizeof (HANDLE)); if (new_array == NULL) /* No more memory. */ return INVALID_HANDLE_VALUE; /* Now is a good opportunity to rotate the array so that its contents starts at offset 0. */ if (wq->offset > 0) { unsigned int old_count = wq->count; unsigned int old_alloc = wq->alloc; unsigned int old_offset = wq->offset; unsigned int i; if (old_offset + old_count > old_alloc) { unsigned int limit = old_offset + old_count - old_alloc; for (i = 0; i < limit; i++) new_array[old_alloc + i] = new_array[i]; } for (i = 0; i < old_count; i++) new_array[i] = new_array[old_offset + i]; wq->offset = 0; } wq->array = new_array; wq->alloc = new_alloc; } /* Whether the created event is a manual-reset one or an auto-reset one, does not matter, since we will wait on it only once. */ event = CreateEvent (NULL, TRUE, FALSE, NULL); if (event == INVALID_HANDLE_VALUE) /* No way to allocate an event. */ return INVALID_HANDLE_VALUE; index = wq->offset + wq->count; if (index >= wq->alloc) index -= wq->alloc; wq->array[index] = event; wq->count++; return event; } /* Notifies the first thread from a wait queue and dequeues it. */ static inline void gl_waitqueue_notify_first (gl_waitqueue_t *wq) { SetEvent (wq->array[wq->offset + 0]); wq->offset++; wq->count--; if (wq->count == 0 || wq->offset == wq->alloc) wq->offset = 0; } /* Notifies all threads from a wait queue and dequeues them all. */ static inline void gl_waitqueue_notify_all (gl_waitqueue_t *wq) { unsigned int i; for (i = 0; i < wq->count; i++) { unsigned int index = wq->offset + i; if (index >= wq->alloc) index -= wq->alloc; SetEvent (wq->array[index]); } wq->count = 0; wq->offset = 0; } void glthread_rwlock_init_func (gl_rwlock_t *lock) { InitializeCriticalSection (&lock->lock); gl_waitqueue_init (&lock->waiting_readers); gl_waitqueue_init (&lock->waiting_writers); lock->runcount = 0; lock->guard.done = 1; } int glthread_rwlock_rdlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) /* This thread is the first one to need this lock. Initialize it. */ glthread_rwlock_init (lock); else /* Yield the CPU while waiting for another thread to finish initializing this lock. */ while (!lock->guard.done) Sleep (0); } EnterCriticalSection (&lock->lock); /* Test whether only readers are currently running, and whether the runcount field will not overflow. */ if (!(lock->runcount + 1 > 0)) { /* This thread has to wait for a while. Enqueue it among the waiting_readers. */ HANDLE event = gl_waitqueue_add (&lock->waiting_readers); if (event != INVALID_HANDLE_VALUE) { DWORD result; LeaveCriticalSection (&lock->lock); /* Wait until another thread signals this event. */ result = WaitForSingleObject (event, INFINITE); if (result == WAIT_FAILED || result == WAIT_TIMEOUT) abort (); CloseHandle (event); /* The thread which signalled the event already did the bookkeeping: removed us from the waiting_readers, incremented lock->runcount. */ if (!(lock->runcount > 0)) abort (); return 0; } else { /* Allocation failure. Weird. */ do { LeaveCriticalSection (&lock->lock); Sleep (1); EnterCriticalSection (&lock->lock); } while (!(lock->runcount + 1 > 0)); } } lock->runcount++; LeaveCriticalSection (&lock->lock); return 0; } int glthread_rwlock_wrlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) /* This thread is the first one to need this lock. Initialize it. */ glthread_rwlock_init (lock); else /* Yield the CPU while waiting for another thread to finish initializing this lock. */ while (!lock->guard.done) Sleep (0); } EnterCriticalSection (&lock->lock); /* Test whether no readers or writers are currently running. */ if (!(lock->runcount == 0)) { /* This thread has to wait for a while. Enqueue it among the waiting_writers. */ HANDLE event = gl_waitqueue_add (&lock->waiting_writers); if (event != INVALID_HANDLE_VALUE) { DWORD result; LeaveCriticalSection (&lock->lock); /* Wait until another thread signals this event. */ result = WaitForSingleObject (event, INFINITE); if (result == WAIT_FAILED || result == WAIT_TIMEOUT) abort (); CloseHandle (event); /* The thread which signalled the event already did the bookkeeping: removed us from the waiting_writers, set lock->runcount = -1. */ if (!(lock->runcount == -1)) abort (); return 0; } else { /* Allocation failure. Weird. */ do { LeaveCriticalSection (&lock->lock); Sleep (1); EnterCriticalSection (&lock->lock); } while (!(lock->runcount == 0)); } } lock->runcount--; /* runcount becomes -1 */ LeaveCriticalSection (&lock->lock); return 0; } int glthread_rwlock_unlock_func (gl_rwlock_t *lock) { if (!lock->guard.done) return EINVAL; EnterCriticalSection (&lock->lock); if (lock->runcount < 0) { /* Drop a writer lock. */ if (!(lock->runcount == -1)) abort (); lock->runcount = 0; } else { /* Drop a reader lock. */ if (!(lock->runcount > 0)) { LeaveCriticalSection (&lock->lock); return EPERM; } lock->runcount--; } if (lock->runcount == 0) { /* POSIX recommends that "write locks shall take precedence over read locks", to avoid "writer starvation". */ if (lock->waiting_writers.count > 0) { /* Wake up one of the waiting writers. */ lock->runcount--; gl_waitqueue_notify_first (&lock->waiting_writers); } else { /* Wake up all waiting readers. */ lock->runcount += lock->waiting_readers.count; gl_waitqueue_notify_all (&lock->waiting_readers); } } LeaveCriticalSection (&lock->lock); return 0; } int glthread_rwlock_destroy_func (gl_rwlock_t *lock) { if (!lock->guard.done) return EINVAL; if (lock->runcount != 0) return EBUSY; DeleteCriticalSection (&lock->lock); if (lock->waiting_readers.array != NULL) free (lock->waiting_readers.array); if (lock->waiting_writers.array != NULL) free (lock->waiting_writers.array); lock->guard.done = 0; return 0; } /* --------------------- gl_recursive_lock_t datatype --------------------- */ void glthread_recursive_lock_init_func (gl_recursive_lock_t *lock) { lock->owner = 0; lock->depth = 0; InitializeCriticalSection (&lock->lock); lock->guard.done = 1; } int glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock) { if (!lock->guard.done) { if (InterlockedIncrement (&lock->guard.started) == 0) /* This thread is the first one to need this lock. Initialize it. */ glthread_recursive_lock_init (lock); else /* Yield the CPU while waiting for another thread to finish initializing this lock. */ while (!lock->guard.done) Sleep (0); } { DWORD self = GetCurrentThreadId (); if (lock->owner != self) { EnterCriticalSection (&lock->lock); lock->owner = self; } if (++(lock->depth) == 0) /* wraparound? */ { lock->depth--; return EAGAIN; } } return 0; } int glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock) { if (lock->owner != GetCurrentThreadId ()) return EPERM; if (lock->depth == 0) return EINVAL; if (--(lock->depth) == 0) { lock->owner = 0; LeaveCriticalSection (&lock->lock); } return 0; } int glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock) { if (lock->owner != 0) return EBUSY; DeleteCriticalSection (&lock->lock); lock->guard.done = 0; return 0; } /* -------------------------- gl_once_t datatype -------------------------- */ void glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)) { if (once_control->inited <= 0) { if (InterlockedIncrement (&once_control->started) == 0) { /* This thread is the first one to come to this once_control. */ InitializeCriticalSection (&once_control->lock); EnterCriticalSection (&once_control->lock); once_control->inited = 0; initfunction (); once_control->inited = 1; LeaveCriticalSection (&once_control->lock); } else { /* Undo last operation. */ InterlockedDecrement (&once_control->started); /* Some other thread has already started the initialization. Yield the CPU while waiting for the other thread to finish initializing and taking the lock. */ while (once_control->inited < 0) Sleep (0); if (once_control->inited <= 0) { /* Take the lock. This blocks until the other thread has finished calling the initfunction. */ EnterCriticalSection (&once_control->lock); LeaveCriticalSection (&once_control->lock); if (!(once_control->inited > 0)) abort (); } } } } #endif /* ========================================================================= */ gtick-0.5.2/intl/ref-add.sin0000644000175000017500000000210510661555200012521 00000000000000# Add this package to a list of references stored in a text file. # # Copyright (C) 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// ta :a s/ @PACKAGE@ / @PACKAGE@ / tb s/ $/ @PACKAGE@ / :b s/^/# Packages using this file:/ } gtick-0.5.2/intl/printf-args.c0000644000175000017500000001474711617270152013125 00000000000000/* Decomposed printf argument list. Copyright (C) 1999, 2002-2003, 2005-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. PRINTF_FETCHARGS Name of the function to be defined. STATIC Set to 'static' to declare the function static. */ #ifndef PRINTF_FETCHARGS # include #endif /* Specification. */ #ifndef PRINTF_FETCHARGS # include "printf-args.h" #endif #ifdef STATIC STATIC #endif int PRINTF_FETCHARGS (va_list args, arguments *a) { size_t i; argument *ap; for (i = 0, ap = &a->arg[0]; i < a->count; i++, ap++) switch (ap->type) { case TYPE_SCHAR: ap->a.a_schar = va_arg (args, /*signed char*/ int); break; case TYPE_UCHAR: ap->a.a_uchar = va_arg (args, /*unsigned char*/ int); break; case TYPE_SHORT: ap->a.a_short = va_arg (args, /*short*/ int); break; case TYPE_USHORT: ap->a.a_ushort = va_arg (args, /*unsigned short*/ int); break; case TYPE_INT: ap->a.a_int = va_arg (args, int); break; case TYPE_UINT: ap->a.a_uint = va_arg (args, unsigned int); break; case TYPE_LONGINT: ap->a.a_longint = va_arg (args, long int); break; case TYPE_ULONGINT: ap->a.a_ulongint = va_arg (args, unsigned long int); break; #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: ap->a.a_longlongint = va_arg (args, long long int); break; case TYPE_ULONGLONGINT: ap->a.a_ulonglongint = va_arg (args, unsigned long long int); break; #endif case TYPE_DOUBLE: ap->a.a_double = va_arg (args, double); break; case TYPE_LONGDOUBLE: ap->a.a_longdouble = va_arg (args, long double); break; case TYPE_CHAR: ap->a.a_char = va_arg (args, int); break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: /* Although ISO C 99 7.24.1.(2) says that wint_t is "unchanged by default argument promotions", this is not the case in mingw32, where wint_t is 'unsigned short'. */ ap->a.a_wide_char = (sizeof (wint_t) < sizeof (int) ? va_arg (args, int) : va_arg (args, wint_t)); break; #endif case TYPE_STRING: ap->a.a_string = va_arg (args, const char *); /* A null pointer is an invalid argument for "%s", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_string == NULL) ap->a.a_string = "(NULL)"; break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: ap->a.a_wide_string = va_arg (args, const wchar_t *); /* A null pointer is an invalid argument for "%ls", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_wide_string == NULL) { static const wchar_t wide_null_string[] = { (wchar_t)'(', (wchar_t)'N', (wchar_t)'U', (wchar_t)'L', (wchar_t)'L', (wchar_t)')', (wchar_t)0 }; ap->a.a_wide_string = wide_null_string; } break; #endif case TYPE_POINTER: ap->a.a_pointer = va_arg (args, void *); break; case TYPE_COUNT_SCHAR_POINTER: ap->a.a_count_schar_pointer = va_arg (args, signed char *); break; case TYPE_COUNT_SHORT_POINTER: ap->a.a_count_short_pointer = va_arg (args, short *); break; case TYPE_COUNT_INT_POINTER: ap->a.a_count_int_pointer = va_arg (args, int *); break; case TYPE_COUNT_LONGINT_POINTER: ap->a.a_count_longint_pointer = va_arg (args, long int *); break; #if HAVE_LONG_LONG_INT case TYPE_COUNT_LONGLONGINT_POINTER: ap->a.a_count_longlongint_pointer = va_arg (args, long long int *); break; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ case TYPE_U8_STRING: ap->a.a_u8_string = va_arg (args, const uint8_t *); /* A null pointer is an invalid argument for "%U", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u8_string == NULL) { static const uint8_t u8_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u8_string = u8_null_string; } break; case TYPE_U16_STRING: ap->a.a_u16_string = va_arg (args, const uint16_t *); /* A null pointer is an invalid argument for "%lU", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u16_string == NULL) { static const uint16_t u16_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u16_string = u16_null_string; } break; case TYPE_U32_STRING: ap->a.a_u32_string = va_arg (args, const uint32_t *); /* A null pointer is an invalid argument for "%llU", but in practice it occurs quite frequently in printf statements that produce debug output. Use a fallback in this case. */ if (ap->a.a_u32_string == NULL) { static const uint32_t u32_null_string[] = { '(', 'N', 'U', 'L', 'L', ')', 0 }; ap->a.a_u32_string = u32_null_string; } break; #endif default: /* Unknown type. */ return -1; } return 0; } gtick-0.5.2/intl/printf.c0000644000175000017500000002337411617270153012170 00000000000000/* Formatted output to strings, using POSIX/XSI format strings with positions. Copyright (C) 2003, 2006-2007, 2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #if !HAVE_POSIX_PRINTF #include #include #include #include /* Some systems, like OSF/1 4.0 and Woe32, don't have EOVERFLOW. */ #ifndef EOVERFLOW # define EOVERFLOW E2BIG #endif /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ #if HAVE_VISIBILITY && BUILDING_DLL # define DLL_EXPORTED __attribute__((__visibility__("default"))) #elif defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED #endif #define STATIC static /* This needs to be consistent with libgnuintl.h.in. */ #if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ /* Don't break __attribute__((format(printf,M,N))). This redefinition is only possible because the libc in NetBSD, Cygwin, mingw does not have a function __printf__. */ # define libintl_printf __printf__ #endif /* Define auxiliary functions declared in "printf-args.h". */ #include "printf-args.c" /* Define auxiliary functions declared in "printf-parse.h". */ #include "printf-parse.c" /* Define functions declared in "vasnprintf.h". */ #define vasnprintf libintl_vasnprintf #include "vasnprintf.c" #if 0 /* not needed */ #define asnprintf libintl_asnprintf #include "asnprintf.c" #endif DLL_EXPORTED int libintl_vfprintf (FILE *stream, const char *format, va_list args) { if (strchr (format, '$') == NULL) return vfprintf (stream, format, args); else { size_t length; char *result = libintl_vasnprintf (NULL, &length, format, args); int retval = -1; if (result != NULL) { size_t written = fwrite (result, 1, length, stream); free (result); if (written == length) { if (length > INT_MAX) errno = EOVERFLOW; else retval = length; } } return retval; } } DLL_EXPORTED int libintl_fprintf (FILE *stream, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vfprintf (stream, format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vprintf (const char *format, va_list args) { return libintl_vfprintf (stdout, format, args); } DLL_EXPORTED int libintl_printf (const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vprintf (format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vsprintf (char *resultbuf, const char *format, va_list args) { if (strchr (format, '$') == NULL) return vsprintf (resultbuf, format, args); else { size_t length = (size_t) ~0 / (4 * sizeof (char)); char *result = libintl_vasnprintf (resultbuf, &length, format, args); if (result != resultbuf) { free (result); return -1; } if (length > INT_MAX) { errno = EOVERFLOW; return -1; } else return length; } } DLL_EXPORTED int libintl_sprintf (char *resultbuf, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vsprintf (resultbuf, format, args); va_end (args); return retval; } #if HAVE_SNPRINTF # if HAVE_DECL__SNPRINTF /* Windows. */ # define system_vsnprintf _vsnprintf # else /* Unix. */ # define system_vsnprintf vsnprintf # endif DLL_EXPORTED int libintl_vsnprintf (char *resultbuf, size_t length, const char *format, va_list args) { if (strchr (format, '$') == NULL) return system_vsnprintf (resultbuf, length, format, args); else { size_t maxlength = length; char *result = libintl_vasnprintf (resultbuf, &length, format, args); if (result != resultbuf) { if (maxlength > 0) { size_t pruned_length = (length < maxlength ? length : maxlength - 1); memcpy (resultbuf, result, pruned_length); resultbuf[pruned_length] = '\0'; } free (result); } if (length > INT_MAX) { errno = EOVERFLOW; return -1; } else return length; } } DLL_EXPORTED int libintl_snprintf (char *resultbuf, size_t length, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vsnprintf (resultbuf, length, format, args); va_end (args); return retval; } #endif #if HAVE_ASPRINTF DLL_EXPORTED int libintl_vasprintf (char **resultp, const char *format, va_list args) { size_t length; char *result = libintl_vasnprintf (NULL, &length, format, args); if (result == NULL) return -1; if (length > INT_MAX) { free (result); errno = EOVERFLOW; return -1; } *resultp = result; return length; } DLL_EXPORTED int libintl_asprintf (char **resultp, const char *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vasprintf (resultp, format, args); va_end (args); return retval; } #endif #if HAVE_FWPRINTF #include #define WIDE_CHAR_VERSION 1 #include "wprintf-parse.h" /* Define auxiliary functions declared in "wprintf-parse.h". */ #define CHAR_T wchar_t #define DIRECTIVE wchar_t_directive #define DIRECTIVES wchar_t_directives #define PRINTF_PARSE wprintf_parse #include "printf-parse.c" /* Define functions declared in "vasnprintf.h". */ #define vasnwprintf libintl_vasnwprintf #include "vasnprintf.c" #if 0 /* not needed */ #define asnwprintf libintl_asnwprintf #include "asnprintf.c" #endif # if HAVE_DECL__SNWPRINTF /* Windows. */ # define system_vswprintf _vsnwprintf # else /* Unix. */ # define system_vswprintf vswprintf # endif DLL_EXPORTED int libintl_vfwprintf (FILE *stream, const wchar_t *format, va_list args) { if (wcschr (format, '$') == NULL) return vfwprintf (stream, format, args); else { size_t length; wchar_t *result = libintl_vasnwprintf (NULL, &length, format, args); int retval = -1; if (result != NULL) { size_t i; for (i = 0; i < length; i++) if (fputwc (result[i], stream) == WEOF) break; free (result); if (i == length) { if (length > INT_MAX) errno = EOVERFLOW; else retval = length; } } return retval; } } DLL_EXPORTED int libintl_fwprintf (FILE *stream, const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vfwprintf (stream, format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vwprintf (const wchar_t *format, va_list args) { return libintl_vfwprintf (stdout, format, args); } DLL_EXPORTED int libintl_wprintf (const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vwprintf (format, args); va_end (args); return retval; } DLL_EXPORTED int libintl_vswprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, va_list args) { if (wcschr (format, '$') == NULL) return system_vswprintf (resultbuf, length, format, args); else { size_t maxlength = length; wchar_t *result = libintl_vasnwprintf (resultbuf, &length, format, args); if (result != resultbuf) { if (maxlength > 0) { size_t pruned_length = (length < maxlength ? length : maxlength - 1); memcpy (resultbuf, result, pruned_length * sizeof (wchar_t)); resultbuf[pruned_length] = 0; } free (result); /* Unlike vsnprintf, which has to return the number of character that would have been produced if the resultbuf had been sufficiently large, the vswprintf function has to return a negative value if the resultbuf was not sufficiently large. */ if (length >= maxlength) return -1; } if (length > INT_MAX) { errno = EOVERFLOW; return -1; } else return length; } } DLL_EXPORTED int libintl_swprintf (wchar_t *resultbuf, size_t length, const wchar_t *format, ...) { va_list args; int retval; va_start (args, format); retval = libintl_vswprintf (resultbuf, length, format, args); va_end (args); return retval; } #endif #endif gtick-0.5.2/intl/os2compat.c0000644000175000017500000000550710661555200012570 00000000000000/* OS/2 compatibility functions. Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #define OS2_AWARE #ifdef HAVE_CONFIG_H #include #endif #include #include #include /* A version of getenv() that works from DLLs */ extern unsigned long DosScanEnv (const unsigned char *pszName, unsigned char **ppszValue); char * _nl_getenv (const char *name) { unsigned char *value; if (DosScanEnv (name, &value)) return NULL; else return value; } /* A fixed size buffer. */ char libintl_nl_default_dirname[MAXPATHLEN+1]; char *_nlos2_libdir = NULL; char *_nlos2_localealiaspath = NULL; char *_nlos2_localedir = NULL; static __attribute__((constructor)) void nlos2_initialize () { char *root = getenv ("UNIXROOT"); char *gnulocaledir = getenv ("GNULOCALEDIR"); _nlos2_libdir = gnulocaledir; if (!_nlos2_libdir) { if (root) { size_t sl = strlen (root); _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1); memcpy (_nlos2_libdir, root, sl); memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1); } else _nlos2_libdir = LIBDIR; } _nlos2_localealiaspath = gnulocaledir; if (!_nlos2_localealiaspath) { if (root) { size_t sl = strlen (root); _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1); memcpy (_nlos2_localealiaspath, root, sl); memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1); } else _nlos2_localealiaspath = LOCALE_ALIAS_PATH; } _nlos2_localedir = gnulocaledir; if (!_nlos2_localedir) { if (root) { size_t sl = strlen (root); _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1); memcpy (_nlos2_localedir, root, sl); memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1); } else _nlos2_localedir = LOCALEDIR; } if (strlen (_nlos2_localedir) <= MAXPATHLEN) strcpy (libintl_nl_default_dirname, _nlos2_localedir); } gtick-0.5.2/intl/eval-plural.h0000644000175000017500000000534211617270151013110 00000000000000/* Plural expression evaluation. Copyright (C) 2000-2003, 2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef STATIC #define STATIC static #endif /* Evaluate the plural expression and return an index value. */ STATIC unsigned long int internal_function plural_eval (const struct expression *pexp, unsigned long int n) { switch (pexp->nargs) { case 0: switch (pexp->operation) { case var: return n; case num: return pexp->val.num; default: break; } /* NOTREACHED */ break; case 1: { /* pexp->operation must be lnot. */ unsigned long int arg = plural_eval (pexp->val.args[0], n); return ! arg; } case 2: { unsigned long int leftarg = plural_eval (pexp->val.args[0], n); if (pexp->operation == lor) return leftarg || plural_eval (pexp->val.args[1], n); else if (pexp->operation == land) return leftarg && plural_eval (pexp->val.args[1], n); else { unsigned long int rightarg = plural_eval (pexp->val.args[1], n); switch (pexp->operation) { case mult: return leftarg * rightarg; case divide: #if !INTDIV0_RAISES_SIGFPE if (rightarg == 0) raise (SIGFPE); #endif return leftarg / rightarg; case module: #if !INTDIV0_RAISES_SIGFPE if (rightarg == 0) raise (SIGFPE); #endif return leftarg % rightarg; case plus: return leftarg + rightarg; case minus: return leftarg - rightarg; case less_than: return leftarg < rightarg; case greater_than: return leftarg > rightarg; case less_or_equal: return leftarg <= rightarg; case greater_or_equal: return leftarg >= rightarg; case equal: return leftarg == rightarg; case not_equal: return leftarg != rightarg; default: break; } } /* NOTREACHED */ break; } case 3: { /* pexp->operation must be qmop. */ unsigned long int boolarg = plural_eval (pexp->val.args[0], n); return plural_eval (pexp->val.args[boolarg ? 1 : 2], n); } } /* NOTREACHED */ return 0; } gtick-0.5.2/intl/dcgettext.c0000644000175000017500000000342110661555177012662 00000000000000/* Implementation of the dcgettext(3) function. Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCGETTEXT __dcgettext # define DCIGETTEXT __dcigettext #else # define DCGETTEXT libintl_dcgettext # define DCIGETTEXT libintl_dcigettext #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCGETTEXT (const char *domainname, const char *msgid, int category) { return DCIGETTEXT (domainname, msgid, NULL, 0, 0, category); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ INTDEF(__dcgettext) weak_alias (__dcgettext, dcgettext); #endif gtick-0.5.2/intl/textdomain.c0000644000175000017500000000746611617270153013046 00000000000000/* Implementation of the textdomain(3) function. Copyright (C) 1995-1998, 2000-2003, 2005-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define __libc_rwlock_define # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock #else # include "lock.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define TEXTDOMAIN __textdomain # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define TEXTDOMAIN libintl_textdomain #endif /* Lock variable to protect the global data in the gettext implementation. */ gl_rwlock_define (extern, _nl_state_lock attribute_hidden) /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ char * TEXTDOMAIN (const char *domainname) { char *new_domain; char *old_domain; /* A NULL pointer requests the current setting. */ if (domainname == NULL) return (char *) _nl_current_default_domain; gl_rwlock_wrlock (_nl_state_lock); old_domain = (char *) _nl_current_default_domain; /* If domain name is the null string set to default domain "messages". */ if (domainname[0] == '\0' || strcmp (domainname, _nl_default_default_domain) == 0) { _nl_current_default_domain = _nl_default_default_domain; new_domain = (char *) _nl_current_default_domain; } else if (strcmp (domainname, old_domain) == 0) /* This can happen and people will use it to signal that some environment variable changed. */ new_domain = old_domain; else { /* If the following malloc fails `_nl_current_default_domain' will be NULL. This value will be returned and so signals we are out of core. */ #if defined _LIBC || defined HAVE_STRDUP new_domain = strdup (domainname); #else size_t len = strlen (domainname) + 1; new_domain = (char *) malloc (len); if (new_domain != NULL) memcpy (new_domain, domainname, len); #endif if (new_domain != NULL) _nl_current_default_domain = new_domain; } /* We use this possibility to signal a change of the loaded catalogs since this is most likely the case and there is no other easy we to do it. Do it only when the call was successful. */ if (new_domain != NULL) { ++_nl_msg_cat_cntr; if (old_domain != new_domain && old_domain != _nl_default_default_domain) free (old_domain); } gl_rwlock_unlock (_nl_state_lock); return new_domain; } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__textdomain, textdomain); #endif gtick-0.5.2/intl/ChangeLog0000644000175000017500000000011111617270150012251 000000000000002010-06-04 GNU * Version 0.18.1 released. gtick-0.5.2/intl/gettext.c0000644000175000017500000000355410661555177012362 00000000000000/* Implementation of gettext(3) function. Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define __need_NULL # include #else # include /* Just for NULL. */ #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define GETTEXT __gettext # define DCGETTEXT INTUSE(__dcgettext) #else # define GETTEXT libintl_gettext # define DCGETTEXT libintl_dcgettext #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * GETTEXT (const char *msgid) { return DCGETTEXT (NULL, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__gettext, gettext); #endif gtick-0.5.2/intl/plural.c0000644000175000017500000014212011617270152012153 00000000000000/* A Bison parser, made by GNU Bison 2.3a. */ /* Skeleton implementation for Bison's Yacc-like parsers in C Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 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, 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.3a" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 1 /* Using locations. */ #define YYLSP_NEEDED 0 /* Substitute the variable and function names. */ #define yyparse __gettextparse #define yylex __gettextlex #define yyerror __gettexterror #define yylval __gettextlval #define yychar __gettextchar #define yydebug __gettextdebug #define yynerrs __gettextnerrs /* Copy the first part of user declarations. */ /* Line 164 of yacc.c. */ #line 1 "plural.y" /* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003, 2005-2006 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* For bison < 2.0, the bison generated parser uses alloca. AIX 3 forces us to put this declaration at the beginning of the file. The declaration in bison's skeleton file comes too late. This must come before because may include arbitrary system headers. This can go away once the AM_INTL_SUBDIR macro requires bison >= 2.0. */ #if defined _AIX && !defined __GNUC__ #pragma alloca #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "plural-exp.h" /* The main function generated by the parser is called __gettextparse, but we want it to be called PLURAL_PARSE. */ #ifndef _LIBC # define __gettextparse PLURAL_PARSE #endif #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { EQUOP2 = 258, CMPOP2 = 259, ADDOP2 = 260, MULOP2 = 261, NUMBER = 262 }; #endif /* Tokens. */ #define EQUOP2 258 #define CMPOP2 259 #define ADDOP2 260 #define MULOP2 261 #define NUMBER 262 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef union YYSTYPE {/* Line 191 of yacc.c. */ #line 51 "plural.y" unsigned long int num; enum expression_operator op; struct expression *exp; } /* Line 191 of yacc.c. */ #line 175 "plural.c" YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif /* Copy the second part of user declarations. */ /* Line 221 of yacc.c. */ #line 57 "plural.y" /* Prototypes for local functions. */ static int yylex (YYSTYPE *lval, const char **pexp); static void yyerror (const char *str); /* Allocation of expressions. */ static struct expression * new_exp (int nargs, enum expression_operator op, struct expression * const *args) { int i; struct expression *newp; /* If any of the argument could not be malloc'ed, just return NULL. */ for (i = nargs - 1; i >= 0; i--) if (args[i] == NULL) goto fail; /* Allocate a new expression. */ newp = (struct expression *) malloc (sizeof (*newp)); if (newp != NULL) { newp->nargs = nargs; newp->operation = op; for (i = nargs - 1; i >= 0; i--) newp->val.args[i] = args[i]; return newp; } fail: for (i = nargs - 1; i >= 0; i--) FREE_EXPRESSION (args[i]); return NULL; } static inline struct expression * new_exp_0 (enum expression_operator op) { return new_exp (0, op, NULL); } static inline struct expression * new_exp_1 (enum expression_operator op, struct expression *right) { struct expression *args[1]; args[0] = right; return new_exp (1, op, args); } static struct expression * new_exp_2 (enum expression_operator op, struct expression *left, struct expression *right) { struct expression *args[2]; args[0] = left; args[1] = right; return new_exp (2, op, args); } static inline struct expression * new_exp_3 (enum expression_operator op, struct expression *bexp, struct expression *tbranch, struct expression *fbranch) { struct expression *args[3]; args[0] = bexp; args[1] = tbranch; args[2] = fbranch; return new_exp (3, op, args); } /* Line 221 of yacc.c. */ #line 265 "plural.c" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int yyi) #else static int YYID (yyi) int yyi; #endif { return yyi; } #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined _STDLIB_H \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef _STDLIB_H # define _STDLIB_H 1 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss; YYSTYPE yyvs; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 9 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 54 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 16 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 3 /* YYNRULES -- Number of rules. */ #define YYNRULES 13 /* YYNRULES -- Number of states. */ #define YYNSTATES 27 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 262 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 10, 2, 2, 2, 2, 5, 2, 14, 15, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 12, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 13, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 6, 7, 8, 9, 11 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint8 yyprhs[] = { 0, 0, 3, 5, 11, 15, 19, 23, 27, 31, 35, 38, 40, 42 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int8 yyrhs[] = { 17, 0, -1, 18, -1, 18, 3, 18, 12, 18, -1, 18, 4, 18, -1, 18, 5, 18, -1, 18, 6, 18, -1, 18, 7, 18, -1, 18, 8, 18, -1, 18, 9, 18, -1, 10, 18, -1, 13, -1, 11, -1, 14, 18, 15, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { 0, 154, 154, 162, 166, 170, 174, 178, 182, 186, 190, 194, 198, 203 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "'?'", "'|'", "'&'", "EQUOP2", "CMPOP2", "ADDOP2", "MULOP2", "'!'", "NUMBER", "':'", "'n'", "'('", "')'", "$accept", "start", "exp", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 63, 124, 38, 258, 259, 260, 261, 33, 262, 58, 110, 40, 41 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 16, 17, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18, 18 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 1, 5, 3, 3, 3, 3, 3, 3, 2, 1, 1, 3 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 0, 0, 12, 11, 0, 0, 2, 10, 0, 1, 0, 0, 0, 0, 0, 0, 0, 13, 0, 4, 5, 6, 7, 8, 9, 0, 3 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 5, 6 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -10 static const yytype_int8 yypact[] = { -9, -9, -10, -10, -9, 8, 36, -10, 13, -10, -9, -9, -9, -9, -9, -9, -9, -10, 26, 41, 45, 18, -2, 14, -10, -9, 36 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -10, -10, -1 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 static const yytype_uint8 yytable[] = { 7, 1, 2, 8, 3, 4, 15, 16, 9, 18, 19, 20, 21, 22, 23, 24, 10, 11, 12, 13, 14, 15, 16, 16, 26, 14, 15, 16, 17, 10, 11, 12, 13, 14, 15, 16, 0, 0, 25, 10, 11, 12, 13, 14, 15, 16, 12, 13, 14, 15, 16, 13, 14, 15, 16 }; static const yytype_int8 yycheck[] = { 1, 10, 11, 4, 13, 14, 8, 9, 0, 10, 11, 12, 13, 14, 15, 16, 3, 4, 5, 6, 7, 8, 9, 9, 25, 7, 8, 9, 15, 3, 4, 5, 6, 7, 8, 9, -1, -1, 12, 3, 4, 5, 6, 7, 8, 9, 5, 6, 7, 8, 9, 6, 7, 8, 9 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 10, 11, 13, 14, 17, 18, 18, 18, 0, 3, 4, 5, 6, 7, 8, 9, 15, 18, 18, 18, 18, 18, 18, 18, 12, 18 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (&yylval, YYLEX_PARAM) #else # define YYLEX yylex (&yylval) #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (!yyvaluep) return; # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); yy_symbol_value_print (yyoutput, yytype, yyvaluep); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) #else static void yy_stack_print (yybottom, yytop) yytype_int16 *yybottom; yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, int yyrule) #else static void yy_reduce_print (yyvsp, yyrule) YYSTYPE *yyvsp; int yyrule; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { fprintf (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) ); fprintf (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, Rule); \ } while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into YYRESULT an error message about the unexpected token YYCHAR while in state YYSTATE. Return the number of bytes copied, including the terminating null byte. If YYRESULT is null, do not copy anything; just return the number of bytes that would be copied. As a special case, return 0 if an ordinary "syntax error" message will do. Return YYSIZE_MAXIMUM if overflow occurs during size calculation. */ static YYSIZE_T yysyntax_error (char *yyresult, int yystate, int yychar) { int yyn = yypact[yystate]; if (! (YYPACT_NINF < yyn && yyn <= YYLAST)) return 0; else { int yytype = YYTRANSLATE (yychar); YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; int yysize_overflow = 0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; int yyx; # if 0 /* This is so xgettext sees the translatable formats that are constructed on the fly. */ YY_("syntax error, unexpected %s"); YY_("syntax error, unexpected %s, expecting %s"); YY_("syntax error, unexpected %s, expecting %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s"); YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); # endif char *yyfmt; char const *yyf; static char const yyunexpected[] = "syntax error, unexpected %s"; static char const yyexpecting[] = ", expecting %s"; static char const yyor[] = " or %s"; char yyformat[sizeof yyunexpected + sizeof yyexpecting - 1 + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) * (sizeof yyor - 1))]; char const *yyprefix = yyexpecting; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 1; yyarg[0] = yytname[yytype]; yyfmt = yystpcpy (yyformat, yyunexpected); for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; yyformat[sizeof yyunexpected - 1] = '\0'; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; yyfmt = yystpcpy (yyfmt, yyprefix); yyprefix = yyor; } yyf = YY_(yyformat); yysize1 = yysize + yystrlen (yyf); yysize_overflow |= (yysize1 < yysize); yysize = yysize1; if (yysize_overflow) return YYSIZE_MAXIMUM; if (yyresult) { /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ char *yyp = yyresult; int yyi = 0; while ((*yyp = *yyf) != '\0') { if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyf += 2; } else { yyp++; yyf++; } } } return yysize; } } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yymsg, yytype, yyvaluep) const char *yymsg; int yytype; YYSTYPE *yyvaluep; #endif { YYUSE (yyvaluep); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void) #else int yyparse () #endif #endif { /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; int yystate; int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss = yyssa; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; YYSTYPE *yyvsp; #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { case 2: /* Line 1269 of yacc.c. */ #line 155 "plural.y" { if ((yyvsp[(1) - (1)].exp) == NULL) YYABORT; ((struct parse_args *) arg)->res = (yyvsp[(1) - (1)].exp); } break; case 3: /* Line 1269 of yacc.c. */ #line 163 "plural.y" { (yyval.exp) = new_exp_3 (qmop, (yyvsp[(1) - (5)].exp), (yyvsp[(3) - (5)].exp), (yyvsp[(5) - (5)].exp)); } break; case 4: /* Line 1269 of yacc.c. */ #line 167 "plural.y" { (yyval.exp) = new_exp_2 (lor, (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 5: /* Line 1269 of yacc.c. */ #line 171 "plural.y" { (yyval.exp) = new_exp_2 (land, (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 6: /* Line 1269 of yacc.c. */ #line 175 "plural.y" { (yyval.exp) = new_exp_2 ((yyvsp[(2) - (3)].op), (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 7: /* Line 1269 of yacc.c. */ #line 179 "plural.y" { (yyval.exp) = new_exp_2 ((yyvsp[(2) - (3)].op), (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 8: /* Line 1269 of yacc.c. */ #line 183 "plural.y" { (yyval.exp) = new_exp_2 ((yyvsp[(2) - (3)].op), (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 9: /* Line 1269 of yacc.c. */ #line 187 "plural.y" { (yyval.exp) = new_exp_2 ((yyvsp[(2) - (3)].op), (yyvsp[(1) - (3)].exp), (yyvsp[(3) - (3)].exp)); } break; case 10: /* Line 1269 of yacc.c. */ #line 191 "plural.y" { (yyval.exp) = new_exp_1 (lnot, (yyvsp[(2) - (2)].exp)); } break; case 11: /* Line 1269 of yacc.c. */ #line 195 "plural.y" { (yyval.exp) = new_exp_0 (var); } break; case 12: /* Line 1269 of yacc.c. */ #line 199 "plural.y" { if (((yyval.exp) = new_exp_0 (num)) != NULL) (yyval.exp)->val.num = (yyvsp[(1) - (1)].num); } break; case 13: /* Line 1269 of yacc.c. */ #line 204 "plural.y" { (yyval.exp) = (yyvsp[(2) - (3)].exp); } break; /* Line 1269 of yacc.c. */ #line 1572 "plural.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (YY_("syntax error")); #else { YYSIZE_T yysize = yysyntax_error (0, yystate, yychar); if (yymsg_alloc < yysize && yymsg_alloc < YYSTACK_ALLOC_MAXIMUM) { YYSIZE_T yyalloc = 2 * yysize; if (! (yysize <= yyalloc && yyalloc <= YYSTACK_ALLOC_MAXIMUM)) yyalloc = YYSTACK_ALLOC_MAXIMUM; if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yyalloc); if (yymsg) yymsg_alloc = yyalloc; else { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; } } if (0 < yysize && yysize <= yymsg_alloc) { (void) yysyntax_error (yymsg, yystate, yychar); yyerror (yymsg); } else { yyerror (YY_("syntax error")); if (yysize != 0) goto yyexhaustedlab; } } #endif } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yydestruct ("Error: popping", yystos[yystate], yyvsp); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++yyvsp = yylval; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #ifndef yyoverflow /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval); /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif /* Make sure YYID is used. */ return YYID (yyresult); } /* Line 1486 of yacc.c. */ #line 209 "plural.y" void internal_function FREE_EXPRESSION (struct expression *exp) { if (exp == NULL) return; /* Handle the recursive case. */ switch (exp->nargs) { case 3: FREE_EXPRESSION (exp->val.args[2]); /* FALLTHROUGH */ case 2: FREE_EXPRESSION (exp->val.args[1]); /* FALLTHROUGH */ case 1: FREE_EXPRESSION (exp->val.args[0]); /* FALLTHROUGH */ default: break; } free (exp); } static int yylex (YYSTYPE *lval, const char **pexp) { const char *exp = *pexp; int result; while (1) { if (exp[0] == '\0') { *pexp = exp; return YYEOF; } if (exp[0] != ' ' && exp[0] != '\t') break; ++exp; } result = *exp++; switch (result) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { unsigned long int n = result - '0'; while (exp[0] >= '0' && exp[0] <= '9') { n *= 10; n += exp[0] - '0'; ++exp; } lval->num = n; result = NUMBER; } break; case '=': if (exp[0] == '=') { ++exp; lval->op = equal; result = EQUOP2; } else result = YYERRCODE; break; case '!': if (exp[0] == '=') { ++exp; lval->op = not_equal; result = EQUOP2; } break; case '&': case '|': if (exp[0] == result) ++exp; else result = YYERRCODE; break; case '<': if (exp[0] == '=') { ++exp; lval->op = less_or_equal; } else lval->op = less_than; result = CMPOP2; break; case '>': if (exp[0] == '=') { ++exp; lval->op = greater_or_equal; } else lval->op = greater_than; result = CMPOP2; break; case '*': lval->op = mult; result = MULOP2; break; case '/': lval->op = divide; result = MULOP2; break; case '%': lval->op = module; result = MULOP2; break; case '+': lval->op = plus; result = ADDOP2; break; case '-': lval->op = minus; result = ADDOP2; break; case 'n': case '?': case ':': case '(': case ')': /* Nothing, just return the character. */ break; case ';': case '\n': case '\0': /* Be safe and let the user call this function again. */ --exp; result = YYEOF; break; default: result = YYERRCODE; #if YYDEBUG != 0 --exp; #endif break; } *pexp = exp; return result; } static void yyerror (const char *str) { /* Do nothing. We don't print error messages here. */ } gtick-0.5.2/intl/xsize.h0000644000175000017500000000673411617270154012037 00000000000000/* xsize.h -- Checked size_t computations. Copyright (C) 2003, 2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _XSIZE_H #define _XSIZE_H /* Get size_t. */ #include /* Get SIZE_MAX. */ #include #if HAVE_STDINT_H # include #endif /* The size of memory objects is often computed through expressions of type size_t. Example: void* p = malloc (header_size + n * element_size). These computations can lead to overflow. When this happens, malloc() returns a piece of memory that is way too small, and the program then crashes while attempting to fill the memory. To avoid this, the functions and macros in this file check for overflow. The convention is that SIZE_MAX represents overflow. malloc (SIZE_MAX) is not guaranteed to fail -- think of a malloc implementation that uses mmap --, it's recommended to use size_overflow_p() or size_in_bounds_p() before invoking malloc(). The example thus becomes: size_t size = xsum (header_size, xtimes (n, element_size)); void *p = (size_in_bounds_p (size) ? malloc (size) : NULL); */ /* Convert an arbitrary value >= 0 to type size_t. */ #define xcast_size_t(N) \ ((N) <= SIZE_MAX ? (size_t) (N) : SIZE_MAX) /* Sum of two sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum (size_t size1, size_t size2) { size_t sum = size1 + size2; return (sum >= size1 ? sum : SIZE_MAX); } /* Sum of three sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum3 (size_t size1, size_t size2, size_t size3) { return xsum (xsum (size1, size2), size3); } /* Sum of four sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xsum4 (size_t size1, size_t size2, size_t size3, size_t size4) { return xsum (xsum (xsum (size1, size2), size3), size4); } /* Maximum of two sizes, with overflow check. */ static inline size_t #if __GNUC__ >= 3 __attribute__ ((__pure__)) #endif xmax (size_t size1, size_t size2) { /* No explicit check is needed here, because for any n: max (SIZE_MAX, n) == SIZE_MAX and max (n, SIZE_MAX) == SIZE_MAX. */ return (size1 >= size2 ? size1 : size2); } /* Multiplication of a count with an element size, with overflow check. The count must be >= 0 and the element size must be > 0. This is a macro, not an inline function, so that it works correctly even when N is of a wider type and N > SIZE_MAX. */ #define xtimes(N, ELSIZE) \ ((N) <= SIZE_MAX / (ELSIZE) ? (size_t) (N) * (ELSIZE) : SIZE_MAX) /* Check for overflow. */ #define size_overflow_p(SIZE) \ ((SIZE) == SIZE_MAX) /* Check against overflow. */ #define size_in_bounds_p(SIZE) \ ((SIZE) != SIZE_MAX) #endif /* _XSIZE_H */ gtick-0.5.2/intl/relocatable.c0000644000175000017500000003672011617270153013142 00000000000000/* Provide relocatable packages. Copyright (C) 2003-2006, 2008-2009 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for getline(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #include /* Specification. */ #include "relocatable.h" #if ENABLE_RELOCATABLE #include #include #include #include #ifdef NO_XMALLOC # define xmalloc malloc #else # include "xalloc.h" #endif #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ # define WIN32_LEAN_AND_MEAN # include #endif #if DEPENDS_ON_LIBCHARSET # include #endif #if DEPENDS_ON_LIBICONV && HAVE_ICONV # include #endif #if DEPENDS_ON_LIBINTL && ENABLE_NLS # include #endif /* Faked cheap 'bool'. */ #undef bool #undef false #undef true #define bool int #define false 0 #define true 1 /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_PATH_WITH_DIR(P) \ (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) # define FILE_SYSTEM_PREFIX_LEN(P) (HAS_DEVICE (P) ? 2 : 0) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) # define FILE_SYSTEM_PREFIX_LEN(P) 0 #endif /* Original installation prefix. */ static char *orig_prefix; static size_t orig_prefix_len; /* Current installation prefix. */ static char *curr_prefix; static size_t curr_prefix_len; /* These prefixes do not end in a slash. Anything that will be concatenated to them must start with a slash. */ /* Sets the original and the current installation prefix of this module. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ static void set_this_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg) { if (orig_prefix_arg != NULL && curr_prefix_arg != NULL /* Optimization: if orig_prefix and curr_prefix are equal, the relocation is a nop. */ && strcmp (orig_prefix_arg, curr_prefix_arg) != 0) { /* Duplicate the argument strings. */ char *memory; orig_prefix_len = strlen (orig_prefix_arg); curr_prefix_len = strlen (curr_prefix_arg); memory = (char *) xmalloc (orig_prefix_len + 1 + curr_prefix_len + 1); #ifdef NO_XMALLOC if (memory != NULL) #endif { memcpy (memory, orig_prefix_arg, orig_prefix_len + 1); orig_prefix = memory; memory += orig_prefix_len + 1; memcpy (memory, curr_prefix_arg, curr_prefix_len + 1); curr_prefix = memory; return; } } orig_prefix = NULL; curr_prefix = NULL; /* Don't worry about wasted memory here - this function is usually only called once. */ } /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ void set_relocation_prefix (const char *orig_prefix_arg, const char *curr_prefix_arg) { set_this_relocation_prefix (orig_prefix_arg, curr_prefix_arg); /* Now notify all dependent libraries. */ #if DEPENDS_ON_LIBCHARSET libcharset_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif #if DEPENDS_ON_LIBICONV && HAVE_ICONV && _LIBICONV_VERSION >= 0x0109 libiconv_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif #if DEPENDS_ON_LIBINTL && ENABLE_NLS && defined libintl_set_relocation_prefix libintl_set_relocation_prefix (orig_prefix_arg, curr_prefix_arg); #endif } #if !defined IN_LIBRARY || (defined PIC && defined INSTALLDIR) /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular file, and the current pathname of this file. Returns it, freshly allocated. Returns NULL upon failure. */ #ifdef IN_LIBRARY #define compute_curr_prefix local_compute_curr_prefix static #endif char * compute_curr_prefix (const char *orig_installprefix, const char *orig_installdir, const char *curr_pathname) { char *curr_installdir; const char *rel_installdir; if (curr_pathname == NULL) return NULL; /* Determine the relative installation directory, relative to the prefix. This is simply the difference between orig_installprefix and orig_installdir. */ if (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix)) != 0) /* Shouldn't happen - nothing should be installed outside $(prefix). */ return NULL; rel_installdir = orig_installdir + strlen (orig_installprefix); /* Determine the current installation directory. */ { const char *p_base = curr_pathname + FILE_SYSTEM_PREFIX_LEN (curr_pathname); const char *p = curr_pathname + strlen (curr_pathname); char *q; while (p > p_base) { p--; if (ISSLASH (*p)) break; } q = (char *) xmalloc (p - curr_pathname + 1); #ifdef NO_XMALLOC if (q == NULL) return NULL; #endif memcpy (q, curr_pathname, p - curr_pathname); q[p - curr_pathname] = '\0'; curr_installdir = q; } /* Compute the current installation prefix by removing the trailing rel_installdir from it. */ { const char *rp = rel_installdir + strlen (rel_installdir); const char *cp = curr_installdir + strlen (curr_installdir); const char *cp_base = curr_installdir + FILE_SYSTEM_PREFIX_LEN (curr_installdir); while (rp > rel_installdir && cp > cp_base) { bool same = false; const char *rpi = rp; const char *cpi = cp; while (rpi > rel_installdir && cpi > cp_base) { rpi--; cpi--; if (ISSLASH (*rpi) || ISSLASH (*cpi)) { if (ISSLASH (*rpi) && ISSLASH (*cpi)) same = true; break; } /* Do case-insensitive comparison if the file system is always or often case-insensitive. It's better to accept the comparison if the difference is only in case, rather than to fail. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS - case insignificant file system */ if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi) != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi)) break; #else if (*rpi != *cpi) break; #endif } if (!same) break; /* The last pathname component was the same. opi and cpi now point to the slash before it. */ rp = rpi; cp = cpi; } if (rp > rel_installdir) { /* Unexpected: The curr_installdir does not end with rel_installdir. */ free (curr_installdir); return NULL; } { size_t curr_prefix_len = cp - curr_installdir; char *curr_prefix; curr_prefix = (char *) xmalloc (curr_prefix_len + 1); #ifdef NO_XMALLOC if (curr_prefix == NULL) { free (curr_installdir); return NULL; } #endif memcpy (curr_prefix, curr_installdir, curr_prefix_len); curr_prefix[curr_prefix_len] = '\0'; free (curr_installdir); return curr_prefix; } } } #endif /* !IN_LIBRARY || PIC */ #if defined PIC && defined INSTALLDIR /* Full pathname of shared library, or NULL. */ static char *shared_library_fullname; #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ /* Determine the full pathname of the shared library when it is loaded. */ BOOL WINAPI DllMain (HINSTANCE module_handle, DWORD event, LPVOID reserved) { (void) reserved; if (event == DLL_PROCESS_ATTACH) { /* The DLL is being loaded into an application's address range. */ static char location[MAX_PATH]; if (!GetModuleFileName (module_handle, location, sizeof (location))) /* Shouldn't happen. */ return FALSE; if (!IS_PATH_WITH_DIR (location)) /* Shouldn't happen. */ return FALSE; { #if defined __CYGWIN__ /* On Cygwin, we need to convert paths coming from Win32 system calls to the Unix-like slashified notation. */ static char location_as_posix_path[2 * MAX_PATH]; /* There's no error return defined for cygwin_conv_to_posix_path. See cygwin-api/func-cygwin-conv-to-posix-path.html. Does it overflow the buffer of expected size MAX_PATH or does it truncate the path? I don't know. Let's catch both. */ cygwin_conv_to_posix_path (location, location_as_posix_path); location_as_posix_path[MAX_PATH - 1] = '\0'; if (strlen (location_as_posix_path) >= MAX_PATH - 1) /* A sign of buffer overflow or path truncation. */ return FALSE; shared_library_fullname = strdup (location_as_posix_path); #else shared_library_fullname = strdup (location); #endif } } return TRUE; } #else /* Unix except Cygwin */ static void find_shared_library_fullname () { #if defined __linux__ && __GLIBC__ >= 2 /* Linux has /proc/self/maps. glibc 2 has the getline() function. */ FILE *fp; /* Open the current process' maps file. It describes one VMA per line. */ fp = fopen ("/proc/self/maps", "r"); if (fp) { unsigned long address = (unsigned long) &find_shared_library_fullname; for (;;) { unsigned long start, end; int c; if (fscanf (fp, "%lx-%lx", &start, &end) != 2) break; if (address >= start && address <= end - 1) { /* Found it. Now see if this line contains a filename. */ while (c = getc (fp), c != EOF && c != '\n' && c != '/') continue; if (c == '/') { size_t size; int len; ungetc (c, fp); shared_library_fullname = NULL; size = 0; len = getline (&shared_library_fullname, &size, fp); if (len >= 0) { /* Success: filled shared_library_fullname. */ if (len > 0 && shared_library_fullname[len - 1] == '\n') shared_library_fullname[len - 1] = '\0'; } } break; } while (c = getc (fp), c != EOF && c != '\n') continue; } fclose (fp); } #endif } #endif /* (WIN32 or Cygwin) / (Unix except Cygwin) */ /* Return the full pathname of the current shared library. Return NULL if unknown. Guaranteed to work only on Linux, Cygwin and Woe32. */ static char * get_shared_library_fullname () { #if !(defined _WIN32 || defined __WIN32__ || defined __CYGWIN__) static bool tried_find_shared_library_fullname; if (!tried_find_shared_library_fullname) { find_shared_library_fullname (); tried_find_shared_library_fullname = true; } #endif return shared_library_fullname; } #endif /* PIC */ /* Returns the pathname, relocated according to the current installation directory. The returned string is either PATHNAME unmodified or a freshly allocated string that you can free with free() after casting it to 'char *'. */ const char * relocate (const char *pathname) { #if defined PIC && defined INSTALLDIR static int initialized; /* Initialization code for a shared library. */ if (!initialized) { /* At this point, orig_prefix and curr_prefix likely have already been set through the main program's set_program_name_and_installdir function. This is sufficient in the case that the library has initially been installed in the same orig_prefix. But we can do better, to also cover the cases that 1. it has been installed in a different prefix before being moved to orig_prefix and (later) to curr_prefix, 2. unlike the program, it has not moved away from orig_prefix. */ const char *orig_installprefix = INSTALLPREFIX; const char *orig_installdir = INSTALLDIR; char *curr_prefix_better; curr_prefix_better = compute_curr_prefix (orig_installprefix, orig_installdir, get_shared_library_fullname ()); set_relocation_prefix (orig_installprefix, curr_prefix_better != NULL ? curr_prefix_better : curr_prefix); if (curr_prefix_better != NULL) free (curr_prefix_better); initialized = 1; } #endif /* Note: It is not necessary to perform case insensitive comparison here, even for DOS-like file systems, because the pathname argument was typically created from the same Makefile variable as orig_prefix came from. */ if (orig_prefix != NULL && curr_prefix != NULL && strncmp (pathname, orig_prefix, orig_prefix_len) == 0) { if (pathname[orig_prefix_len] == '\0') { /* pathname equals orig_prefix. */ char *result = (char *) xmalloc (strlen (curr_prefix) + 1); #ifdef NO_XMALLOC if (result != NULL) #endif { strcpy (result, curr_prefix); return result; } } else if (ISSLASH (pathname[orig_prefix_len])) { /* pathname starts with orig_prefix. */ const char *pathname_tail = &pathname[orig_prefix_len]; char *result = (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1); #ifdef NO_XMALLOC if (result != NULL) #endif { memcpy (result, curr_prefix, curr_prefix_len); strcpy (result + curr_prefix_len, pathname_tail); return result; } } } /* Nothing to relocate. */ return pathname; } #endif gtick-0.5.2/intl/log.c0000644000175000017500000000750111617270152011440 00000000000000/* Log file output. Copyright (C) 2003, 2005, 2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include /* Handle multi-threaded applications. */ #ifdef _LIBC # include #else # include "lock.h" #endif /* Separator between msgctxt and msgid in .mo files. */ #define MSGCTXT_SEPARATOR '\004' /* EOT */ /* Print an ASCII string with quotes and escape sequences where needed. */ static void print_escaped (FILE *stream, const char *str, const char *str_end) { putc ('"', stream); for (; str != str_end; str++) if (*str == '\n') { fputs ("\\n\"", stream); if (str + 1 == str_end) return; fputs ("\n\"", stream); } else { if (*str == '"' || *str == '\\') putc ('\\', stream); putc (*str, stream); } putc ('"', stream); } static char *last_logfilename = NULL; static FILE *last_logfile = NULL; __libc_lock_define_initialized (static, lock) static inline void _nl_log_untranslated_locked (const char *logfilename, const char *domainname, const char *msgid1, const char *msgid2, int plural) { FILE *logfile; const char *separator; /* Can we reuse the last opened logfile? */ if (last_logfilename == NULL || strcmp (logfilename, last_logfilename) != 0) { /* Close the last used logfile. */ if (last_logfilename != NULL) { if (last_logfile != NULL) { fclose (last_logfile); last_logfile = NULL; } free (last_logfilename); last_logfilename = NULL; } /* Open the logfile. */ last_logfilename = (char *) malloc (strlen (logfilename) + 1); if (last_logfilename == NULL) return; strcpy (last_logfilename, logfilename); last_logfile = fopen (logfilename, "a"); if (last_logfile == NULL) return; } logfile = last_logfile; fprintf (logfile, "domain "); print_escaped (logfile, domainname, domainname + strlen (domainname)); separator = strchr (msgid1, MSGCTXT_SEPARATOR); if (separator != NULL) { /* The part before the MSGCTXT_SEPARATOR is the msgctxt. */ fprintf (logfile, "\nmsgctxt "); print_escaped (logfile, msgid1, separator); msgid1 = separator + 1; } fprintf (logfile, "\nmsgid "); print_escaped (logfile, msgid1, msgid1 + strlen (msgid1)); if (plural) { fprintf (logfile, "\nmsgid_plural "); print_escaped (logfile, msgid2, msgid2 + strlen (msgid2)); fprintf (logfile, "\nmsgstr[0] \"\"\n"); } else fprintf (logfile, "\nmsgstr \"\"\n"); putc ('\n', logfile); } /* Add to the log file an entry denoting a failed translation. */ void _nl_log_untranslated (const char *logfilename, const char *domainname, const char *msgid1, const char *msgid2, int plural) { __libc_lock_lock (lock); _nl_log_untranslated_locked (logfilename, domainname, msgid1, msgid2, plural); __libc_lock_unlock (lock); } gtick-0.5.2/intl/loadinfo.h0000644000175000017500000001211310661555177012465 00000000000000/* Copyright (C) 1996-1999, 2000-2003, 2005-2006 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper , 1996. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LOADINFO_H #define _LOADINFO_H 1 /* Declarations of locale dependent catalog lookup functions. Implemented in localealias.c Possibly replace a locale name by another. explodename.c Split a locale name into its various fields. l10nflist.c Generate a list of filenames of possible message catalogs. finddomain.c Find and open the relevant message catalogs. The main function _nl_find_domain() in finddomain.c is declared in gettextP.h. */ #ifndef internal_function # define internal_function #endif #ifndef LIBINTL_DLL_EXPORTED # define LIBINTL_DLL_EXPORTED #endif /* Tell the compiler when a conditional or integer expression is almost always true or almost always false. */ #ifndef HAVE_BUILTIN_EXPECT # define __builtin_expect(expr, val) (expr) #endif /* Separator in PATH like lists of pathnames. */ #if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__ /* Win32, OS/2, DOS */ # define PATH_SEPARATOR ';' #else /* Unix */ # define PATH_SEPARATOR ':' #endif /* Encoding of locale name parts. */ #define XPG_NORM_CODESET 1 #define XPG_CODESET 2 #define XPG_TERRITORY 4 #define XPG_MODIFIER 8 struct loaded_l10nfile { const char *filename; int decided; const void *data; struct loaded_l10nfile *next; struct loaded_l10nfile *successor[1]; }; /* Normalize codeset name. There is no standard for the codeset names. Normalization allows the user to use any of the common names. The return value is dynamically allocated and has to be freed by the caller. */ extern const char *_nl_normalize_codeset (const char *codeset, size_t name_len); /* Lookup a locale dependent file. *L10NFILE_LIST denotes a pool of lookup results of locale dependent files of the same kind, sorted in decreasing order of ->filename. DIRLIST and DIRLIST_LEN are an argz list of directories in which to look, containing at least one directory (i.e. DIRLIST_LEN > 0). MASK, LANGUAGE, TERRITORY, CODESET, NORMALIZED_CODESET, MODIFIER are the pieces of the locale name, as produced by _nl_explode_name(). FILENAME is the filename suffix. The return value is the lookup result, either found in *L10NFILE_LIST, or - if DO_ALLOCATE is nonzero - freshly allocated, or possibly NULL. If the return value is non-NULL, it is added to *L10NFILE_LIST, and its ->next field denotes the chaining inside *L10NFILE_LIST, and furthermore its ->successor[] field contains a list of other lookup results from which this lookup result inherits. */ extern struct loaded_l10nfile * _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list, const char *dirlist, size_t dirlist_len, int mask, const char *language, const char *territory, const char *codeset, const char *normalized_codeset, const char *modifier, const char *filename, int do_allocate); /* Lookup the real locale name for a locale alias NAME, or NULL if NAME is not a locale alias (but possibly a real locale name). The return value is statically allocated and must not be freed. */ /* Part of the libintl ABI only for the sake of the gettext.m4 macro. */ extern LIBINTL_DLL_EXPORTED const char *_nl_expand_alias (const char *name); /* Split a locale name NAME into its pieces: language, modifier, territory, codeset. NAME gets destructively modified: NUL bytes are inserted here and there. *LANGUAGE gets assigned NAME. Each of *MODIFIER, *TERRITORY, *CODESET gets assigned either a pointer into the old NAME string, or NULL. *NORMALIZED_CODESET gets assigned the expanded *CODESET, if it is different from *CODESET; this one is dynamically allocated and has to be freed by the caller. The return value is a bitmask, where each bit corresponds to one filled-in value: XPG_MODIFIER for *MODIFIER, XPG_TERRITORY for *TERRITORY, XPG_CODESET for *CODESET, XPG_NORM_CODESET for *NORMALIZED_CODESET. */ extern int _nl_explode_name (char *name, const char **language, const char **modifier, const char **territory, const char **codeset, const char **normalized_codeset); #endif /* loadinfo.h */ gtick-0.5.2/intl/tsearch.c0000644000175000017500000005204111617270153012310 00000000000000/* Copyright (C) 1995, 1996, 1997, 2000, 2006 Free Software Foundation, Inc. Contributed by Bernd Schmidt , 1997. NOTE: The canonical source of this file is maintained with the GNU C Library. Bugs can be reported to bug-glibc@gnu.org. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tree search for red/black trees. The algorithm for adding nodes is taken from one of the many "Algorithms" books by Robert Sedgewick, although the implementation differs. The algorithm for deleting nodes can probably be found in a book named "Introduction to Algorithms" by Cormen/Leiserson/Rivest. At least that's the book that my professor took most algorithms from during the "Data Structures" course... Totally public domain. */ /* Red/black trees are binary trees in which the edges are colored either red or black. They have the following properties: 1. The number of black edges on every path from the root to a leaf is constant. 2. No two red edges are adjacent. Therefore there is an upper bound on the length of every path, it's O(log n) where n is the number of nodes in the tree. No path can be longer than 1+2*P where P is the length of the shortest path in the tree. Useful for the implementation: 3. If one of the children of a node is NULL, then the other one is red (if it exists). In the implementation, not the edges are colored, but the nodes. The color interpreted as the color of the edge leading to this node. The color is meaningless for the root node, but we color the root node black for convenience. All added nodes are red initially. Adding to a red/black tree is rather easy. The right place is searched with a usual binary tree search. Additionally, whenever a node N is reached that has two red successors, the successors are colored black and the node itself colored red. This moves red edges up the tree where they pose less of a problem once we get to really insert the new node. Changing N's color to red may violate rule 2, however, so rotations may become necessary to restore the invariants. Adding a new red leaf may violate the same rule, so afterwards an additional check is run and the tree possibly rotated. Deleting is hairy. There are mainly two nodes involved: the node to be deleted (n1), and another node that is to be unchained from the tree (n2). If n1 has a successor (the node with a smallest key that is larger than n1), then the successor becomes n2 and its contents are copied into n1, otherwise n1 becomes n2. Unchaining a node may violate rule 1: if n2 is black, one subtree is missing one black edge afterwards. The algorithm must try to move this error upwards towards the root, so that the subtree that does not have enough black edges becomes the whole tree. Once that happens, the error has disappeared. It may not be necessary to go all the way up, since it is possible that rotations and recoloring can fix the error before that. Although the deletion algorithm must walk upwards through the tree, we do not store parent pointers in the nodes. Instead, delete allocates a small array of parent pointers and fills it while descending the tree. Since we know that the length of a path is O(log n), where n is the number of nodes, this is likely to use less memory. */ /* Tree rotations look like this: A C / \ / \ B C A G / \ / \ --> / \ D E F G B F / \ D E In this case, A has been rotated left. This preserves the ordering of the binary tree. */ #include /* Specification. */ #ifdef IN_LIBINTL # include "tsearch.h" #else # include #endif #include typedef int (*__compar_fn_t) (const void *, const void *); typedef void (*__action_fn_t) (const void *, VISIT, int); #ifndef weak_alias # define __tsearch tsearch # define __tfind tfind # define __tdelete tdelete # define __twalk twalk #endif #ifndef internal_function /* Inside GNU libc we mark some function in a special way. In other environments simply ignore the marking. */ # define internal_function #endif typedef struct node_t { /* Callers expect this to be the first element in the structure - do not move! */ const void *key; struct node_t *left; struct node_t *right; unsigned int red:1; } *node; typedef const struct node_t *const_node; #undef DEBUGGING #ifdef DEBUGGING /* Routines to check tree invariants. */ #include #define CHECK_TREE(a) check_tree(a) static void check_tree_recurse (node p, int d_sofar, int d_total) { if (p == NULL) { assert (d_sofar == d_total); return; } check_tree_recurse (p->left, d_sofar + (p->left && !p->left->red), d_total); check_tree_recurse (p->right, d_sofar + (p->right && !p->right->red), d_total); if (p->left) assert (!(p->left->red && p->red)); if (p->right) assert (!(p->right->red && p->red)); } static void check_tree (node root) { int cnt = 0; node p; if (root == NULL) return; root->red = 0; for(p = root->left; p; p = p->left) cnt += !p->red; check_tree_recurse (root, 0, cnt); } #else #define CHECK_TREE(a) #endif /* Possibly "split" a node with two red successors, and/or fix up two red edges in a row. ROOTP is a pointer to the lowest node we visited, PARENTP and GPARENTP pointers to its parent/grandparent. P_R and GP_R contain the comparison values that determined which way was taken in the tree to reach ROOTP. MODE is 1 if we need not do the split, but must check for two red edges between GPARENTP and ROOTP. */ static void maybe_split_for_insert (node *rootp, node *parentp, node *gparentp, int p_r, int gp_r, int mode) { node root = *rootp; node *rp, *lp; rp = &(*rootp)->right; lp = &(*rootp)->left; /* See if we have to split this node (both successors red). */ if (mode == 1 || ((*rp) != NULL && (*lp) != NULL && (*rp)->red && (*lp)->red)) { /* This node becomes red, its successors black. */ root->red = 1; if (*rp) (*rp)->red = 0; if (*lp) (*lp)->red = 0; /* If the parent of this node is also red, we have to do rotations. */ if (parentp != NULL && (*parentp)->red) { node gp = *gparentp; node p = *parentp; /* There are two main cases: 1. The edge types (left or right) of the two red edges differ. 2. Both red edges are of the same type. There exist two symmetries of each case, so there is a total of 4 cases. */ if ((p_r > 0) != (gp_r > 0)) { /* Put the child at the top of the tree, with its parent and grandparent as successors. */ p->red = 1; gp->red = 1; root->red = 0; if (p_r < 0) { /* Child is left of parent. */ p->left = *rp; *rp = p; gp->right = *lp; *lp = gp; } else { /* Child is right of parent. */ p->right = *lp; *lp = p; gp->left = *rp; *rp = gp; } *gparentp = root; } else { *gparentp = *parentp; /* Parent becomes the top of the tree, grandparent and child are its successors. */ p->red = 0; gp->red = 1; if (p_r < 0) { /* Left edges. */ gp->left = p->right; p->right = gp; } else { /* Right edges. */ gp->right = p->left; p->left = gp; } } } } } /* Find or insert datum into search tree. KEY is the key to be located, ROOTP is the address of tree root, COMPAR the ordering function. */ void * __tsearch (const void *key, void **vrootp, __compar_fn_t compar) { node q; node *parentp = NULL, *gparentp = NULL; node *rootp = (node *) vrootp; node *nextp; int r = 0, p_r = 0, gp_r = 0; /* No they might not, Mr Compiler. */ if (rootp == NULL) return NULL; /* This saves some additional tests below. */ if (*rootp != NULL) (*rootp)->red = 0; CHECK_TREE (*rootp); nextp = rootp; while (*nextp != NULL) { node root = *rootp; r = (*compar) (key, root->key); if (r == 0) return root; maybe_split_for_insert (rootp, parentp, gparentp, p_r, gp_r, 0); /* If that did any rotations, parentp and gparentp are now garbage. That doesn't matter, because the values they contain are never used again in that case. */ nextp = r < 0 ? &root->left : &root->right; if (*nextp == NULL) break; gparentp = parentp; parentp = rootp; rootp = nextp; gp_r = p_r; p_r = r; } q = (struct node_t *) malloc (sizeof (struct node_t)); if (q != NULL) { *nextp = q; /* link new node to old */ q->key = key; /* initialize new node */ q->red = 1; q->left = q->right = NULL; if (nextp != rootp) /* There may be two red edges in a row now, which we must avoid by rotating the tree. */ maybe_split_for_insert (nextp, rootp, parentp, r, p_r, 1); } return q; } #ifdef weak_alias weak_alias (__tsearch, tsearch) #endif /* Find datum in search tree. KEY is the key to be located, ROOTP is the address of tree root, COMPAR the ordering function. */ void * __tfind (key, vrootp, compar) const void *key; void *const *vrootp; __compar_fn_t compar; { node *rootp = (node *) vrootp; if (rootp == NULL) return NULL; CHECK_TREE (*rootp); while (*rootp != NULL) { node root = *rootp; int r; r = (*compar) (key, root->key); if (r == 0) return root; rootp = r < 0 ? &root->left : &root->right; } return NULL; } #ifdef weak_alias weak_alias (__tfind, tfind) #endif /* Delete node with given key. KEY is the key to be deleted, ROOTP is the address of the root of tree, COMPAR the comparison function. */ void * __tdelete (const void *key, void **vrootp, __compar_fn_t compar) { node p, q, r, retval; int cmp; node *rootp = (node *) vrootp; node root, unchained; /* Stack of nodes so we remember the parents without recursion. It's _very_ unlikely that there are paths longer than 40 nodes. The tree would need to have around 250.000 nodes. */ int stacksize = 100; int sp = 0; node *nodestack[100]; if (rootp == NULL) return NULL; p = *rootp; if (p == NULL) return NULL; CHECK_TREE (p); while ((cmp = (*compar) (key, (*rootp)->key)) != 0) { if (sp == stacksize) abort (); nodestack[sp++] = rootp; p = *rootp; rootp = ((cmp < 0) ? &(*rootp)->left : &(*rootp)->right); if (*rootp == NULL) return NULL; } /* This is bogus if the node to be deleted is the root... this routine really should return an integer with 0 for success, -1 for failure and errno = ESRCH or something. */ retval = p; /* We don't unchain the node we want to delete. Instead, we overwrite it with its successor and unchain the successor. If there is no successor, we really unchain the node to be deleted. */ root = *rootp; r = root->right; q = root->left; if (q == NULL || r == NULL) unchained = root; else { node *parent = rootp, *up = &root->right; for (;;) { if (sp == stacksize) abort (); nodestack[sp++] = parent; parent = up; if ((*up)->left == NULL) break; up = &(*up)->left; } unchained = *up; } /* We know that either the left or right successor of UNCHAINED is NULL. R becomes the other one, it is chained into the parent of UNCHAINED. */ r = unchained->left; if (r == NULL) r = unchained->right; if (sp == 0) *rootp = r; else { q = *nodestack[sp-1]; if (unchained == q->right) q->right = r; else q->left = r; } if (unchained != root) root->key = unchained->key; if (!unchained->red) { /* Now we lost a black edge, which means that the number of black edges on every path is no longer constant. We must balance the tree. */ /* NODESTACK now contains all parents of R. R is likely to be NULL in the first iteration. */ /* NULL nodes are considered black throughout - this is necessary for correctness. */ while (sp > 0 && (r == NULL || !r->red)) { node *pp = nodestack[sp - 1]; p = *pp; /* Two symmetric cases. */ if (r == p->left) { /* Q is R's brother, P is R's parent. The subtree with root R has one black edge less than the subtree with root Q. */ q = p->right; if (q->red) { /* If Q is red, we know that P is black. We rotate P left so that Q becomes the top node in the tree, with P below it. P is colored red, Q is colored black. This action does not change the black edge count for any leaf in the tree, but we will be able to recognize one of the following situations, which all require that Q is black. */ q->red = 0; p->red = 1; /* Left rotate p. */ p->right = q->left; q->left = p; *pp = q; /* Make sure pp is right if the case below tries to use it. */ nodestack[sp++] = pp = &q->left; q = p->right; } /* We know that Q can't be NULL here. We also know that Q is black. */ if ((q->left == NULL || !q->left->red) && (q->right == NULL || !q->right->red)) { /* Q has two black successors. We can simply color Q red. The whole subtree with root P is now missing one black edge. Note that this action can temporarily make the tree invalid (if P is red). But we will exit the loop in that case and set P black, which both makes the tree valid and also makes the black edge count come out right. If P is black, we are at least one step closer to the root and we'll try again the next iteration. */ q->red = 1; r = p; } else { /* Q is black, one of Q's successors is red. We can repair the tree with one operation and will exit the loop afterwards. */ if (q->right == NULL || !q->right->red) { /* The left one is red. We perform the same action as in maybe_split_for_insert where two red edges are adjacent but point in different directions: Q's left successor (let's call it Q2) becomes the top of the subtree we are looking at, its parent (Q) and grandparent (P) become its successors. The former successors of Q2 are placed below P and Q. P becomes black, and Q2 gets the color that P had. This changes the black edge count only for node R and its successors. */ node q2 = q->left; q2->red = p->red; p->right = q2->left; q->left = q2->right; q2->right = q; q2->left = p; *pp = q2; p->red = 0; } else { /* It's the right one. Rotate P left. P becomes black, and Q gets the color that P had. Q's right successor also becomes black. This changes the black edge count only for node R and its successors. */ q->red = p->red; p->red = 0; q->right->red = 0; /* left rotate p */ p->right = q->left; q->left = p; *pp = q; } /* We're done. */ sp = 1; r = NULL; } } else { /* Comments: see above. */ q = p->left; if (q->red) { q->red = 0; p->red = 1; p->left = q->right; q->right = p; *pp = q; nodestack[sp++] = pp = &q->right; q = p->left; } if ((q->right == NULL || !q->right->red) && (q->left == NULL || !q->left->red)) { q->red = 1; r = p; } else { if (q->left == NULL || !q->left->red) { node q2 = q->right; q2->red = p->red; p->left = q2->right; q->right = q2->left; q2->left = q; q2->right = p; *pp = q2; p->red = 0; } else { q->red = p->red; p->red = 0; q->left->red = 0; p->left = q->right; q->right = p; *pp = q; } sp = 1; r = NULL; } } --sp; } if (r != NULL) r->red = 0; } free (unchained); return retval; } #ifdef weak_alias weak_alias (__tdelete, tdelete) #endif /* Walk the nodes of a tree. ROOT is the root of the tree to be walked, ACTION the function to be called at each node. LEVEL is the level of ROOT in the whole tree. */ static void internal_function trecurse (const void *vroot, __action_fn_t action, int level) { const_node root = (const_node) vroot; if (root->left == NULL && root->right == NULL) (*action) (root, leaf, level); else { (*action) (root, preorder, level); if (root->left != NULL) trecurse (root->left, action, level + 1); (*action) (root, postorder, level); if (root->right != NULL) trecurse (root->right, action, level + 1); (*action) (root, endorder, level); } } /* Walk the nodes of a tree. ROOT is the root of the tree to be walked, ACTION the function to be called at each node. */ void __twalk (const void *vroot, __action_fn_t action) { const_node root = (const_node) vroot; CHECK_TREE (root); if (root != NULL && action != NULL) trecurse (root, action, 0); } #ifdef weak_alias weak_alias (__twalk, twalk) #endif #ifdef _LIBC /* The standardized functions miss an important functionality: the tree cannot be removed easily. We provide a function to do this. */ static void internal_function tdestroy_recurse (node root, __free_fn_t freefct) { if (root->left != NULL) tdestroy_recurse (root->left, freefct); if (root->right != NULL) tdestroy_recurse (root->right, freefct); (*freefct) ((void *) root->key); /* Free the node itself. */ free (root); } void __tdestroy (void *vroot, __free_fn_t freefct) { node root = (node) vroot; CHECK_TREE (root); if (root != NULL) tdestroy_recurse (root, freefct); } weak_alias (__tdestroy, tdestroy) #endif /* _LIBC */ gtick-0.5.2/intl/gmo.h0000644000175000017500000001151211617270151011442 00000000000000/* Description of GNU message catalog format: general file layout. Copyright (C) 1995, 1997, 2000-2002, 2004, 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GETTEXT_H #define _GETTEXT_H 1 #include /* @@ end of prolog @@ */ /* The magic number of the GNU message catalog format. */ #define _MAGIC 0x950412de #define _MAGIC_SWAPPED 0xde120495 /* Revision number of the currently used .mo (binary) file format. */ #define MO_REVISION_NUMBER 0 #define MO_REVISION_NUMBER_WITH_SYSDEP_I 1 /* The following contortions are an attempt to use the C preprocessor to determine an unsigned integral type that is 32 bits wide. An alternative approach is to use autoconf's AC_CHECK_SIZEOF macro, but as of version autoconf-2.13, the AC_CHECK_SIZEOF macro doesn't work when cross-compiling. */ #if __STDC__ # define UINT_MAX_32_BITS 4294967295U #else # define UINT_MAX_32_BITS 0xFFFFFFFF #endif /* If UINT_MAX isn't defined, assume it's a 32-bit type. This should be valid for all systems GNU cares about because that doesn't include 16-bit systems, and only modern systems (that certainly have ) have 64+-bit integral types. */ #ifndef UINT_MAX # define UINT_MAX UINT_MAX_32_BITS #endif #if UINT_MAX == UINT_MAX_32_BITS typedef unsigned nls_uint32; #else # if USHRT_MAX == UINT_MAX_32_BITS typedef unsigned short nls_uint32; # else # if ULONG_MAX == UINT_MAX_32_BITS typedef unsigned long nls_uint32; # else /* The following line is intended to throw an error. Using #error is not portable enough. */ "Cannot determine unsigned 32-bit data type." # endif # endif #endif /* Header for binary .mo file format. */ struct mo_file_header { /* The magic number. */ nls_uint32 magic; /* The revision number of the file format. */ nls_uint32 revision; /* The following are only used in .mo files with major revision 0 or 1. */ /* The number of strings pairs. */ nls_uint32 nstrings; /* Offset of table with start offsets of original strings. */ nls_uint32 orig_tab_offset; /* Offset of table with start offsets of translated strings. */ nls_uint32 trans_tab_offset; /* Size of hash table. */ nls_uint32 hash_tab_size; /* Offset of first hash table entry. */ nls_uint32 hash_tab_offset; /* The following are only used in .mo files with minor revision >= 1. */ /* The number of system dependent segments. */ nls_uint32 n_sysdep_segments; /* Offset of table describing system dependent segments. */ nls_uint32 sysdep_segments_offset; /* The number of system dependent strings pairs. */ nls_uint32 n_sysdep_strings; /* Offset of table with start offsets of original sysdep strings. */ nls_uint32 orig_sysdep_tab_offset; /* Offset of table with start offsets of translated sysdep strings. */ nls_uint32 trans_sysdep_tab_offset; }; /* Descriptor for static string contained in the binary .mo file. */ struct string_desc { /* Length of addressed string, not including the trailing NUL. */ nls_uint32 length; /* Offset of string in file. */ nls_uint32 offset; }; /* The following are only used in .mo files with minor revision >= 1. */ /* Descriptor for system dependent string segment. */ struct sysdep_segment { /* Length of addressed string, including the trailing NUL. */ nls_uint32 length; /* Offset of string in file. */ nls_uint32 offset; }; /* Pair of a static and a system dependent segment, in struct sysdep_string. */ struct segment_pair { /* Size of static segment. */ nls_uint32 segsize; /* Reference to system dependent string segment, or ~0 at the end. */ nls_uint32 sysdepref; }; /* Descriptor for system dependent string. */ struct sysdep_string { /* Offset of static string segments in file. */ nls_uint32 offset; /* Alternating sequence of static and system dependent segments. The last segment is a static segment, including the trailing NUL. */ struct segment_pair segments[1]; }; /* Marker for the end of the segments[] array. This has the value 0xFFFFFFFF, regardless whether 'int' is 16 bit, 32 bit, or 64 bit. */ #define SEGMENTS_END ((nls_uint32) ~0) /* @@ begin of epilog @@ */ #endif /* gettext.h */ gtick-0.5.2/intl/config.charset0000755000175000017500000005514611617270150013344 00000000000000#! /bin/sh # Output a system dependent table of character encoding aliases. # # Copyright (C) 2000-2004, 2006-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # The table consists of lines of the form # ALIAS CANONICAL # # ALIAS is the (system dependent) result of "nl_langinfo (CODESET)". # ALIAS is compared in a case sensitive way. # # CANONICAL is the GNU canonical name for this character encoding. # It must be an encoding supported by libiconv. Support by GNU libc is # also desirable. CANONICAL is case insensitive. Usually an upper case # MIME charset name is preferred. # The current list of GNU canonical charset names is as follows. # # name MIME? used by which systems # ASCII, ANSI_X3.4-1968 glibc solaris freebsd netbsd darwin cygwin # ISO-8859-1 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin # ISO-8859-2 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin # ISO-8859-3 Y glibc solaris cygwin # ISO-8859-4 Y osf solaris freebsd netbsd openbsd darwin # ISO-8859-5 Y glibc aix hpux irix osf solaris freebsd netbsd openbsd darwin cygwin # ISO-8859-6 Y glibc aix hpux solaris cygwin # ISO-8859-7 Y glibc aix hpux irix osf solaris netbsd openbsd darwin cygwin # ISO-8859-8 Y glibc aix hpux osf solaris cygwin # ISO-8859-9 Y glibc aix hpux irix osf solaris darwin cygwin # ISO-8859-13 glibc netbsd openbsd darwin cygwin # ISO-8859-14 glibc cygwin # ISO-8859-15 glibc aix osf solaris freebsd netbsd openbsd darwin cygwin # KOI8-R Y glibc solaris freebsd netbsd openbsd darwin # KOI8-U Y glibc freebsd netbsd openbsd darwin cygwin # KOI8-T glibc # CP437 dos # CP775 dos # CP850 aix osf dos # CP852 dos # CP855 dos # CP856 aix # CP857 dos # CP861 dos # CP862 dos # CP864 dos # CP865 dos # CP866 freebsd netbsd openbsd darwin dos # CP869 dos # CP874 woe32 dos # CP922 aix # CP932 aix cygwin woe32 dos # CP943 aix # CP949 osf darwin woe32 dos # CP950 woe32 dos # CP1046 aix # CP1124 aix # CP1125 dos # CP1129 aix # CP1131 darwin # CP1250 woe32 # CP1251 glibc solaris netbsd openbsd darwin cygwin woe32 # CP1252 aix woe32 # CP1253 woe32 # CP1254 woe32 # CP1255 glibc woe32 # CP1256 woe32 # CP1257 woe32 # GB2312 Y glibc aix hpux irix solaris freebsd netbsd darwin # EUC-JP Y glibc aix hpux irix osf solaris freebsd netbsd darwin # EUC-KR Y glibc aix hpux irix osf solaris freebsd netbsd darwin cygwin # EUC-TW glibc aix hpux irix osf solaris netbsd # BIG5 Y glibc aix hpux osf solaris freebsd netbsd darwin cygwin # BIG5-HKSCS glibc solaris darwin # GBK glibc aix osf solaris darwin cygwin woe32 dos # GB18030 glibc solaris netbsd darwin # SHIFT_JIS Y hpux osf solaris freebsd netbsd darwin # JOHAB glibc solaris woe32 # TIS-620 glibc aix hpux osf solaris cygwin # VISCII Y glibc # TCVN5712-1 glibc # ARMSCII-8 glibc darwin # GEORGIAN-PS glibc cygwin # PT154 glibc # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux # HP-HEBREW8 hpux # HP-TURKISH8 hpux # HP-KANA8 hpux # DEC-KANJI osf # DEC-HANYU osf # UTF-8 Y glibc aix hpux osf solaris netbsd darwin cygwin # # Note: Names which are not marked as being a MIME name should not be used in # Internet protocols for information interchange (mail, news, etc.). # # Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications # must understand both names and treat them as equivalent. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM host="$1" os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'` echo "# This file contains a table of character encoding aliases," echo "# suitable for operating system '${os}'." echo "# It was automatically generated from config.charset." # List of references, updated during installation: echo "# Packages using this file: " case "$os" in linux-gnulibc1*) # Linux libc5 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" echo "POSIX ASCII" for l in af af_ZA ca ca_ES da da_DK de de_AT de_BE de_CH de_DE de_LU \ en en_AU en_BW en_CA en_DK en_GB en_IE en_NZ en_US en_ZA \ en_ZW es es_AR es_BO es_CL es_CO es_DO es_EC es_ES es_GT \ es_HN es_MX es_PA es_PE es_PY es_SV es_US es_UY es_VE et \ et_EE eu eu_ES fi fi_FI fo fo_FO fr fr_BE fr_CA fr_CH fr_FR \ fr_LU ga ga_IE gl gl_ES id id_ID in in_ID is is_IS it it_CH \ it_IT kl kl_GL nl nl_BE nl_NL no no_NO pt pt_BR pt_PT sv \ sv_FI sv_SE; do echo "$l ISO-8859-1" echo "$l.iso-8859-1 ISO-8859-1" echo "$l.iso-8859-15 ISO-8859-15" echo "$l.iso-8859-15@euro ISO-8859-15" echo "$l@euro ISO-8859-15" echo "$l.cp-437 CP437" echo "$l.cp-850 CP850" echo "$l.cp-1252 CP1252" echo "$l.cp-1252@euro CP1252" #echo "$l.atari-st ATARI-ST" # not a commonly used encoding echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in cs cs_CZ hr hr_HR hu hu_HU pl pl_PL ro ro_RO sk sk_SK sl \ sl_SI sr sr_CS sr_YU; do echo "$l ISO-8859-2" echo "$l.iso-8859-2 ISO-8859-2" echo "$l.cp-852 CP852" echo "$l.cp-1250 CP1250" echo "$l.utf-8 UTF-8" done for l in mk mk_MK ru ru_RU; do echo "$l ISO-8859-5" echo "$l.iso-8859-5 ISO-8859-5" echo "$l.koi8-r KOI8-R" echo "$l.cp-866 CP866" echo "$l.cp-1251 CP1251" echo "$l.utf-8 UTF-8" done for l in ar ar_SA; do echo "$l ISO-8859-6" echo "$l.iso-8859-6 ISO-8859-6" echo "$l.cp-864 CP864" #echo "$l.cp-868 CP868" # not a commonly used encoding echo "$l.cp-1256 CP1256" echo "$l.utf-8 UTF-8" done for l in el el_GR gr gr_GR; do echo "$l ISO-8859-7" echo "$l.iso-8859-7 ISO-8859-7" echo "$l.cp-869 CP869" echo "$l.cp-1253 CP1253" echo "$l.cp-1253@euro CP1253" echo "$l.utf-8 UTF-8" echo "$l.utf-8@euro UTF-8" done for l in he he_IL iw iw_IL; do echo "$l ISO-8859-8" echo "$l.iso-8859-8 ISO-8859-8" echo "$l.cp-862 CP862" echo "$l.cp-1255 CP1255" echo "$l.utf-8 UTF-8" done for l in tr tr_TR; do echo "$l ISO-8859-9" echo "$l.iso-8859-9 ISO-8859-9" echo "$l.cp-857 CP857" echo "$l.cp-1254 CP1254" echo "$l.utf-8 UTF-8" done for l in lt lt_LT lv lv_LV; do #echo "$l BALTIC" # not a commonly used encoding, wrong encoding name echo "$l ISO-8859-13" done for l in ru_UA uk uk_UA; do echo "$l KOI8-U" done for l in zh zh_CN; do #echo "$l GB_2312-80" # not a commonly used encoding, wrong encoding name echo "$l GB2312" done for l in ja ja_JP ja_JP.EUC; do echo "$l EUC-JP" done for l in ko ko_KR; do echo "$l EUC-KR" done for l in th th_TH; do echo "$l TIS-620" done for l in fa fa_IR; do #echo "$l ISIRI-3342" # a broken encoding echo "$l.utf-8 UTF-8" done ;; linux* | *-gnu*) # With glibc-2.1 or newer, we don't need any canonicalization, # because glibc has iconv and both glibc and libiconv support all # GNU canonical names directly. Therefore, the Makefile does not # need to install the alias file at all. # The following applies only to glibc-2.0.x and older libcs. echo "ISO_646.IRV:1983 ASCII" ;; aix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "IBM-850 CP850" echo "IBM-856 CP856" echo "IBM-921 ISO-8859-13" echo "IBM-922 CP922" echo "IBM-932 CP932" echo "IBM-943 CP943" echo "IBM-1046 CP1046" echo "IBM-1124 CP1124" echo "IBM-1129 CP1129" echo "IBM-1252 CP1252" echo "IBM-eucCN GB2312" echo "IBM-eucJP EUC-JP" echo "IBM-eucKR EUC-KR" echo "IBM-eucTW EUC-TW" echo "big5 BIG5" echo "GBK GBK" echo "TIS-620 TIS-620" echo "UTF-8 UTF-8" ;; hpux*) echo "iso88591 ISO-8859-1" echo "iso88592 ISO-8859-2" echo "iso88595 ISO-8859-5" echo "iso88596 ISO-8859-6" echo "iso88597 ISO-8859-7" echo "iso88598 ISO-8859-8" echo "iso88599 ISO-8859-9" echo "iso885915 ISO-8859-15" echo "roman8 HP-ROMAN8" echo "arabic8 HP-ARABIC8" echo "greek8 HP-GREEK8" echo "hebrew8 HP-HEBREW8" echo "turkish8 HP-TURKISH8" echo "kana8 HP-KANA8" echo "tis620 TIS-620" echo "big5 BIG5" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "hp15CN GB2312" #echo "ccdc ?" # what is this? echo "SJIS SHIFT_JIS" echo "utf8 UTF-8" ;; irix*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" ;; osf*) echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "cp850 CP850" echo "big5 BIG5" echo "dechanyu DEC-HANYU" echo "dechanzi GB2312" echo "deckanji DEC-KANJI" echo "deckorean EUC-KR" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "GBK GBK" echo "KSC5601 CP949" echo "sdeckanji EUC-JP" echo "SJIS SHIFT_JIS" echo "TACTIS TIS-620" echo "UTF-8 UTF-8" ;; solaris*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-3 ISO-8859-3" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-6 ISO-8859-6" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-8 ISO-8859-8" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-15 ISO-8859-15" echo "koi8-r KOI8-R" echo "ansi-1251 CP1251" echo "BIG5 BIG5" echo "Big5-HKSCS BIG5-HKSCS" echo "gb2312 GB2312" echo "GBK GBK" echo "GB18030 GB18030" echo "cns11643 EUC-TW" echo "5601 EUC-KR" echo "ko_KR.johap92 JOHAB" echo "eucJP EUC-JP" echo "PCK SHIFT_JIS" echo "TIS620.2533 TIS-620" #echo "sun_eu_greek ?" # what is this? echo "UTF-8 UTF-8" ;; freebsd* | os2*) # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just # reuse FreeBSD's locale data for OS/2. echo "C ASCII" echo "US-ASCII ASCII" for l in la_LN lt_LN; do echo "$l.ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \ lt_LN nl_BE nl_NL no_NO pt_PT sv_SE; do echo "$l.ISO_8859-1 ISO-8859-1" echo "$l.DIS_8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI; do echo "$l.ISO_8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO_8859-4 ISO-8859-4" done for l in ru_RU ru_SU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO_8859-5 ISO-8859-5" echo "$l.CP866 CP866" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SHIFT_JIS" echo "ja_JP.Shift_JIS SHIFT_JIS" echo "ko_KR.EUC EUC-KR" ;; netbsd*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-13 ISO-8859-13" echo "ISO8859-15 ISO-8859-15" echo "eucCN GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" echo "BIG5 BIG5" echo "SJIS SHIFT_JIS" ;; openbsd*) echo "646 ASCII" echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-13 ISO-8859-13" echo "ISO8859-15 ISO-8859-15" ;; darwin[56]*) # Darwin 6.8 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "C ASCII" for l in en_AU en_CA en_GB en_US la_LN; do echo "$l.US-ASCII ASCII" done for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT nl_BE \ nl_NL no_NO pt_PT sv_SE; do echo "$l ISO-8859-1" echo "$l.ISO8859-1 ISO-8859-1" echo "$l.ISO8859-15 ISO-8859-15" done for l in la_LN; do echo "$l.ISO8859-1 ISO-8859-1" echo "$l.ISO8859-15 ISO-8859-15" done for l in cs_CZ hr_HR hu_HU la_LN pl_PL sl_SI; do echo "$l.ISO8859-2 ISO-8859-2" done for l in la_LN lt_LT; do echo "$l.ISO8859-4 ISO-8859-4" done for l in ru_RU; do echo "$l.KOI8-R KOI8-R" echo "$l.ISO8859-5 ISO-8859-5" echo "$l.CP866 CP866" done for l in bg_BG; do echo "$l.CP1251 CP1251" done echo "uk_UA.KOI8-U KOI8-U" echo "zh_TW.BIG5 BIG5" echo "zh_TW.Big5 BIG5" echo "zh_CN.EUC GB2312" echo "ja_JP.EUC EUC-JP" echo "ja_JP.SJIS SHIFT_JIS" echo "ko_KR.EUC EUC-KR" ;; darwin*) # Darwin 7.5 has nl_langinfo(CODESET), but sometimes its value is # useless: # - It returns the empty string when LANG is set to a locale of the # form ll_CC, although ll_CC/LC_CTYPE is a symlink to an UTF-8 # LC_CTYPE file. # - The environment variables LANG, LC_CTYPE, LC_ALL are not set by # the system; nl_langinfo(CODESET) returns "US-ASCII" in this case. # - The documentation says: # "... all code that calls BSD system routines should ensure # that the const *char parameters of these routines are in UTF-8 # encoding. All BSD system functions expect their string # parameters to be in UTF-8 encoding and nothing else." # It also says # "An additional caveat is that string parameters for files, # paths, and other file-system entities must be in canonical # UTF-8. In a canonical UTF-8 Unicode string, all decomposable # characters are decomposed ..." # but this is not true: You can pass non-decomposed UTF-8 strings # to file system functions, and it is the OS which will convert # them to decomposed UTF-8 before accessing the file system. # - The Apple Terminal application displays UTF-8 by default. # - However, other applications are free to use different encodings: # - xterm uses ISO-8859-1 by default. # - TextEdit uses MacRoman by default. # We prefer UTF-8 over decomposed UTF-8-MAC because one should # minimize the use of decomposed Unicode. Unfortunately, through the # Darwin file system, decomposed UTF-8 strings are leaked into user # space nevertheless. # Then there are also the locales with encodings other than US-ASCII # and UTF-8. These locales can be occasionally useful to users (e.g. # when grepping through ISO-8859-1 encoded text files), when all their # file names are in US-ASCII. echo "ISO8859-1 ISO-8859-1" echo "ISO8859-2 ISO-8859-2" echo "ISO8859-4 ISO-8859-4" echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" echo "ISO8859-13 ISO-8859-13" echo "ISO8859-15 ISO-8859-15" echo "KOI8-R KOI8-R" echo "KOI8-U KOI8-U" echo "CP866 CP866" echo "CP949 CP949" echo "CP1131 CP1131" echo "CP1251 CP1251" echo "eucCN GB2312" echo "GB2312 GB2312" echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "Big5 BIG5" echo "Big5HKSCS BIG5-HKSCS" echo "GBK GBK" echo "GB18030 GB18030" echo "SJIS SHIFT_JIS" echo "ARMSCII-8 ARMSCII-8" echo "PT154 PT154" #echo "ISCII-DEV ?" echo "* UTF-8" ;; beos* | haiku*) # BeOS and Haiku have a single locale, and it has UTF-8 encoding. echo "* UTF-8" ;; msdosdjgpp*) # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore # localcharset.c falls back to using the full locale name # from the environment variables. echo "#" echo "# The encodings given here may not all be correct." echo "# If you find that the encoding given for your language and" echo "# country is not the one your DOS machine actually uses, just" echo "# correct it in this file, and send a mail to" echo "# Juan Manuel Guerrero " echo "# and Bruno Haible ." echo "#" echo "C ASCII" # ISO-8859-1 languages echo "ca CP850" echo "ca_ES CP850" echo "da CP865" # not CP850 ?? echo "da_DK CP865" # not CP850 ?? echo "de CP850" echo "de_AT CP850" echo "de_CH CP850" echo "de_DE CP850" echo "en CP850" echo "en_AU CP850" # not CP437 ?? echo "en_CA CP850" echo "en_GB CP850" echo "en_NZ CP437" echo "en_US CP437" echo "en_ZA CP850" # not CP437 ?? echo "es CP850" echo "es_AR CP850" echo "es_BO CP850" echo "es_CL CP850" echo "es_CO CP850" echo "es_CR CP850" echo "es_CU CP850" echo "es_DO CP850" echo "es_EC CP850" echo "es_ES CP850" echo "es_GT CP850" echo "es_HN CP850" echo "es_MX CP850" echo "es_NI CP850" echo "es_PA CP850" echo "es_PY CP850" echo "es_PE CP850" echo "es_SV CP850" echo "es_UY CP850" echo "es_VE CP850" echo "et CP850" echo "et_EE CP850" echo "eu CP850" echo "eu_ES CP850" echo "fi CP850" echo "fi_FI CP850" echo "fr CP850" echo "fr_BE CP850" echo "fr_CA CP850" echo "fr_CH CP850" echo "fr_FR CP850" echo "ga CP850" echo "ga_IE CP850" echo "gd CP850" echo "gd_GB CP850" echo "gl CP850" echo "gl_ES CP850" echo "id CP850" # not CP437 ?? echo "id_ID CP850" # not CP437 ?? echo "is CP861" # not CP850 ?? echo "is_IS CP861" # not CP850 ?? echo "it CP850" echo "it_CH CP850" echo "it_IT CP850" echo "lt CP775" echo "lt_LT CP775" echo "lv CP775" echo "lv_LV CP775" echo "nb CP865" # not CP850 ?? echo "nb_NO CP865" # not CP850 ?? echo "nl CP850" echo "nl_BE CP850" echo "nl_NL CP850" echo "nn CP865" # not CP850 ?? echo "nn_NO CP865" # not CP850 ?? echo "no CP865" # not CP850 ?? echo "no_NO CP865" # not CP850 ?? echo "pt CP850" echo "pt_BR CP850" echo "pt_PT CP850" echo "sv CP850" echo "sv_SE CP850" # ISO-8859-2 languages echo "cs CP852" echo "cs_CZ CP852" echo "hr CP852" echo "hr_HR CP852" echo "hu CP852" echo "hu_HU CP852" echo "pl CP852" echo "pl_PL CP852" echo "ro CP852" echo "ro_RO CP852" echo "sk CP852" echo "sk_SK CP852" echo "sl CP852" echo "sl_SI CP852" echo "sq CP852" echo "sq_AL CP852" echo "sr CP852" # CP852 or CP866 or CP855 ?? echo "sr_CS CP852" # CP852 or CP866 or CP855 ?? echo "sr_YU CP852" # CP852 or CP866 or CP855 ?? # ISO-8859-3 languages echo "mt CP850" echo "mt_MT CP850" # ISO-8859-5 languages echo "be CP866" echo "be_BE CP866" echo "bg CP866" # not CP855 ?? echo "bg_BG CP866" # not CP855 ?? echo "mk CP866" # not CP855 ?? echo "mk_MK CP866" # not CP855 ?? echo "ru CP866" echo "ru_RU CP866" echo "uk CP1125" echo "uk_UA CP1125" # ISO-8859-6 languages echo "ar CP864" echo "ar_AE CP864" echo "ar_DZ CP864" echo "ar_EG CP864" echo "ar_IQ CP864" echo "ar_IR CP864" echo "ar_JO CP864" echo "ar_KW CP864" echo "ar_MA CP864" echo "ar_OM CP864" echo "ar_QA CP864" echo "ar_SA CP864" echo "ar_SY CP864" # ISO-8859-7 languages echo "el CP869" echo "el_GR CP869" # ISO-8859-8 languages echo "he CP862" echo "he_IL CP862" # ISO-8859-9 languages echo "tr CP857" echo "tr_TR CP857" # Japanese echo "ja CP932" echo "ja_JP CP932" # Chinese echo "zh_CN GBK" echo "zh_TW CP950" # not CP938 ?? # Korean echo "kr CP949" # not CP934 ?? echo "kr_KR CP949" # not CP934 ?? # Thai echo "th CP874" echo "th_TH CP874" # Other echo "eo CP850" echo "eo_EO CP850" ;; esac gtick-0.5.2/intl/localcharset.c0000644000175000017500000004316111617270152013325 00000000000000/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2006, 2008-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . */ #include /* Specification. */ #include "localcharset.h" #include #include #include #include #include #if defined __APPLE__ && defined __MACH__ && HAVE_LANGINFO_CODESET # define DARWIN7 /* Darwin 7 or newer, i.e. MacOS X 10.3 or newer */ #endif #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #if defined __EMX__ /* Assume EMX program runs on OS/2, even if compiled under DOS. */ # ifndef OS2 # define OS2 # endif #endif #if !defined WIN32_NATIVE # include # if HAVE_LANGINFO_CODESET # include # else # if 0 /* see comment below */ # include # endif # endif # ifdef __CYGWIN__ # define WIN32_LEAN_AND_MEAN # include # endif #elif defined WIN32_NATIVE # define WIN32_LEAN_AND_MEAN # include #endif #if defined OS2 # define INCL_DOS # include #endif #if ENABLE_RELOCATABLE # include "relocatable.h" #else # define relocate(pathname) (pathname) #endif /* Get LIBDIR. */ #ifndef LIBDIR # include "configmake.h" #endif /* Define O_NOFOLLOW to 0 on platforms where it does not exist. */ #ifndef O_NOFOLLOW # define O_NOFOLLOW 0 #endif #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') #endif #ifndef DIRECTORY_SEPARATOR # define DIRECTORY_SEPARATOR '/' #endif #ifndef ISSLASH # define ISSLASH(C) ((C) == DIRECTORY_SEPARATOR) #endif #if HAVE_DECL_GETC_UNLOCKED # undef getc # define getc getc_unlocked #endif /* The following static variable is declared 'volatile' to avoid a possible multithread problem in the function get_charset_aliases. If we are running in a threaded environment, and if two threads initialize 'charset_aliases' simultaneously, both will produce the same value, and everything will be ok if the two assignments to 'charset_aliases' are atomic. But I don't know what will happen if the two assignments mix. */ #if __STDC__ != 1 # define volatile /* empty */ #endif /* Pointer to the contents of the charset.alias file, if it has already been read, else NULL. Its format is: ALIAS_1 '\0' CANONICAL_1 '\0' ... ALIAS_n '\0' CANONICAL_n '\0' '\0' */ static const char * volatile charset_aliases; /* Return a pointer to the contents of the charset.alias file. */ static const char * get_charset_aliases (void) { const char *cp; cp = charset_aliases; if (cp == NULL) { #if !(defined DARWIN7 || defined VMS || defined WIN32_NATIVE || defined __CYGWIN__) const char *dir; const char *base = "charset.alias"; char *file_name; /* Make it possible to override the charset.alias location. This is necessary for running the testsuite before "make install". */ dir = getenv ("CHARSETALIASDIR"); if (dir == NULL || dir[0] == '\0') dir = relocate (LIBDIR); /* Concatenate dir and base into freshly allocated file_name. */ { size_t dir_len = strlen (dir); size_t base_len = strlen (base); int add_slash = (dir_len > 0 && !ISSLASH (dir[dir_len - 1])); file_name = (char *) malloc (dir_len + add_slash + base_len + 1); if (file_name != NULL) { memcpy (file_name, dir, dir_len); if (add_slash) file_name[dir_len] = DIRECTORY_SEPARATOR; memcpy (file_name + dir_len + add_slash, base, base_len + 1); } } if (file_name == NULL) /* Out of memory. Treat the file as empty. */ cp = ""; else { int fd; /* Open the file. Reject symbolic links on platforms that support O_NOFOLLOW. This is a security feature. Without it, an attacker could retrieve parts of the contents (namely, the tail of the first line that starts with "* ") of an arbitrary file by placing a symbolic link to that file under the name "charset.alias" in some writable directory and defining the environment variable CHARSETALIASDIR to point to that directory. */ fd = open (file_name, O_RDONLY | (HAVE_WORKING_O_NOFOLLOW ? O_NOFOLLOW : 0)); if (fd < 0) /* File not found. Treat it as empty. */ cp = ""; else { FILE *fp; fp = fdopen (fd, "r"); if (fp == NULL) { /* Out of memory. Treat the file as empty. */ close (fd); cp = ""; } else { /* Parse the file's contents. */ char *res_ptr = NULL; size_t res_size = 0; for (;;) { int c; char buf1[50+1]; char buf2[50+1]; size_t l1, l2; char *old_res_ptr; c = getc (fp); if (c == EOF) break; if (c == '\n' || c == ' ' || c == '\t') continue; if (c == '#') { /* Skip comment, to end of line. */ do c = getc (fp); while (!(c == EOF || c == '\n')); if (c == EOF) break; continue; } ungetc (c, fp); if (fscanf (fp, "%50s %50s", buf1, buf2) < 2) break; l1 = strlen (buf1); l2 = strlen (buf2); old_res_ptr = res_ptr; if (res_size == 0) { res_size = l1 + 1 + l2 + 1; res_ptr = (char *) malloc (res_size + 1); } else { res_size += l1 + 1 + l2 + 1; res_ptr = (char *) realloc (res_ptr, res_size + 1); } if (res_ptr == NULL) { /* Out of memory. */ res_size = 0; if (old_res_ptr != NULL) free (old_res_ptr); break; } strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1); strcpy (res_ptr + res_size - (l2 + 1), buf2); } fclose (fp); if (res_size == 0) cp = ""; else { *(res_ptr + res_size) = '\0'; cp = res_ptr; } } } free (file_name); } #else # if defined DARWIN7 /* To avoid the trouble of installing a file that is shared by many GNU packages -- many packaging systems have problems with this --, simply inline the aliases here. */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" "ISO8859-2" "\0" "ISO-8859-2" "\0" "ISO8859-4" "\0" "ISO-8859-4" "\0" "ISO8859-5" "\0" "ISO-8859-5" "\0" "ISO8859-7" "\0" "ISO-8859-7" "\0" "ISO8859-9" "\0" "ISO-8859-9" "\0" "ISO8859-13" "\0" "ISO-8859-13" "\0" "ISO8859-15" "\0" "ISO-8859-15" "\0" "KOI8-R" "\0" "KOI8-R" "\0" "KOI8-U" "\0" "KOI8-U" "\0" "CP866" "\0" "CP866" "\0" "CP949" "\0" "CP949" "\0" "CP1131" "\0" "CP1131" "\0" "CP1251" "\0" "CP1251" "\0" "eucCN" "\0" "GB2312" "\0" "GB2312" "\0" "GB2312" "\0" "eucJP" "\0" "EUC-JP" "\0" "eucKR" "\0" "EUC-KR" "\0" "Big5" "\0" "BIG5" "\0" "Big5HKSCS" "\0" "BIG5-HKSCS" "\0" "GBK" "\0" "GBK" "\0" "GB18030" "\0" "GB18030" "\0" "SJIS" "\0" "SHIFT_JIS" "\0" "ARMSCII-8" "\0" "ARMSCII-8" "\0" "PT154" "\0" "PT154" "\0" /*"ISCII-DEV" "\0" "?" "\0"*/ "*" "\0" "UTF-8" "\0"; # endif # if defined VMS /* To avoid the troubles of an extra file charset.alias_vms in the sources of many GNU packages, simply inline the aliases here. */ /* The list of encodings is taken from the OpenVMS 7.3-1 documentation "Compaq C Run-Time Library Reference Manual for OpenVMS systems" section 10.7 "Handling Different Character Sets". */ cp = "ISO8859-1" "\0" "ISO-8859-1" "\0" "ISO8859-2" "\0" "ISO-8859-2" "\0" "ISO8859-5" "\0" "ISO-8859-5" "\0" "ISO8859-7" "\0" "ISO-8859-7" "\0" "ISO8859-8" "\0" "ISO-8859-8" "\0" "ISO8859-9" "\0" "ISO-8859-9" "\0" /* Japanese */ "eucJP" "\0" "EUC-JP" "\0" "SJIS" "\0" "SHIFT_JIS" "\0" "DECKANJI" "\0" "DEC-KANJI" "\0" "SDECKANJI" "\0" "EUC-JP" "\0" /* Chinese */ "eucTW" "\0" "EUC-TW" "\0" "DECHANYU" "\0" "DEC-HANYU" "\0" "DECHANZI" "\0" "GB2312" "\0" /* Korean */ "DECKOREAN" "\0" "EUC-KR" "\0"; # endif # if defined WIN32_NATIVE || defined __CYGWIN__ /* To avoid the troubles of installing a separate file in the same directory as the DLL and of retrieving the DLL's directory at runtime, simply inline the aliases here. */ cp = "CP936" "\0" "GBK" "\0" "CP1361" "\0" "JOHAB" "\0" "CP20127" "\0" "ASCII" "\0" "CP20866" "\0" "KOI8-R" "\0" "CP20936" "\0" "GB2312" "\0" "CP21866" "\0" "KOI8-RU" "\0" "CP28591" "\0" "ISO-8859-1" "\0" "CP28592" "\0" "ISO-8859-2" "\0" "CP28593" "\0" "ISO-8859-3" "\0" "CP28594" "\0" "ISO-8859-4" "\0" "CP28595" "\0" "ISO-8859-5" "\0" "CP28596" "\0" "ISO-8859-6" "\0" "CP28597" "\0" "ISO-8859-7" "\0" "CP28598" "\0" "ISO-8859-8" "\0" "CP28599" "\0" "ISO-8859-9" "\0" "CP28605" "\0" "ISO-8859-15" "\0" "CP38598" "\0" "ISO-8859-8" "\0" "CP51932" "\0" "EUC-JP" "\0" "CP51936" "\0" "GB2312" "\0" "CP51949" "\0" "EUC-KR" "\0" "CP51950" "\0" "EUC-TW" "\0" "CP54936" "\0" "GB18030" "\0" "CP65001" "\0" "UTF-8" "\0"; # endif #endif charset_aliases = cp; } return cp; } /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ #ifdef STATIC STATIC #endif const char * locale_charset (void) { const char *codeset; const char *aliases; #if !(defined WIN32_NATIVE || defined OS2) # if HAVE_LANGINFO_CODESET /* Most systems support nl_langinfo (CODESET) nowadays. */ codeset = nl_langinfo (CODESET); # ifdef __CYGWIN__ /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always returns "US-ASCII". Return the suffix of the locale name from the environment variables (if present) or the codepage as a number. */ if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0) { const char *locale; static char buf[2 + 10 + 1]; locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { /* If the locale name contains an encoding after the dot, return it. */ const char *dot = strchr (locale, '.'); if (dot != NULL) { const char *modifier; dot++; /* Look for the possible @... trailer and remove it, if any. */ modifier = strchr (dot, '@'); if (modifier == NULL) return dot; if (modifier - dot < sizeof (buf)) { memcpy (buf, dot, modifier - dot); buf [modifier - dot] = '\0'; return buf; } } } /* Woe32 has a function returning the locale's codepage as a number: GetACP(). This encoding is used by Cygwin, unless the user has set the environment variable CYGWIN=codepage:oem (which very few people do). Output directed to console windows needs to be converted (to GetOEMCP() if the console is using a raster font, or to GetConsoleOutputCP() if it is using a TrueType font). Cygwin does this conversion transparently (see winsup/cygwin/fhandler_console.cc), converting to GetConsoleOutputCP(). This leads to correct results, except when SetConsoleOutputCP has been called and a raster font is in use. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; } # endif # else /* On old systems which lack it, use setlocale or getenv. */ const char *locale = NULL; /* But most old systems don't have a complete set of locales. Some (like SunOS 4 or DJGPP) have only the C locale. Therefore we don't use setlocale here; it would return "C" when it doesn't support the locale name the user has set. */ # if 0 locale = setlocale (LC_CTYPE, NULL); # endif if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } } /* On some old systems, one used to set locale = "iso8859_1". On others, you set it to "language_COUNTRY.charset". In any case, we resolve it through the charset.alias file. */ codeset = locale; # endif #elif defined WIN32_NATIVE static char buf[2 + 10 + 1]; /* Woe32 has a function returning the locale's codepage as a number: GetACP(). When the output goes to a console window, it needs to be provided in GetOEMCP() encoding if the console is using a raster font, or in GetConsoleOutputCP() encoding if it is using a TrueType font. But in GUI programs and for output sent to files and pipes, GetACP() encoding is the best bet. */ sprintf (buf, "CP%u", GetACP ()); codeset = buf; #elif defined OS2 const char *locale; static char buf[2 + 10 + 1]; ULONG cp[3]; ULONG cplen; /* Allow user to override the codeset, as set in the operating system, with standard language environment variables. */ locale = getenv ("LC_ALL"); if (locale == NULL || locale[0] == '\0') { locale = getenv ("LC_CTYPE"); if (locale == NULL || locale[0] == '\0') locale = getenv ("LANG"); } if (locale != NULL && locale[0] != '\0') { /* If the locale name contains an encoding after the dot, return it. */ const char *dot = strchr (locale, '.'); if (dot != NULL) { const char *modifier; dot++; /* Look for the possible @... trailer and remove it, if any. */ modifier = strchr (dot, '@'); if (modifier == NULL) return dot; if (modifier - dot < sizeof (buf)) { memcpy (buf, dot, modifier - dot); buf [modifier - dot] = '\0'; return buf; } } /* Resolve through the charset.alias file. */ codeset = locale; } else { /* OS/2 has a function returning the locale's codepage as a number. */ if (DosQueryCp (sizeof (cp), cp, &cplen)) codeset = ""; else { sprintf (buf, "CP%u", cp[0]); codeset = buf; } } #endif if (codeset == NULL) /* The canonical name cannot be determined. */ codeset = ""; /* Resolve alias. */ for (aliases = get_charset_aliases (); *aliases != '\0'; aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1) if (strcmp (codeset, aliases) == 0 || (aliases[0] == '*' && aliases[1] == '\0')) { codeset = aliases + strlen (aliases) + 1; break; } /* Don't return an empty string. GNU libc and GNU libiconv interpret the empty string as denoting "the locale's character encoding", thus GNU libiconv would call this function a second time. */ if (codeset[0] == '\0') codeset = "ASCII"; return codeset; } gtick-0.5.2/intl/langprefs.c0000644000175000017500000003073711617270151012646 00000000000000/* Determine the user's language preferences. Copyright (C) 2004-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible . Win32 code originally by Michele Cicciotti . */ #ifdef HAVE_CONFIG_H # include #endif #include #if HAVE_CFPREFERENCESCOPYAPPVALUE # include # include # include # include # include extern void _nl_locale_name_canonicalize (char *name); #endif #if defined _WIN32 || defined __WIN32__ # define WIN32_NATIVE #endif #ifdef WIN32_NATIVE # define WIN32_LEAN_AND_MEAN # include # ifndef MUI_LANGUAGE_NAME # define MUI_LANGUAGE_NAME 8 # endif # ifndef STATUS_BUFFER_OVERFLOW # define STATUS_BUFFER_OVERFLOW 0x80000005 # endif extern void _nl_locale_name_canonicalize (char *name); extern const char *_nl_locale_name_from_win32_LANGID (LANGID langid); extern const char *_nl_locale_name_from_win32_LCID (LCID lcid); /* Get the preferences list through the MUI APIs. This works on Windows Vista and newer. */ static const char * _nl_language_preferences_win32_mui (HMODULE kernel32) { /* DWORD GetUserPreferredUILanguages (ULONG dwFlags, PULONG pulNumLanguages, PWSTR pwszLanguagesBuffer, PULONG pcchLanguagesBuffer); */ typedef DWORD (WINAPI *GetUserPreferredUILanguages_func) (ULONG, PULONG, PWSTR, PULONG); GetUserPreferredUILanguages_func p_GetUserPreferredUILanguages; p_GetUserPreferredUILanguages = (GetUserPreferredUILanguages_func) GetProcAddress (kernel32, "GetUserPreferredUILanguages"); if (p_GetUserPreferredUILanguages != NULL) { ULONG num_languages; ULONG bufsize; DWORD ret; bufsize = 0; ret = p_GetUserPreferredUILanguages (MUI_LANGUAGE_NAME, &num_languages, NULL, &bufsize); if (ret == 0 && GetLastError () == STATUS_BUFFER_OVERFLOW && bufsize > 0) { WCHAR *buffer = (WCHAR *) malloc (bufsize * sizeof (WCHAR)); if (buffer != NULL) { ret = p_GetUserPreferredUILanguages (MUI_LANGUAGE_NAME, &num_languages, buffer, &bufsize); if (ret) { /* Convert the list from NUL-delimited WCHAR[] Win32 locale names to colon-delimited char[] Unix locale names. We assume that all these locale names are in ASCII, nonempty and contain no colons. */ char *languages = (char *) malloc (bufsize + num_languages * 10 + 1); if (languages != NULL) { const WCHAR *p = buffer; char *q = languages; ULONG i; for (i = 0; i < num_languages; i++) { char *q1; char *q2; q1 = q; if (i > 0) *q++ = ':'; q2 = q; for (; *p != (WCHAR)'\0'; p++) { if ((unsigned char) *p != *p || *p == ':') { /* A non-ASCII character or a colon inside the Win32 locale name! Punt. */ q = q1; break; } *q++ = (unsigned char) *p; } if (q == q1) /* An unexpected Win32 locale name occurred. */ break; *q = '\0'; _nl_locale_name_canonicalize (q2); q = q2 + strlen (q2); p++; } *q = '\0'; if (q > languages) { free (buffer); return languages; } free (languages); } } free (buffer); } } } return NULL; } /* Get a preference. This works on Windows ME and newer. */ static const char * _nl_language_preferences_win32_ME (HMODULE kernel32) { /* LANGID GetUserDefaultUILanguage (void); */ typedef LANGID (WINAPI *GetUserDefaultUILanguage_func) (void); GetUserDefaultUILanguage_func p_GetUserDefaultUILanguage; p_GetUserDefaultUILanguage = (GetUserDefaultUILanguage_func) GetProcAddress (kernel32, "GetUserDefaultUILanguage"); if (p_GetUserDefaultUILanguage != NULL) return _nl_locale_name_from_win32_LANGID (p_GetUserDefaultUILanguage ()); return NULL; } /* Get a preference. This works on Windows 95 and newer. */ static const char * _nl_language_preferences_win32_95 () { HKEY desktop_resource_locale_key; if (RegOpenKeyExA (HKEY_CURRENT_USER, "Control Panel\\Desktop\\ResourceLocale", 0, KEY_QUERY_VALUE, &desktop_resource_locale_key) == NO_ERROR) { DWORD type; char data[8 + 1]; DWORD data_size = sizeof (data); DWORD ret; ret = RegQueryValueExA (desktop_resource_locale_key, NULL, NULL, &type, data, &data_size); RegCloseKey (desktop_resource_locale_key); if (ret == NO_ERROR) { /* We expect a string, at most 8 bytes long, that parses as a hexadecimal number. */ if (type == REG_SZ && data_size <= sizeof (data) && (data_size < sizeof (data) || data[sizeof (data) - 1] == '\0')) { LCID lcid; char *endp; /* Ensure it's NUL terminated. */ if (data_size < sizeof (data)) data[data_size] = '\0'; /* Parse it as a hexadecimal number. */ lcid = strtoul (data, &endp, 16); if (endp > data && *endp == '\0') return _nl_locale_name_from_win32_LCID (lcid); } } } return NULL; } /* Get the system's preference. This can be used as a fallback. */ static BOOL CALLBACK ret_first_language (HMODULE h, LPCSTR type, LPCSTR name, WORD lang, LONG_PTR param) { *(const char **)param = _nl_locale_name_from_win32_LANGID (lang); return FALSE; } static const char * _nl_language_preferences_win32_system (HMODULE kernel32) { const char *languages = NULL; /* Ignore the warning on mingw here. mingw has a wrong definition of the last parameter type of ENUMRESLANGPROC. */ EnumResourceLanguages (kernel32, RT_VERSION, MAKEINTRESOURCE (1), ret_first_language, (LONG_PTR)&languages); return languages; } #endif /* Determine the user's language preferences, as a colon separated list of locale names in XPG syntax language[_territory][.codeset][@modifier] The result must not be freed; it is statically allocated. The LANGUAGE environment variable does not need to be considered; it is already taken into account by the caller. */ const char * _nl_language_preferences_default (void) { #if HAVE_CFPREFERENCESCOPYAPPVALUE /* MacOS X 10.2 or newer */ { /* Cache the preferences list, since CoreFoundation calls are expensive. */ static const char *cached_languages; static int cache_initialized; if (!cache_initialized) { CFTypeRef preferences = CFPreferencesCopyAppValue (CFSTR ("AppleLanguages"), kCFPreferencesCurrentApplication); if (preferences != NULL && CFGetTypeID (preferences) == CFArrayGetTypeID ()) { CFArrayRef prefArray = (CFArrayRef)preferences; int n = CFArrayGetCount (prefArray); char buf[256]; size_t size = 0; int i; for (i = 0; i < n; i++) { CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); if (element != NULL && CFGetTypeID (element) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)element, buf, sizeof (buf), kCFStringEncodingASCII)) { _nl_locale_name_canonicalize (buf); size += strlen (buf) + 1; /* Most GNU programs use msgids in English and don't ship an en.mo message catalog. Therefore when we see "en" in the preferences list, arrange for gettext() to return the msgid, and ignore all further elements of the preferences list. */ if (strcmp (buf, "en") == 0) break; } else break; } if (size > 0) { char *languages = (char *) malloc (size); if (languages != NULL) { char *p = languages; for (i = 0; i < n; i++) { CFTypeRef element = CFArrayGetValueAtIndex (prefArray, i); if (element != NULL && CFGetTypeID (element) == CFStringGetTypeID () && CFStringGetCString ((CFStringRef)element, buf, sizeof (buf), kCFStringEncodingASCII)) { _nl_locale_name_canonicalize (buf); strcpy (p, buf); p += strlen (buf); *p++ = ':'; if (strcmp (buf, "en") == 0) break; } else break; } *--p = '\0'; cached_languages = languages; } } } cache_initialized = 1; } if (cached_languages != NULL) return cached_languages; } #endif #ifdef WIN32_NATIVE { /* Cache the preferences list, since computing it is expensive. */ static const char *cached_languages; static int cache_initialized; /* Activate the new code only when the GETTEXT_MUI environment variable is set, for the time being, since the new code is not well tested. */ if (!cache_initialized && getenv ("GETTEXT_MUI") != NULL) { const char *languages = NULL; HMODULE kernel32 = GetModuleHandle ("kernel32"); if (kernel32 != NULL) languages = _nl_language_preferences_win32_mui (kernel32); if (languages == NULL && kernel32 != NULL) languages = _nl_language_preferences_win32_ME (kernel32); if (languages == NULL) languages = _nl_language_preferences_win32_95 (); if (languages == NULL && kernel32 != NULL) languages = _nl_language_preferences_win32_system (kernel32); cached_languages = languages; cache_initialized = 1; } if (cached_languages != NULL) return cached_languages; } #endif return NULL; } gtick-0.5.2/intl/os2compat.h0000644000175000017500000000302311617270152012566 00000000000000/* OS/2 compatibility defines. This file is intended to be included from config.h Copyright (C) 2001-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* When included from os2compat.h we need all the original definitions */ #ifndef OS2_AWARE #undef LIBDIR #define LIBDIR _nlos2_libdir extern char *_nlos2_libdir; #undef LOCALEDIR #define LOCALEDIR _nlos2_localedir extern char *_nlos2_localedir; #undef LOCALE_ALIAS_PATH #define LOCALE_ALIAS_PATH _nlos2_localealiaspath extern char *_nlos2_localealiaspath; #endif #undef HAVE_STRCASECMP #define HAVE_STRCASECMP 1 #define strcasecmp stricmp #define strncasecmp strnicmp /* We have our own getenv() which works even if library is compiled as DLL */ #define getenv _nl_getenv /* Older versions of gettext used -1 as the value of LC_MESSAGES */ #define LC_MESSAGES_COMPAT (-1) gtick-0.5.2/intl/localealias.c0000644000175000017500000002454611617270152013140 00000000000000/* Handle aliases for locale names. Copyright (C) 1995-1999, 2000-2001, 2003, 2005-2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #if defined _LIBC || defined HAVE___FSETLOCKING # include #endif #include #ifdef __GNUC__ # undef alloca # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #include #include "gettextP.h" #if ENABLE_RELOCATABLE # include "relocatable.h" #else # define relocate(pathname) (pathname) #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define strcasecmp __strcasecmp # ifndef mempcpy # define mempcpy __mempcpy # endif # define HAVE_MEMPCPY 1 # define HAVE___FSETLOCKING 1 #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include #else # include "lock.h" #endif #ifndef internal_function # define internal_function #endif /* Some optimizations for glibc. */ #ifdef _LIBC # define FEOF(fp) feof_unlocked (fp) # define FGETS(buf, n, fp) fgets_unlocked (buf, n, fp) #else # define FEOF(fp) feof (fp) # define FGETS(buf, n, fp) fgets (buf, n, fp) #endif /* For those losing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA # define freea(p) /* nothing */ #else # define alloca(n) malloc (n) # define freea(p) free (p) #endif #if defined _LIBC_REENTRANT || HAVE_DECL_FGETS_UNLOCKED # undef fgets # define fgets(buf, len, s) fgets_unlocked (buf, len, s) #endif #if defined _LIBC_REENTRANT || HAVE_DECL_FEOF_UNLOCKED # undef feof # define feof(s) feof_unlocked (s) #endif __libc_lock_define_initialized (static, lock) struct alias_map { const char *alias; const char *value; }; #ifndef _LIBC # define libc_freeres_ptr(decl) decl #endif libc_freeres_ptr (static char *string_space); static size_t string_space_act; static size_t string_space_max; libc_freeres_ptr (static struct alias_map *map); static size_t nmap; static size_t maxmap; /* Prototypes for local functions. */ static size_t read_alias_file (const char *fname, int fname_len) internal_function; static int extend_alias_table (void); static int alias_compare (const struct alias_map *map1, const struct alias_map *map2); const char * _nl_expand_alias (const char *name) { static const char *locale_alias_path; struct alias_map *retval; const char *result = NULL; size_t added; __libc_lock_lock (lock); if (locale_alias_path == NULL) locale_alias_path = LOCALE_ALIAS_PATH; do { struct alias_map item; item.alias = name; if (nmap > 0) retval = (struct alias_map *) bsearch (&item, map, nmap, sizeof (struct alias_map), (int (*) (const void *, const void *) ) alias_compare); else retval = NULL; /* We really found an alias. Return the value. */ if (retval != NULL) { result = retval->value; break; } /* Perhaps we can find another alias file. */ added = 0; while (added == 0 && locale_alias_path[0] != '\0') { const char *start; while (locale_alias_path[0] == PATH_SEPARATOR) ++locale_alias_path; start = locale_alias_path; while (locale_alias_path[0] != '\0' && locale_alias_path[0] != PATH_SEPARATOR) ++locale_alias_path; if (start < locale_alias_path) added = read_alias_file (start, locale_alias_path - start); } } while (added != 0); __libc_lock_unlock (lock); return result; } static size_t internal_function read_alias_file (const char *fname, int fname_len) { FILE *fp; char *full_fname; size_t added; static const char aliasfile[] = "/locale.alias"; full_fname = (char *) alloca (fname_len + sizeof aliasfile); #ifdef HAVE_MEMPCPY mempcpy (mempcpy (full_fname, fname, fname_len), aliasfile, sizeof aliasfile); #else memcpy (full_fname, fname, fname_len); memcpy (&full_fname[fname_len], aliasfile, sizeof aliasfile); #endif #ifdef _LIBC /* Note the file is opened with cancellation in the I/O functions disabled. */ fp = fopen (relocate (full_fname), "rc"); #else fp = fopen (relocate (full_fname), "r"); #endif freea (full_fname); if (fp == NULL) return 0; #ifdef HAVE___FSETLOCKING /* No threads present. */ __fsetlocking (fp, FSETLOCKING_BYCALLER); #endif added = 0; while (!FEOF (fp)) { /* It is a reasonable approach to use a fix buffer here because a) we are only interested in the first two fields b) these fields must be usable as file names and so must not be that long We avoid a multi-kilobyte buffer here since this would use up stack space which we might not have if the program ran out of memory. */ char buf[400]; char *alias; char *value; char *cp; int complete_line; if (FGETS (buf, sizeof buf, fp) == NULL) /* EOF reached. */ break; /* Determine whether the line is complete. */ complete_line = strchr (buf, '\n') != NULL; cp = buf; /* Ignore leading white space. */ while (isspace ((unsigned char) cp[0])) ++cp; /* A leading '#' signals a comment line. */ if (cp[0] != '\0' && cp[0] != '#') { alias = cp++; while (cp[0] != '\0' && !isspace ((unsigned char) cp[0])) ++cp; /* Terminate alias name. */ if (cp[0] != '\0') *cp++ = '\0'; /* Now look for the beginning of the value. */ while (isspace ((unsigned char) cp[0])) ++cp; if (cp[0] != '\0') { value = cp++; while (cp[0] != '\0' && !isspace ((unsigned char) cp[0])) ++cp; /* Terminate value. */ if (cp[0] == '\n') { /* This has to be done to make the following test for the end of line possible. We are looking for the terminating '\n' which do not overwrite here. */ *cp++ = '\0'; *cp = '\n'; } else if (cp[0] != '\0') *cp++ = '\0'; #ifdef IN_LIBGLOCALE /* glibc's locale.alias contains entries for ja_JP and ko_KR that make it impossible to use a Japanese or Korean UTF-8 locale under the name "ja_JP" or "ko_KR". Ignore these entries. */ if (strchr (alias, '_') == NULL) #endif { size_t alias_len; size_t value_len; if (nmap >= maxmap) if (__builtin_expect (extend_alias_table (), 0)) goto out; alias_len = strlen (alias) + 1; value_len = strlen (value) + 1; if (string_space_act + alias_len + value_len > string_space_max) { /* Increase size of memory pool. */ size_t new_size = (string_space_max + (alias_len + value_len > 1024 ? alias_len + value_len : 1024)); char *new_pool = (char *) realloc (string_space, new_size); if (new_pool == NULL) goto out; if (__builtin_expect (string_space != new_pool, 0)) { size_t i; for (i = 0; i < nmap; i++) { map[i].alias += new_pool - string_space; map[i].value += new_pool - string_space; } } string_space = new_pool; string_space_max = new_size; } map[nmap].alias = (const char *) memcpy (&string_space[string_space_act], alias, alias_len); string_space_act += alias_len; map[nmap].value = (const char *) memcpy (&string_space[string_space_act], value, value_len); string_space_act += value_len; ++nmap; ++added; } } } /* Possibly not the whole line fits into the buffer. Ignore the rest of the line. */ if (! complete_line) do if (FGETS (buf, sizeof buf, fp) == NULL) /* Make sure the inner loop will be left. The outer loop will exit at the `feof' test. */ break; while (strchr (buf, '\n') == NULL); } out: /* Should we test for ferror()? I think we have to silently ignore errors. --drepper */ fclose (fp); if (added > 0) qsort (map, nmap, sizeof (struct alias_map), (int (*) (const void *, const void *)) alias_compare); return added; } static int extend_alias_table () { size_t new_size; struct alias_map *new_map; new_size = maxmap == 0 ? 100 : 2 * maxmap; new_map = (struct alias_map *) realloc (map, (new_size * sizeof (struct alias_map))); if (new_map == NULL) /* Simply don't extend: we don't have any more core. */ return -1; map = new_map; maxmap = new_size; return 0; } static int alias_compare (const struct alias_map *map1, const struct alias_map *map2) { #if defined _LIBC || defined HAVE_STRCASECMP return strcasecmp (map1->alias, map2->alias); #else const unsigned char *p1 = (const unsigned char *) map1->alias; const unsigned char *p2 = (const unsigned char *) map2->alias; unsigned char c1, c2; if (p1 == p2) return 0; do { /* I know this seems to be odd but the tolower() function in some systems libc cannot handle nonalpha characters. */ c1 = isupper (*p1) ? tolower (*p1) : *p1; c2 = isupper (*p2) ? tolower (*p2) : *p2; if (c1 == '\0') break; ++p1; ++p2; } while (c1 == c2); return c1 - c2; #endif } gtick-0.5.2/intl/ngettext.c0000644000175000017500000000367410661555200012526 00000000000000/* Implementation of ngettext(3) function. Copyright (C) 1995, 1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #ifdef _LIBC # define __need_NULL # include #else # include /* Just for NULL. */ #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif #include /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define NGETTEXT __ngettext # define DCNGETTEXT __dcngettext #else # define NGETTEXT libintl_ngettext # define DCNGETTEXT libintl_dcngettext #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ char * NGETTEXT (const char *msgid1, const char *msgid2, unsigned long int n) { return DCNGETTEXT (NULL, msgid1, msgid2, n, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__ngettext, ngettext); #endif gtick-0.5.2/intl/tsearch.h0000644000175000017500000000545611617270153012325 00000000000000/* Binary tree data structure. Copyright (C) 2006 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _TSEARCH_H #define _TSEARCH_H #if HAVE_TSEARCH /* Get tseach(), tfind(), tdelete(), twalk() declarations. */ #include #else #ifdef __cplusplus extern "C" { #endif /* See , for details. */ typedef enum { preorder, postorder, endorder, leaf } VISIT; /* Searches an element in the tree *VROOTP that compares equal to KEY. If one is found, it is returned. Otherwise, a new element equal to KEY is inserted in the tree and is returned. */ extern void * tsearch (const void *key, void **vrootp, int (*compar) (const void *, const void *)); /* Searches an element in the tree *VROOTP that compares equal to KEY. If one is found, it is returned. Otherwise, NULL is returned. */ extern void * tfind (const void *key, void *const *vrootp, int (*compar) (const void *, const void *)); /* Searches an element in the tree *VROOTP that compares equal to KEY. If one is found, it is removed from the tree, and its parent node is returned. Otherwise, NULL is returned. */ extern void * tdelete (const void *key, void **vrootp, int (*compar) (const void *, const void *)); /* Perform a depth-first, left-to-right traversal of the tree VROOT. The ACTION function is called: - for non-leaf nodes: 3 times, before the left subtree traversal, after the left subtree traversal but before the right subtree traversal, and after the right subtree traversal, - for leaf nodes: once. The arguments passed to ACTION are: 1. the node; it can be casted to a 'const void * const *', i.e. into a pointer to the key, 2. an indicator which visit of the node this is, 3. the level of the node in the tree (0 for the root). */ extern void twalk (const void *vroot, void (*action) (const void *, VISIT, int)); #ifdef __cplusplus } #endif #endif #endif /* _TSEARCH_H */ gtick-0.5.2/intl/plural.y0000644000175000017500000001657611617270152012220 00000000000000%{ /* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003, 2005-2006 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* For bison < 2.0, the bison generated parser uses alloca. AIX 3 forces us to put this declaration at the beginning of the file. The declaration in bison's skeleton file comes too late. This must come before because may include arbitrary system headers. This can go away once the AM_INTL_SUBDIR macro requires bison >= 2.0. */ #if defined _AIX && !defined __GNUC__ #pragma alloca #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "plural-exp.h" /* The main function generated by the parser is called __gettextparse, but we want it to be called PLURAL_PARSE. */ #ifndef _LIBC # define __gettextparse PLURAL_PARSE #endif #define YYLEX_PARAM &((struct parse_args *) arg)->cp #define YYPARSE_PARAM arg %} %pure_parser %expect 7 %union { unsigned long int num; enum expression_operator op; struct expression *exp; } %{ /* Prototypes for local functions. */ static int yylex (YYSTYPE *lval, const char **pexp); static void yyerror (const char *str); /* Allocation of expressions. */ static struct expression * new_exp (int nargs, enum expression_operator op, struct expression * const *args) { int i; struct expression *newp; /* If any of the argument could not be malloc'ed, just return NULL. */ for (i = nargs - 1; i >= 0; i--) if (args[i] == NULL) goto fail; /* Allocate a new expression. */ newp = (struct expression *) malloc (sizeof (*newp)); if (newp != NULL) { newp->nargs = nargs; newp->operation = op; for (i = nargs - 1; i >= 0; i--) newp->val.args[i] = args[i]; return newp; } fail: for (i = nargs - 1; i >= 0; i--) FREE_EXPRESSION (args[i]); return NULL; } static inline struct expression * new_exp_0 (enum expression_operator op) { return new_exp (0, op, NULL); } static inline struct expression * new_exp_1 (enum expression_operator op, struct expression *right) { struct expression *args[1]; args[0] = right; return new_exp (1, op, args); } static struct expression * new_exp_2 (enum expression_operator op, struct expression *left, struct expression *right) { struct expression *args[2]; args[0] = left; args[1] = right; return new_exp (2, op, args); } static inline struct expression * new_exp_3 (enum expression_operator op, struct expression *bexp, struct expression *tbranch, struct expression *fbranch) { struct expression *args[3]; args[0] = bexp; args[1] = tbranch; args[2] = fbranch; return new_exp (3, op, args); } %} /* This declares that all operators have the same associativity and the precedence order as in C. See [Harbison, Steele: C, A Reference Manual]. There is no unary minus and no bitwise operators. Operators with the same syntactic behaviour have been merged into a single token, to save space in the array generated by bison. */ %right '?' /* ? */ %left '|' /* || */ %left '&' /* && */ %left EQUOP2 /* == != */ %left CMPOP2 /* < > <= >= */ %left ADDOP2 /* + - */ %left MULOP2 /* * / % */ %right '!' /* ! */ %token EQUOP2 CMPOP2 ADDOP2 MULOP2 %token NUMBER %type exp %% start: exp { if ($1 == NULL) YYABORT; ((struct parse_args *) arg)->res = $1; } ; exp: exp '?' exp ':' exp { $$ = new_exp_3 (qmop, $1, $3, $5); } | exp '|' exp { $$ = new_exp_2 (lor, $1, $3); } | exp '&' exp { $$ = new_exp_2 (land, $1, $3); } | exp EQUOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp CMPOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp ADDOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | exp MULOP2 exp { $$ = new_exp_2 ($2, $1, $3); } | '!' exp { $$ = new_exp_1 (lnot, $2); } | 'n' { $$ = new_exp_0 (var); } | NUMBER { if (($$ = new_exp_0 (num)) != NULL) $$->val.num = $1; } | '(' exp ')' { $$ = $2; } ; %% void internal_function FREE_EXPRESSION (struct expression *exp) { if (exp == NULL) return; /* Handle the recursive case. */ switch (exp->nargs) { case 3: FREE_EXPRESSION (exp->val.args[2]); /* FALLTHROUGH */ case 2: FREE_EXPRESSION (exp->val.args[1]); /* FALLTHROUGH */ case 1: FREE_EXPRESSION (exp->val.args[0]); /* FALLTHROUGH */ default: break; } free (exp); } static int yylex (YYSTYPE *lval, const char **pexp) { const char *exp = *pexp; int result; while (1) { if (exp[0] == '\0') { *pexp = exp; return YYEOF; } if (exp[0] != ' ' && exp[0] != '\t') break; ++exp; } result = *exp++; switch (result) { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': { unsigned long int n = result - '0'; while (exp[0] >= '0' && exp[0] <= '9') { n *= 10; n += exp[0] - '0'; ++exp; } lval->num = n; result = NUMBER; } break; case '=': if (exp[0] == '=') { ++exp; lval->op = equal; result = EQUOP2; } else result = YYERRCODE; break; case '!': if (exp[0] == '=') { ++exp; lval->op = not_equal; result = EQUOP2; } break; case '&': case '|': if (exp[0] == result) ++exp; else result = YYERRCODE; break; case '<': if (exp[0] == '=') { ++exp; lval->op = less_or_equal; } else lval->op = less_than; result = CMPOP2; break; case '>': if (exp[0] == '=') { ++exp; lval->op = greater_or_equal; } else lval->op = greater_than; result = CMPOP2; break; case '*': lval->op = mult; result = MULOP2; break; case '/': lval->op = divide; result = MULOP2; break; case '%': lval->op = module; result = MULOP2; break; case '+': lval->op = plus; result = ADDOP2; break; case '-': lval->op = minus; result = ADDOP2; break; case 'n': case '?': case ':': case '(': case ')': /* Nothing, just return the character. */ break; case ';': case '\n': case '\0': /* Be safe and let the user call this function again. */ --exp; result = YYEOF; break; default: result = YYERRCODE; #if YYDEBUG != 0 --exp; #endif break; } *pexp = exp; return result; } static void yyerror (const char *str) { /* Do nothing. We don't print error messages here. */ } gtick-0.5.2/intl/hash-string.c0000644000175000017500000000315110661555177013116 00000000000000/* Implements a string hashing function. Copyright (C) 1995, 1997, 1998, 2000, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif /* Specification. */ #include "hash-string.h" /* Defines the so called `hashpjw' function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.] */ unsigned long int __hash_string (const char *str_param) { unsigned long int hval, g; const char *str = str_param; /* Compute the hash value for the given string. */ hval = 0; while (*str != '\0') { hval <<= 4; hval += (unsigned char) *str++; g = hval & ((unsigned long int) 0xf << (HASHWORDBITS - 4)); if (g != 0) { hval ^= g >> (HASHWORDBITS - 8); hval ^= g; } } return hval; } gtick-0.5.2/intl/localcharset.h0000644000175000017500000000256310661555200013331 00000000000000/* Determine a canonical name for the current locale's character encoding. Copyright (C) 2000-2003 Free Software Foundation, Inc. This file is part of the GNU CHARSET Library. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LOCALCHARSET_H #define _LOCALCHARSET_H #ifdef __cplusplus extern "C" { #endif /* Determine the current locale's character encoding, and canonicalize it into one of the canonical names listed in config.charset. The result must not be freed; it is statically allocated. If the canonical name cannot be determined, the result is a non-canonical name. */ extern const char * locale_charset (void); #ifdef __cplusplus } #endif #endif /* _LOCALCHARSET_H */ gtick-0.5.2/intl/plural-exp.c0000644000175000017500000000773211617270152012756 00000000000000/* Expression parsing for plural form selection. Copyright (C) 2000-2001, 2003, 2005-2007 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "plural-exp.h" #if (defined __GNUC__ && !(__APPLE_CC__ > 1) && !defined __cplusplus) \ || (defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) /* These structs are the constant expression for the germanic plural form determination. It represents the expression "n != 1". */ static const struct expression plvar = { .nargs = 0, .operation = var, }; static const struct expression plone = { .nargs = 0, .operation = num, .val = { .num = 1 } }; struct expression GERMANIC_PLURAL = { .nargs = 2, .operation = not_equal, .val = { .args = { [0] = (struct expression *) &plvar, [1] = (struct expression *) &plone } } }; # define INIT_GERMANIC_PLURAL() #else /* For compilers without support for ISO C 99 struct/union initializers: Initialization at run-time. */ static struct expression plvar; static struct expression plone; struct expression GERMANIC_PLURAL; static void init_germanic_plural () { if (plone.val.num == 0) { plvar.nargs = 0; plvar.operation = var; plone.nargs = 0; plone.operation = num; plone.val.num = 1; GERMANIC_PLURAL.nargs = 2; GERMANIC_PLURAL.operation = not_equal; GERMANIC_PLURAL.val.args[0] = &plvar; GERMANIC_PLURAL.val.args[1] = &plone; } } # define INIT_GERMANIC_PLURAL() init_germanic_plural () #endif void internal_function EXTRACT_PLURAL_EXPRESSION (const char *nullentry, const struct expression **pluralp, unsigned long int *npluralsp) { if (nullentry != NULL) { const char *plural; const char *nplurals; plural = strstr (nullentry, "plural="); nplurals = strstr (nullentry, "nplurals="); if (plural == NULL || nplurals == NULL) goto no_plural; else { char *endp; unsigned long int n; struct parse_args args; /* First get the number. */ nplurals += 9; while (*nplurals != '\0' && isspace ((unsigned char) *nplurals)) ++nplurals; if (!(*nplurals >= '0' && *nplurals <= '9')) goto no_plural; #if defined HAVE_STRTOUL || defined _LIBC n = strtoul (nplurals, &endp, 10); #else for (endp = nplurals, n = 0; *endp >= '0' && *endp <= '9'; endp++) n = n * 10 + (*endp - '0'); #endif if (nplurals == endp) goto no_plural; *npluralsp = n; /* Due to the restrictions bison imposes onto the interface of the scanner function we have to put the input string and the result passed up from the parser into the same structure which address is passed down to the parser. */ plural += 7; args.cp = plural; if (PLURAL_PARSE (&args) != 0) goto no_plural; *pluralp = args.res; } } else { /* By default we are using the Germanic form: singular form only for `one', the plural form otherwise. Yes, this is also what English is using since English is a Germanic language. */ no_plural: INIT_GERMANIC_PLURAL (); *pluralp = &GERMANIC_PLURAL; *npluralsp = 2; } } gtick-0.5.2/intl/loadmsgcat.c0000644000175000017500000010255211617270151012776 00000000000000/* Load needed message catalogs. Copyright (C) 1995-1999, 2000-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #include #ifdef __GNUC__ # undef alloca # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #ifdef _LIBC # include # include #endif #if (defined HAVE_MMAP && defined HAVE_MUNMAP && !defined DISALLOW_MMAP) \ || (defined _LIBC && defined _POSIX_MAPPED_FILES) # include # undef HAVE_MMAP # define HAVE_MMAP 1 #else # undef HAVE_MMAP #endif #if defined HAVE_STDINT_H_WITH_UINTMAX || defined _LIBC # include #endif #if defined HAVE_INTTYPES_H || defined _LIBC # include #endif #include "gmo.h" #include "gettextP.h" #include "hash-string.h" #include "plural-exp.h" #ifdef _LIBC # include "../locale/localeinfo.h" # include #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include #else # include "lock.h" #endif /* Provide fallback values for macros that ought to be defined in . Note that our fallback values need not be literal strings, because we don't use them with preprocessor string concatenation. */ #if !defined PRId8 || PRI_MACROS_BROKEN # undef PRId8 # define PRId8 "d" #endif #if !defined PRIi8 || PRI_MACROS_BROKEN # undef PRIi8 # define PRIi8 "i" #endif #if !defined PRIo8 || PRI_MACROS_BROKEN # undef PRIo8 # define PRIo8 "o" #endif #if !defined PRIu8 || PRI_MACROS_BROKEN # undef PRIu8 # define PRIu8 "u" #endif #if !defined PRIx8 || PRI_MACROS_BROKEN # undef PRIx8 # define PRIx8 "x" #endif #if !defined PRIX8 || PRI_MACROS_BROKEN # undef PRIX8 # define PRIX8 "X" #endif #if !defined PRId16 || PRI_MACROS_BROKEN # undef PRId16 # define PRId16 "d" #endif #if !defined PRIi16 || PRI_MACROS_BROKEN # undef PRIi16 # define PRIi16 "i" #endif #if !defined PRIo16 || PRI_MACROS_BROKEN # undef PRIo16 # define PRIo16 "o" #endif #if !defined PRIu16 || PRI_MACROS_BROKEN # undef PRIu16 # define PRIu16 "u" #endif #if !defined PRIx16 || PRI_MACROS_BROKEN # undef PRIx16 # define PRIx16 "x" #endif #if !defined PRIX16 || PRI_MACROS_BROKEN # undef PRIX16 # define PRIX16 "X" #endif #if !defined PRId32 || PRI_MACROS_BROKEN # undef PRId32 # define PRId32 "d" #endif #if !defined PRIi32 || PRI_MACROS_BROKEN # undef PRIi32 # define PRIi32 "i" #endif #if !defined PRIo32 || PRI_MACROS_BROKEN # undef PRIo32 # define PRIo32 "o" #endif #if !defined PRIu32 || PRI_MACROS_BROKEN # undef PRIu32 # define PRIu32 "u" #endif #if !defined PRIx32 || PRI_MACROS_BROKEN # undef PRIx32 # define PRIx32 "x" #endif #if !defined PRIX32 || PRI_MACROS_BROKEN # undef PRIX32 # define PRIX32 "X" #endif #if !defined PRId64 || PRI_MACROS_BROKEN # undef PRId64 # define PRId64 (sizeof (long) == 8 ? "ld" : "lld") #endif #if !defined PRIi64 || PRI_MACROS_BROKEN # undef PRIi64 # define PRIi64 (sizeof (long) == 8 ? "li" : "lli") #endif #if !defined PRIo64 || PRI_MACROS_BROKEN # undef PRIo64 # define PRIo64 (sizeof (long) == 8 ? "lo" : "llo") #endif #if !defined PRIu64 || PRI_MACROS_BROKEN # undef PRIu64 # define PRIu64 (sizeof (long) == 8 ? "lu" : "llu") #endif #if !defined PRIx64 || PRI_MACROS_BROKEN # undef PRIx64 # define PRIx64 (sizeof (long) == 8 ? "lx" : "llx") #endif #if !defined PRIX64 || PRI_MACROS_BROKEN # undef PRIX64 # define PRIX64 (sizeof (long) == 8 ? "lX" : "llX") #endif #if !defined PRIdLEAST8 || PRI_MACROS_BROKEN # undef PRIdLEAST8 # define PRIdLEAST8 "d" #endif #if !defined PRIiLEAST8 || PRI_MACROS_BROKEN # undef PRIiLEAST8 # define PRIiLEAST8 "i" #endif #if !defined PRIoLEAST8 || PRI_MACROS_BROKEN # undef PRIoLEAST8 # define PRIoLEAST8 "o" #endif #if !defined PRIuLEAST8 || PRI_MACROS_BROKEN # undef PRIuLEAST8 # define PRIuLEAST8 "u" #endif #if !defined PRIxLEAST8 || PRI_MACROS_BROKEN # undef PRIxLEAST8 # define PRIxLEAST8 "x" #endif #if !defined PRIXLEAST8 || PRI_MACROS_BROKEN # undef PRIXLEAST8 # define PRIXLEAST8 "X" #endif #if !defined PRIdLEAST16 || PRI_MACROS_BROKEN # undef PRIdLEAST16 # define PRIdLEAST16 "d" #endif #if !defined PRIiLEAST16 || PRI_MACROS_BROKEN # undef PRIiLEAST16 # define PRIiLEAST16 "i" #endif #if !defined PRIoLEAST16 || PRI_MACROS_BROKEN # undef PRIoLEAST16 # define PRIoLEAST16 "o" #endif #if !defined PRIuLEAST16 || PRI_MACROS_BROKEN # undef PRIuLEAST16 # define PRIuLEAST16 "u" #endif #if !defined PRIxLEAST16 || PRI_MACROS_BROKEN # undef PRIxLEAST16 # define PRIxLEAST16 "x" #endif #if !defined PRIXLEAST16 || PRI_MACROS_BROKEN # undef PRIXLEAST16 # define PRIXLEAST16 "X" #endif #if !defined PRIdLEAST32 || PRI_MACROS_BROKEN # undef PRIdLEAST32 # define PRIdLEAST32 "d" #endif #if !defined PRIiLEAST32 || PRI_MACROS_BROKEN # undef PRIiLEAST32 # define PRIiLEAST32 "i" #endif #if !defined PRIoLEAST32 || PRI_MACROS_BROKEN # undef PRIoLEAST32 # define PRIoLEAST32 "o" #endif #if !defined PRIuLEAST32 || PRI_MACROS_BROKEN # undef PRIuLEAST32 # define PRIuLEAST32 "u" #endif #if !defined PRIxLEAST32 || PRI_MACROS_BROKEN # undef PRIxLEAST32 # define PRIxLEAST32 "x" #endif #if !defined PRIXLEAST32 || PRI_MACROS_BROKEN # undef PRIXLEAST32 # define PRIXLEAST32 "X" #endif #if !defined PRIdLEAST64 || PRI_MACROS_BROKEN # undef PRIdLEAST64 # define PRIdLEAST64 PRId64 #endif #if !defined PRIiLEAST64 || PRI_MACROS_BROKEN # undef PRIiLEAST64 # define PRIiLEAST64 PRIi64 #endif #if !defined PRIoLEAST64 || PRI_MACROS_BROKEN # undef PRIoLEAST64 # define PRIoLEAST64 PRIo64 #endif #if !defined PRIuLEAST64 || PRI_MACROS_BROKEN # undef PRIuLEAST64 # define PRIuLEAST64 PRIu64 #endif #if !defined PRIxLEAST64 || PRI_MACROS_BROKEN # undef PRIxLEAST64 # define PRIxLEAST64 PRIx64 #endif #if !defined PRIXLEAST64 || PRI_MACROS_BROKEN # undef PRIXLEAST64 # define PRIXLEAST64 PRIX64 #endif #if !defined PRIdFAST8 || PRI_MACROS_BROKEN # undef PRIdFAST8 # define PRIdFAST8 "d" #endif #if !defined PRIiFAST8 || PRI_MACROS_BROKEN # undef PRIiFAST8 # define PRIiFAST8 "i" #endif #if !defined PRIoFAST8 || PRI_MACROS_BROKEN # undef PRIoFAST8 # define PRIoFAST8 "o" #endif #if !defined PRIuFAST8 || PRI_MACROS_BROKEN # undef PRIuFAST8 # define PRIuFAST8 "u" #endif #if !defined PRIxFAST8 || PRI_MACROS_BROKEN # undef PRIxFAST8 # define PRIxFAST8 "x" #endif #if !defined PRIXFAST8 || PRI_MACROS_BROKEN # undef PRIXFAST8 # define PRIXFAST8 "X" #endif #if !defined PRIdFAST16 || PRI_MACROS_BROKEN # undef PRIdFAST16 # define PRIdFAST16 "d" #endif #if !defined PRIiFAST16 || PRI_MACROS_BROKEN # undef PRIiFAST16 # define PRIiFAST16 "i" #endif #if !defined PRIoFAST16 || PRI_MACROS_BROKEN # undef PRIoFAST16 # define PRIoFAST16 "o" #endif #if !defined PRIuFAST16 || PRI_MACROS_BROKEN # undef PRIuFAST16 # define PRIuFAST16 "u" #endif #if !defined PRIxFAST16 || PRI_MACROS_BROKEN # undef PRIxFAST16 # define PRIxFAST16 "x" #endif #if !defined PRIXFAST16 || PRI_MACROS_BROKEN # undef PRIXFAST16 # define PRIXFAST16 "X" #endif #if !defined PRIdFAST32 || PRI_MACROS_BROKEN # undef PRIdFAST32 # define PRIdFAST32 "d" #endif #if !defined PRIiFAST32 || PRI_MACROS_BROKEN # undef PRIiFAST32 # define PRIiFAST32 "i" #endif #if !defined PRIoFAST32 || PRI_MACROS_BROKEN # undef PRIoFAST32 # define PRIoFAST32 "o" #endif #if !defined PRIuFAST32 || PRI_MACROS_BROKEN # undef PRIuFAST32 # define PRIuFAST32 "u" #endif #if !defined PRIxFAST32 || PRI_MACROS_BROKEN # undef PRIxFAST32 # define PRIxFAST32 "x" #endif #if !defined PRIXFAST32 || PRI_MACROS_BROKEN # undef PRIXFAST32 # define PRIXFAST32 "X" #endif #if !defined PRIdFAST64 || PRI_MACROS_BROKEN # undef PRIdFAST64 # define PRIdFAST64 PRId64 #endif #if !defined PRIiFAST64 || PRI_MACROS_BROKEN # undef PRIiFAST64 # define PRIiFAST64 PRIi64 #endif #if !defined PRIoFAST64 || PRI_MACROS_BROKEN # undef PRIoFAST64 # define PRIoFAST64 PRIo64 #endif #if !defined PRIuFAST64 || PRI_MACROS_BROKEN # undef PRIuFAST64 # define PRIuFAST64 PRIu64 #endif #if !defined PRIxFAST64 || PRI_MACROS_BROKEN # undef PRIxFAST64 # define PRIxFAST64 PRIx64 #endif #if !defined PRIXFAST64 || PRI_MACROS_BROKEN # undef PRIXFAST64 # define PRIXFAST64 PRIX64 #endif #if !defined PRIdMAX || PRI_MACROS_BROKEN # undef PRIdMAX # define PRIdMAX (sizeof (uintmax_t) == sizeof (long) ? "ld" : "lld") #endif #if !defined PRIiMAX || PRI_MACROS_BROKEN # undef PRIiMAX # define PRIiMAX (sizeof (uintmax_t) == sizeof (long) ? "li" : "lli") #endif #if !defined PRIoMAX || PRI_MACROS_BROKEN # undef PRIoMAX # define PRIoMAX (sizeof (uintmax_t) == sizeof (long) ? "lo" : "llo") #endif #if !defined PRIuMAX || PRI_MACROS_BROKEN # undef PRIuMAX # define PRIuMAX (sizeof (uintmax_t) == sizeof (long) ? "lu" : "llu") #endif #if !defined PRIxMAX || PRI_MACROS_BROKEN # undef PRIxMAX # define PRIxMAX (sizeof (uintmax_t) == sizeof (long) ? "lx" : "llx") #endif #if !defined PRIXMAX || PRI_MACROS_BROKEN # undef PRIXMAX # define PRIXMAX (sizeof (uintmax_t) == sizeof (long) ? "lX" : "llX") #endif #if !defined PRIdPTR || PRI_MACROS_BROKEN # undef PRIdPTR # define PRIdPTR \ (sizeof (void *) == sizeof (long) ? "ld" : \ sizeof (void *) == sizeof (int) ? "d" : \ "lld") #endif #if !defined PRIiPTR || PRI_MACROS_BROKEN # undef PRIiPTR # define PRIiPTR \ (sizeof (void *) == sizeof (long) ? "li" : \ sizeof (void *) == sizeof (int) ? "i" : \ "lli") #endif #if !defined PRIoPTR || PRI_MACROS_BROKEN # undef PRIoPTR # define PRIoPTR \ (sizeof (void *) == sizeof (long) ? "lo" : \ sizeof (void *) == sizeof (int) ? "o" : \ "llo") #endif #if !defined PRIuPTR || PRI_MACROS_BROKEN # undef PRIuPTR # define PRIuPTR \ (sizeof (void *) == sizeof (long) ? "lu" : \ sizeof (void *) == sizeof (int) ? "u" : \ "llu") #endif #if !defined PRIxPTR || PRI_MACROS_BROKEN # undef PRIxPTR # define PRIxPTR \ (sizeof (void *) == sizeof (long) ? "lx" : \ sizeof (void *) == sizeof (int) ? "x" : \ "llx") #endif #if !defined PRIXPTR || PRI_MACROS_BROKEN # undef PRIXPTR # define PRIXPTR \ (sizeof (void *) == sizeof (long) ? "lX" : \ sizeof (void *) == sizeof (int) ? "X" : \ "llX") #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ISO C functions. This is required by the standard because some ISO C functions will require linking with this object file and the name space must not be polluted. */ # define open(name, flags) open_not_cancel_2 (name, flags) # define close(fd) close_not_cancel_no_status (fd) # define read(fd, buf, n) read_not_cancel (fd, buf, n) # define mmap(addr, len, prot, flags, fd, offset) \ __mmap (addr, len, prot, flags, fd, offset) # define munmap(addr, len) __munmap (addr, len) #endif /* For those losing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA # define freea(p) /* nothing */ #else # define alloca(n) malloc (n) # define freea(p) free (p) #endif /* For systems that distinguish between text and binary I/O. O_BINARY is usually declared in . */ #if !defined O_BINARY && defined _O_BINARY /* For MSC-compatible compilers. */ # define O_BINARY _O_BINARY # define O_TEXT _O_TEXT #endif #ifdef __BEOS__ /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY # undef O_TEXT #endif /* On reasonable systems, binary I/O is the default. */ #ifndef O_BINARY # define O_BINARY 0 #endif /* We need a sign, whether a new catalog was loaded, which can be associated with all translations. This is important if the translations are cached by one of GCC's features. */ int _nl_msg_cat_cntr; /* Expand a system dependent string segment. Return NULL if unsupported. */ static const char * get_sysdep_segment_value (const char *name) { /* Test for an ISO C 99 section 7.8.1 format string directive. Syntax: P R I { d | i | o | u | x | X } { { | LEAST | FAST } { 8 | 16 | 32 | 64 } | MAX | PTR } */ /* We don't use a table of 14 times 6 'const char *' strings here, because data relocations cost startup time. */ if (name[0] == 'P' && name[1] == 'R' && name[2] == 'I') { if (name[3] == 'd' || name[3] == 'i' || name[3] == 'o' || name[3] == 'u' || name[3] == 'x' || name[3] == 'X') { if (name[4] == '8' && name[5] == '\0') { if (name[3] == 'd') return PRId8; if (name[3] == 'i') return PRIi8; if (name[3] == 'o') return PRIo8; if (name[3] == 'u') return PRIu8; if (name[3] == 'x') return PRIx8; if (name[3] == 'X') return PRIX8; abort (); } if (name[4] == '1' && name[5] == '6' && name[6] == '\0') { if (name[3] == 'd') return PRId16; if (name[3] == 'i') return PRIi16; if (name[3] == 'o') return PRIo16; if (name[3] == 'u') return PRIu16; if (name[3] == 'x') return PRIx16; if (name[3] == 'X') return PRIX16; abort (); } if (name[4] == '3' && name[5] == '2' && name[6] == '\0') { if (name[3] == 'd') return PRId32; if (name[3] == 'i') return PRIi32; if (name[3] == 'o') return PRIo32; if (name[3] == 'u') return PRIu32; if (name[3] == 'x') return PRIx32; if (name[3] == 'X') return PRIX32; abort (); } if (name[4] == '6' && name[5] == '4' && name[6] == '\0') { if (name[3] == 'd') return PRId64; if (name[3] == 'i') return PRIi64; if (name[3] == 'o') return PRIo64; if (name[3] == 'u') return PRIu64; if (name[3] == 'x') return PRIx64; if (name[3] == 'X') return PRIX64; abort (); } if (name[4] == 'L' && name[5] == 'E' && name[6] == 'A' && name[7] == 'S' && name[8] == 'T') { if (name[9] == '8' && name[10] == '\0') { if (name[3] == 'd') return PRIdLEAST8; if (name[3] == 'i') return PRIiLEAST8; if (name[3] == 'o') return PRIoLEAST8; if (name[3] == 'u') return PRIuLEAST8; if (name[3] == 'x') return PRIxLEAST8; if (name[3] == 'X') return PRIXLEAST8; abort (); } if (name[9] == '1' && name[10] == '6' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST16; if (name[3] == 'i') return PRIiLEAST16; if (name[3] == 'o') return PRIoLEAST16; if (name[3] == 'u') return PRIuLEAST16; if (name[3] == 'x') return PRIxLEAST16; if (name[3] == 'X') return PRIXLEAST16; abort (); } if (name[9] == '3' && name[10] == '2' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST32; if (name[3] == 'i') return PRIiLEAST32; if (name[3] == 'o') return PRIoLEAST32; if (name[3] == 'u') return PRIuLEAST32; if (name[3] == 'x') return PRIxLEAST32; if (name[3] == 'X') return PRIXLEAST32; abort (); } if (name[9] == '6' && name[10] == '4' && name[11] == '\0') { if (name[3] == 'd') return PRIdLEAST64; if (name[3] == 'i') return PRIiLEAST64; if (name[3] == 'o') return PRIoLEAST64; if (name[3] == 'u') return PRIuLEAST64; if (name[3] == 'x') return PRIxLEAST64; if (name[3] == 'X') return PRIXLEAST64; abort (); } } if (name[4] == 'F' && name[5] == 'A' && name[6] == 'S' && name[7] == 'T') { if (name[8] == '8' && name[9] == '\0') { if (name[3] == 'd') return PRIdFAST8; if (name[3] == 'i') return PRIiFAST8; if (name[3] == 'o') return PRIoFAST8; if (name[3] == 'u') return PRIuFAST8; if (name[3] == 'x') return PRIxFAST8; if (name[3] == 'X') return PRIXFAST8; abort (); } if (name[8] == '1' && name[9] == '6' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST16; if (name[3] == 'i') return PRIiFAST16; if (name[3] == 'o') return PRIoFAST16; if (name[3] == 'u') return PRIuFAST16; if (name[3] == 'x') return PRIxFAST16; if (name[3] == 'X') return PRIXFAST16; abort (); } if (name[8] == '3' && name[9] == '2' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST32; if (name[3] == 'i') return PRIiFAST32; if (name[3] == 'o') return PRIoFAST32; if (name[3] == 'u') return PRIuFAST32; if (name[3] == 'x') return PRIxFAST32; if (name[3] == 'X') return PRIXFAST32; abort (); } if (name[8] == '6' && name[9] == '4' && name[10] == '\0') { if (name[3] == 'd') return PRIdFAST64; if (name[3] == 'i') return PRIiFAST64; if (name[3] == 'o') return PRIoFAST64; if (name[3] == 'u') return PRIuFAST64; if (name[3] == 'x') return PRIxFAST64; if (name[3] == 'X') return PRIXFAST64; abort (); } } if (name[4] == 'M' && name[5] == 'A' && name[6] == 'X' && name[7] == '\0') { if (name[3] == 'd') return PRIdMAX; if (name[3] == 'i') return PRIiMAX; if (name[3] == 'o') return PRIoMAX; if (name[3] == 'u') return PRIuMAX; if (name[3] == 'x') return PRIxMAX; if (name[3] == 'X') return PRIXMAX; abort (); } if (name[4] == 'P' && name[5] == 'T' && name[6] == 'R' && name[7] == '\0') { if (name[3] == 'd') return PRIdPTR; if (name[3] == 'i') return PRIiPTR; if (name[3] == 'o') return PRIoPTR; if (name[3] == 'u') return PRIuPTR; if (name[3] == 'x') return PRIxPTR; if (name[3] == 'X') return PRIXPTR; abort (); } } } /* Test for a glibc specific printf() format directive flag. */ if (name[0] == 'I' && name[1] == '\0') { #if defined _LIBC || __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) /* The 'I' flag, in numeric format directives, replaces ASCII digits with the 'outdigits' defined in the LC_CTYPE locale facet. This is used for Farsi (Persian) and maybe Arabic. */ return "I"; #else return ""; #endif } /* Other system dependent strings are not valid. */ return NULL; } /* Load the message catalogs specified by FILENAME. If it is no valid message catalog do nothing. */ void internal_function _nl_load_domain (struct loaded_l10nfile *domain_file, struct binding *domainbinding) { __libc_lock_define_initialized_recursive (static, lock) int fd = -1; size_t size; #ifdef _LIBC struct stat64 st; #else struct stat st; #endif struct mo_file_header *data = (struct mo_file_header *) -1; int use_mmap = 0; struct loaded_domain *domain; int revision; const char *nullentry; size_t nullentrylen; __libc_lock_lock_recursive (lock); if (domain_file->decided != 0) { /* There are two possibilities: + this is the same thread calling again during this initialization via _nl_find_msg. We have initialized everything this call needs. + this is another thread which tried to initialize this object. Not necessary anymore since if the lock is available this is finished. */ goto done; } domain_file->decided = -1; domain_file->data = NULL; /* Note that it would be useless to store domainbinding in domain_file because domainbinding might be == NULL now but != NULL later (after a call to bind_textdomain_codeset). */ /* If the record does not represent a valid locale the FILENAME might be NULL. This can happen when according to the given specification the locale file name is different for XPG and CEN syntax. */ if (domain_file->filename == NULL) goto out; /* Try to open the addressed file. */ fd = open (domain_file->filename, O_RDONLY | O_BINARY); if (fd == -1) goto out; /* We must know about the size of the file. */ if ( #ifdef _LIBC __builtin_expect (fstat64 (fd, &st) != 0, 0) #else __builtin_expect (fstat (fd, &st) != 0, 0) #endif || __builtin_expect ((size = (size_t) st.st_size) != st.st_size, 0) || __builtin_expect (size < sizeof (struct mo_file_header), 0)) /* Something went wrong. */ goto out; #ifdef HAVE_MMAP /* Now we are ready to load the file. If mmap() is available we try this first. If not available or it failed we try to load it. */ data = (struct mo_file_header *) mmap (NULL, size, PROT_READ, MAP_PRIVATE, fd, 0); if (__builtin_expect (data != (struct mo_file_header *) -1, 1)) { /* mmap() call was successful. */ close (fd); fd = -1; use_mmap = 1; } #endif /* If the data is not yet available (i.e. mmap'ed) we try to load it manually. */ if (data == (struct mo_file_header *) -1) { size_t to_read; char *read_ptr; data = (struct mo_file_header *) malloc (size); if (data == NULL) goto out; to_read = size; read_ptr = (char *) data; do { long int nb = (long int) read (fd, read_ptr, to_read); if (nb <= 0) { #ifdef EINTR if (nb == -1 && errno == EINTR) continue; #endif goto out; } read_ptr += nb; to_read -= nb; } while (to_read > 0); close (fd); fd = -1; } /* Using the magic number we can test whether it really is a message catalog file. */ if (__builtin_expect (data->magic != _MAGIC && data->magic != _MAGIC_SWAPPED, 0)) { /* The magic number is wrong: not a message catalog file. */ #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); goto out; } domain = (struct loaded_domain *) malloc (sizeof (struct loaded_domain)); if (domain == NULL) goto out; domain_file->data = domain; domain->data = (char *) data; domain->use_mmap = use_mmap; domain->mmap_size = size; domain->must_swap = data->magic != _MAGIC; domain->malloced = NULL; /* Fill in the information about the available tables. */ revision = W (domain->must_swap, data->revision); /* We support only the major revisions 0 and 1. */ switch (revision >> 16) { case 0: case 1: domain->nstrings = W (domain->must_swap, data->nstrings); domain->orig_tab = (const struct string_desc *) ((char *) data + W (domain->must_swap, data->orig_tab_offset)); domain->trans_tab = (const struct string_desc *) ((char *) data + W (domain->must_swap, data->trans_tab_offset)); domain->hash_size = W (domain->must_swap, data->hash_tab_size); domain->hash_tab = (domain->hash_size > 2 ? (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->hash_tab_offset)) : NULL); domain->must_swap_hash_tab = domain->must_swap; /* Now dispatch on the minor revision. */ switch (revision & 0xffff) { case 0: domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; break; case 1: default: { nls_uint32 n_sysdep_strings; if (domain->hash_tab == NULL) /* This is invalid. These minor revisions need a hash table. */ goto invalid; n_sysdep_strings = W (domain->must_swap, data->n_sysdep_strings); if (n_sysdep_strings > 0) { nls_uint32 n_sysdep_segments; const struct sysdep_segment *sysdep_segments; const char **sysdep_segment_values; const nls_uint32 *orig_sysdep_tab; const nls_uint32 *trans_sysdep_tab; nls_uint32 n_inmem_sysdep_strings; size_t memneed; char *mem; struct sysdep_string_desc *inmem_orig_sysdep_tab; struct sysdep_string_desc *inmem_trans_sysdep_tab; nls_uint32 *inmem_hash_tab; unsigned int i, j; /* Get the values of the system dependent segments. */ n_sysdep_segments = W (domain->must_swap, data->n_sysdep_segments); sysdep_segments = (const struct sysdep_segment *) ((char *) data + W (domain->must_swap, data->sysdep_segments_offset)); sysdep_segment_values = (const char **) alloca (n_sysdep_segments * sizeof (const char *)); for (i = 0; i < n_sysdep_segments; i++) { const char *name = (char *) data + W (domain->must_swap, sysdep_segments[i].offset); nls_uint32 namelen = W (domain->must_swap, sysdep_segments[i].length); if (!(namelen > 0 && name[namelen - 1] == '\0')) { freea (sysdep_segment_values); goto invalid; } sysdep_segment_values[i] = get_sysdep_segment_value (name); } orig_sysdep_tab = (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->orig_sysdep_tab_offset)); trans_sysdep_tab = (const nls_uint32 *) ((char *) data + W (domain->must_swap, data->trans_sysdep_tab_offset)); /* Compute the amount of additional memory needed for the system dependent strings and the augmented hash table. At the same time, also drop string pairs which refer to an undefined system dependent segment. */ n_inmem_sysdep_strings = 0; memneed = domain->hash_size * sizeof (nls_uint32); for (i = 0; i < n_sysdep_strings; i++) { int valid = 1; size_t needs[2]; for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); size_t need = 0; const struct segment_pair *p = sysdep_string->segments; if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END) for (p = sysdep_string->segments;; p++) { nls_uint32 sysdepref; need += W (domain->must_swap, p->segsize); sysdepref = W (domain->must_swap, p->sysdepref); if (sysdepref == SEGMENTS_END) break; if (sysdepref >= n_sysdep_segments) { /* Invalid. */ freea (sysdep_segment_values); goto invalid; } if (sysdep_segment_values[sysdepref] == NULL) { /* This particular string pair is invalid. */ valid = 0; break; } need += strlen (sysdep_segment_values[sysdepref]); } needs[j] = need; if (!valid) break; } if (valid) { n_inmem_sysdep_strings++; memneed += needs[0] + needs[1]; } } memneed += 2 * n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); if (n_inmem_sysdep_strings > 0) { unsigned int k; /* Allocate additional memory. */ mem = (char *) malloc (memneed); if (mem == NULL) goto invalid; domain->malloced = mem; inmem_orig_sysdep_tab = (struct sysdep_string_desc *) mem; mem += n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); inmem_trans_sysdep_tab = (struct sysdep_string_desc *) mem; mem += n_inmem_sysdep_strings * sizeof (struct sysdep_string_desc); inmem_hash_tab = (nls_uint32 *) mem; mem += domain->hash_size * sizeof (nls_uint32); /* Compute the system dependent strings. */ k = 0; for (i = 0; i < n_sysdep_strings; i++) { int valid = 1; for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); const struct segment_pair *p = sysdep_string->segments; if (W (domain->must_swap, p->sysdepref) != SEGMENTS_END) for (p = sysdep_string->segments;; p++) { nls_uint32 sysdepref; sysdepref = W (domain->must_swap, p->sysdepref); if (sysdepref == SEGMENTS_END) break; if (sysdep_segment_values[sysdepref] == NULL) { /* This particular string pair is invalid. */ valid = 0; break; } } if (!valid) break; } if (valid) { for (j = 0; j < 2; j++) { const struct sysdep_string *sysdep_string = (const struct sysdep_string *) ((char *) data + W (domain->must_swap, j == 0 ? orig_sysdep_tab[i] : trans_sysdep_tab[i])); const char *static_segments = (char *) data + W (domain->must_swap, sysdep_string->offset); const struct segment_pair *p = sysdep_string->segments; /* Concatenate the segments, and fill inmem_orig_sysdep_tab[k] (for j == 0) and inmem_trans_sysdep_tab[k] (for j == 1). */ struct sysdep_string_desc *inmem_tab_entry = (j == 0 ? inmem_orig_sysdep_tab : inmem_trans_sysdep_tab) + k; if (W (domain->must_swap, p->sysdepref) == SEGMENTS_END) { /* Only one static segment. */ inmem_tab_entry->length = W (domain->must_swap, p->segsize); inmem_tab_entry->pointer = static_segments; } else { inmem_tab_entry->pointer = mem; for (p = sysdep_string->segments;; p++) { nls_uint32 segsize = W (domain->must_swap, p->segsize); nls_uint32 sysdepref = W (domain->must_swap, p->sysdepref); size_t n; if (segsize > 0) { memcpy (mem, static_segments, segsize); mem += segsize; static_segments += segsize; } if (sysdepref == SEGMENTS_END) break; n = strlen (sysdep_segment_values[sysdepref]); memcpy (mem, sysdep_segment_values[sysdepref], n); mem += n; } inmem_tab_entry->length = mem - inmem_tab_entry->pointer; } } k++; } } if (k != n_inmem_sysdep_strings) abort (); /* Compute the augmented hash table. */ for (i = 0; i < domain->hash_size; i++) inmem_hash_tab[i] = W (domain->must_swap_hash_tab, domain->hash_tab[i]); for (i = 0; i < n_inmem_sysdep_strings; i++) { const char *msgid = inmem_orig_sysdep_tab[i].pointer; nls_uint32 hash_val = __hash_string (msgid); nls_uint32 idx = hash_val % domain->hash_size; nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); for (;;) { if (inmem_hash_tab[idx] == 0) { /* Hash table entry is empty. Use it. */ inmem_hash_tab[idx] = 1 + domain->nstrings + i; break; } if (idx >= domain->hash_size - incr) idx -= domain->hash_size - incr; else idx += incr; } } domain->n_sysdep_strings = n_inmem_sysdep_strings; domain->orig_sysdep_tab = inmem_orig_sysdep_tab; domain->trans_sysdep_tab = inmem_trans_sysdep_tab; domain->hash_tab = inmem_hash_tab; domain->must_swap_hash_tab = 0; } else { domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; } freea (sysdep_segment_values); } else { domain->n_sysdep_strings = 0; domain->orig_sysdep_tab = NULL; domain->trans_sysdep_tab = NULL; } } break; } break; default: /* This is an invalid revision. */ invalid: /* This is an invalid .mo file. */ free (domain->malloced); #ifdef HAVE_MMAP if (use_mmap) munmap ((caddr_t) data, size); else #endif free (data); free (domain); domain_file->data = NULL; goto out; } /* No caches of converted translations so far. */ domain->conversions = NULL; domain->nconversions = 0; gl_rwlock_init (domain->conversions_lock); /* Get the header entry and look for a plural specification. */ #ifdef IN_LIBGLOCALE nullentry = _nl_find_msg (domain_file, domainbinding, NULL, "", &nullentrylen); #else nullentry = _nl_find_msg (domain_file, domainbinding, "", 0, &nullentrylen); #endif EXTRACT_PLURAL_EXPRESSION (nullentry, &domain->plural, &domain->nplurals); out: if (fd != -1) close (fd); domain_file->decided = 1; done: __libc_lock_unlock_recursive (lock); } #ifdef _LIBC void internal_function __libc_freeres_fn_section _nl_unload_domain (struct loaded_domain *domain) { size_t i; if (domain->plural != &__gettext_germanic_plural) __gettext_free_exp ((struct expression *) domain->plural); for (i = 0; i < domain->nconversions; i++) { struct converted_domain *convd = &domain->conversions[i]; free (convd->encoding); if (convd->conv_tab != NULL && convd->conv_tab != (char **) -1) free (convd->conv_tab); if (convd->conv != (__gconv_t) -1) __gconv_close (convd->conv); } free (domain->conversions); __libc_rwlock_fini (domain->conversions_lock); free (domain->malloced); # ifdef _POSIX_MAPPED_FILES if (domain->use_mmap) munmap ((caddr_t) domain->data, domain->mmap_size); else # endif /* _POSIX_MAPPED_FILES */ free ((void *) domain->data); free (domain); } #endif gtick-0.5.2/intl/intl-compat.c0000644000175000017500000000665111617270151013112 00000000000000/* intl-compat.c - Stub functions to call gettext functions from GNU gettext Library. Copyright (C) 1995, 2000-2003, 2005 Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" /* @@ end of prolog @@ */ /* This file redirects the gettext functions (without prefix) to those defined in the included GNU libintl library (with "libintl_" prefix). It is compiled into libintl in order to make the AM_GNU_GETTEXT test of gettext <= 0.11.2 work with the libintl library >= 0.11.3 which has the redirections primarily in the include file. It is also compiled into libgnuintl so that libgnuintl.so can be used as LD_PRELOADable library on glibc systems, to provide the extra features that the functions in the libc don't have (namely, logging). */ #undef gettext #undef dgettext #undef dcgettext #undef ngettext #undef dngettext #undef dcngettext #undef textdomain #undef bindtextdomain #undef bind_textdomain_codeset /* When building a DLL, we must export some functions. Note that because the functions are only defined for binary backward compatibility, we don't need to use __declspec(dllimport) in any case. */ #if HAVE_VISIBILITY && BUILDING_DLL # define DLL_EXPORTED __attribute__((__visibility__("default"))) #elif defined _MSC_VER && BUILDING_DLL # define DLL_EXPORTED __declspec(dllexport) #else # define DLL_EXPORTED #endif DLL_EXPORTED char * gettext (const char *msgid) { return libintl_gettext (msgid); } DLL_EXPORTED char * dgettext (const char *domainname, const char *msgid) { return libintl_dgettext (domainname, msgid); } DLL_EXPORTED char * dcgettext (const char *domainname, const char *msgid, int category) { return libintl_dcgettext (domainname, msgid, category); } DLL_EXPORTED char * ngettext (const char *msgid1, const char *msgid2, unsigned long int n) { return libintl_ngettext (msgid1, msgid2, n); } DLL_EXPORTED char * dngettext (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n) { return libintl_dngettext (domainname, msgid1, msgid2, n); } DLL_EXPORTED char * dcngettext (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n, int category) { return libintl_dcngettext (domainname, msgid1, msgid2, n, category); } DLL_EXPORTED char * textdomain (const char *domainname) { return libintl_textdomain (domainname); } DLL_EXPORTED char * bindtextdomain (const char *domainname, const char *dirname) { return libintl_bindtextdomain (domainname, dirname); } DLL_EXPORTED char * bind_textdomain_codeset (const char *domainname, const char *codeset) { return libintl_bind_textdomain_codeset (domainname, codeset); } gtick-0.5.2/intl/export.h0000644000175000017500000000023510661555177012215 00000000000000 #if @HAVE_VISIBILITY@ && BUILDING_LIBINTL #define LIBINTL_DLL_EXPORTED __attribute__((__visibility__("default"))) #else #define LIBINTL_DLL_EXPORTED #endif gtick-0.5.2/intl/gettextP.h0000644000175000017500000002364611617270151012477 00000000000000/* Header describing internals of libintl library. Copyright (C) 1995-1999, 2000-2007, 2009-2010 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _GETTEXTP_H #define _GETTEXTP_H #include /* Get size_t. */ #ifdef _LIBC # include "../iconv/gconv_int.h" #else # if HAVE_ICONV # include # endif #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define __libc_rwlock_define #else # include "lock.h" #endif #ifdef _LIBC extern char *__gettext (const char *__msgid); extern char *__dgettext (const char *__domainname, const char *__msgid); extern char *__dcgettext (const char *__domainname, const char *__msgid, int __category); extern char *__ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n); extern char *__dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int n); extern char *__dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category); extern char *__dcigettext (const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category); extern char *__textdomain (const char *__domainname); extern char *__bindtextdomain (const char *__domainname, const char *__dirname); extern char *__bind_textdomain_codeset (const char *__domainname, const char *__codeset); extern void _nl_finddomain_subfreeres (void) attribute_hidden; extern void _nl_unload_domain (struct loaded_domain *__domain) internal_function attribute_hidden; #else /* Declare the exported libintl_* functions, in a way that allows us to call them under their real name. */ # undef _INTL_REDIRECT_INLINE # undef _INTL_REDIRECT_MACROS # define _INTL_REDIRECT_MACROS # include "libgnuintl.h" # ifdef IN_LIBGLOCALE extern char *gl_dcigettext (const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category, const char *__localename, const char *__encoding); # else extern char *libintl_dcigettext (const char *__domainname, const char *__msgid1, const char *__msgid2, int __plural, unsigned long int __n, int __category); # endif #endif #include "loadinfo.h" #include "gmo.h" /* Get nls_uint32. */ /* @@ end of prolog @@ */ #ifndef internal_function # define internal_function #endif #ifndef attribute_hidden # define attribute_hidden #endif /* Tell the compiler when a conditional or integer expression is almost always true or almost always false. */ #ifndef HAVE_BUILTIN_EXPECT # define __builtin_expect(expr, val) (expr) #endif #ifndef W # define W(flag, data) ((flag) ? SWAP (data) : (data)) #endif #ifdef _LIBC # include # define SWAP(i) bswap_32 (i) #else static inline nls_uint32 # ifdef __cplusplus SWAP (nls_uint32 i) # else SWAP (i) nls_uint32 i; # endif { return (i << 24) | ((i & 0xff00) << 8) | ((i >> 8) & 0xff00) | (i >> 24); } #endif /* In-memory representation of system dependent string. */ struct sysdep_string_desc { /* Length of addressed string, including the trailing NUL. */ size_t length; /* Pointer to addressed string. */ const char *pointer; }; /* Cache of translated strings after charset conversion. Note: The strings are converted to the target encoding only on an as-needed basis. */ struct converted_domain { /* The target encoding name. */ const char *encoding; /* The descriptor for conversion from the message catalog's encoding to this target encoding. */ #ifdef _LIBC __gconv_t conv; #else # if HAVE_ICONV iconv_t conv; # endif #endif /* The table of translated strings after charset conversion. */ char **conv_tab; }; /* The representation of an opened message catalog. */ struct loaded_domain { /* Pointer to memory containing the .mo file. */ const char *data; /* 1 if the memory is mmap()ed, 0 if the memory is malloc()ed. */ int use_mmap; /* Size of mmap()ed memory. */ size_t mmap_size; /* 1 if the .mo file uses a different endianness than this machine. */ int must_swap; /* Pointer to additional malloc()ed memory. */ void *malloced; /* Number of static strings pairs. */ nls_uint32 nstrings; /* Pointer to descriptors of original strings in the file. */ const struct string_desc *orig_tab; /* Pointer to descriptors of translated strings in the file. */ const struct string_desc *trans_tab; /* Number of system dependent strings pairs. */ nls_uint32 n_sysdep_strings; /* Pointer to descriptors of original sysdep strings. */ const struct sysdep_string_desc *orig_sysdep_tab; /* Pointer to descriptors of translated sysdep strings. */ const struct sysdep_string_desc *trans_sysdep_tab; /* Size of hash table. */ nls_uint32 hash_size; /* Pointer to hash table. */ const nls_uint32 *hash_tab; /* 1 if the hash table uses a different endianness than this machine. */ int must_swap_hash_tab; /* Cache of charset conversions of the translated strings. */ struct converted_domain *conversions; size_t nconversions; gl_rwlock_define (, conversions_lock) const struct expression *plural; unsigned long int nplurals; }; /* We want to allocate a string at the end of the struct. But ISO C doesn't allow zero sized arrays. */ #ifdef __GNUC__ # define ZERO 0 #else # define ZERO 1 #endif /* A set of settings bound to a message domain. Used to store settings from bindtextdomain() and bind_textdomain_codeset(). */ struct binding { struct binding *next; char *dirname; char *codeset; char domainname[ZERO]; }; /* A counter which is incremented each time some previous translations become invalid. This variable is part of the external ABI of the GNU libintl. */ #ifdef IN_LIBGLOCALE # include extern LIBGLOCALE_DLL_EXPORTED int _nl_msg_cat_cntr; #else extern LIBINTL_DLL_EXPORTED int _nl_msg_cat_cntr; #endif #ifndef _LIBC extern const char *_nl_language_preferences_default (void); # define gl_locale_name_canonicalize _nl_locale_name_canonicalize extern void _nl_locale_name_canonicalize (char *name); # define gl_locale_name_from_win32_LANGID _nl_locale_name_from_win32_LANGID /* extern const char *_nl_locale_name_from_win32_LANGID (LANGID langid); */ # define gl_locale_name_from_win32_LCID _nl_locale_name_from_win32_LCID /* extern const char *_nl_locale_name_from_win32_LCID (LCID lcid); */ # define gl_locale_name_thread_unsafe _nl_locale_name_thread_unsafe extern const char *_nl_locale_name_thread_unsafe (int category, const char *categoryname); # define gl_locale_name_thread _nl_locale_name_thread /* extern const char *_nl_locale_name_thread (int category, const char *categoryname); */ # define gl_locale_name_posix _nl_locale_name_posix extern const char *_nl_locale_name_posix (int category, const char *categoryname); # define gl_locale_name_environ _nl_locale_name_environ extern const char *_nl_locale_name_environ (int category, const char *categoryname); # define gl_locale_name_default _nl_locale_name_default extern const char *_nl_locale_name_default (void); # define gl_locale_name _nl_locale_name /* extern const char *_nl_locale_name (int category, const char *categoryname); */ #endif struct loaded_l10nfile *_nl_find_domain (const char *__dirname, char *__locale, const char *__domainname, struct binding *__domainbinding) internal_function; void _nl_load_domain (struct loaded_l10nfile *__domain, struct binding *__domainbinding) internal_function; #ifdef IN_LIBGLOCALE char *_nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *encoding, const char *msgid, size_t *lengthp) internal_function; #else char *_nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *msgid, int convert, size_t *lengthp) internal_function; #endif /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_dirname libintl_nl_default_dirname # define _nl_domain_bindings libintl_nl_domain_bindings #endif /* Contains the default location of the message catalogs. */ extern const char _nl_default_dirname[]; #ifdef _LIBC libc_hidden_proto (_nl_default_dirname) #endif /* List with bindings of specific domains. */ extern struct binding *_nl_domain_bindings; /* The internal variables in the standalone libintl.a must have different names than the internal variables in GNU libc, otherwise programs using libintl.a cannot be linked statically. */ #if !defined _LIBC # define _nl_default_default_domain libintl_nl_default_default_domain # define _nl_current_default_domain libintl_nl_current_default_domain #endif /* Name of the default text domain. */ extern const char _nl_default_default_domain[] attribute_hidden; /* Default text domain in which entries for gettext(3) are to be found. */ extern const char *_nl_current_default_domain attribute_hidden; /* @@ begin of epilog @@ */ #endif /* gettextP.h */ gtick-0.5.2/intl/wprintf-parse.h0000644000175000017500000000436211617270154013471 00000000000000/* Parse printf format string. Copyright (C) 1999, 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _WPRINTF_PARSE_H #define _WPRINTF_PARSE_H #include "printf-args.h" /* Flags */ #define FLAG_GROUP 1 /* ' flag */ #define FLAG_LEFT 2 /* - flag */ #define FLAG_SHOWSIGN 4 /* + flag */ #define FLAG_SPACE 8 /* space flag */ #define FLAG_ALT 16 /* # flag */ #define FLAG_ZERO 32 /* arg_index value indicating that no argument is consumed. */ #define ARG_NONE (~(size_t)0) /* A parsed directive. */ typedef struct { const wchar_t* dir_start; const wchar_t* dir_end; int flags; const wchar_t* width_start; const wchar_t* width_end; size_t width_arg_index; const wchar_t* precision_start; const wchar_t* precision_end; size_t precision_arg_index; wchar_t conversion; /* d i o u x X f e E g G c s p n U % but not C S */ size_t arg_index; } wchar_t_directive; /* A parsed format string. */ typedef struct { size_t count; wchar_t_directive *dir; size_t max_width_length; size_t max_precision_length; } wchar_t_directives; /* Parses the format string. Fills in the number N of directives, and fills in directives[0], ..., directives[N-1], and sets directives[N].dir_start to the end of the format string. Also fills in the arg_type fields of the arguments and the needed count of arguments. */ #ifdef STATIC STATIC #else extern #endif int wprintf_parse (const wchar_t *format, wchar_t_directives *d, arguments *a); #endif /* _WPRINTF_PARSE_H */ gtick-0.5.2/intl/vasnprintf.c0000644000175000017500000066217611617270153013071 00000000000000/* vsprintf with automatic memory allocation. Copyright (C) 1999, 2002-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* This file can be parametrized with the following macros: VASNPRINTF The name of the function being defined. FCHAR_T The element type of the format string. DCHAR_T The element type of the destination (result) string. FCHAR_T_ONLY_ASCII Set to 1 to enable verification that all characters in the format string are ASCII. MUST be set if FCHAR_T and DCHAR_T are not the same type. DIRECTIVE Structure denoting a format directive. Depends on FCHAR_T. DIRECTIVES Structure denoting the set of format directives of a format string. Depends on FCHAR_T. PRINTF_PARSE Function that parses a format string. Depends on FCHAR_T. DCHAR_CPY memcpy like function for DCHAR_T[] arrays. DCHAR_SET memset like function for DCHAR_T[] arrays. DCHAR_MBSNLEN mbsnlen like function for DCHAR_T[] arrays. SNPRINTF The system's snprintf (or similar) function. This may be either snprintf or swprintf. TCHAR_T The element type of the argument and result string of the said SNPRINTF function. This may be either char or wchar_t. The code exploits that sizeof (TCHAR_T) | sizeof (DCHAR_T) and alignof (TCHAR_T) <= alignof (DCHAR_T). DCHAR_IS_TCHAR Set to 1 if DCHAR_T and TCHAR_T are the same type. DCHAR_CONV_FROM_ENCODING A function to convert from char[] to DCHAR[]. DCHAR_IS_UINT8_T Set to 1 if DCHAR_T is uint8_t. DCHAR_IS_UINT16_T Set to 1 if DCHAR_T is uint16_t. DCHAR_IS_UINT32_T Set to 1 if DCHAR_T is uint32_t. */ /* Tell glibc's to provide a prototype for snprintf(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifndef VASNPRINTF # include #endif #ifndef IN_LIBINTL # include #endif /* Specification. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # include "vasnwprintf.h" # else # include "vasnprintf.h" # endif #endif #include /* localeconv() */ #include /* snprintf(), sprintf() */ #include /* abort(), malloc(), realloc(), free() */ #include /* memcpy(), strlen() */ #include /* errno */ #include /* CHAR_BIT */ #include /* DBL_MAX_EXP, LDBL_MAX_EXP */ #if HAVE_NL_LANGINFO # include #endif #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # include "wprintf-parse.h" # else # include "printf-parse.h" # endif #endif /* Checked size_t computations. */ #include "xsize.h" #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "float+.h" #endif #if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL # include # include "isnand-nolibm.h" #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "isnanl-nolibm.h" # include "fpucw.h" #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL # include # include "isnand-nolibm.h" # include "printf-frexp.h" #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL # include # include "isnanl-nolibm.h" # include "printf-frexpl.h" # include "fpucw.h" #endif /* Default parameters. */ #ifndef VASNPRINTF # if WIDE_CHAR_VERSION # define VASNPRINTF vasnwprintf # define FCHAR_T wchar_t # define DCHAR_T wchar_t # define TCHAR_T wchar_t # define DCHAR_IS_TCHAR 1 # define DIRECTIVE wchar_t_directive # define DIRECTIVES wchar_t_directives # define PRINTF_PARSE wprintf_parse # define DCHAR_CPY wmemcpy # define DCHAR_SET wmemset # else # define VASNPRINTF vasnprintf # define FCHAR_T char # define DCHAR_T char # define TCHAR_T char # define DCHAR_IS_TCHAR 1 # define DIRECTIVE char_directive # define DIRECTIVES char_directives # define PRINTF_PARSE printf_parse # define DCHAR_CPY memcpy # define DCHAR_SET memset # endif #endif #if WIDE_CHAR_VERSION /* TCHAR_T is wchar_t. */ # define USE_SNPRINTF 1 # if HAVE_DECL__SNWPRINTF /* On Windows, the function swprintf() has a different signature than on Unix; we use the function _snwprintf() or - on mingw - snwprintf() instead. The mingw function snwprintf() has fewer bugs than the MSVCRT function _snwprintf(), so prefer that. */ # if defined __MINGW32__ # define SNPRINTF snwprintf # else # define SNPRINTF _snwprintf # endif # else /* Unix. */ # define SNPRINTF swprintf # endif #else /* TCHAR_T is char. */ /* Use snprintf if it exists under the name 'snprintf' or '_snprintf'. But don't use it on BeOS, since BeOS snprintf produces no output if the size argument is >= 0x3000000. Also don't use it on Linux libc5, since there snprintf with size = 1 writes any output without bounds, like sprintf. */ # if (HAVE_DECL__SNPRINTF || HAVE_SNPRINTF) && !defined __BEOS__ && !(__GNU_LIBRARY__ == 1) # define USE_SNPRINTF 1 # else # define USE_SNPRINTF 0 # endif # if HAVE_DECL__SNPRINTF /* Windows. The mingw function snprintf() has fewer bugs than the MSVCRT function _snprintf(), so prefer that. */ # if defined __MINGW32__ # define SNPRINTF snprintf /* Here we need to call the native snprintf, not rpl_snprintf. */ # undef snprintf # else # define SNPRINTF _snprintf # endif # else /* Unix. */ # define SNPRINTF snprintf /* Here we need to call the native snprintf, not rpl_snprintf. */ # undef snprintf # endif #endif /* Here we need to call the native sprintf, not rpl_sprintf. */ #undef sprintf /* GCC >= 4.0 with -Wall emits unjustified "... may be used uninitialized" warnings in this file. Use -Dlint to suppress them. */ #ifdef lint # define IF_LINT(Code) Code #else # define IF_LINT(Code) /* empty */ #endif /* Avoid some warnings from "gcc -Wshadow". This file doesn't use the exp() and remainder() functions. */ #undef exp #define exp expo #undef remainder #define remainder rem #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && !WIDE_CHAR_VERSION # if (HAVE_STRNLEN && !defined _AIX) # define local_strnlen strnlen # else # ifndef local_strnlen_defined # define local_strnlen_defined 1 static size_t local_strnlen (const char *string, size_t maxlen) { const char *end = memchr (string, '\0', maxlen); return end ? (size_t) (end - string) : maxlen; } # endif # endif #endif #if (((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && WIDE_CHAR_VERSION) || ((!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && !WIDE_CHAR_VERSION && DCHAR_IS_TCHAR)) && HAVE_WCHAR_T # if HAVE_WCSLEN # define local_wcslen wcslen # else /* Solaris 2.5.1 has wcslen() in a separate library libw.so. To avoid a dependency towards this library, here is a local substitute. Define this substitute only once, even if this file is included twice in the same compilation unit. */ # ifndef local_wcslen_defined # define local_wcslen_defined 1 static size_t local_wcslen (const wchar_t *s) { const wchar_t *ptr; for (ptr = s; *ptr != (wchar_t) 0; ptr++) ; return ptr - s; } # endif # endif #endif #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99) && HAVE_WCHAR_T && WIDE_CHAR_VERSION # if HAVE_WCSNLEN # define local_wcsnlen wcsnlen # else # ifndef local_wcsnlen_defined # define local_wcsnlen_defined 1 static size_t local_wcsnlen (const wchar_t *s, size_t maxlen) { const wchar_t *ptr; for (ptr = s; maxlen > 0 && *ptr != (wchar_t) 0; ptr++, maxlen--) ; return ptr - s; } # endif # endif #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && !defined IN_LIBINTL /* Determine the decimal-point character according to the current locale. */ # ifndef decimal_point_char_defined # define decimal_point_char_defined 1 static char decimal_point_char (void) { const char *point; /* Determine it in a multithread-safe way. We know nl_langinfo is multithread-safe on glibc systems and MacOS X systems, but is not required to be multithread-safe by POSIX. sprintf(), however, is multithread-safe. localeconv() is rarely multithread-safe. */ # if HAVE_NL_LANGINFO && (__GLIBC__ || (defined __APPLE__ && defined __MACH__)) point = nl_langinfo (RADIXCHAR); # elif 1 char pointbuf[5]; sprintf (pointbuf, "%#.0f", 1.0); point = &pointbuf[1]; # else point = localeconv () -> decimal_point; # endif /* The decimal point is always a single byte: either '.' or ','. */ return (point[0] != '\0' ? point[0] : '.'); } # endif #endif #if NEED_PRINTF_INFINITE_DOUBLE && !NEED_PRINTF_DOUBLE && !defined IN_LIBINTL /* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int is_infinite_or_zero (double x) { return isnand (x) || x + x == x; } #endif #if NEED_PRINTF_INFINITE_LONG_DOUBLE && !NEED_PRINTF_LONG_DOUBLE && !defined IN_LIBINTL /* Equivalent to !isfinite(x) || x == 0, but does not require libm. */ static int is_infinite_or_zerol (long double x) { return isnanl (x) || x + x == x; } #endif #if (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL /* Converting 'long double' to decimal without rare rounding bugs requires real bignums. We use the naming conventions of GNU gmp, but vastly simpler (and slower) algorithms. */ typedef unsigned int mp_limb_t; # define GMP_LIMB_BITS 32 typedef int mp_limb_verify[2 * (sizeof (mp_limb_t) * CHAR_BIT == GMP_LIMB_BITS) - 1]; typedef unsigned long long mp_twolimb_t; # define GMP_TWOLIMB_BITS 64 typedef int mp_twolimb_verify[2 * (sizeof (mp_twolimb_t) * CHAR_BIT == GMP_TWOLIMB_BITS) - 1]; /* Representation of a bignum >= 0. */ typedef struct { size_t nlimbs; mp_limb_t *limbs; /* Bits in little-endian order, allocated with malloc(). */ } mpn_t; /* Compute the product of two bignums >= 0. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * multiply (mpn_t src1, mpn_t src2, mpn_t *dest) { const mp_limb_t *p1; const mp_limb_t *p2; size_t len1; size_t len2; if (src1.nlimbs <= src2.nlimbs) { len1 = src1.nlimbs; p1 = src1.limbs; len2 = src2.nlimbs; p2 = src2.limbs; } else { len1 = src2.nlimbs; p1 = src2.limbs; len2 = src1.nlimbs; p2 = src1.limbs; } /* Now 0 <= len1 <= len2. */ if (len1 == 0) { /* src1 or src2 is zero. */ dest->nlimbs = 0; dest->limbs = (mp_limb_t *) malloc (1); } else { /* Here 1 <= len1 <= len2. */ size_t dlen; mp_limb_t *dp; size_t k, i, j; dlen = len1 + len2; dp = (mp_limb_t *) malloc (dlen * sizeof (mp_limb_t)); if (dp == NULL) return NULL; for (k = len2; k > 0; ) dp[--k] = 0; for (i = 0; i < len1; i++) { mp_limb_t digit1 = p1[i]; mp_twolimb_t carry = 0; for (j = 0; j < len2; j++) { mp_limb_t digit2 = p2[j]; carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; carry += dp[i + j]; dp[i + j] = (mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; } dp[i + len2] = (mp_limb_t) carry; } /* Normalise. */ while (dlen > 0 && dp[dlen - 1] == 0) dlen--; dest->nlimbs = dlen; dest->limbs = dp; } return dest->limbs; } /* Compute the quotient of a bignum a >= 0 and a bignum b > 0. a is written as a = q * b + r with 0 <= r < b. q is the quotient, r the remainder. Finally, round-to-even is performed: If r > b/2 or if r = b/2 and q is odd, q is incremented. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * divide (mpn_t a, mpn_t b, mpn_t *q) { /* Algorithm: First normalise a and b: a=[a[m-1],...,a[0]], b=[b[n-1],...,b[0]] with m>=0 and n>0 (in base beta = 2^GMP_LIMB_BITS). If m=n=1, perform a single-precision division: r:=0, j:=m, while j>0 do {Here (q[m-1]*beta^(m-1)+...+q[j]*beta^j) * b[0] + r*beta^j = = a[m-1]*beta^(m-1)+...+a[j]*beta^j und 0<=r=n>1, perform a multiple-precision division: We have a/b < beta^(m-n+1). s:=intDsize-1-(highest bit in b[n-1]), 0<=s=beta/2. For j=m-n,...,0: {Here 0 <= r < b*beta^(j+1).} Compute q* : q* := floor((r[j+n]*beta+r[j+n-1])/b[n-1]). In case of overflow (q* >= beta) set q* := beta-1. Compute c2 := ((r[j+n]*beta+r[j+n-1]) - q* * b[n-1])*beta + r[j+n-2] and c3 := b[n-2] * q*. {We have 0 <= c2 < 2*beta^2, even 0 <= c2 < beta^2 if no overflow occurred. Furthermore 0 <= c3 < beta^2. If there was overflow and r[j+n]*beta+r[j+n-1] - q* * b[n-1] >= beta, i.e. c2 >= beta^2, the next test can be skipped.} While c3 > c2, {Here 0 <= c2 < c3 < beta^2} Put q* := q* - 1, c2 := c2 + b[n-1]*beta, c3 := c3 - b[n-2]. If q* > 0: Put r := r - b * q* * beta^j. In detail: [r[n+j],...,r[j]] := [r[n+j],...,r[j]] - q* * [b[n-1],...,b[0]]. hence: u:=0, for i:=0 to n-1 do u := u + q* * b[i], r[j+i]:=r[j+i]-(u mod beta) (+ beta, if carry), u:=u div beta (+ 1, if carry in subtraction) r[n+j]:=r[n+j]-u. {Since always u = (q* * [b[i-1],...,b[0]] div beta^i) + 1 < q* + 1 <= beta, the carry u does not overflow.} If a negative carry occurs, put q* := q* - 1 and [r[n+j],...,r[j]] := [r[n+j],...,r[j]] + [0,b[n-1],...,b[0]]. Set q[j] := q*. Normalise [q[m-n],..,q[0]]; this yields the quotient q. Shift [r[n-1],...,r[0]] right by s bits and normalise; this yields the rest r. The room for q[j] can be allocated at the memory location of r[n+j]. Finally, round-to-even: Shift r left by 1 bit. If r > b or if r = b and q[0] is odd, q := q+1. */ const mp_limb_t *a_ptr = a.limbs; size_t a_len = a.nlimbs; const mp_limb_t *b_ptr = b.limbs; size_t b_len = b.nlimbs; mp_limb_t *roomptr; mp_limb_t *tmp_roomptr = NULL; mp_limb_t *q_ptr; size_t q_len; mp_limb_t *r_ptr; size_t r_len; /* Allocate room for a_len+2 digits. (Need a_len+1 digits for the real division and 1 more digit for the final rounding of q.) */ roomptr = (mp_limb_t *) malloc ((a_len + 2) * sizeof (mp_limb_t)); if (roomptr == NULL) return NULL; /* Normalise a. */ while (a_len > 0 && a_ptr[a_len - 1] == 0) a_len--; /* Normalise b. */ for (;;) { if (b_len == 0) /* Division by zero. */ abort (); if (b_ptr[b_len - 1] == 0) b_len--; else break; } /* Here m = a_len >= 0 and n = b_len > 0. */ if (a_len < b_len) { /* m beta^(m-2) <= a/b < beta^m */ r_ptr = roomptr; q_ptr = roomptr + 1; { mp_limb_t den = b_ptr[0]; mp_limb_t remainder = 0; const mp_limb_t *sourceptr = a_ptr + a_len; mp_limb_t *destptr = q_ptr + a_len; size_t count; for (count = a_len; count > 0; count--) { mp_twolimb_t num = ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--sourceptr; *--destptr = num / den; remainder = num % den; } /* Normalise and store r. */ if (remainder > 0) { r_ptr[0] = remainder; r_len = 1; } else r_len = 0; /* Normalise q. */ q_len = a_len; if (q_ptr[q_len - 1] == 0) q_len--; } } else { /* n>1: multiple precision division. beta^(m-1) <= a < beta^m, beta^(n-1) <= b < beta^n ==> beta^(m-n-1) <= a/b < beta^(m-n+1). */ /* Determine s. */ size_t s; { mp_limb_t msd = b_ptr[b_len - 1]; /* = b[n-1], > 0 */ s = 31; if (msd >= 0x10000) { msd = msd >> 16; s -= 16; } if (msd >= 0x100) { msd = msd >> 8; s -= 8; } if (msd >= 0x10) { msd = msd >> 4; s -= 4; } if (msd >= 0x4) { msd = msd >> 2; s -= 2; } if (msd >= 0x2) { msd = msd >> 1; s -= 1; } } /* 0 <= s < GMP_LIMB_BITS. Copy b, shifting it left by s bits. */ if (s > 0) { tmp_roomptr = (mp_limb_t *) malloc (b_len * sizeof (mp_limb_t)); if (tmp_roomptr == NULL) { free (roomptr); return NULL; } { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = tmp_roomptr; mp_twolimb_t accu = 0; size_t count; for (count = b_len; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } /* accu must be zero, since that was how s was determined. */ if (accu != 0) abort (); } b_ptr = tmp_roomptr; } /* Copy a, shifting it left by s bits, yields r. Memory layout: At the beginning: r = roomptr[0..a_len], at the end: r = roomptr[0..b_len-1], q = roomptr[b_len..a_len] */ r_ptr = roomptr; if (s == 0) { memcpy (r_ptr, a_ptr, a_len * sizeof (mp_limb_t)); r_ptr[a_len] = 0; } else { const mp_limb_t *sourceptr = a_ptr; mp_limb_t *destptr = r_ptr; mp_twolimb_t accu = 0; size_t count; for (count = a_len; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } *destptr++ = (mp_limb_t) accu; } q_ptr = roomptr + b_len; q_len = a_len - b_len + 1; /* q will have m-n+1 limbs */ { size_t j = a_len - b_len; /* m-n */ mp_limb_t b_msd = b_ptr[b_len - 1]; /* b[n-1] */ mp_limb_t b_2msd = b_ptr[b_len - 2]; /* b[n-2] */ mp_twolimb_t b_msdd = /* b[n-1]*beta+b[n-2] */ ((mp_twolimb_t) b_msd << GMP_LIMB_BITS) | b_2msd; /* Division loop, traversed m-n+1 times. j counts down, b is unchanged, beta/2 <= b[n-1] < beta. */ for (;;) { mp_limb_t q_star; mp_limb_t c1; if (r_ptr[j + b_len] < b_msd) /* r[j+n] < b[n-1] ? */ { /* Divide r[j+n]*beta+r[j+n-1] by b[n-1], no overflow. */ mp_twolimb_t num = ((mp_twolimb_t) r_ptr[j + b_len] << GMP_LIMB_BITS) | r_ptr[j + b_len - 1]; q_star = num / b_msd; c1 = num % b_msd; } else { /* Overflow, hence r[j+n]*beta+r[j+n-1] >= beta*b[n-1]. */ q_star = (mp_limb_t)~(mp_limb_t)0; /* q* = beta-1 */ /* Test whether r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] >= beta <==> r[j+n]*beta+r[j+n-1] + b[n-1] >= beta*b[n-1]+beta <==> b[n-1] < floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) {<= beta !}. If yes, jump directly to the subtraction loop. (Otherwise, r[j+n]*beta+r[j+n-1] - (beta-1)*b[n-1] < beta <==> floor((r[j+n]*beta+r[j+n-1]+b[n-1])/beta) = b[n-1] ) */ if (r_ptr[j + b_len] > b_msd || (c1 = r_ptr[j + b_len - 1] + b_msd) < b_msd) /* r[j+n] >= b[n-1]+1 or r[j+n] = b[n-1] and the addition r[j+n-1]+b[n-1] gives a carry. */ goto subtract; } /* q_star = q*, c1 = (r[j+n]*beta+r[j+n-1]) - q* * b[n-1] (>=0, 0, decrease it by b[n-1]*beta+b[n-2]. Because of b[n-1]*beta+b[n-2] >= beta^2/2 this can happen only twice. */ if (c3 > c2) { q_star = q_star - 1; /* q* := q* - 1 */ if (c3 - c2 > b_msdd) q_star = q_star - 1; /* q* := q* - 1 */ } } if (q_star > 0) subtract: { /* Subtract r := r - b * q* * beta^j. */ mp_limb_t cr; { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = r_ptr + j; mp_twolimb_t carry = 0; size_t count; for (count = b_len; count > 0; count--) { /* Here 0 <= carry <= q*. */ carry = carry + (mp_twolimb_t) q_star * (mp_twolimb_t) *sourceptr++ + (mp_limb_t) ~(*destptr); /* Here 0 <= carry <= beta*q* + beta-1. */ *destptr++ = ~(mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; /* <= q* */ } cr = (mp_limb_t) carry; } /* Subtract cr from r_ptr[j + b_len], then forget about r_ptr[j + b_len]. */ if (cr > r_ptr[j + b_len]) { /* Subtraction gave a carry. */ q_star = q_star - 1; /* q* := q* - 1 */ /* Add b back. */ { const mp_limb_t *sourceptr = b_ptr; mp_limb_t *destptr = r_ptr + j; mp_limb_t carry = 0; size_t count; for (count = b_len; count > 0; count--) { mp_limb_t source1 = *sourceptr++; mp_limb_t source2 = *destptr; *destptr++ = source1 + source2 + carry; carry = (carry ? source1 >= (mp_limb_t) ~source2 : source1 > (mp_limb_t) ~source2); } } /* Forget about the carry and about r[j+n]. */ } } /* q* is determined. Store it as q[j]. */ q_ptr[j] = q_star; if (j == 0) break; j--; } } r_len = b_len; /* Normalise q. */ if (q_ptr[q_len - 1] == 0) q_len--; # if 0 /* Not needed here, since we need r only to compare it with b/2, and b is shifted left by s bits. */ /* Shift r right by s bits. */ if (s > 0) { mp_limb_t ptr = r_ptr + r_len; mp_twolimb_t accu = 0; size_t count; for (count = r_len; count > 0; count--) { accu = (mp_twolimb_t) (mp_limb_t) accu << GMP_LIMB_BITS; accu += (mp_twolimb_t) *--ptr << (GMP_LIMB_BITS - s); *ptr = (mp_limb_t) (accu >> GMP_LIMB_BITS); } } # endif /* Normalise r. */ while (r_len > 0 && r_ptr[r_len - 1] == 0) r_len--; } /* Compare r << 1 with b. */ if (r_len > b_len) goto increment_q; { size_t i; for (i = b_len;;) { mp_limb_t r_i = (i <= r_len && i > 0 ? r_ptr[i - 1] >> (GMP_LIMB_BITS - 1) : 0) | (i < r_len ? r_ptr[i] << 1 : 0); mp_limb_t b_i = (i < b_len ? b_ptr[i] : 0); if (r_i > b_i) goto increment_q; if (r_i < b_i) goto keep_q; if (i == 0) break; i--; } } if (q_len > 0 && ((q_ptr[0] & 1) != 0)) /* q is odd. */ increment_q: { size_t i; for (i = 0; i < q_len; i++) if (++(q_ptr[i]) != 0) goto keep_q; q_ptr[q_len++] = 1; } keep_q: if (tmp_roomptr != NULL) free (tmp_roomptr); q->limbs = q_ptr; q->nlimbs = q_len; return roomptr; } /* Convert a bignum a >= 0, multiplied with 10^extra_zeroes, to decimal representation. Destroys the contents of a. Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * convert_to_decimal (mpn_t a, size_t extra_zeroes) { mp_limb_t *a_ptr = a.limbs; size_t a_len = a.nlimbs; /* 0.03345 is slightly larger than log(2)/(9*log(10)). */ size_t c_len = 9 * ((size_t)(a_len * (GMP_LIMB_BITS * 0.03345f)) + 1); char *c_ptr = (char *) malloc (xsum (c_len, extra_zeroes)); if (c_ptr != NULL) { char *d_ptr = c_ptr; for (; extra_zeroes > 0; extra_zeroes--) *d_ptr++ = '0'; while (a_len > 0) { /* Divide a by 10^9, in-place. */ mp_limb_t remainder = 0; mp_limb_t *ptr = a_ptr + a_len; size_t count; for (count = a_len; count > 0; count--) { mp_twolimb_t num = ((mp_twolimb_t) remainder << GMP_LIMB_BITS) | *--ptr; *ptr = num / 1000000000; remainder = num % 1000000000; } /* Store the remainder as 9 decimal digits. */ for (count = 9; count > 0; count--) { *d_ptr++ = '0' + (remainder % 10); remainder = remainder / 10; } /* Normalize a. */ if (a_ptr[a_len - 1] == 0) a_len--; } /* Remove leading zeroes. */ while (d_ptr > c_ptr && d_ptr[-1] == '0') d_ptr--; /* But keep at least one zero. */ if (d_ptr == c_ptr) *d_ptr++ = '0'; /* Terminate the string. */ *d_ptr = '\0'; } return c_ptr; } # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and >= 0: write x as x = 2^e * m, where m is a bignum. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * decode_long_double (long double x, int *ep, mpn_t *mp) { mpn_t m; int exp; long double y; size_t i; /* Allocate memory for result. */ m.nlimbs = (LDBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; m.limbs = (mp_limb_t *) malloc (m.nlimbs * sizeof (mp_limb_t)); if (m.limbs == NULL) return NULL; /* Split into exponential part and mantissa. */ y = frexpl (x, &exp); if (!(y >= 0.0L && y < 1.0L)) abort (); /* x = 2^exp * y = 2^(exp - LDBL_MANT_BIT) * (y * LDBL_MANT_BIT), and the latter is an integer. */ /* Convert the mantissa (y * LDBL_MANT_BIT) to a sequence of limbs. I'm not sure whether it's safe to cast a 'long double' value between 2^31 and 2^32 to 'unsigned int', therefore play safe and cast only 'long double' values between 0 and 2^16 (to 'unsigned int' or 'int', doesn't matter). */ # if (LDBL_MANT_BIT % GMP_LIMB_BITS) != 0 # if (LDBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % (GMP_LIMB_BITS / 2)); hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else { mp_limb_t d; y *= (mp_limb_t) 1 << (LDBL_MANT_BIT % GMP_LIMB_BITS); d = (int) y; y -= d; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[LDBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif # endif for (i = LDBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); hi = (int) y; y -= hi; if (!(y >= 0.0L && y < 1.0L)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0L && y < 1.0L)) abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } #if 0 /* On FreeBSD 6.1/x86, 'long double' numbers sometimes have excess precision. */ if (!(y == 0.0L)) abort (); #endif /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; *mp = m; *ep = exp - LDBL_MANT_BIT; return m.limbs; } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and >= 0: write x as x = 2^e * m, where m is a bignum. Return the allocated memory in case of success, NULL in case of memory allocation failure. */ static void * decode_double (double x, int *ep, mpn_t *mp) { mpn_t m; int exp; double y; size_t i; /* Allocate memory for result. */ m.nlimbs = (DBL_MANT_BIT + GMP_LIMB_BITS - 1) / GMP_LIMB_BITS; m.limbs = (mp_limb_t *) malloc (m.nlimbs * sizeof (mp_limb_t)); if (m.limbs == NULL) return NULL; /* Split into exponential part and mantissa. */ y = frexp (x, &exp); if (!(y >= 0.0 && y < 1.0)) abort (); /* x = 2^exp * y = 2^(exp - DBL_MANT_BIT) * (y * DBL_MANT_BIT), and the latter is an integer. */ /* Convert the mantissa (y * DBL_MANT_BIT) to a sequence of limbs. I'm not sure whether it's safe to cast a 'double' value between 2^31 and 2^32 to 'unsigned int', therefore play safe and cast only 'double' values between 0 and 2^16 (to 'unsigned int' or 'int', doesn't matter). */ # if (DBL_MANT_BIT % GMP_LIMB_BITS) != 0 # if (DBL_MANT_BIT % GMP_LIMB_BITS) > GMP_LIMB_BITS / 2 { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (DBL_MANT_BIT % (GMP_LIMB_BITS / 2)); hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = (hi << (GMP_LIMB_BITS / 2)) | lo; } # else { mp_limb_t d; y *= (mp_limb_t) 1 << (DBL_MANT_BIT % GMP_LIMB_BITS); d = (int) y; y -= d; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[DBL_MANT_BIT / GMP_LIMB_BITS] = d; } # endif # endif for (i = DBL_MANT_BIT / GMP_LIMB_BITS; i > 0; ) { mp_limb_t hi, lo; y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); hi = (int) y; y -= hi; if (!(y >= 0.0 && y < 1.0)) abort (); y *= (mp_limb_t) 1 << (GMP_LIMB_BITS / 2); lo = (int) y; y -= lo; if (!(y >= 0.0 && y < 1.0)) abort (); m.limbs[--i] = (hi << (GMP_LIMB_BITS / 2)) | lo; } if (!(y == 0.0)) abort (); /* Normalise. */ while (m.nlimbs > 0 && m.limbs[m.nlimbs - 1] == 0) m.nlimbs--; *mp = m; *ep = exp - DBL_MANT_BIT; return m.limbs; } # endif /* Assuming x = 2^e * m is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_decoded (int e, mpn_t m, void *memory, int n) { int s; size_t extra_zeroes; unsigned int abs_n; unsigned int abs_s; mp_limb_t *pow5_ptr; size_t pow5_len; unsigned int s_limbs; unsigned int s_bits; mpn_t pow5; mpn_t z; void *z_memory; char *digits; if (memory == NULL) return NULL; /* x = 2^e * m, hence y = round (2^e * 10^n * m) = round (2^(e+n) * 5^n * m) = round (2^s * 5^n * m). */ s = e + n; extra_zeroes = 0; /* Factor out a common power of 10 if possible. */ if (s > 0 && n > 0) { extra_zeroes = (s < n ? s : n); s -= extra_zeroes; n -= extra_zeroes; } /* Here y = round (2^s * 5^n * m) * 10^extra_zeroes. Before converting to decimal, we need to compute z = round (2^s * 5^n * m). */ /* Compute 5^|n|, possibly shifted by |s| bits if n and s have the same sign. 2.322 is slightly larger than log(5)/log(2). */ abs_n = (n >= 0 ? n : -n); abs_s = (s >= 0 ? s : -s); pow5_ptr = (mp_limb_t *) malloc (((int)(abs_n * (2.322f / GMP_LIMB_BITS)) + 1 + abs_s / GMP_LIMB_BITS + 1) * sizeof (mp_limb_t)); if (pow5_ptr == NULL) { free (memory); return NULL; } /* Initialize with 1. */ pow5_ptr[0] = 1; pow5_len = 1; /* Multiply with 5^|n|. */ if (abs_n > 0) { static mp_limb_t const small_pow5[13 + 1] = { 1, 5, 25, 125, 625, 3125, 15625, 78125, 390625, 1953125, 9765625, 48828125, 244140625, 1220703125 }; unsigned int n13; for (n13 = 0; n13 <= abs_n; n13 += 13) { mp_limb_t digit1 = small_pow5[n13 + 13 <= abs_n ? 13 : abs_n - n13]; size_t j; mp_twolimb_t carry = 0; for (j = 0; j < pow5_len; j++) { mp_limb_t digit2 = pow5_ptr[j]; carry += (mp_twolimb_t) digit1 * (mp_twolimb_t) digit2; pow5_ptr[j] = (mp_limb_t) carry; carry = carry >> GMP_LIMB_BITS; } if (carry > 0) pow5_ptr[pow5_len++] = (mp_limb_t) carry; } } s_limbs = abs_s / GMP_LIMB_BITS; s_bits = abs_s % GMP_LIMB_BITS; if (n >= 0 ? s >= 0 : s <= 0) { /* Multiply with 2^|s|. */ if (s_bits > 0) { mp_limb_t *ptr = pow5_ptr; mp_twolimb_t accu = 0; size_t count; for (count = pow5_len; count > 0; count--) { accu += (mp_twolimb_t) *ptr << s_bits; *ptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } if (accu > 0) { *ptr = (mp_limb_t) accu; pow5_len++; } } if (s_limbs > 0) { size_t count; for (count = pow5_len; count > 0;) { count--; pow5_ptr[s_limbs + count] = pow5_ptr[count]; } for (count = s_limbs; count > 0;) { count--; pow5_ptr[count] = 0; } pow5_len += s_limbs; } pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) { /* Multiply m with pow5. No division needed. */ z_memory = multiply (m, pow5, &z); } else { /* Divide m by pow5 and round. */ z_memory = divide (m, pow5, &z); } } else { pow5.limbs = pow5_ptr; pow5.nlimbs = pow5_len; if (n >= 0) { /* n >= 0, s < 0. Multiply m with pow5, then divide by 2^|s|. */ mpn_t numerator; mpn_t denominator; void *tmp_memory; tmp_memory = multiply (m, pow5, &numerator); if (tmp_memory == NULL) { free (pow5_ptr); free (memory); return NULL; } /* Construct 2^|s|. */ { mp_limb_t *ptr = pow5_ptr + pow5_len; size_t i; for (i = 0; i < s_limbs; i++) ptr[i] = 0; ptr[s_limbs] = (mp_limb_t) 1 << s_bits; denominator.limbs = ptr; denominator.nlimbs = s_limbs + 1; } z_memory = divide (numerator, denominator, &z); free (tmp_memory); } else { /* n < 0, s > 0. Multiply m with 2^s, then divide by pow5. */ mpn_t numerator; mp_limb_t *num_ptr; num_ptr = (mp_limb_t *) malloc ((m.nlimbs + s_limbs + 1) * sizeof (mp_limb_t)); if (num_ptr == NULL) { free (pow5_ptr); free (memory); return NULL; } { mp_limb_t *destptr = num_ptr; { size_t i; for (i = 0; i < s_limbs; i++) *destptr++ = 0; } if (s_bits > 0) { const mp_limb_t *sourceptr = m.limbs; mp_twolimb_t accu = 0; size_t count; for (count = m.nlimbs; count > 0; count--) { accu += (mp_twolimb_t) *sourceptr++ << s_bits; *destptr++ = (mp_limb_t) accu; accu = accu >> GMP_LIMB_BITS; } if (accu > 0) *destptr++ = (mp_limb_t) accu; } else { const mp_limb_t *sourceptr = m.limbs; size_t count; for (count = m.nlimbs; count > 0; count--) *destptr++ = *sourceptr++; } numerator.limbs = num_ptr; numerator.nlimbs = destptr - num_ptr; } z_memory = divide (numerator, pow5, &z); free (num_ptr); } } free (pow5_ptr); free (memory); /* Here y = round (x * 10^n) = z * 10^extra_zeroes. */ if (z_memory == NULL) return NULL; digits = convert_to_decimal (z, extra_zeroes); free (z_memory); return digits; } # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_long_double (long double x, int n) { int e IF_LINT(= 0); mpn_t m; void *memory = decode_long_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and >= 0, and n is an integer: Returns the decimal representation of round (x * 10^n). Return the allocated memory - containing the decimal digits in low-to-high order, terminated with a NUL character - in case of success, NULL in case of memory allocation failure. */ static char * scale10_round_decimal_double (double x, int n) { int e IF_LINT(= 0); mpn_t m; void *memory = decode_double (x, &e, &m); return scale10_round_decimal_decoded (e, m, memory, n); } # endif # if NEED_PRINTF_LONG_DOUBLE /* Assuming x is finite and > 0: Return an approximation for n with 10^n <= x < 10^(n+1). The approximation is usually the right n, but may be off by 1 sometimes. */ static int floorlog10l (long double x) { int exp; long double y; double z; double l; /* Split into exponential part and mantissa. */ y = frexpl (x, &exp); if (!(y >= 0.0L && y < 1.0L)) abort (); if (y == 0.0L) return INT_MIN; if (y < 0.5L) { while (y < (1.0L / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) { y *= 1.0L * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); exp -= GMP_LIMB_BITS; } if (y < (1.0L / (1 << 16))) { y *= 1.0L * (1 << 16); exp -= 16; } if (y < (1.0L / (1 << 8))) { y *= 1.0L * (1 << 8); exp -= 8; } if (y < (1.0L / (1 << 4))) { y *= 1.0L * (1 << 4); exp -= 4; } if (y < (1.0L / (1 << 2))) { y *= 1.0L * (1 << 2); exp -= 2; } if (y < (1.0L / (1 << 1))) { y *= 1.0L * (1 << 1); exp -= 1; } } if (!(y >= 0.5L && y < 1.0L)) abort (); /* Compute an approximation for l = log2(x) = exp + log2(y). */ l = exp; z = y; if (z < 0.70710678118654752444) { z *= 1.4142135623730950488; l -= 0.5; } if (z < 0.8408964152537145431) { z *= 1.1892071150027210667; l -= 0.25; } if (z < 0.91700404320467123175) { z *= 1.0905077326652576592; l -= 0.125; } if (z < 0.9576032806985736469) { z *= 1.0442737824274138403; l -= 0.0625; } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; /* Round down to the next integer. */ return (int) l + (l < 0 ? -1 : 0); } # endif # if NEED_PRINTF_DOUBLE /* Assuming x is finite and > 0: Return an approximation for n with 10^n <= x < 10^(n+1). The approximation is usually the right n, but may be off by 1 sometimes. */ static int floorlog10 (double x) { int exp; double y; double z; double l; /* Split into exponential part and mantissa. */ y = frexp (x, &exp); if (!(y >= 0.0 && y < 1.0)) abort (); if (y == 0.0) return INT_MIN; if (y < 0.5) { while (y < (1.0 / (1 << (GMP_LIMB_BITS / 2)) / (1 << (GMP_LIMB_BITS / 2)))) { y *= 1.0 * (1 << (GMP_LIMB_BITS / 2)) * (1 << (GMP_LIMB_BITS / 2)); exp -= GMP_LIMB_BITS; } if (y < (1.0 / (1 << 16))) { y *= 1.0 * (1 << 16); exp -= 16; } if (y < (1.0 / (1 << 8))) { y *= 1.0 * (1 << 8); exp -= 8; } if (y < (1.0 / (1 << 4))) { y *= 1.0 * (1 << 4); exp -= 4; } if (y < (1.0 / (1 << 2))) { y *= 1.0 * (1 << 2); exp -= 2; } if (y < (1.0 / (1 << 1))) { y *= 1.0 * (1 << 1); exp -= 1; } } if (!(y >= 0.5 && y < 1.0)) abort (); /* Compute an approximation for l = log2(x) = exp + log2(y). */ l = exp; z = y; if (z < 0.70710678118654752444) { z *= 1.4142135623730950488; l -= 0.5; } if (z < 0.8408964152537145431) { z *= 1.1892071150027210667; l -= 0.25; } if (z < 0.91700404320467123175) { z *= 1.0905077326652576592; l -= 0.125; } if (z < 0.9576032806985736469) { z *= 1.0442737824274138403; l -= 0.0625; } /* Now 0.95 <= z <= 1.01. */ z = 1 - z; /* log2(1-z) = 1/log(2) * (- z - z^2/2 - z^3/3 - z^4/4 - ...) Four terms are enough to get an approximation with error < 10^-7. */ l -= 1.4426950408889634074 * z * (1.0 + z * (0.5 + z * ((1.0 / 3) + z * 0.25))); /* Finally multiply with log(2)/log(10), yields an approximation for log10(x). */ l *= 0.30102999566398119523; /* Round down to the next integer. */ return (int) l + (l < 0 ? -1 : 0); } # endif /* Tests whether a string of digits consists of exactly PRECISION zeroes and a single '1' digit. */ static int is_borderline (const char *digits, size_t precision) { for (; precision > 0; precision--, digits++) if (*digits != '0') return 0; if (*digits != '1') return 0; digits++; return *digits == '\0'; } #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 /* Use a different function name, to make it possible that the 'wchar_t' parametrization and the 'char' parametrization get compiled in the same translation unit. */ # if WIDE_CHAR_VERSION # define MAX_ROOM_NEEDED wmax_room_needed # else # define MAX_ROOM_NEEDED max_room_needed # endif /* Returns the number of TCHAR_T units needed as temporary space for the result of sprintf or SNPRINTF of a single conversion directive. */ static inline size_t MAX_ROOM_NEEDED (const arguments *ap, size_t arg_index, FCHAR_T conversion, arg_type type, int flags, size_t width, int has_precision, size_t precision, int pad_ourselves) { size_t tmp_length; switch (conversion) { case 'd': case 'i': case 'u': # if HAVE_LONG_LONG_INT if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ else # endif if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.30103 /* binary -> decimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Multiply by 2, as an estimate for FLAG_GROUP. */ tmp_length = xsum (tmp_length, tmp_length); /* Add 1, to account for a leading sign. */ tmp_length = xsum (tmp_length, 1); break; case 'o': # if HAVE_LONG_LONG_INT if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ else # endif if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.333334 /* binary -> octal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Add 1, to account for a leading sign. */ tmp_length = xsum (tmp_length, 1); break; case 'x': case 'X': # if HAVE_LONG_LONG_INT if (type == TYPE_LONGLONGINT || type == TYPE_ULONGLONGINT) tmp_length = (unsigned int) (sizeof (unsigned long long) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ else # endif if (type == TYPE_LONGINT || type == TYPE_ULONGINT) tmp_length = (unsigned int) (sizeof (unsigned long) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (sizeof (unsigned int) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Add 2, to account for a leading sign or alternate form. */ tmp_length = xsum (tmp_length, 2); break; case 'f': case 'F': if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) (LDBL_MAX_EXP * 0.30103 /* binary -> decimal */ * 2 /* estimate for FLAG_GROUP */ ) + 1 /* turn floor into ceil */ + 10; /* sign, decimal point etc. */ else tmp_length = (unsigned int) (DBL_MAX_EXP * 0.30103 /* binary -> decimal */ * 2 /* estimate for FLAG_GROUP */ ) + 1 /* turn floor into ceil */ + 10; /* sign, decimal point etc. */ tmp_length = xsum (tmp_length, precision); break; case 'e': case 'E': case 'g': case 'G': tmp_length = 12; /* sign, decimal point, exponent etc. */ tmp_length = xsum (tmp_length, precision); break; case 'a': case 'A': if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) (LDBL_DIG * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) (DBL_DIG * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); break; case 'c': # if HAVE_WINT_T && !WIDE_CHAR_VERSION if (type == TYPE_WIDE_CHAR) tmp_length = MB_CUR_MAX; else # endif tmp_length = 1; break; case 's': # if HAVE_WCHAR_T if (type == TYPE_WIDE_STRING) { # if WIDE_CHAR_VERSION /* ISO C says about %ls in fwprintf: "If the precision is not specified or is greater than the size of the array, the array shall contain a null wide character." So if there is a precision, we must not use wcslen. */ const wchar_t *arg = ap->arg[arg_index].a.a_wide_string; if (has_precision) tmp_length = local_wcsnlen (arg, precision); else tmp_length = local_wcslen (arg); # else /* ISO C says about %ls in fprintf: "If a precision is specified, no more than that many bytes are written (including shift sequences, if any), and the array shall contain a null wide character if, to equal the multibyte character sequence length given by the precision, the function would need to access a wide character one past the end of the array." So if there is a precision, we must not use wcslen. */ /* This case has already been handled separately in VASNPRINTF. */ abort (); # endif } else # endif { # if WIDE_CHAR_VERSION /* ISO C says about %s in fwprintf: "If the precision is not specified or is greater than the size of the converted array, the converted array shall contain a null wide character." So if there is a precision, we must not use strlen. */ /* This case has already been handled separately in VASNPRINTF. */ abort (); # else /* ISO C says about %s in fprintf: "If the precision is not specified or greater than the size of the array, the array shall contain a null character." So if there is a precision, we must not use strlen. */ const char *arg = ap->arg[arg_index].a.a_string; if (has_precision) tmp_length = local_strnlen (arg, precision); else tmp_length = strlen (arg); # endif } break; case 'p': tmp_length = (unsigned int) (sizeof (void *) * CHAR_BIT * 0.25 /* binary -> hexadecimal */ ) + 1 /* turn floor into ceil */ + 2; /* account for leading 0x */ break; default: abort (); } if (!pad_ourselves) { # if ENABLE_UNISTDIO /* Padding considers the number of characters, therefore the number of elements after padding may be > max (tmp_length, width) but is certainly <= tmp_length + width. */ tmp_length = xsum (tmp_length, width); # else /* Padding considers the number of elements, says POSIX. */ if (tmp_length < width) tmp_length = width; # endif } tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ return tmp_length; } #endif DCHAR_T * VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, const FCHAR_T *format, va_list args) { DIRECTIVES d; arguments a; if (PRINTF_PARSE (format, &d, &a) < 0) /* errno is already set. */ return NULL; #define CLEANUP() \ free (d.dir); \ if (a.arg) \ free (a.arg); if (PRINTF_FETCHARGS (args, &a) < 0) { CLEANUP (); errno = EINVAL; return NULL; } { size_t buf_neededlength; TCHAR_T *buf; TCHAR_T *buf_malloced; const FCHAR_T *cp; size_t i; DIRECTIVE *dp; /* Output string accumulator. */ DCHAR_T *result; size_t allocated; size_t length; /* Allocate a small buffer that will hold a directive passed to sprintf or snprintf. */ buf_neededlength = xsum4 (7, d.max_width_length, d.max_precision_length, 6); #if HAVE_ALLOCA if (buf_neededlength < 4000 / sizeof (TCHAR_T)) { buf = (TCHAR_T *) alloca (buf_neededlength * sizeof (TCHAR_T)); buf_malloced = NULL; } else #endif { size_t buf_memsize = xtimes (buf_neededlength, sizeof (TCHAR_T)); if (size_overflow_p (buf_memsize)) goto out_of_memory_1; buf = (TCHAR_T *) malloc (buf_memsize); if (buf == NULL) goto out_of_memory_1; buf_malloced = buf; } if (resultbuf != NULL) { result = resultbuf; allocated = *lengthp; } else { result = NULL; allocated = 0; } length = 0; /* Invariants: result is either == resultbuf or == NULL or malloc-allocated. If length > 0, then result != NULL. */ /* Ensures that allocated >= needed. Aborts through a jump to out_of_memory if needed is SIZE_MAX or otherwise too big. */ #define ENSURE_ALLOCATION(needed) \ if ((needed) > allocated) \ { \ size_t memory_size; \ DCHAR_T *memory; \ \ allocated = (allocated > 0 ? xtimes (allocated, 2) : 12); \ if ((needed) > allocated) \ allocated = (needed); \ memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ if (size_overflow_p (memory_size)) \ goto out_of_memory; \ if (result == resultbuf || result == NULL) \ memory = (DCHAR_T *) malloc (memory_size); \ else \ memory = (DCHAR_T *) realloc (result, memory_size); \ if (memory == NULL) \ goto out_of_memory; \ if (result == resultbuf && length > 0) \ DCHAR_CPY (memory, result, length); \ result = memory; \ } for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) { if (cp != dp->dir_start) { size_t n = dp->dir_start - cp; size_t augmented_length = xsum (length, n); ENSURE_ALLOCATION (augmented_length); /* This copies a piece of FCHAR_T[] into a DCHAR_T[]. Here we need that the format string contains only ASCII characters if FCHAR_T and DCHAR_T are not the same type. */ if (sizeof (FCHAR_T) == sizeof (DCHAR_T)) { DCHAR_CPY (result + length, (const DCHAR_T *) cp, n); length = augmented_length; } else { do result[length++] = (unsigned char) *cp++; while (--n > 0); } } if (i == d.count) break; /* Execute a single directive. */ if (dp->conversion == '%') { size_t augmented_length; if (!(dp->arg_index == ARG_NONE)) abort (); augmented_length = xsum (length, 1); ENSURE_ALLOCATION (augmented_length); result[length] = '%'; length = augmented_length; } else { if (!(dp->arg_index != ARG_NONE)) abort (); if (dp->conversion == 'n') { switch (a.arg[dp->arg_index].type) { case TYPE_COUNT_SCHAR_POINTER: *a.arg[dp->arg_index].a.a_count_schar_pointer = length; break; case TYPE_COUNT_SHORT_POINTER: *a.arg[dp->arg_index].a.a_count_short_pointer = length; break; case TYPE_COUNT_INT_POINTER: *a.arg[dp->arg_index].a.a_count_int_pointer = length; break; case TYPE_COUNT_LONGINT_POINTER: *a.arg[dp->arg_index].a.a_count_longint_pointer = length; break; #if HAVE_LONG_LONG_INT case TYPE_COUNT_LONGLONGINT_POINTER: *a.arg[dp->arg_index].a.a_count_longlongint_pointer = length; break; #endif default: abort (); } } #if ENABLE_UNISTDIO /* The unistdio extensions. */ else if (dp->conversion == 'U') { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } switch (type) { case TYPE_U8_STRING: { const uint8_t *arg = a.arg[dp->arg_index].a.a_u8_string; const uint8_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u8_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u8_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u8_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (has_width && width > characters && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT8_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-8 to locale encoding. */ converted = u8_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-8 to UTF-16/UTF-32. */ converted = U8_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) { int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } if (converted != result + length) { ENSURE_ALLOCATION (xsum (length, converted_len)); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (has_width && width > characters && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; case TYPE_U16_STRING: { const uint16_t *arg = a.arg[dp->arg_index].a.a_u16_string; const uint16_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u16_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u16_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u16_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (has_width && width > characters && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT16_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-16 to locale encoding. */ converted = u16_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-16 to UTF-8/UTF-32. */ converted = U16_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) { int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } if (converted != result + length) { ENSURE_ALLOCATION (xsum (length, converted_len)); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (has_width && width > characters && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; case TYPE_U32_STRING: { const uint32_t *arg = a.arg[dp->arg_index].a.a_u32_string; const uint32_t *arg_end; size_t characters; if (has_precision) { /* Use only PRECISION characters, from the left. */ arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count = u32_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of characters. */ arg_end = arg; characters = 0; for (;;) { int count = u32_strmblen (arg_end); if (count == 0) break; if (count < 0) { if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + u32_strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (has_width && width > characters && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_UINT32_T { size_t n = arg_end - arg; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_CPY (result + length, arg, n); length += n; } # else { /* Convert. */ DCHAR_T *converted = result + length; size_t converted_len = allocated - length; # if DCHAR_IS_TCHAR /* Convert from UTF-32 to locale encoding. */ converted = u32_conv_to_encoding (locale_charset (), iconveh_question_mark, arg, arg_end - arg, NULL, converted, &converted_len); # else /* Convert from UTF-32 to UTF-8/UTF-16. */ converted = U32_TO_DCHAR (arg, arg_end - arg, converted, &converted_len); # endif if (converted == NULL) { int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } if (converted != result + length) { ENSURE_ALLOCATION (xsum (length, converted_len)); DCHAR_CPY (result + length, converted, converted_len); free (converted); } length += converted_len; } # endif if (has_width && width > characters && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } break; default: abort (); } } #endif #if (!USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || (NEED_PRINTF_DIRECTIVE_LS && !defined IN_LIBINTL)) && HAVE_WCHAR_T else if (dp->conversion == 's' # if WIDE_CHAR_VERSION && a.arg[dp->arg_index].type != TYPE_WIDE_STRING # else && a.arg[dp->arg_index].type == TYPE_WIDE_STRING # endif ) { /* The normal handling of the 's' directive below requires allocating a temporary buffer. The determination of its length (tmp_length), in the case when a precision is specified, below requires a conversion between a char[] string and a wchar_t[] wide string. It could be done, but we have no guarantee that the implementation of sprintf will use the exactly same algorithm. Without this guarantee, it is possible to have buffer overrun bugs. In order to avoid such bugs, we implement the entire processing of the 's' directive ourselves. */ int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 6; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } # if WIDE_CHAR_VERSION /* %s in vasnwprintf. See the specification of fwprintf. */ { const char *arg = a.arg[dp->arg_index].a.a_string; const char *arg_end; size_t characters; if (has_precision) { /* Use only as many bytes as needed to produce PRECISION wide characters, from the left. */ # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (; precision > 0; precision--) { int count; # if HAVE_MBRTOWC count = mbrlen (arg_end, MB_CUR_MAX, &state); # else count = mblen (arg_end, MB_CUR_MAX); # endif if (count == 0) /* Found the terminating NUL. */ break; if (count < 0) { /* Invalid or incomplete multibyte character. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else if (has_width) { /* Use the entire string, and count the number of wide characters. */ # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (;;) { int count; # if HAVE_MBRTOWC count = mbrlen (arg_end, MB_CUR_MAX, &state); # else count = mblen (arg_end, MB_CUR_MAX); # endif if (count == 0) /* Found the terminating NUL. */ break; if (count < 0) { /* Invalid or incomplete multibyte character. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end += count; characters++; } } else { /* Use the entire string. */ arg_end = arg + strlen (arg); /* The number of characters doesn't matter. */ characters = 0; } if (has_width && width > characters && !(dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } if (has_precision || has_width) { /* We know the number of wide characters in advance. */ size_t remaining; # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif ENSURE_ALLOCATION (xsum (length, characters)); for (remaining = characters; remaining > 0; remaining--) { wchar_t wc; int count; # if HAVE_MBRTOWC count = mbrtowc (&wc, arg, arg_end - arg, &state); # else count = mbtowc (&wc, arg, arg_end - arg); # endif if (count <= 0) /* mbrtowc not consistent with mbrlen, or mbtowc not consistent with mblen. */ abort (); result[length++] = wc; arg += count; } if (!(arg == arg_end)) abort (); } else { # if HAVE_MBRTOWC mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif while (arg < arg_end) { wchar_t wc; int count; # if HAVE_MBRTOWC count = mbrtowc (&wc, arg, arg_end - arg, &state); # else count = mbtowc (&wc, arg, arg_end - arg); # endif if (count <= 0) /* mbrtowc not consistent with mbrlen, or mbtowc not consistent with mblen. */ abort (); ENSURE_ALLOCATION (xsum (length, 1)); result[length++] = wc; arg += count; } } if (has_width && width > characters && (dp->flags & FLAG_LEFT)) { size_t n = width - characters; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } # else /* %ls in vasnprintf. See the specification of fprintf. */ { const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; const wchar_t *arg_end; size_t characters; # if !DCHAR_IS_TCHAR /* This code assumes that TCHAR_T is 'char'. */ typedef int TCHAR_T_verify[2 * (sizeof (TCHAR_T) == 1) - 1]; TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t tmpdst_len; # endif size_t w; if (has_precision) { /* Use only as many wide characters as needed to produce at most PRECISION bytes, from the left. */ # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; while (precision > 0) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg_end == 0) /* Found the terminating null wide character. */ break; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg_end, &state); # else count = wctomb (cbuf, *arg_end); # endif if (count < 0) { /* Cannot convert. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } if (precision < count) break; arg_end++; characters += count; precision -= count; } } # if DCHAR_IS_TCHAR else if (has_width) # else else # endif { /* Use the entire string, and count the number of bytes. */ # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif arg_end = arg; characters = 0; for (;;) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg_end == 0) /* Found the terminating null wide character. */ break; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg_end, &state); # else count = wctomb (cbuf, *arg_end); # endif if (count < 0) { /* Cannot convert. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } arg_end++; characters += count; } } # if DCHAR_IS_TCHAR else { /* Use the entire string. */ arg_end = arg + local_wcslen (arg); /* The number of bytes doesn't matter. */ characters = 0; } # endif # if !DCHAR_IS_TCHAR /* Convert the string into a piece of temporary memory. */ tmpsrc = (TCHAR_T *) malloc (characters * sizeof (TCHAR_T)); if (tmpsrc == NULL) goto out_of_memory; { TCHAR_T *tmpptr = tmpsrc; size_t remaining; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif for (remaining = characters; remaining > 0; ) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg, &state); # else count = wctomb (cbuf, *arg); # endif if (count <= 0) /* Inconsistency. */ abort (); memcpy (tmpptr, cbuf, count); tmpptr += count; arg++; remaining -= count; } if (!(arg == arg_end)) abort (); } /* Convert from TCHAR_T[] to DCHAR_T[]. */ tmpdst = DCHAR_CONV_FROM_ENCODING (locale_charset (), iconveh_question_mark, tmpsrc, characters, NULL, NULL, &tmpdst_len); if (tmpdst == NULL) { int saved_errno = errno; free (tmpsrc); if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } free (tmpsrc); # endif if (has_width) { # if ENABLE_UNISTDIO /* Outside POSIX, it's preferrable to compare the width against the number of _characters_ of the converted value. */ w = DCHAR_MBSNLEN (result + length, characters); # else /* The width is compared against the number of _bytes_ of the converted value, says POSIX. */ w = characters; # endif } else /* w doesn't matter. */ w = 0; if (has_width && width > w && !(dp->flags & FLAG_LEFT)) { size_t n = width - w; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } # if DCHAR_IS_TCHAR if (has_precision || has_width) { /* We know the number of bytes in advance. */ size_t remaining; # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif ENSURE_ALLOCATION (xsum (length, characters)); for (remaining = characters; remaining > 0; ) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg, &state); # else count = wctomb (cbuf, *arg); # endif if (count <= 0) /* Inconsistency. */ abort (); memcpy (result + length, cbuf, count); length += count; arg++; remaining -= count; } if (!(arg == arg_end)) abort (); } else { # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t mbstate_t state; memset (&state, '\0', sizeof (mbstate_t)); # endif while (arg < arg_end) { char cbuf[64]; /* Assume MB_CUR_MAX <= 64. */ int count; if (*arg == 0) abort (); # if HAVE_WCRTOMB && !defined GNULIB_defined_mbstate_t count = wcrtomb (cbuf, *arg, &state); # else count = wctomb (cbuf, *arg); # endif if (count <= 0) { /* Cannot convert. */ if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EILSEQ; return NULL; } ENSURE_ALLOCATION (xsum (length, count)); memcpy (result + length, cbuf, count); length += count; arg++; } } # else ENSURE_ALLOCATION (xsum (length, tmpdst_len)); DCHAR_CPY (result + length, tmpdst, tmpdst_len); free (tmpdst); length += tmpdst_len; # endif if (has_width && width > w && (dp->flags & FLAG_LEFT)) { size_t n = width - w; ENSURE_ALLOCATION (xsum (length, n)); DCHAR_SET (result + length, ' ', n); length += n; } } # endif } #endif #if (NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_DOUBLE) && !defined IN_LIBINTL else if ((dp->conversion == 'a' || dp->conversion == 'A') # if !(NEED_PRINTF_DIRECTIVE_A || (NEED_PRINTF_LONG_DOUBLE && NEED_PRINTF_DOUBLE)) && (0 # if NEED_PRINTF_DOUBLE || a.arg[dp->arg_index].type == TYPE_DOUBLE # endif # if NEED_PRINTF_LONG_DOUBLE || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # endif ) # endif ) { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; size_t tmp_length; DCHAR_T tmpbuf[700]; DCHAR_T *tmp; DCHAR_T *pad_ptr; DCHAR_T *p; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } /* Allocate a temporary buffer of sufficient size. */ if (type == TYPE_LONGDOUBLE) tmp_length = (unsigned int) ((LDBL_DIG + 1) * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ else tmp_length = (unsigned int) ((DBL_DIG + 1) * 0.831 /* decimal -> hexadecimal */ ) + 1; /* turn floor into ceil */ if (tmp_length < precision) tmp_length = precision; /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); if (tmp_length < width) tmp_length = width; tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (DCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } pad_ptr = NULL; p = tmp; if (type == TYPE_LONGDOUBLE) { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_LONG_DOUBLE long double arg = a.arg[dp->arg_index].a.a_longdouble; if (isnanl (arg)) { if (dp->conversion == 'A') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; DECL_LONG_DOUBLE_ROUNDING BEGIN_LONG_DOUBLE_ROUNDING (); if (signbit (arg)) /* arg < 0.0L or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0L && arg + arg == arg) { if (dp->conversion == 'A') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { int exponent; long double mantissa; if (arg > 0.0L) mantissa = printf_frexpl (arg, &exponent); else { exponent = 0; mantissa = 0.0L; } if (has_precision && precision < (unsigned int) ((LDBL_DIG + 1) * 0.831) + 1) { /* Round the mantissa. */ long double tail = mantissa; size_t q; for (q = precision; ; q--) { int digit = (int) tail; tail -= digit; if (q == 0) { if (digit & 1 ? tail >= 0.5L : tail > 0.5L) tail = 1 - tail; else tail = - tail; break; } tail *= 16.0L; } if (tail != 0.0L) for (q = precision; q > 0; q--) tail *= 0.0625L; mantissa += tail; } *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; { int digit; digit = (int) mantissa; mantissa -= digit; *p++ = '0' + digit; if ((flags & FLAG_ALT) || mantissa > 0.0L || precision > 0) { *p++ = decimal_point_char (); /* This loop terminates because we assume that FLT_RADIX is a power of 2. */ while (mantissa > 0.0L) { mantissa *= 16.0L; digit = (int) mantissa; mantissa -= digit; *p++ = digit + (digit < 10 ? '0' : dp->conversion - 10); if (precision > 0) precision--; } while (precision > 0) { *p++ = '0'; precision--; } } } *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } END_LONG_DOUBLE_ROUNDING (); } # else abort (); # endif } else { # if NEED_PRINTF_DIRECTIVE_A || NEED_PRINTF_DOUBLE double arg = a.arg[dp->arg_index].a.a_double; if (isnand (arg)) { if (dp->conversion == 'A') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; if (signbit (arg)) /* arg < 0.0 or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0 && arg + arg == arg) { if (dp->conversion == 'A') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { int exponent; double mantissa; if (arg > 0.0) mantissa = printf_frexp (arg, &exponent); else { exponent = 0; mantissa = 0.0; } if (has_precision && precision < (unsigned int) ((DBL_DIG + 1) * 0.831) + 1) { /* Round the mantissa. */ double tail = mantissa; size_t q; for (q = precision; ; q--) { int digit = (int) tail; tail -= digit; if (q == 0) { if (digit & 1 ? tail >= 0.5 : tail > 0.5) tail = 1 - tail; else tail = - tail; break; } tail *= 16.0; } if (tail != 0.0) for (q = precision; q > 0; q--) tail *= 0.0625; mantissa += tail; } *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; { int digit; digit = (int) mantissa; mantissa -= digit; *p++ = '0' + digit; if ((flags & FLAG_ALT) || mantissa > 0.0 || precision > 0) { *p++ = decimal_point_char (); /* This loop terminates because we assume that FLT_RADIX is a power of 2. */ while (mantissa > 0.0) { mantissa *= 16.0; digit = (int) mantissa; mantissa -= digit; *p++ = digit + (digit < 10 ? '0' : dp->conversion - 10); if (precision > 0) precision--; } while (precision > 0) { *p++ = '0'; precision--; } } } *p++ = dp->conversion - 'A' + 'P'; # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } } # else abort (); # endif } /* The generated string now extends from tmp to p, with the zero padding insertion point being at pad_ptr. */ if (has_width && p - tmp < width) { size_t pad = width - (p - tmp); DCHAR_T *end = p + pad; if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > tmp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } p = end; } { size_t count = p - tmp; if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); /* Make room for the result. */ if (count >= allocated - length) { size_t n = xsum (length, count); ENSURE_ALLOCATION (n); } /* Append the result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); if (tmp != tmpbuf) free (tmp); length += count; } } #endif #if (NEED_PRINTF_INFINITE_DOUBLE || NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE || NEED_PRINTF_LONG_DOUBLE) && !defined IN_LIBINTL else if ((dp->conversion == 'f' || dp->conversion == 'F' || dp->conversion == 'e' || dp->conversion == 'E' || dp->conversion == 'g' || dp->conversion == 'G' || dp->conversion == 'a' || dp->conversion == 'A') && (0 # if NEED_PRINTF_DOUBLE || a.arg[dp->arg_index].type == TYPE_DOUBLE # elif NEED_PRINTF_INFINITE_DOUBLE || (a.arg[dp->arg_index].type == TYPE_DOUBLE /* The systems (mingw) which produce wrong output for Inf, -Inf, and NaN also do so for -0.0. Therefore we treat this case here as well. */ && is_infinite_or_zero (a.arg[dp->arg_index].a.a_double)) # endif # if NEED_PRINTF_LONG_DOUBLE || a.arg[dp->arg_index].type == TYPE_LONGDOUBLE # elif NEED_PRINTF_INFINITE_LONG_DOUBLE || (a.arg[dp->arg_index].type == TYPE_LONGDOUBLE /* Some systems produce wrong output for Inf, -Inf, and NaN. Some systems in this category (IRIX 5.3) also do so for -0.0. Therefore we treat this case here as well. */ && is_infinite_or_zerol (a.arg[dp->arg_index].a.a_longdouble)) # endif )) { # if (NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE) && (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE) arg_type type = a.arg[dp->arg_index].type; # endif int flags = dp->flags; int has_width; size_t width; int has_precision; size_t precision; size_t tmp_length; DCHAR_T tmpbuf[700]; DCHAR_T *tmp; DCHAR_T *pad_ptr; DCHAR_T *p; has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } has_precision = 0; precision = 0; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } /* POSIX specifies the default precision to be 6 for %f, %F, %e, %E, but not for %g, %G. Implementations appear to use the same default precision also for %g, %G. But for %a, %A, the default precision is 0. */ if (!has_precision) if (!(dp->conversion == 'a' || dp->conversion == 'A')) precision = 6; /* Allocate a temporary buffer of sufficient size. */ # if NEED_PRINTF_DOUBLE && NEED_PRINTF_LONG_DOUBLE tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : DBL_DIG + 1); # elif NEED_PRINTF_INFINITE_DOUBLE && NEED_PRINTF_LONG_DOUBLE tmp_length = (type == TYPE_LONGDOUBLE ? LDBL_DIG + 1 : 0); # elif NEED_PRINTF_LONG_DOUBLE tmp_length = LDBL_DIG + 1; # elif NEED_PRINTF_DOUBLE tmp_length = DBL_DIG + 1; # else tmp_length = 0; # endif if (tmp_length < precision) tmp_length = precision; # if NEED_PRINTF_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE if (type == TYPE_LONGDOUBLE) # endif if (dp->conversion == 'f' || dp->conversion == 'F') { long double arg = a.arg[dp->arg_index].a.a_longdouble; if (!(isnanl (arg) || arg + arg == arg)) { /* arg is finite and nonzero. */ int exponent = floorlog10l (arg < 0 ? -arg : arg); if (exponent >= 0 && tmp_length < exponent + precision) tmp_length = exponent + precision; } } # endif # if NEED_PRINTF_DOUBLE # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE if (type == TYPE_DOUBLE) # endif if (dp->conversion == 'f' || dp->conversion == 'F') { double arg = a.arg[dp->arg_index].a.a_double; if (!(isnand (arg) || arg + arg == arg)) { /* arg is finite and nonzero. */ int exponent = floorlog10 (arg < 0 ? -arg : arg); if (exponent >= 0 && tmp_length < exponent + precision) tmp_length = exponent + precision; } } # endif /* Account for sign, decimal point etc. */ tmp_length = xsum (tmp_length, 12); if (tmp_length < width) tmp_length = width; tmp_length = xsum (tmp_length, 1); /* account for trailing NUL */ if (tmp_length <= sizeof (tmpbuf) / sizeof (DCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (DCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (DCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } pad_ptr = NULL; p = tmp; # if NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_LONG_DOUBLE # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE if (type == TYPE_LONGDOUBLE) # endif { long double arg = a.arg[dp->arg_index].a.a_longdouble; if (isnanl (arg)) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; DECL_LONG_DOUBLE_ROUNDING BEGIN_LONG_DOUBLE_ROUNDING (); if (signbit (arg)) /* arg < 0.0L or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0L && arg + arg == arg) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { # if NEED_PRINTF_LONG_DOUBLE pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { char *digits; size_t ndigits; digits = scale10_round_decimal_long_double (arg, precision); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits > precision) do { --ndigits; *p++ = digits[ndigits]; } while (ndigits > precision); else *p++ = '0'; /* Here ndigits <= precision. */ if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > ndigits; precision--) *p++ = '0'; while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } else if (dp->conversion == 'e' || dp->conversion == 'E') { int exponent; if (arg == 0.0L) { exponent = 0; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else { /* arg > 0.0L. */ int adjusted; char *digits; size_t ndigits; exponent = floorlog10l (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_long_double (arg, (int)precision - exponent); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits == precision + 1) break; if (ndigits < precision || ndigits > precision + 2) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits == precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision+1. */ if (is_borderline (digits, precision)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_long_double (arg, (int)precision - exponent + 1); if (digits2 == NULL) { free (digits); END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } if (strlen (digits2) == precision + 1) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision+1. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', '.', '2', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+.2d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+.2d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } else if (dp->conversion == 'g' || dp->conversion == 'G') { if (precision == 0) precision = 1; /* precision >= 1. */ if (arg == 0.0L) /* The exponent is 0, >= -4, < precision. Use fixed-point notation. */ { size_t ndigits = precision; /* Number of trailing zeroes that have to be dropped. */ size_t nzeroes = (flags & FLAG_ALT ? 0 : precision - 1); --ndigits; *p++ = '0'; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = '0'; } } } else { /* arg > 0.0L. */ int exponent; int adjusted; char *digits; size_t ndigits; size_t nzeroes; exponent = floorlog10l (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_long_double (arg, (int)(precision - 1) - exponent); if (digits == NULL) { END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } ndigits = strlen (digits); if (ndigits == precision) break; if (ndigits < precision - 1 || ndigits > precision + 1) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits < precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision. */ if (is_borderline (digits, precision - 1)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_long_double (arg, (int)(precision - 1) - exponent + 1); if (digits2 == NULL) { free (digits); END_LONG_DOUBLE_ROUNDING (); goto out_of_memory; } if (strlen (digits2) == precision) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision. */ /* Determine the number of trailing zeroes that have to be dropped. */ nzeroes = 0; if ((flags & FLAG_ALT) == 0) while (nzeroes < ndigits && digits[nzeroes] == '0') nzeroes++; /* The exponent is now determined. */ if (exponent >= -4 && exponent < (long)precision) { /* Fixed-point notation: max(exponent,0)+1 digits, then the decimal point, then the remaining digits without trailing zeroes. */ if (exponent >= 0) { size_t count = exponent + 1; /* Note: count <= precision = ndigits. */ for (; count > 0; count--) *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { size_t count = -exponent - 1; *p++ = '0'; *p++ = decimal_point_char (); for (; count > 0; count--) *p++ = '0'; while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { /* Exponential notation. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = { '%', '+', '.', '2', 'd', '\0' }; SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, "%+.2d", exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, "%+.2d", exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } # endif } free (digits); } } else abort (); # else /* arg is finite. */ if (!(arg == 0.0L)) abort (); pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else if (dp->conversion == 'e' || dp->conversion == 'E') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion; /* 'e' or 'E' */ *p++ = '+'; *p++ = '0'; *p++ = '0'; } else if (dp->conversion == 'g' || dp->conversion == 'G') { *p++ = '0'; if (flags & FLAG_ALT) { size_t ndigits = (precision > 0 ? precision - 1 : 0); *p++ = decimal_point_char (); for (; ndigits > 0; --ndigits) *p++ = '0'; } } else if (dp->conversion == 'a' || dp->conversion == 'A') { *p++ = '0'; *p++ = dp->conversion - 'A' + 'X'; pad_ptr = p; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion - 'A' + 'P'; *p++ = '+'; *p++ = '0'; } else abort (); # endif } END_LONG_DOUBLE_ROUNDING (); } } # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE else # endif # endif # if NEED_PRINTF_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE { double arg = a.arg[dp->arg_index].a.a_double; if (isnand (arg)) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'N'; *p++ = 'A'; *p++ = 'N'; } else { *p++ = 'n'; *p++ = 'a'; *p++ = 'n'; } } else { int sign = 0; if (signbit (arg)) /* arg < 0.0 or negative zero */ { sign = -1; arg = -arg; } if (sign < 0) *p++ = '-'; else if (flags & FLAG_SHOWSIGN) *p++ = '+'; else if (flags & FLAG_SPACE) *p++ = ' '; if (arg > 0.0 && arg + arg == arg) { if (dp->conversion >= 'A' && dp->conversion <= 'Z') { *p++ = 'I'; *p++ = 'N'; *p++ = 'F'; } else { *p++ = 'i'; *p++ = 'n'; *p++ = 'f'; } } else { # if NEED_PRINTF_DOUBLE pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { char *digits; size_t ndigits; digits = scale10_round_decimal_double (arg, precision); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits > precision) do { --ndigits; *p++ = digits[ndigits]; } while (ndigits > precision); else *p++ = '0'; /* Here ndigits <= precision. */ if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > ndigits; precision--) *p++ = '0'; while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } else if (dp->conversion == 'e' || dp->conversion == 'E') { int exponent; if (arg == 0.0) { exponent = 0; *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else { /* arg > 0.0. */ int adjusted; char *digits; size_t ndigits; exponent = floorlog10 (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_double (arg, (int)precision - exponent); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits == precision + 1) break; if (ndigits < precision || ndigits > precision + 2) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits == precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision+1. */ if (is_borderline (digits, precision)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_double (arg, (int)precision - exponent + 1); if (digits2 == NULL) { free (digits); goto out_of_memory; } if (strlen (digits2) == precision + 1) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision+1. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); while (ndigits > 0) { --ndigits; *p++ = digits[ndigits]; } } free (digits); } *p++ = dp->conversion; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ { '%', '+', '.', '3', 'd', '\0' }; # else { '%', '+', '.', '2', 'd', '\0' }; # endif SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else { static const char decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ "%+.3d"; # else "%+.2d"; # endif if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, decimal_format, exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, decimal_format, exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } } # endif } else if (dp->conversion == 'g' || dp->conversion == 'G') { if (precision == 0) precision = 1; /* precision >= 1. */ if (arg == 0.0) /* The exponent is 0, >= -4, < precision. Use fixed-point notation. */ { size_t ndigits = precision; /* Number of trailing zeroes that have to be dropped. */ size_t nzeroes = (flags & FLAG_ALT ? 0 : precision - 1); --ndigits; *p++ = '0'; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = '0'; } } } else { /* arg > 0.0. */ int exponent; int adjusted; char *digits; size_t ndigits; size_t nzeroes; exponent = floorlog10 (arg); adjusted = 0; for (;;) { digits = scale10_round_decimal_double (arg, (int)(precision - 1) - exponent); if (digits == NULL) goto out_of_memory; ndigits = strlen (digits); if (ndigits == precision) break; if (ndigits < precision - 1 || ndigits > precision + 1) /* The exponent was not guessed precisely enough. */ abort (); if (adjusted) /* None of two values of exponent is the right one. Prevent an endless loop. */ abort (); free (digits); if (ndigits < precision) exponent -= 1; else exponent += 1; adjusted = 1; } /* Here ndigits = precision. */ if (is_borderline (digits, precision - 1)) { /* Maybe the exponent guess was too high and a smaller exponent can be reached by turning a 10...0 into 9...9x. */ char *digits2 = scale10_round_decimal_double (arg, (int)(precision - 1) - exponent + 1); if (digits2 == NULL) { free (digits); goto out_of_memory; } if (strlen (digits2) == precision) { free (digits); digits = digits2; exponent -= 1; } else free (digits2); } /* Here ndigits = precision. */ /* Determine the number of trailing zeroes that have to be dropped. */ nzeroes = 0; if ((flags & FLAG_ALT) == 0) while (nzeroes < ndigits && digits[nzeroes] == '0') nzeroes++; /* The exponent is now determined. */ if (exponent >= -4 && exponent < (long)precision) { /* Fixed-point notation: max(exponent,0)+1 digits, then the decimal point, then the remaining digits without trailing zeroes. */ if (exponent >= 0) { size_t count = exponent + 1; /* Note: count <= precision = ndigits. */ for (; count > 0; count--) *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { size_t count = -exponent - 1; *p++ = '0'; *p++ = decimal_point_char (); for (; count > 0; count--) *p++ = '0'; while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } } else { /* Exponential notation. */ *p++ = digits[--ndigits]; if ((flags & FLAG_ALT) || ndigits > nzeroes) { *p++ = decimal_point_char (); while (ndigits > nzeroes) { --ndigits; *p++ = digits[ndigits]; } } *p++ = dp->conversion - 'G' + 'E'; /* 'e' or 'E' */ # if WIDE_CHAR_VERSION { static const wchar_t decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ { '%', '+', '.', '3', 'd', '\0' }; # else { '%', '+', '.', '2', 'd', '\0' }; # endif SNPRINTF (p, 6 + 1, decimal_format, exponent); } while (*p != '\0') p++; # else { static const char decimal_format[] = /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ "%+.3d"; # else "%+.2d"; # endif if (sizeof (DCHAR_T) == 1) { sprintf ((char *) p, decimal_format, exponent); while (*p != '\0') p++; } else { char expbuf[6 + 1]; const char *ep; sprintf (expbuf, decimal_format, exponent); for (ep = expbuf; (*p = *ep) != '\0'; ep++) p++; } } # endif } free (digits); } } else abort (); # else /* arg is finite. */ if (!(arg == 0.0)) abort (); pad_ptr = p; if (dp->conversion == 'f' || dp->conversion == 'F') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } } else if (dp->conversion == 'e' || dp->conversion == 'E') { *p++ = '0'; if ((flags & FLAG_ALT) || precision > 0) { *p++ = decimal_point_char (); for (; precision > 0; precision--) *p++ = '0'; } *p++ = dp->conversion; /* 'e' or 'E' */ *p++ = '+'; /* Produce the same number of exponent digits as the native printf implementation. */ # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ *p++ = '0'; # endif *p++ = '0'; *p++ = '0'; } else if (dp->conversion == 'g' || dp->conversion == 'G') { *p++ = '0'; if (flags & FLAG_ALT) { size_t ndigits = (precision > 0 ? precision - 1 : 0); *p++ = decimal_point_char (); for (; ndigits > 0; --ndigits) *p++ = '0'; } } else abort (); # endif } } } # endif /* The generated string now extends from tmp to p, with the zero padding insertion point being at pad_ptr. */ if (has_width && p - tmp < width) { size_t pad = width - (p - tmp); DCHAR_T *end = p + pad; if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > tmp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } p = end; } { size_t count = p - tmp; if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); /* Make room for the result. */ if (count >= allocated - length) { size_t n = xsum (length, count); ENSURE_ALLOCATION (n); } /* Append the result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); if (tmp != tmpbuf) free (tmp); length += count; } } #endif else { arg_type type = a.arg[dp->arg_index].type; int flags = dp->flags; #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION int has_width; size_t width; #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION int has_precision; size_t precision; #endif #if NEED_PRINTF_UNBOUNDED_PRECISION int prec_ourselves; #else # define prec_ourselves 0 #endif #if NEED_PRINTF_FLAG_LEFTADJUST # define pad_ourselves 1 #elif !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION int pad_ourselves; #else # define pad_ourselves 0 #endif TCHAR_T *fbp; unsigned int prefix_count; int prefixes[2] IF_LINT (= { 0 }); #if !USE_SNPRINTF size_t tmp_length; TCHAR_T tmpbuf[700]; TCHAR_T *tmp; #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION has_width = 0; width = 0; if (dp->width_start != dp->width_end) { if (dp->width_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->width_arg_index].a.a_int; if (arg < 0) { /* "A negative field width is taken as a '-' flag followed by a positive field width." */ flags |= FLAG_LEFT; width = (unsigned int) (-arg); } else width = arg; } else { const FCHAR_T *digitp = dp->width_start; do width = xsum (xtimes (width, 10), *digitp++ - '0'); while (digitp != dp->width_end); } has_width = 1; } #endif #if !USE_SNPRINTF || !HAVE_SNPRINTF_RETVAL_C99 || NEED_PRINTF_UNBOUNDED_PRECISION has_precision = 0; precision = 6; if (dp->precision_start != dp->precision_end) { if (dp->precision_arg_index != ARG_NONE) { int arg; if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); arg = a.arg[dp->precision_arg_index].a.a_int; /* "A negative precision is taken as if the precision were omitted." */ if (arg >= 0) { precision = arg; has_precision = 1; } } else { const FCHAR_T *digitp = dp->precision_start + 1; precision = 0; while (digitp != dp->precision_end) precision = xsum (xtimes (precision, 10), *digitp++ - '0'); has_precision = 1; } } #endif /* Decide whether to handle the precision ourselves. */ #if NEED_PRINTF_UNBOUNDED_PRECISION switch (dp->conversion) { case 'd': case 'i': case 'u': case 'o': case 'x': case 'X': case 'p': prec_ourselves = has_precision && (precision > 0); break; default: prec_ourselves = 0; break; } #endif /* Decide whether to perform the padding ourselves. */ #if !NEED_PRINTF_FLAG_LEFTADJUST && (!DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION) switch (dp->conversion) { # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO /* If we need conversion from TCHAR_T[] to DCHAR_T[], we need to perform the padding after this conversion. Functions with unistdio extensions perform the padding based on character count rather than element count. */ case 'c': case 's': # endif # if NEED_PRINTF_FLAG_ZERO case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': case 'a': case 'A': # endif pad_ourselves = 1; break; default: pad_ourselves = prec_ourselves; break; } #endif #if !USE_SNPRINTF /* Allocate a temporary buffer of sufficient size for calling sprintf. */ tmp_length = MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, flags, width, has_precision, precision, pad_ourselves); if (tmp_length <= sizeof (tmpbuf) / sizeof (TCHAR_T)) tmp = tmpbuf; else { size_t tmp_memsize = xtimes (tmp_length, sizeof (TCHAR_T)); if (size_overflow_p (tmp_memsize)) /* Overflow, would lead to out of memory. */ goto out_of_memory; tmp = (TCHAR_T *) malloc (tmp_memsize); if (tmp == NULL) /* Out of memory. */ goto out_of_memory; } #endif /* Construct the format string for calling snprintf or sprintf. */ fbp = buf; *fbp++ = '%'; #if NEED_PRINTF_FLAG_GROUPING /* The underlying implementation doesn't support the ' flag. Produce no grouping characters in this case; this is acceptable because the grouping is locale dependent. */ #else if (flags & FLAG_GROUP) *fbp++ = '\''; #endif if (flags & FLAG_LEFT) *fbp++ = '-'; if (flags & FLAG_SHOWSIGN) *fbp++ = '+'; if (flags & FLAG_SPACE) *fbp++ = ' '; if (flags & FLAG_ALT) *fbp++ = '#'; if (!pad_ourselves) { if (flags & FLAG_ZERO) *fbp++ = '0'; if (dp->width_start != dp->width_end) { size_t n = dp->width_end - dp->width_start; /* The width specification is known to consist only of standard ASCII characters. */ if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) { memcpy (fbp, dp->width_start, n * sizeof (TCHAR_T)); fbp += n; } else { const FCHAR_T *mp = dp->width_start; do *fbp++ = (unsigned char) *mp++; while (--n > 0); } } } if (!prec_ourselves) { if (dp->precision_start != dp->precision_end) { size_t n = dp->precision_end - dp->precision_start; /* The precision specification is known to consist only of standard ASCII characters. */ if (sizeof (FCHAR_T) == sizeof (TCHAR_T)) { memcpy (fbp, dp->precision_start, n * sizeof (TCHAR_T)); fbp += n; } else { const FCHAR_T *mp = dp->precision_start; do *fbp++ = (unsigned char) *mp++; while (--n > 0); } } } switch (type) { #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: case TYPE_ULONGLONGINT: # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ *fbp++ = 'I'; *fbp++ = '6'; *fbp++ = '4'; break; # else *fbp++ = 'l'; /*FALLTHROUGH*/ # endif #endif case TYPE_LONGINT: case TYPE_ULONGINT: #if HAVE_WINT_T case TYPE_WIDE_CHAR: #endif #if HAVE_WCHAR_T case TYPE_WIDE_STRING: #endif *fbp++ = 'l'; break; case TYPE_LONGDOUBLE: *fbp++ = 'L'; break; default: break; } #if NEED_PRINTF_DIRECTIVE_F if (dp->conversion == 'F') *fbp = 'f'; else #endif *fbp = dp->conversion; #if USE_SNPRINTF # if !(__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) fbp[1] = '%'; fbp[2] = 'n'; fbp[3] = '\0'; # else /* On glibc2 systems from glibc >= 2.3 - probably also older ones - we know that snprintf's returns value conforms to ISO C 99: the gl_SNPRINTF_DIRECTIVE_N test passes. Therefore we can avoid using %n in this situation. On glibc2 systems from 2004-10-18 or newer, the use of %n in format strings in writable memory may crash the program (if compiled with _FORTIFY_SOURCE=2), so we should avoid it in this situation. */ /* On native Win32 systems (such as mingw), we can avoid using %n because: - Although the gl_SNPRINTF_TRUNCATION_C99 test fails, snprintf does not write more than the specified number of bytes. (snprintf (buf, 3, "%d %d", 4567, 89) writes '4', '5', '6' into buf, not '4', '5', '\0'.) - Although the gl_SNPRINTF_RETVAL_C99 test fails, snprintf allows us to recognize the case of an insufficient buffer size: it returns -1 in this case. On native Win32 systems (such as mingw) where the OS is Windows Vista, the use of %n in format strings by default crashes the program. See and So we should avoid %n in this situation. */ fbp[1] = '\0'; # endif #else fbp[1] = '\0'; #endif /* Construct the arguments for calling snprintf or sprintf. */ prefix_count = 0; if (!pad_ourselves && dp->width_arg_index != ARG_NONE) { if (!(a.arg[dp->width_arg_index].type == TYPE_INT)) abort (); prefixes[prefix_count++] = a.arg[dp->width_arg_index].a.a_int; } if (!prec_ourselves && dp->precision_arg_index != ARG_NONE) { if (!(a.arg[dp->precision_arg_index].type == TYPE_INT)) abort (); prefixes[prefix_count++] = a.arg[dp->precision_arg_index].a.a_int; } #if USE_SNPRINTF /* The SNPRINTF result is appended after result[0..length]. The latter is an array of DCHAR_T; SNPRINTF appends an array of TCHAR_T to it. This is possible because sizeof (TCHAR_T) divides sizeof (DCHAR_T) and alignof (TCHAR_T) <= alignof (DCHAR_T). */ # define TCHARS_PER_DCHAR (sizeof (DCHAR_T) / sizeof (TCHAR_T)) /* Ensure that maxlen below will be >= 2. Needed on BeOS, where an snprintf() with maxlen==1 acts like sprintf(). */ ENSURE_ALLOCATION (xsum (length, (2 + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR)); /* Prepare checking whether snprintf returns the count via %n. */ *(TCHAR_T *) (result + length) = '\0'; #endif for (;;) { int count = -1; #if USE_SNPRINTF int retcount = 0; size_t maxlen = allocated - length; /* SNPRINTF can fail if its second argument is > INT_MAX. */ if (maxlen > INT_MAX / TCHARS_PER_DCHAR) maxlen = INT_MAX / TCHARS_PER_DCHAR; maxlen = maxlen * TCHARS_PER_DCHAR; # define SNPRINTF_BUF(arg) \ switch (prefix_count) \ { \ case 0: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ arg, &count); \ break; \ case 1: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ prefixes[0], arg, &count); \ break; \ case 2: \ retcount = SNPRINTF ((TCHAR_T *) (result + length), \ maxlen, buf, \ prefixes[0], prefixes[1], arg, \ &count); \ break; \ default: \ abort (); \ } #else # define SNPRINTF_BUF(arg) \ switch (prefix_count) \ { \ case 0: \ count = sprintf (tmp, buf, arg); \ break; \ case 1: \ count = sprintf (tmp, buf, prefixes[0], arg); \ break; \ case 2: \ count = sprintf (tmp, buf, prefixes[0], prefixes[1],\ arg); \ break; \ default: \ abort (); \ } #endif errno = 0; switch (type) { case TYPE_SCHAR: { int arg = a.arg[dp->arg_index].a.a_schar; SNPRINTF_BUF (arg); } break; case TYPE_UCHAR: { unsigned int arg = a.arg[dp->arg_index].a.a_uchar; SNPRINTF_BUF (arg); } break; case TYPE_SHORT: { int arg = a.arg[dp->arg_index].a.a_short; SNPRINTF_BUF (arg); } break; case TYPE_USHORT: { unsigned int arg = a.arg[dp->arg_index].a.a_ushort; SNPRINTF_BUF (arg); } break; case TYPE_INT: { int arg = a.arg[dp->arg_index].a.a_int; SNPRINTF_BUF (arg); } break; case TYPE_UINT: { unsigned int arg = a.arg[dp->arg_index].a.a_uint; SNPRINTF_BUF (arg); } break; case TYPE_LONGINT: { long int arg = a.arg[dp->arg_index].a.a_longint; SNPRINTF_BUF (arg); } break; case TYPE_ULONGINT: { unsigned long int arg = a.arg[dp->arg_index].a.a_ulongint; SNPRINTF_BUF (arg); } break; #if HAVE_LONG_LONG_INT case TYPE_LONGLONGINT: { long long int arg = a.arg[dp->arg_index].a.a_longlongint; SNPRINTF_BUF (arg); } break; case TYPE_ULONGLONGINT: { unsigned long long int arg = a.arg[dp->arg_index].a.a_ulonglongint; SNPRINTF_BUF (arg); } break; #endif case TYPE_DOUBLE: { double arg = a.arg[dp->arg_index].a.a_double; SNPRINTF_BUF (arg); } break; case TYPE_LONGDOUBLE: { long double arg = a.arg[dp->arg_index].a.a_longdouble; SNPRINTF_BUF (arg); } break; case TYPE_CHAR: { int arg = a.arg[dp->arg_index].a.a_char; SNPRINTF_BUF (arg); } break; #if HAVE_WINT_T case TYPE_WIDE_CHAR: { wint_t arg = a.arg[dp->arg_index].a.a_wide_char; SNPRINTF_BUF (arg); } break; #endif case TYPE_STRING: { const char *arg = a.arg[dp->arg_index].a.a_string; SNPRINTF_BUF (arg); } break; #if HAVE_WCHAR_T case TYPE_WIDE_STRING: { const wchar_t *arg = a.arg[dp->arg_index].a.a_wide_string; SNPRINTF_BUF (arg); } break; #endif case TYPE_POINTER: { void *arg = a.arg[dp->arg_index].a.a_pointer; SNPRINTF_BUF (arg); } break; default: abort (); } #if USE_SNPRINTF /* Portability: Not all implementations of snprintf() are ISO C 99 compliant. Determine the number of bytes that snprintf() has produced or would have produced. */ if (count >= 0) { /* Verify that snprintf() has NUL-terminated its result. */ if (count < maxlen && ((TCHAR_T *) (result + length)) [count] != '\0') abort (); /* Portability hack. */ if (retcount > count) count = retcount; } else { /* snprintf() doesn't understand the '%n' directive. */ if (fbp[1] != '\0') { /* Don't use the '%n' directive; instead, look at the snprintf() return value. */ fbp[1] = '\0'; continue; } else { /* Look at the snprintf() return value. */ if (retcount < 0) { # if !HAVE_SNPRINTF_RETVAL_C99 /* HP-UX 10.20 snprintf() is doubly deficient: It doesn't understand the '%n' directive, *and* it returns -1 (rather than the length that would have been required) when the buffer is too small. But a failure at this point can also come from other reasons than a too small buffer, such as an invalid wide string argument to the %ls directive, or possibly an invalid floating-point argument. */ size_t tmp_length = MAX_ROOM_NEEDED (&a, dp->arg_index, dp->conversion, type, flags, width, has_precision, precision, pad_ourselves); if (maxlen < tmp_length) { /* Make more room. But try to do through this reallocation only once. */ size_t bigger_need = xsum (length, xsum (tmp_length, TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR); /* And always grow proportionally. (There may be several arguments, each needing a little more room than the previous one.) */ size_t bigger_need2 = xsum (xtimes (allocated, 2), 12); if (bigger_need < bigger_need2) bigger_need = bigger_need2; ENSURE_ALLOCATION (bigger_need); continue; } # endif } else count = retcount; } } #endif /* Attempt to handle failure. */ if (count < 0) { /* SNPRINTF or sprintf failed. Save and use the errno that it has set, if any. */ int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = (saved_errno != 0 ? saved_errno : (dp->conversion == 'c' || dp->conversion == 's' ? EILSEQ : EINVAL)); return NULL; } #if USE_SNPRINTF /* Handle overflow of the allocated buffer. If such an overflow occurs, a C99 compliant snprintf() returns a count >= maxlen. However, a non-compliant snprintf() function returns only count = maxlen - 1. To cover both cases, test whether count >= maxlen - 1. */ if ((unsigned int) count + 1 >= maxlen) { /* If maxlen already has attained its allowed maximum, allocating more memory will not increase maxlen. Instead of looping, bail out. */ if (maxlen == INT_MAX / TCHARS_PER_DCHAR) goto overflow; else { /* Need at least (count + 1) * sizeof (TCHAR_T) bytes. (The +1 is for the trailing NUL.) But ask for (count + 2) * sizeof (TCHAR_T) bytes, so that in the next round, we likely get maxlen > (unsigned int) count + 1 and so we don't get here again. And allocate proportionally, to avoid looping eternally if snprintf() reports a too small count. */ size_t n = xmax (xsum (length, ((unsigned int) count + 2 + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR), xtimes (allocated, 2)); ENSURE_ALLOCATION (n); continue; } } #endif #if NEED_PRINTF_UNBOUNDED_PRECISION if (prec_ourselves) { /* Handle the precision. */ TCHAR_T *prec_ptr = # if USE_SNPRINTF (TCHAR_T *) (result + length); # else tmp; # endif size_t prefix_count; size_t move; prefix_count = 0; /* Put the additional zeroes after the sign. */ if (count >= 1 && (*prec_ptr == '-' || *prec_ptr == '+' || *prec_ptr == ' ')) prefix_count = 1; /* Put the additional zeroes after the 0x prefix if (flags & FLAG_ALT) || (dp->conversion == 'p'). */ else if (count >= 2 && prec_ptr[0] == '0' && (prec_ptr[1] == 'x' || prec_ptr[1] == 'X')) prefix_count = 2; move = count - prefix_count; if (precision > move) { /* Insert zeroes. */ size_t insert = precision - move; TCHAR_T *prec_end; # if USE_SNPRINTF size_t n = xsum (length, (count + insert + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR); length += (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; ENSURE_ALLOCATION (n); length -= (count + TCHARS_PER_DCHAR - 1) / TCHARS_PER_DCHAR; prec_ptr = (TCHAR_T *) (result + length); # endif prec_end = prec_ptr + count; prec_ptr += prefix_count; while (prec_end > prec_ptr) { prec_end--; prec_end[insert] = prec_end[0]; } prec_end += insert; do *--prec_end = '0'; while (prec_end > prec_ptr); count += insert; } } #endif #if !USE_SNPRINTF if (count >= tmp_length) /* tmp_length was incorrectly calculated - fix the code above! */ abort (); #endif #if !DCHAR_IS_TCHAR /* Convert from TCHAR_T[] to DCHAR_T[]. */ if (dp->conversion == 'c' || dp->conversion == 's') { /* type = TYPE_CHAR or TYPE_WIDE_CHAR or TYPE_STRING TYPE_WIDE_STRING. The result string is not certainly ASCII. */ const TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t tmpdst_len; /* This code assumes that TCHAR_T is 'char'. */ typedef int TCHAR_T_verify [2 * (sizeof (TCHAR_T) == 1) - 1]; # if USE_SNPRINTF tmpsrc = (TCHAR_T *) (result + length); # else tmpsrc = tmp; # endif tmpdst = DCHAR_CONV_FROM_ENCODING (locale_charset (), iconveh_question_mark, tmpsrc, count, NULL, NULL, &tmpdst_len); if (tmpdst == NULL) { int saved_errno = errno; if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = saved_errno; return NULL; } ENSURE_ALLOCATION (xsum (length, tmpdst_len)); DCHAR_CPY (result + length, tmpdst, tmpdst_len); free (tmpdst); count = tmpdst_len; } else { /* The result string is ASCII. Simple 1:1 conversion. */ # if USE_SNPRINTF /* If sizeof (DCHAR_T) == sizeof (TCHAR_T), it's a no-op conversion, in-place on the array starting at (result + length). */ if (sizeof (DCHAR_T) != sizeof (TCHAR_T)) # endif { const TCHAR_T *tmpsrc; DCHAR_T *tmpdst; size_t n; # if USE_SNPRINTF if (result == resultbuf) { tmpsrc = (TCHAR_T *) (result + length); /* ENSURE_ALLOCATION will not move tmpsrc (because it's part of resultbuf). */ ENSURE_ALLOCATION (xsum (length, count)); } else { /* ENSURE_ALLOCATION will move the array (because it uses realloc(). */ ENSURE_ALLOCATION (xsum (length, count)); tmpsrc = (TCHAR_T *) (result + length); } # else tmpsrc = tmp; ENSURE_ALLOCATION (xsum (length, count)); # endif tmpdst = result + length; /* Copy backwards, because of overlapping. */ tmpsrc += count; tmpdst += count; for (n = count; n > 0; n--) *--tmpdst = (unsigned char) *--tmpsrc; } } #endif #if DCHAR_IS_TCHAR && !USE_SNPRINTF /* Make room for the result. */ if (count > allocated - length) { /* Need at least count elements. But allocate proportionally. */ size_t n = xmax (xsum (length, count), xtimes (allocated, 2)); ENSURE_ALLOCATION (n); } #endif /* Here count <= allocated - length. */ /* Perform padding. */ #if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO || NEED_PRINTF_FLAG_LEFTADJUST || NEED_PRINTF_FLAG_ZERO || NEED_PRINTF_UNBOUNDED_PRECISION if (pad_ourselves && has_width) { size_t w; # if ENABLE_UNISTDIO /* Outside POSIX, it's preferrable to compare the width against the number of _characters_ of the converted value. */ w = DCHAR_MBSNLEN (result + length, count); # else /* The width is compared against the number of _bytes_ of the converted value, says POSIX. */ w = count; # endif if (w < width) { size_t pad = width - w; /* Make room for the result. */ if (xsum (count, pad) > allocated - length) { /* Need at least count + pad elements. But allocate proportionally. */ size_t n = xmax (xsum3 (length, count, pad), xtimes (allocated, 2)); # if USE_SNPRINTF length += count; ENSURE_ALLOCATION (n); length -= count; # else ENSURE_ALLOCATION (n); # endif } /* Here count + pad <= allocated - length. */ { # if !DCHAR_IS_TCHAR || USE_SNPRINTF DCHAR_T * const rp = result + length; # else DCHAR_T * const rp = tmp; # endif DCHAR_T *p = rp + count; DCHAR_T *end = p + pad; DCHAR_T *pad_ptr; # if !DCHAR_IS_TCHAR || ENABLE_UNISTDIO if (dp->conversion == 'c' || dp->conversion == 's') /* No zero-padding for string directives. */ pad_ptr = NULL; else # endif { pad_ptr = (*rp == '-' ? rp + 1 : rp); /* No zero-padding of "inf" and "nan". */ if ((*pad_ptr >= 'A' && *pad_ptr <= 'Z') || (*pad_ptr >= 'a' && *pad_ptr <= 'z')) pad_ptr = NULL; } /* The generated string now extends from rp to p, with the zero padding insertion point being at pad_ptr. */ count = count + pad; /* = end - rp */ if (flags & FLAG_LEFT) { /* Pad with spaces on the right. */ for (; pad > 0; pad--) *p++ = ' '; } else if ((flags & FLAG_ZERO) && pad_ptr != NULL) { /* Pad with zeroes. */ DCHAR_T *q = end; while (p > pad_ptr) *--q = *--p; for (; pad > 0; pad--) *p++ = '0'; } else { /* Pad with spaces on the left. */ DCHAR_T *q = end; while (p > rp) *--q = *--p; for (; pad > 0; pad--) *p++ = ' '; } } } } #endif /* Here still count <= allocated - length. */ #if !DCHAR_IS_TCHAR || USE_SNPRINTF /* The snprintf() result did fit. */ #else /* Append the sprintf() result. */ memcpy (result + length, tmp, count * sizeof (DCHAR_T)); #endif #if !USE_SNPRINTF if (tmp != tmpbuf) free (tmp); #endif #if NEED_PRINTF_DIRECTIVE_F if (dp->conversion == 'F') { /* Convert the %f result to upper case for %F. */ DCHAR_T *rp = result + length; size_t rc; for (rc = count; rc > 0; rc--, rp++) if (*rp >= 'a' && *rp <= 'z') *rp = *rp - 'a' + 'A'; } #endif length += count; break; } #undef pad_ourselves #undef prec_ourselves } } } /* Add the final NUL. */ ENSURE_ALLOCATION (xsum (length, 1)); result[length] = '\0'; if (result != resultbuf && length + 1 < allocated) { /* Shrink the allocated memory if possible. */ DCHAR_T *memory; memory = (DCHAR_T *) realloc (result, (length + 1) * sizeof (DCHAR_T)); if (memory != NULL) result = memory; } if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); *lengthp = length; /* Note that we can produce a big string of a length > INT_MAX. POSIX says that snprintf() fails with errno = EOVERFLOW in this case, but that's only because snprintf() returns an 'int'. This function does not have this limitation. */ return result; #if USE_SNPRINTF overflow: if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); CLEANUP (); errno = EOVERFLOW; return NULL; #endif out_of_memory: if (!(result == resultbuf || result == NULL)) free (result); if (buf_malloced != NULL) free (buf_malloced); out_of_memory_1: CLEANUP (); errno = ENOMEM; return NULL; } } #undef MAX_ROOM_NEEDED #undef TCHARS_PER_DCHAR #undef SNPRINTF #undef USE_SNPRINTF #undef DCHAR_SET #undef DCHAR_CPY #undef PRINTF_PARSE #undef DIRECTIVES #undef DIRECTIVE #undef DCHAR_IS_TCHAR #undef TCHAR_T #undef DCHAR_T #undef FCHAR_T #undef VASNPRINTF gtick-0.5.2/intl/lock.h0000644000175000017500000010667711617270152011632 00000000000000/* Locking in multithreaded situations. Copyright (C) 2005-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible , 2005. Based on GCC's gthr-posix.h, gthr-posix95.h, gthr-solaris.h, gthr-win32.h. */ /* This file contains locking primitives for use with a given thread library. It does not contain primitives for creating threads or for other synchronization primitives. Normal (non-recursive) locks: Type: gl_lock_t Declaration: gl_lock_define(extern, name) Initializer: gl_lock_define_initialized(, name) Initialization: gl_lock_init (name); Taking the lock: gl_lock_lock (name); Releasing the lock: gl_lock_unlock (name); De-initialization: gl_lock_destroy (name); Equivalent functions with control of error handling: Initialization: err = glthread_lock_init (&name); Taking the lock: err = glthread_lock_lock (&name); Releasing the lock: err = glthread_lock_unlock (&name); De-initialization: err = glthread_lock_destroy (&name); Read-Write (non-recursive) locks: Type: gl_rwlock_t Declaration: gl_rwlock_define(extern, name) Initializer: gl_rwlock_define_initialized(, name) Initialization: gl_rwlock_init (name); Taking the lock: gl_rwlock_rdlock (name); gl_rwlock_wrlock (name); Releasing the lock: gl_rwlock_unlock (name); De-initialization: gl_rwlock_destroy (name); Equivalent functions with control of error handling: Initialization: err = glthread_rwlock_init (&name); Taking the lock: err = glthread_rwlock_rdlock (&name); err = glthread_rwlock_wrlock (&name); Releasing the lock: err = glthread_rwlock_unlock (&name); De-initialization: err = glthread_rwlock_destroy (&name); Recursive locks: Type: gl_recursive_lock_t Declaration: gl_recursive_lock_define(extern, name) Initializer: gl_recursive_lock_define_initialized(, name) Initialization: gl_recursive_lock_init (name); Taking the lock: gl_recursive_lock_lock (name); Releasing the lock: gl_recursive_lock_unlock (name); De-initialization: gl_recursive_lock_destroy (name); Equivalent functions with control of error handling: Initialization: err = glthread_recursive_lock_init (&name); Taking the lock: err = glthread_recursive_lock_lock (&name); Releasing the lock: err = glthread_recursive_lock_unlock (&name); De-initialization: err = glthread_recursive_lock_destroy (&name); Once-only execution: Type: gl_once_t Initializer: gl_once_define(extern, name) Execution: gl_once (name, initfunction); Equivalent functions with control of error handling: Execution: err = glthread_once (&name, initfunction); */ #ifndef _LOCK_H #define _LOCK_H #include #include /* ========================================================================= */ #if USE_POSIX_THREADS /* Use the POSIX threads library. */ # include # ifdef __cplusplus extern "C" { # endif # if PTHREAD_IN_USE_DETECTION_HARD /* The pthread_in_use() detection needs to be done at runtime. */ # define pthread_in_use() \ glthread_in_use () extern int glthread_in_use (void); # endif # if USE_POSIX_THREADS_WEAK /* Use weak references to the POSIX threads library. */ /* Weak references avoid dragging in external libraries if the other parts of the program don't use them. Here we use them, because we don't want every program that uses libintl to depend on libpthread. This assumes that libpthread would not be loaded after libintl; i.e. if libintl is loaded first, by an executable that does not depend on libpthread, and then a module is dynamically loaded that depends on libpthread, libintl will not be multithread-safe. */ /* The way to test at runtime whether libpthread is present is to test whether a function pointer's value, such as &pthread_mutex_init, is non-NULL. However, some versions of GCC have a bug through which, in PIC mode, &foo != NULL always evaluates to true if there is a direct call to foo(...) in the same function. To avoid this, we test the address of a function in libpthread that we don't use. */ # pragma weak pthread_mutex_init # pragma weak pthread_mutex_lock # pragma weak pthread_mutex_unlock # pragma weak pthread_mutex_destroy # pragma weak pthread_rwlock_init # pragma weak pthread_rwlock_rdlock # pragma weak pthread_rwlock_wrlock # pragma weak pthread_rwlock_unlock # pragma weak pthread_rwlock_destroy # pragma weak pthread_once # pragma weak pthread_cond_init # pragma weak pthread_cond_wait # pragma weak pthread_cond_signal # pragma weak pthread_cond_broadcast # pragma weak pthread_cond_destroy # pragma weak pthread_mutexattr_init # pragma weak pthread_mutexattr_settype # pragma weak pthread_mutexattr_destroy # ifndef pthread_self # pragma weak pthread_self # endif # if !PTHREAD_IN_USE_DETECTION_HARD # pragma weak pthread_cancel # define pthread_in_use() (pthread_cancel != NULL) # endif # else # if !PTHREAD_IN_USE_DETECTION_HARD # define pthread_in_use() 1 # endif # endif /* -------------------------- gl_lock_t datatype -------------------------- */ typedef pthread_mutex_t gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_mutex_t NAME; # define gl_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pthread_mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ PTHREAD_MUTEX_INITIALIZER # define glthread_lock_init(LOCK) \ (pthread_in_use () ? pthread_mutex_init (LOCK, NULL) : 0) # define glthread_lock_lock(LOCK) \ (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) # define glthread_lock_unlock(LOCK) \ (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) # define glthread_lock_destroy(LOCK) \ (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ # if HAVE_PTHREAD_RWLOCK # ifdef PTHREAD_RWLOCK_INITIALIZER typedef pthread_rwlock_t gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pthread_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ PTHREAD_RWLOCK_INITIALIZER # define glthread_rwlock_init(LOCK) \ (pthread_in_use () ? pthread_rwlock_init (LOCK, NULL) : 0) # define glthread_rwlock_rdlock(LOCK) \ (pthread_in_use () ? pthread_rwlock_rdlock (LOCK) : 0) # define glthread_rwlock_wrlock(LOCK) \ (pthread_in_use () ? pthread_rwlock_wrlock (LOCK) : 0) # define glthread_rwlock_unlock(LOCK) \ (pthread_in_use () ? pthread_rwlock_unlock (LOCK) : 0) # define glthread_rwlock_destroy(LOCK) \ (pthread_in_use () ? pthread_rwlock_destroy (LOCK) : 0) # else typedef struct { int initialized; pthread_mutex_t guard; /* protects the initialization */ pthread_rwlock_t rwlock; /* read-write lock */ } gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { 0, PTHREAD_MUTEX_INITIALIZER } # define glthread_rwlock_init(LOCK) \ (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) # define glthread_rwlock_rdlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) # define glthread_rwlock_wrlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) # define glthread_rwlock_unlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) # define glthread_rwlock_destroy(LOCK) \ (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); # endif # else typedef struct { pthread_mutex_t lock; /* protects the remaining fields */ pthread_cond_t waiting_readers; /* waiting readers */ pthread_cond_t waiting_writers; /* waiting writers */ unsigned int waiting_writers_count; /* number of waiting writers */ int runcount; /* number of readers running, or -1 when a writer runs */ } gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, PTHREAD_COND_INITIALIZER, 0, 0 } # define glthread_rwlock_init(LOCK) \ (pthread_in_use () ? glthread_rwlock_init_multithreaded (LOCK) : 0) # define glthread_rwlock_rdlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_rdlock_multithreaded (LOCK) : 0) # define glthread_rwlock_wrlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_wrlock_multithreaded (LOCK) : 0) # define glthread_rwlock_unlock(LOCK) \ (pthread_in_use () ? glthread_rwlock_unlock_multithreaded (LOCK) : 0) # define glthread_rwlock_destroy(LOCK) \ (pthread_in_use () ? glthread_rwlock_destroy_multithreaded (LOCK) : 0) extern int glthread_rwlock_init_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_rdlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_wrlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_unlock_multithreaded (gl_rwlock_t *lock); extern int glthread_rwlock_destroy_multithreaded (gl_rwlock_t *lock); # endif /* --------------------- gl_recursive_lock_t datatype --------------------- */ # if HAVE_PTHREAD_MUTEX_RECURSIVE # if defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER || defined PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP typedef pthread_mutex_t gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_mutex_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pthread_mutex_t NAME = gl_recursive_lock_initializer; # ifdef PTHREAD_RECURSIVE_MUTEX_INITIALIZER # define gl_recursive_lock_initializer \ PTHREAD_RECURSIVE_MUTEX_INITIALIZER # else # define gl_recursive_lock_initializer \ PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP # endif # define glthread_recursive_lock_init(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) # define glthread_recursive_lock_lock(LOCK) \ (pthread_in_use () ? pthread_mutex_lock (LOCK) : 0) # define glthread_recursive_lock_unlock(LOCK) \ (pthread_in_use () ? pthread_mutex_unlock (LOCK) : 0) # define glthread_recursive_lock_destroy(LOCK) \ (pthread_in_use () ? pthread_mutex_destroy (LOCK) : 0) extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); # else typedef struct { pthread_mutex_t recmutex; /* recursive mutex */ pthread_mutex_t guard; /* protects the initialization */ int initialized; } gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { PTHREAD_MUTEX_INITIALIZER, PTHREAD_MUTEX_INITIALIZER, 0 } # define glthread_recursive_lock_init(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) # define glthread_recursive_lock_lock(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_unlock(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_destroy(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); # endif # else /* Old versions of POSIX threads on Solaris did not have recursive locks. We have to implement them ourselves. */ typedef struct { pthread_mutex_t mutex; pthread_t owner; unsigned long depth; } gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { PTHREAD_MUTEX_INITIALIZER, (pthread_t) 0, 0 } # define glthread_recursive_lock_init(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) # define glthread_recursive_lock_lock(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_unlock(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_destroy(LOCK) \ (pthread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); # endif /* -------------------------- gl_once_t datatype -------------------------- */ typedef pthread_once_t gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS pthread_once_t NAME = PTHREAD_ONCE_INIT; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (pthread_in_use () \ ? pthread_once (ONCE_CONTROL, INITFUNCTION) \ : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) extern int glthread_once_singlethreaded (pthread_once_t *once_control); # ifdef __cplusplus } # endif #endif /* ========================================================================= */ #if USE_PTH_THREADS /* Use the GNU Pth threads library. */ # include # ifdef __cplusplus extern "C" { # endif # if USE_PTH_THREADS_WEAK /* Use weak references to the GNU Pth threads library. */ # pragma weak pth_mutex_init # pragma weak pth_mutex_acquire # pragma weak pth_mutex_release # pragma weak pth_rwlock_init # pragma weak pth_rwlock_acquire # pragma weak pth_rwlock_release # pragma weak pth_once # pragma weak pth_cancel # define pth_in_use() (pth_cancel != NULL) # else # define pth_in_use() 1 # endif /* -------------------------- gl_lock_t datatype -------------------------- */ typedef pth_mutex_t gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) \ STORAGECLASS pth_mutex_t NAME; # define gl_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pth_mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ PTH_MUTEX_INIT # define glthread_lock_init(LOCK) \ (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) # define glthread_lock_lock(LOCK) \ (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) # define glthread_lock_unlock(LOCK) \ (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) # define glthread_lock_destroy(LOCK) \ ((void)(LOCK), 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ typedef pth_rwlock_t gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS pth_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pth_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ PTH_RWLOCK_INIT # define glthread_rwlock_init(LOCK) \ (pth_in_use () && !pth_rwlock_init (LOCK) ? errno : 0) # define glthread_rwlock_rdlock(LOCK) \ (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RD, 0, NULL) ? errno : 0) # define glthread_rwlock_wrlock(LOCK) \ (pth_in_use () && !pth_rwlock_acquire (LOCK, PTH_RWLOCK_RW, 0, NULL) ? errno : 0) # define glthread_rwlock_unlock(LOCK) \ (pth_in_use () && !pth_rwlock_release (LOCK) ? errno : 0) # define glthread_rwlock_destroy(LOCK) \ ((void)(LOCK), 0) /* --------------------- gl_recursive_lock_t datatype --------------------- */ /* In Pth, mutexes are recursive by default. */ typedef pth_mutex_t gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS pth_mutex_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS pth_mutex_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ PTH_MUTEX_INIT # define glthread_recursive_lock_init(LOCK) \ (pth_in_use () && !pth_mutex_init (LOCK) ? errno : 0) # define glthread_recursive_lock_lock(LOCK) \ (pth_in_use () && !pth_mutex_acquire (LOCK, 0, NULL) ? errno : 0) # define glthread_recursive_lock_unlock(LOCK) \ (pth_in_use () && !pth_mutex_release (LOCK) ? errno : 0) # define glthread_recursive_lock_destroy(LOCK) \ ((void)(LOCK), 0) /* -------------------------- gl_once_t datatype -------------------------- */ typedef pth_once_t gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS pth_once_t NAME = PTH_ONCE_INIT; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (pth_in_use () \ ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) extern int glthread_once_multithreaded (pth_once_t *once_control, void (*initfunction) (void)); extern int glthread_once_singlethreaded (pth_once_t *once_control); # ifdef __cplusplus } # endif #endif /* ========================================================================= */ #if USE_SOLARIS_THREADS /* Use the old Solaris threads library. */ # include # include # ifdef __cplusplus extern "C" { # endif # if USE_SOLARIS_THREADS_WEAK /* Use weak references to the old Solaris threads library. */ # pragma weak mutex_init # pragma weak mutex_lock # pragma weak mutex_unlock # pragma weak mutex_destroy # pragma weak rwlock_init # pragma weak rw_rdlock # pragma weak rw_wrlock # pragma weak rw_unlock # pragma weak rwlock_destroy # pragma weak thr_self # pragma weak thr_suspend # define thread_in_use() (thr_suspend != NULL) # else # define thread_in_use() 1 # endif /* -------------------------- gl_lock_t datatype -------------------------- */ typedef mutex_t gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) \ STORAGECLASS mutex_t NAME; # define gl_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS mutex_t NAME = gl_lock_initializer; # define gl_lock_initializer \ DEFAULTMUTEX # define glthread_lock_init(LOCK) \ (thread_in_use () ? mutex_init (LOCK, USYNC_THREAD, NULL) : 0) # define glthread_lock_lock(LOCK) \ (thread_in_use () ? mutex_lock (LOCK) : 0) # define glthread_lock_unlock(LOCK) \ (thread_in_use () ? mutex_unlock (LOCK) : 0) # define glthread_lock_destroy(LOCK) \ (thread_in_use () ? mutex_destroy (LOCK) : 0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ typedef rwlock_t gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ DEFAULTRWLOCK # define glthread_rwlock_init(LOCK) \ (thread_in_use () ? rwlock_init (LOCK, USYNC_THREAD, NULL) : 0) # define glthread_rwlock_rdlock(LOCK) \ (thread_in_use () ? rw_rdlock (LOCK) : 0) # define glthread_rwlock_wrlock(LOCK) \ (thread_in_use () ? rw_wrlock (LOCK) : 0) # define glthread_rwlock_unlock(LOCK) \ (thread_in_use () ? rw_unlock (LOCK) : 0) # define glthread_rwlock_destroy(LOCK) \ (thread_in_use () ? rwlock_destroy (LOCK) : 0) /* --------------------- gl_recursive_lock_t datatype --------------------- */ /* Old Solaris threads did not have recursive locks. We have to implement them ourselves. */ typedef struct { mutex_t mutex; thread_t owner; unsigned long depth; } gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { DEFAULTMUTEX, (thread_t) 0, 0 } # define glthread_recursive_lock_init(LOCK) \ (thread_in_use () ? glthread_recursive_lock_init_multithreaded (LOCK) : 0) # define glthread_recursive_lock_lock(LOCK) \ (thread_in_use () ? glthread_recursive_lock_lock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_unlock(LOCK) \ (thread_in_use () ? glthread_recursive_lock_unlock_multithreaded (LOCK) : 0) # define glthread_recursive_lock_destroy(LOCK) \ (thread_in_use () ? glthread_recursive_lock_destroy_multithreaded (LOCK) : 0) extern int glthread_recursive_lock_init_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_lock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_unlock_multithreaded (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_destroy_multithreaded (gl_recursive_lock_t *lock); /* -------------------------- gl_once_t datatype -------------------------- */ typedef struct { volatile int inited; mutex_t mutex; } gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = { 0, DEFAULTMUTEX }; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (thread_in_use () \ ? glthread_once_multithreaded (ONCE_CONTROL, INITFUNCTION) \ : (glthread_once_singlethreaded (ONCE_CONTROL) ? (INITFUNCTION (), 0) : 0)) extern int glthread_once_multithreaded (gl_once_t *once_control, void (*initfunction) (void)); extern int glthread_once_singlethreaded (gl_once_t *once_control); # ifdef __cplusplus } # endif #endif /* ========================================================================= */ #if USE_WIN32_THREADS # include # ifdef __cplusplus extern "C" { # endif /* We can use CRITICAL_SECTION directly, rather than the Win32 Event, Mutex, Semaphore types, because - we need only to synchronize inside a single process (address space), not inter-process locking, - we don't need to support trylock operations. (TryEnterCriticalSection does not work on Windows 95/98/ME. Packages that need trylock usually define their own mutex type.) */ /* There is no way to statically initialize a CRITICAL_SECTION. It needs to be done lazily, once only. For this we need spinlocks. */ typedef struct { volatile int done; volatile long started; } gl_spinlock_t; /* -------------------------- gl_lock_t datatype -------------------------- */ typedef struct { gl_spinlock_t guard; /* protects the initialization */ CRITICAL_SECTION lock; } gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_lock_t NAME; # define gl_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_lock_t NAME = gl_lock_initializer; # define gl_lock_initializer \ { { 0, -1 } } # define glthread_lock_init(LOCK) \ (glthread_lock_init_func (LOCK), 0) # define glthread_lock_lock(LOCK) \ glthread_lock_lock_func (LOCK) # define glthread_lock_unlock(LOCK) \ glthread_lock_unlock_func (LOCK) # define glthread_lock_destroy(LOCK) \ glthread_lock_destroy_func (LOCK) extern void glthread_lock_init_func (gl_lock_t *lock); extern int glthread_lock_lock_func (gl_lock_t *lock); extern int glthread_lock_unlock_func (gl_lock_t *lock); extern int glthread_lock_destroy_func (gl_lock_t *lock); /* ------------------------- gl_rwlock_t datatype ------------------------- */ /* It is impossible to implement read-write locks using plain locks, without introducing an extra thread dedicated to managing read-write locks. Therefore here we need to use the low-level Event type. */ typedef struct { HANDLE *array; /* array of waiting threads, each represented by an event */ unsigned int count; /* number of waiting threads */ unsigned int alloc; /* length of allocated array */ unsigned int offset; /* index of first waiting thread in array */ } gl_carray_waitqueue_t; typedef struct { gl_spinlock_t guard; /* protects the initialization */ CRITICAL_SECTION lock; /* protects the remaining fields */ gl_carray_waitqueue_t waiting_readers; /* waiting readers */ gl_carray_waitqueue_t waiting_writers; /* waiting writers */ int runcount; /* number of readers running, or -1 when a writer runs */ } gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME; # define gl_rwlock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_rwlock_t NAME = gl_rwlock_initializer; # define gl_rwlock_initializer \ { { 0, -1 } } # define glthread_rwlock_init(LOCK) \ (glthread_rwlock_init_func (LOCK), 0) # define glthread_rwlock_rdlock(LOCK) \ glthread_rwlock_rdlock_func (LOCK) # define glthread_rwlock_wrlock(LOCK) \ glthread_rwlock_wrlock_func (LOCK) # define glthread_rwlock_unlock(LOCK) \ glthread_rwlock_unlock_func (LOCK) # define glthread_rwlock_destroy(LOCK) \ glthread_rwlock_destroy_func (LOCK) extern void glthread_rwlock_init_func (gl_rwlock_t *lock); extern int glthread_rwlock_rdlock_func (gl_rwlock_t *lock); extern int glthread_rwlock_wrlock_func (gl_rwlock_t *lock); extern int glthread_rwlock_unlock_func (gl_rwlock_t *lock); extern int glthread_rwlock_destroy_func (gl_rwlock_t *lock); /* --------------------- gl_recursive_lock_t datatype --------------------- */ /* The Win32 documentation says that CRITICAL_SECTION already implements a recursive lock. But we need not rely on it: It's easy to implement a recursive lock without this assumption. */ typedef struct { gl_spinlock_t guard; /* protects the initialization */ DWORD owner; unsigned long depth; CRITICAL_SECTION lock; } gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME; # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) \ STORAGECLASS gl_recursive_lock_t NAME = gl_recursive_lock_initializer; # define gl_recursive_lock_initializer \ { { 0, -1 }, 0, 0 } # define glthread_recursive_lock_init(LOCK) \ (glthread_recursive_lock_init_func (LOCK), 0) # define glthread_recursive_lock_lock(LOCK) \ glthread_recursive_lock_lock_func (LOCK) # define glthread_recursive_lock_unlock(LOCK) \ glthread_recursive_lock_unlock_func (LOCK) # define glthread_recursive_lock_destroy(LOCK) \ glthread_recursive_lock_destroy_func (LOCK) extern void glthread_recursive_lock_init_func (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_lock_func (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_unlock_func (gl_recursive_lock_t *lock); extern int glthread_recursive_lock_destroy_func (gl_recursive_lock_t *lock); /* -------------------------- gl_once_t datatype -------------------------- */ typedef struct { volatile int inited; volatile long started; CRITICAL_SECTION lock; } gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = { -1, -1 }; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (glthread_once_func (ONCE_CONTROL, INITFUNCTION), 0) extern void glthread_once_func (gl_once_t *once_control, void (*initfunction) (void)); # ifdef __cplusplus } # endif #endif /* ========================================================================= */ #if !(USE_POSIX_THREADS || USE_PTH_THREADS || USE_SOLARIS_THREADS || USE_WIN32_THREADS) /* Provide dummy implementation if threads are not supported. */ /* -------------------------- gl_lock_t datatype -------------------------- */ typedef int gl_lock_t; # define gl_lock_define(STORAGECLASS, NAME) # define gl_lock_define_initialized(STORAGECLASS, NAME) # define glthread_lock_init(NAME) 0 # define glthread_lock_lock(NAME) 0 # define glthread_lock_unlock(NAME) 0 # define glthread_lock_destroy(NAME) 0 /* ------------------------- gl_rwlock_t datatype ------------------------- */ typedef int gl_rwlock_t; # define gl_rwlock_define(STORAGECLASS, NAME) # define gl_rwlock_define_initialized(STORAGECLASS, NAME) # define glthread_rwlock_init(NAME) 0 # define glthread_rwlock_rdlock(NAME) 0 # define glthread_rwlock_wrlock(NAME) 0 # define glthread_rwlock_unlock(NAME) 0 # define glthread_rwlock_destroy(NAME) 0 /* --------------------- gl_recursive_lock_t datatype --------------------- */ typedef int gl_recursive_lock_t; # define gl_recursive_lock_define(STORAGECLASS, NAME) # define gl_recursive_lock_define_initialized(STORAGECLASS, NAME) # define glthread_recursive_lock_init(NAME) 0 # define glthread_recursive_lock_lock(NAME) 0 # define glthread_recursive_lock_unlock(NAME) 0 # define glthread_recursive_lock_destroy(NAME) 0 /* -------------------------- gl_once_t datatype -------------------------- */ typedef int gl_once_t; # define gl_once_define(STORAGECLASS, NAME) \ STORAGECLASS gl_once_t NAME = 0; # define glthread_once(ONCE_CONTROL, INITFUNCTION) \ (*(ONCE_CONTROL) == 0 ? (*(ONCE_CONTROL) = ~ 0, INITFUNCTION (), 0) : 0) #endif /* ========================================================================= */ /* Macros with built-in error handling. */ /* -------------------------- gl_lock_t datatype -------------------------- */ #define gl_lock_init(NAME) \ do \ { \ if (glthread_lock_init (&NAME)) \ abort (); \ } \ while (0) #define gl_lock_lock(NAME) \ do \ { \ if (glthread_lock_lock (&NAME)) \ abort (); \ } \ while (0) #define gl_lock_unlock(NAME) \ do \ { \ if (glthread_lock_unlock (&NAME)) \ abort (); \ } \ while (0) #define gl_lock_destroy(NAME) \ do \ { \ if (glthread_lock_destroy (&NAME)) \ abort (); \ } \ while (0) /* ------------------------- gl_rwlock_t datatype ------------------------- */ #define gl_rwlock_init(NAME) \ do \ { \ if (glthread_rwlock_init (&NAME)) \ abort (); \ } \ while (0) #define gl_rwlock_rdlock(NAME) \ do \ { \ if (glthread_rwlock_rdlock (&NAME)) \ abort (); \ } \ while (0) #define gl_rwlock_wrlock(NAME) \ do \ { \ if (glthread_rwlock_wrlock (&NAME)) \ abort (); \ } \ while (0) #define gl_rwlock_unlock(NAME) \ do \ { \ if (glthread_rwlock_unlock (&NAME)) \ abort (); \ } \ while (0) #define gl_rwlock_destroy(NAME) \ do \ { \ if (glthread_rwlock_destroy (&NAME)) \ abort (); \ } \ while (0) /* --------------------- gl_recursive_lock_t datatype --------------------- */ #define gl_recursive_lock_init(NAME) \ do \ { \ if (glthread_recursive_lock_init (&NAME)) \ abort (); \ } \ while (0) #define gl_recursive_lock_lock(NAME) \ do \ { \ if (glthread_recursive_lock_lock (&NAME)) \ abort (); \ } \ while (0) #define gl_recursive_lock_unlock(NAME) \ do \ { \ if (glthread_recursive_lock_unlock (&NAME)) \ abort (); \ } \ while (0) #define gl_recursive_lock_destroy(NAME) \ do \ { \ if (glthread_recursive_lock_destroy (&NAME)) \ abort (); \ } \ while (0) /* -------------------------- gl_once_t datatype -------------------------- */ #define gl_once(NAME, INITFUNCTION) \ do \ { \ if (glthread_once (&NAME, INITFUNCTION)) \ abort (); \ } \ while (0) /* ========================================================================= */ #endif /* _LOCK_H */ gtick-0.5.2/intl/dgettext.c0000644000175000017500000000337110661555177012523 00000000000000/* Implementation of the dgettext(3) function. Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DGETTEXT __dgettext # define DCGETTEXT INTUSE(__dcgettext) #else # define DGETTEXT libintl_dgettext # define DCGETTEXT libintl_dcgettext #endif /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale. */ char * DGETTEXT (const char *domainname, const char *msgid) { return DCGETTEXT (domainname, msgid, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dgettext, dgettext); #endif gtick-0.5.2/intl/threadlib.c0000644000175000017500000000370211617270153012615 00000000000000/* Multithreading primitives. Copyright (C) 2005-2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Written by Bruno Haible , 2005. */ #include /* ========================================================================= */ #if USE_POSIX_THREADS /* Use the POSIX threads library. */ # include # include # if PTHREAD_IN_USE_DETECTION_HARD /* The function to be executed by a dummy thread. */ static void * dummy_thread_func (void *arg) { return arg; } int glthread_in_use (void) { static int tested; static int result; /* 1: linked with -lpthread, 0: only with libc */ if (!tested) { pthread_t thread; if (pthread_create (&thread, NULL, dummy_thread_func, NULL) != 0) /* Thread creation failed. */ result = 0; else { /* Thread creation works. */ void *retval; if (pthread_join (thread, &retval) != 0) abort (); result = 1; } tested = 1; } return result; } # endif #endif /* ========================================================================= */ /* This declaration is solely to ensure that after preprocessing this file is never empty. */ typedef int dummy; gtick-0.5.2/intl/relocatable.h0000644000175000017500000000617211617270153013145 00000000000000/* Provide relocatable packages. Copyright (C) 2003, 2005, 2008 Free Software Foundation, Inc. Written by Bruno Haible , 2003. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _RELOCATABLE_H #define _RELOCATABLE_H #ifdef __cplusplus extern "C" { #endif /* This can be enabled through the configure --enable-relocatable option. */ #if ENABLE_RELOCATABLE /* When building a DLL, we must export some functions. Note that because this is a private .h file, we don't need to use __declspec(dllimport) in any case. */ #if HAVE_VISIBILITY && BUILDING_DLL # define RELOCATABLE_DLL_EXPORTED __attribute__((__visibility__("default"))) #elif defined _MSC_VER && BUILDING_DLL # define RELOCATABLE_DLL_EXPORTED __declspec(dllexport) #else # define RELOCATABLE_DLL_EXPORTED #endif /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ extern RELOCATABLE_DLL_EXPORTED void set_relocation_prefix (const char *orig_prefix, const char *curr_prefix); /* Returns the pathname, relocated according to the current installation directory. The returned string is either PATHNAME unmodified or a freshly allocated string that you can free with free() after casting it to 'char *'. */ extern const char * relocate (const char *pathname); /* Memory management: relocate() potentially allocates memory, because it has to construct a fresh pathname. If this is a problem because your program calls relocate() frequently, think about caching the result. Or free the return value if it was different from the argument pathname. */ /* Convenience function: Computes the current installation prefix, based on the original installation prefix, the original installation directory of a particular file, and the current pathname of this file. Returns it, freshly allocated. Returns NULL upon failure. */ extern char * compute_curr_prefix (const char *orig_installprefix, const char *orig_installdir, const char *curr_pathname); #else /* By default, we use the hardwired pathnames. */ #define relocate(pathname) (pathname) #endif #ifdef __cplusplus } #endif #endif /* _RELOCATABLE_H */ gtick-0.5.2/intl/vasnprintf.h0000644000175000017500000000544311617270153013062 00000000000000/* vsprintf with automatic memory allocation. Copyright (C) 2002-2004 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _VASNPRINTF_H #define _VASNPRINTF_H /* Get va_list. */ #include /* Get size_t. */ #include #ifndef __attribute__ /* This feature is available in gcc versions 2.5 and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || __STRICT_ANSI__ # define __attribute__(Spec) /* empty */ # endif /* The __-protected variants of `format' and `printf' attributes are accepted by gcc versions 2.6.4 (effectively 2.7) and later. */ # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 7) # define __format__ format # define __printf__ printf # endif #endif #ifdef __cplusplus extern "C" { #endif /* Write formatted output to a string dynamically allocated with malloc(). You can pass a preallocated buffer for the result in RESULTBUF and its size in *LENGTHP; otherwise you pass RESULTBUF = NULL. If successful, return the address of the string (this may be = RESULTBUF if no dynamic memory allocation was necessary) and set *LENGTHP to the number of resulting bytes, excluding the trailing NUL. Upon error, set errno and return NULL. When dynamic memory allocation occurs, the preallocated buffer is left alone (with possibly modified contents). This makes it possible to use a statically allocated or stack-allocated buffer, like this: char buf[100]; size_t len = sizeof (buf); char *output = vasnprintf (buf, &len, format, args); if (output == NULL) ... error handling ...; else { ... use the output string ...; if (output != buf) free (output); } */ extern char * asnprintf (char *resultbuf, size_t *lengthp, const char *format, ...) __attribute__ ((__format__ (__printf__, 3, 4))); extern char * vasnprintf (char *resultbuf, size_t *lengthp, const char *format, va_list args) __attribute__ ((__format__ (__printf__, 3, 0))); #ifdef __cplusplus } #endif #endif /* _VASNPRINTF_H */ gtick-0.5.2/intl/VERSION0000644000175000017500000000005011617270150011551 00000000000000GNU gettext library from gettext-0.18.1 gtick-0.5.2/intl/plural-exp.h0000644000175000017500000001013111617270152012746 00000000000000/* Expression parsing and evaluation for plural form selection. Copyright (C) 2000-2003, 2005-2007 Free Software Foundation, Inc. Written by Ulrich Drepper , 2000. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PLURAL_EXP_H #define _PLURAL_EXP_H #ifndef internal_function # define internal_function #endif #ifndef attribute_hidden # define attribute_hidden #endif #ifdef __cplusplus extern "C" { #endif enum expression_operator { /* Without arguments: */ var, /* The variable "n". */ num, /* Decimal number. */ /* Unary operators: */ lnot, /* Logical NOT. */ /* Binary operators: */ mult, /* Multiplication. */ divide, /* Division. */ module, /* Modulo operation. */ plus, /* Addition. */ minus, /* Subtraction. */ less_than, /* Comparison. */ greater_than, /* Comparison. */ less_or_equal, /* Comparison. */ greater_or_equal, /* Comparison. */ equal, /* Comparison for equality. */ not_equal, /* Comparison for inequality. */ land, /* Logical AND. */ lor, /* Logical OR. */ /* Ternary operators: */ qmop /* Question mark operator. */ }; /* This is the representation of the expressions to determine the plural form. */ struct expression { int nargs; /* Number of arguments. */ enum expression_operator operation; union { unsigned long int num; /* Number value for `num'. */ struct expression *args[3]; /* Up to three arguments. */ } val; }; /* This is the data structure to pass information to the parser and get the result in a thread-safe way. */ struct parse_args { const char *cp; struct expression *res; }; /* Names for the libintl functions are a problem. This source code is used 1. in the GNU C Library library, 2. in the GNU libintl library, 3. in the GNU gettext tools. The function names in each situation must be different, to allow for binary incompatible changes in 'struct expression'. Furthermore, 1. in the GNU C Library library, the names have a __ prefix, 2.+3. in the GNU libintl library and in the GNU gettext tools, the names must follow ANSI C and not start with __. So we have to distinguish the three cases. */ #ifdef _LIBC # define FREE_EXPRESSION __gettext_free_exp # define PLURAL_PARSE __gettextparse # define GERMANIC_PLURAL __gettext_germanic_plural # define EXTRACT_PLURAL_EXPRESSION __gettext_extract_plural #elif defined (IN_LIBINTL) # define FREE_EXPRESSION libintl_gettext_free_exp # define PLURAL_PARSE libintl_gettextparse # define GERMANIC_PLURAL libintl_gettext_germanic_plural # define EXTRACT_PLURAL_EXPRESSION libintl_gettext_extract_plural #else # define FREE_EXPRESSION free_plural_expression # define PLURAL_PARSE parse_plural_expression # define GERMANIC_PLURAL germanic_plural # define EXTRACT_PLURAL_EXPRESSION extract_plural_expression #endif extern void FREE_EXPRESSION (struct expression *exp) internal_function; extern int PLURAL_PARSE (void *arg); extern struct expression GERMANIC_PLURAL attribute_hidden; extern void EXTRACT_PLURAL_EXPRESSION (const char *nullentry, const struct expression **pluralp, unsigned long int *npluralsp) internal_function; #if !defined (_LIBC) && !defined (IN_LIBINTL) && !defined (IN_LIBGLOCALE) extern unsigned long int plural_eval (const struct expression *pexp, unsigned long int n); #endif #ifdef __cplusplus } #endif #endif /* _PLURAL_EXP_H */ gtick-0.5.2/intl/dcngettext.c0000644000175000017500000000347410661555177013050 00000000000000/* Implementation of the dcngettext(3) function. Copyright (C) 1995-1999, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCNGETTEXT __dcngettext # define DCIGETTEXT __dcigettext #else # define DCNGETTEXT libintl_dcngettext # define DCIGETTEXT libintl_dcigettext #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ char * DCNGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n, int category) { return DCIGETTEXT (domainname, msgid1, msgid2, 1, n, category); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dcngettext, dcngettext); #endif gtick-0.5.2/intl/finddomain.c0000644000175000017500000001367311617270151012775 00000000000000/* Handle list of needed message catalogs Copyright (C) 1995-1999, 2000-2001, 2003-2007 Free Software Foundation, Inc. Written by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define_initialized __libc_rwlock_define_initialized # define gl_rwlock_rdlock __libc_rwlock_rdlock # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock #else # include "lock.h" #endif /* @@ end of prolog @@ */ /* List of already loaded domains. */ static struct loaded_l10nfile *_nl_loaded_domains; /* Return a data structure describing the message catalog described by the DOMAINNAME and CATEGORY parameters with respect to the currently established bindings. */ struct loaded_l10nfile * internal_function _nl_find_domain (const char *dirname, char *locale, const char *domainname, struct binding *domainbinding) { struct loaded_l10nfile *retval; const char *language; const char *modifier; const char *territory; const char *codeset; const char *normalized_codeset; const char *alias_value; int mask; /* LOCALE can consist of up to four recognized parts for the XPG syntax: language[_territory][.codeset][@modifier] Beside the first part all of them are allowed to be missing. If the full specified locale is not found, the less specific one are looked for. The various parts will be stripped off according to the following order: (1) codeset (2) normalized codeset (3) territory (4) modifier */ /* We need to protect modifying the _NL_LOADED_DOMAINS data. */ gl_rwlock_define_initialized (static, lock); gl_rwlock_rdlock (lock); /* If we have already tested for this locale entry there has to be one data set in the list of loaded domains. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, 0, locale, NULL, NULL, NULL, NULL, domainname, 0); gl_rwlock_unlock (lock); if (retval != NULL) { /* We know something about this locale. */ int cnt; if (retval->decided <= 0) _nl_load_domain (retval, domainbinding); if (retval->data != NULL) return retval; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided <= 0) _nl_load_domain (retval->successor[cnt], domainbinding); if (retval->successor[cnt]->data != NULL) break; } return retval; /* NOTREACHED */ } /* See whether the locale value is an alias. If yes its value *overwrites* the alias name. No test for the original value is done. */ alias_value = _nl_expand_alias (locale); if (alias_value != NULL) { #if defined _LIBC || defined HAVE_STRDUP locale = strdup (alias_value); if (locale == NULL) return NULL; #else size_t len = strlen (alias_value) + 1; locale = (char *) malloc (len); if (locale == NULL) return NULL; memcpy (locale, alias_value, len); #endif } /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_', '.', and `@'. */ mask = _nl_explode_name (locale, &language, &modifier, &territory, &codeset, &normalized_codeset); if (mask == -1) /* This means we are out of core. */ return NULL; /* We need to protect modifying the _NL_LOADED_DOMAINS data. */ gl_rwlock_wrlock (lock); /* Create all possible locale entries which might be interested in generalization. */ retval = _nl_make_l10nflist (&_nl_loaded_domains, dirname, strlen (dirname) + 1, mask, language, territory, codeset, normalized_codeset, modifier, domainname, 1); gl_rwlock_unlock (lock); if (retval == NULL) /* This means we are out of core. */ goto out; if (retval->decided <= 0) _nl_load_domain (retval, domainbinding); if (retval->data == NULL) { int cnt; for (cnt = 0; retval->successor[cnt] != NULL; ++cnt) { if (retval->successor[cnt]->decided <= 0) _nl_load_domain (retval->successor[cnt], domainbinding); if (retval->successor[cnt]->data != NULL) break; } } /* The room for an alias was dynamically allocated. Free it now. */ if (alias_value != NULL) free (locale); out: /* The space for normalized_codeset is dynamically allocated. Free it. */ if (mask & XPG_NORM_CODESET) free ((void *) normalized_codeset); return retval; } #ifdef _LIBC /* This is called from iconv/gconv_db.c's free_mem, as locales must be freed before freeing gconv steps arrays. */ void __libc_freeres_fn_section _nl_finddomain_subfreeres () { struct loaded_l10nfile *runp = _nl_loaded_domains; while (runp != NULL) { struct loaded_l10nfile *here = runp; if (runp->data != NULL) _nl_unload_domain ((struct loaded_domain *) runp->data); runp = runp->next; free ((char *) here->filename); free (here); } } #endif gtick-0.5.2/intl/vasnwprintf.h0000644000175000017500000000330611617270153013245 00000000000000/* vswprintf with automatic memory allocation. Copyright (C) 2002-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _VASNWPRINTF_H #define _VASNWPRINTF_H /* Get va_list. */ #include /* Get wchar_t, size_t. */ #include #ifdef __cplusplus extern "C" { #endif /* Write formatted output to a string dynamically allocated with malloc(). You can pass a preallocated buffer for the result in RESULTBUF and its size in *LENGTHP; otherwise you pass RESULTBUF = NULL. If successful, return the address of the string (this may be = RESULTBUF if no dynamic memory allocation was necessary) and set *LENGTHP to the number of resulting bytes, excluding the trailing NUL. Upon error, set errno and return NULL. */ extern wchar_t * asnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, ...); extern wchar_t * vasnwprintf (wchar_t *resultbuf, size_t *lengthp, const wchar_t *format, va_list args); #ifdef __cplusplus } #endif #endif /* _VASNWPRINTF_H */ gtick-0.5.2/intl/explodename.c0000644000175000017500000000654611617270151013167 00000000000000/* Copyright (C) 1995-1998, 2000-2001, 2003, 2005, 2007 Free Software Foundation, Inc. Contributed by Ulrich Drepper , 1995. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "loadinfo.h" /* On some strange systems still no definition of NULL is found. Sigh! */ #ifndef NULL # if defined __STDC__ && __STDC__ # define NULL ((void *) 0) # else # define NULL 0 # endif #endif /* @@ end of prolog @@ */ /* Split a locale name NAME into a leading language part and all the rest. Return a pointer to the first character after the language, i.e. to the first byte of the rest. */ static char *_nl_find_language (const char *name); static char * _nl_find_language (const char *name) { while (name[0] != '\0' && name[0] != '_' && name[0] != '@' && name[0] != '.') ++name; return (char *) name; } int _nl_explode_name (char *name, const char **language, const char **modifier, const char **territory, const char **codeset, const char **normalized_codeset) { char *cp; int mask; *modifier = NULL; *territory = NULL; *codeset = NULL; *normalized_codeset = NULL; /* Now we determine the single parts of the locale name. First look for the language. Termination symbols are `_', '.', and `@'. */ mask = 0; *language = cp = name; cp = _nl_find_language (*language); if (*language == cp) /* This does not make sense: language has to be specified. Use this entry as it is without exploding. Perhaps it is an alias. */ cp = strchr (*language, '\0'); else { if (cp[0] == '_') { /* Next is the territory. */ cp[0] = '\0'; *territory = ++cp; while (cp[0] != '\0' && cp[0] != '.' && cp[0] != '@') ++cp; mask |= XPG_TERRITORY; } if (cp[0] == '.') { /* Next is the codeset. */ cp[0] = '\0'; *codeset = ++cp; while (cp[0] != '\0' && cp[0] != '@') ++cp; mask |= XPG_CODESET; if (*codeset != cp && (*codeset)[0] != '\0') { *normalized_codeset = _nl_normalize_codeset (*codeset, cp - *codeset); if (*normalized_codeset == NULL) return -1; else if (strcmp (*codeset, *normalized_codeset) == 0) free ((char *) *normalized_codeset); else mask |= XPG_NORM_CODESET; } } } if (cp[0] == '@') { /* Next is the modifier. */ cp[0] = '\0'; *modifier = ++cp; if (cp[0] != '\0') mask |= XPG_MODIFIER; } if (*territory != NULL && (*territory)[0] == '\0') mask &= ~XPG_TERRITORY; if (*codeset != NULL && (*codeset)[0] == '\0') mask &= ~XPG_CODESET; return mask; } gtick-0.5.2/intl/bindtextdom.c0000644000175000017500000002134211617270150013175 00000000000000/* Implementation of the bindtextdomain(3) function Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include #include #include #include "gettextP.h" #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define __libc_rwlock_define # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock #else # include "lock.h" #endif /* Some compilers, like SunOS4 cc, don't have offsetof in . */ #ifndef offsetof # define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) #endif /* @@ end of prolog @@ */ /* Lock variable to protect the global data in the gettext implementation. */ gl_rwlock_define (extern, _nl_state_lock attribute_hidden) /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define BINDTEXTDOMAIN __bindtextdomain # define BIND_TEXTDOMAIN_CODESET __bind_textdomain_codeset # ifndef strdup # define strdup(str) __strdup (str) # endif #else # define BINDTEXTDOMAIN libintl_bindtextdomain # define BIND_TEXTDOMAIN_CODESET libintl_bind_textdomain_codeset #endif /* Specifies the directory name *DIRNAMEP and the output codeset *CODESETP to be used for the DOMAINNAME message catalog. If *DIRNAMEP or *CODESETP is NULL, the corresponding attribute is not modified, only the current value is returned. If DIRNAMEP or CODESETP is NULL, the corresponding attribute is neither modified nor returned. */ static void set_binding_values (const char *domainname, const char **dirnamep, const char **codesetp) { struct binding *binding; int modified; /* Some sanity checks. */ if (domainname == NULL || domainname[0] == '\0') { if (dirnamep) *dirnamep = NULL; if (codesetp) *codesetp = NULL; return; } gl_rwlock_wrlock (_nl_state_lock); modified = 0; for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding != NULL) { if (dirnamep) { const char *dirname = *dirnamep; if (dirname == NULL) /* The current binding has be to returned. */ *dirnamep = binding->dirname; else { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ char *result = binding->dirname; if (strcmp (dirname, result) != 0) { if (strcmp (dirname, _nl_default_dirname) == 0) result = (char *) _nl_default_dirname; else { #if defined _LIBC || defined HAVE_STRDUP result = strdup (dirname); #else size_t len = strlen (dirname) + 1; result = (char *) malloc (len); if (__builtin_expect (result != NULL, 1)) memcpy (result, dirname, len); #endif } if (__builtin_expect (result != NULL, 1)) { if (binding->dirname != _nl_default_dirname) free (binding->dirname); binding->dirname = result; modified = 1; } } *dirnamep = result; } } if (codesetp) { const char *codeset = *codesetp; if (codeset == NULL) /* The current binding has be to returned. */ *codesetp = binding->codeset; else { /* The domain is already bound. If the new value and the old one are equal we simply do nothing. Otherwise replace the old binding. */ char *result = binding->codeset; if (result == NULL || strcmp (codeset, result) != 0) { #if defined _LIBC || defined HAVE_STRDUP result = strdup (codeset); #else size_t len = strlen (codeset) + 1; result = (char *) malloc (len); if (__builtin_expect (result != NULL, 1)) memcpy (result, codeset, len); #endif if (__builtin_expect (result != NULL, 1)) { free (binding->codeset); binding->codeset = result; modified = 1; } } *codesetp = result; } } } else if ((dirnamep == NULL || *dirnamep == NULL) && (codesetp == NULL || *codesetp == NULL)) { /* Simply return the default values. */ if (dirnamep) *dirnamep = _nl_default_dirname; if (codesetp) *codesetp = NULL; } else { /* We have to create a new binding. */ size_t len = strlen (domainname) + 1; struct binding *new_binding = (struct binding *) malloc (offsetof (struct binding, domainname) + len); if (__builtin_expect (new_binding == NULL, 0)) goto failed; memcpy (new_binding->domainname, domainname, len); if (dirnamep) { const char *dirname = *dirnamep; if (dirname == NULL) /* The default value. */ dirname = _nl_default_dirname; else { if (strcmp (dirname, _nl_default_dirname) == 0) dirname = _nl_default_dirname; else { char *result; #if defined _LIBC || defined HAVE_STRDUP result = strdup (dirname); if (__builtin_expect (result == NULL, 0)) goto failed_dirname; #else size_t len = strlen (dirname) + 1; result = (char *) malloc (len); if (__builtin_expect (result == NULL, 0)) goto failed_dirname; memcpy (result, dirname, len); #endif dirname = result; } } *dirnamep = dirname; new_binding->dirname = (char *) dirname; } else /* The default value. */ new_binding->dirname = (char *) _nl_default_dirname; if (codesetp) { const char *codeset = *codesetp; if (codeset != NULL) { char *result; #if defined _LIBC || defined HAVE_STRDUP result = strdup (codeset); if (__builtin_expect (result == NULL, 0)) goto failed_codeset; #else size_t len = strlen (codeset) + 1; result = (char *) malloc (len); if (__builtin_expect (result == NULL, 0)) goto failed_codeset; memcpy (result, codeset, len); #endif codeset = result; } *codesetp = codeset; new_binding->codeset = (char *) codeset; } else new_binding->codeset = NULL; /* Now enqueue it. */ if (_nl_domain_bindings == NULL || strcmp (domainname, _nl_domain_bindings->domainname) < 0) { new_binding->next = _nl_domain_bindings; _nl_domain_bindings = new_binding; } else { binding = _nl_domain_bindings; while (binding->next != NULL && strcmp (domainname, binding->next->domainname) > 0) binding = binding->next; new_binding->next = binding->next; binding->next = new_binding; } modified = 1; /* Here we deal with memory allocation failures. */ if (0) { failed_codeset: if (new_binding->dirname != _nl_default_dirname) free (new_binding->dirname); failed_dirname: free (new_binding); failed: if (dirnamep) *dirnamep = NULL; if (codesetp) *codesetp = NULL; } } /* If we modified any binding, we flush the caches. */ if (modified) ++_nl_msg_cat_cntr; gl_rwlock_unlock (_nl_state_lock); } /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ char * BINDTEXTDOMAIN (const char *domainname, const char *dirname) { set_binding_values (domainname, &dirname, NULL); return (char *) dirname; } /* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned. */ char * BIND_TEXTDOMAIN_CODESET (const char *domainname, const char *codeset) { set_binding_values (domainname, NULL, &codeset); return (char *) codeset; } #ifdef _LIBC /* Aliases for function names in GNU C Library. */ weak_alias (__bindtextdomain, bindtextdomain); weak_alias (__bind_textdomain_codeset, bind_textdomain_codeset); #endif gtick-0.5.2/intl/intl-exports.c0000644000175000017500000000332711617270151013330 00000000000000/* List of exported symbols of libintl on Cygwin. Copyright (C) 2006 Free Software Foundation, Inc. Written by Bruno Haible , 2006. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* IMP(x) is a symbol that contains the address of x. */ #define IMP(x) _imp__##x /* Ensure that the variable x is exported from the library, and that a pseudo-variable IMP(x) is available. */ #define VARIABLE(x) \ /* Export x without redefining x. This code was found by compiling a \ snippet: \ extern __declspec(dllexport) int x; int x = 42; */ \ asm (".section .drectve\n"); \ asm (".ascii \" -export:" #x ",data\"\n"); \ asm (".data\n"); \ /* Allocate a pseudo-variable IMP(x). */ \ extern int x; \ void * IMP(x) = &x; VARIABLE(libintl_version) gtick-0.5.2/intl/printf-parse.c0000644000175000017500000005214011617270153013271 00000000000000/* Formatted output to strings. Copyright (C) 1999-2000, 2002-2003, 2006-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* This file can be parametrized with the following macros: CHAR_T The element type of the format string. CHAR_T_ONLY_ASCII Set to 1 to enable verification that all characters in the format string are ASCII. DIRECTIVE Structure denoting a format directive. Depends on CHAR_T. DIRECTIVES Structure denoting the set of format directives of a format string. Depends on CHAR_T. PRINTF_PARSE Function that parses a format string. Depends on CHAR_T. STATIC Set to 'static' to declare the function static. ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. */ #ifndef PRINTF_PARSE # include #endif /* Specification. */ #ifndef PRINTF_PARSE # include "printf-parse.h" #endif /* Default parameters. */ #ifndef PRINTF_PARSE # define PRINTF_PARSE printf_parse # define CHAR_T char # define DIRECTIVE char_directive # define DIRECTIVES char_directives #endif /* Get size_t, NULL. */ #include /* Get intmax_t. */ #if defined IN_LIBINTL || defined IN_LIBASPRINTF # if HAVE_STDINT_H_WITH_UINTMAX # include # endif # if HAVE_INTTYPES_H_WITH_UINTMAX # include # endif #else # include #endif /* malloc(), realloc(), free(). */ #include /* errno. */ #include /* Checked size_t computations. */ #include "xsize.h" #if CHAR_T_ONLY_ASCII /* c_isascii(). */ # include "c-ctype.h" #endif #ifdef STATIC STATIC #endif int PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a) { const CHAR_T *cp = format; /* pointer into format */ size_t arg_posn = 0; /* number of regular arguments consumed */ size_t d_allocated; /* allocated elements of d->dir */ size_t a_allocated; /* allocated elements of a->arg */ size_t max_width_length = 0; size_t max_precision_length = 0; d->count = 0; d_allocated = 1; d->dir = (DIRECTIVE *) malloc (d_allocated * sizeof (DIRECTIVE)); if (d->dir == NULL) /* Out of memory. */ goto out_of_memory_1; a->count = 0; a_allocated = 0; a->arg = NULL; #define REGISTER_ARG(_index_,_type_) \ { \ size_t n = (_index_); \ if (n >= a_allocated) \ { \ size_t memory_size; \ argument *memory; \ \ a_allocated = xtimes (a_allocated, 2); \ if (a_allocated <= n) \ a_allocated = xsum (n, 1); \ memory_size = xtimes (a_allocated, sizeof (argument)); \ if (size_overflow_p (memory_size)) \ /* Overflow, would lead to out of memory. */ \ goto out_of_memory; \ memory = (argument *) (a->arg \ ? realloc (a->arg, memory_size) \ : malloc (memory_size)); \ if (memory == NULL) \ /* Out of memory. */ \ goto out_of_memory; \ a->arg = memory; \ } \ while (a->count <= n) \ a->arg[a->count++].type = TYPE_NONE; \ if (a->arg[n].type == TYPE_NONE) \ a->arg[n].type = (_type_); \ else if (a->arg[n].type != (_type_)) \ /* Ambiguous type for positional argument. */ \ goto error; \ } while (*cp != '\0') { CHAR_T c = *cp++; if (c == '%') { size_t arg_index = ARG_NONE; DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ /* Initialize the next directive. */ dp->dir_start = cp - 1; dp->flags = 0; dp->width_start = NULL; dp->width_end = NULL; dp->width_arg_index = ARG_NONE; dp->precision_start = NULL; dp->precision_end = NULL; dp->precision_arg_index = ARG_NONE; dp->arg_index = ARG_NONE; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; arg_index = n - 1; cp = np + 1; } } /* Read the flags. */ for (;;) { if (*cp == '\'') { dp->flags |= FLAG_GROUP; cp++; } else if (*cp == '-') { dp->flags |= FLAG_LEFT; cp++; } else if (*cp == '+') { dp->flags |= FLAG_SHOWSIGN; cp++; } else if (*cp == ' ') { dp->flags |= FLAG_SPACE; cp++; } else if (*cp == '#') { dp->flags |= FLAG_ALT; cp++; } else if (*cp == '0') { dp->flags |= FLAG_ZERO; cp++; } else break; } /* Parse the field width. */ if (*cp == '*') { dp->width_start = cp; cp++; dp->width_end = cp; if (max_width_length < 1) max_width_length = 1; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; dp->width_arg_index = n - 1; cp = np + 1; } } if (dp->width_arg_index == ARG_NONE) { dp->width_arg_index = arg_posn++; if (dp->width_arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->width_arg_index, TYPE_INT); } else if (*cp >= '0' && *cp <= '9') { size_t width_length; dp->width_start = cp; for (; *cp >= '0' && *cp <= '9'; cp++) ; dp->width_end = cp; width_length = dp->width_end - dp->width_start; if (max_width_length < width_length) max_width_length = width_length; } /* Parse the precision. */ if (*cp == '.') { cp++; if (*cp == '*') { dp->precision_start = cp - 1; cp++; dp->precision_end = cp; if (max_precision_length < 2) max_precision_length = 2; /* Test for positional argument. */ if (*cp >= '0' && *cp <= '9') { const CHAR_T *np; for (np = cp; *np >= '0' && *np <= '9'; np++) ; if (*np == '$') { size_t n = 0; for (np = cp; *np >= '0' && *np <= '9'; np++) n = xsum (xtimes (n, 10), *np - '0'); if (n == 0) /* Positional argument 0. */ goto error; if (size_overflow_p (n)) /* n too large, would lead to out of memory later. */ goto error; dp->precision_arg_index = n - 1; cp = np + 1; } } if (dp->precision_arg_index == ARG_NONE) { dp->precision_arg_index = arg_posn++; if (dp->precision_arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->precision_arg_index, TYPE_INT); } else { size_t precision_length; dp->precision_start = cp - 1; for (; *cp >= '0' && *cp <= '9'; cp++) ; dp->precision_end = cp; precision_length = dp->precision_end - dp->precision_start; if (max_precision_length < precision_length) max_precision_length = precision_length; } } { arg_type type; /* Parse argument type/size specifiers. */ { int flags = 0; for (;;) { if (*cp == 'h') { flags |= (1 << (flags & 1)); cp++; } else if (*cp == 'L') { flags |= 4; cp++; } else if (*cp == 'l') { flags += 8; cp++; } else if (*cp == 'j') { if (sizeof (intmax_t) > sizeof (long)) { /* intmax_t = long long */ flags += 16; } else if (sizeof (intmax_t) > sizeof (int)) { /* intmax_t = long */ flags += 8; } cp++; } else if (*cp == 'z' || *cp == 'Z') { /* 'z' is standardized in ISO C 99, but glibc uses 'Z' because the warning facility in gcc-2.95.2 understands only 'Z' (see gcc-2.95.2/gcc/c-common.c:1784). */ if (sizeof (size_t) > sizeof (long)) { /* size_t = long long */ flags += 16; } else if (sizeof (size_t) > sizeof (int)) { /* size_t = long */ flags += 8; } cp++; } else if (*cp == 't') { if (sizeof (ptrdiff_t) > sizeof (long)) { /* ptrdiff_t = long long */ flags += 16; } else if (sizeof (ptrdiff_t) > sizeof (int)) { /* ptrdiff_t = long */ flags += 8; } cp++; } #if defined __APPLE__ && defined __MACH__ /* On MacOS X 10.3, PRIdMAX is defined as "qd". We cannot change it to "lld" because PRIdMAX must also be understood by the system's printf routines. */ else if (*cp == 'q') { if (64 / 8 > sizeof (long)) { /* int64_t = long long */ flags += 16; } else { /* int64_t = long */ flags += 8; } cp++; } #endif #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* On native Win32, PRIdMAX is defined as "I64d". We cannot change it to "lld" because PRIdMAX must also be understood by the system's printf routines. */ else if (*cp == 'I' && cp[1] == '6' && cp[2] == '4') { if (64 / 8 > sizeof (long)) { /* __int64 = long long */ flags += 16; } else { /* __int64 = long */ flags += 8; } cp += 3; } #endif else break; } /* Read the conversion character. */ c = *cp++; switch (c) { case 'd': case 'i': #if HAVE_LONG_LONG_INT /* If 'long long' exists and is larger than 'long': */ if (flags >= 16 || (flags & 4)) type = TYPE_LONGLONGINT; else #endif /* If 'long long' exists and is the same as 'long', we parse "lld" into TYPE_LONGINT. */ if (flags >= 8) type = TYPE_LONGINT; else if (flags & 2) type = TYPE_SCHAR; else if (flags & 1) type = TYPE_SHORT; else type = TYPE_INT; break; case 'o': case 'u': case 'x': case 'X': #if HAVE_LONG_LONG_INT /* If 'long long' exists and is larger than 'long': */ if (flags >= 16 || (flags & 4)) type = TYPE_ULONGLONGINT; else #endif /* If 'unsigned long long' exists and is the same as 'unsigned long', we parse "llu" into TYPE_ULONGINT. */ if (flags >= 8) type = TYPE_ULONGINT; else if (flags & 2) type = TYPE_UCHAR; else if (flags & 1) type = TYPE_USHORT; else type = TYPE_UINT; break; case 'f': case 'F': case 'e': case 'E': case 'g': case 'G': case 'a': case 'A': if (flags >= 16 || (flags & 4)) type = TYPE_LONGDOUBLE; else type = TYPE_DOUBLE; break; case 'c': if (flags >= 8) #if HAVE_WINT_T type = TYPE_WIDE_CHAR; #else goto error; #endif else type = TYPE_CHAR; break; #if HAVE_WINT_T case 'C': type = TYPE_WIDE_CHAR; c = 'c'; break; #endif case 's': if (flags >= 8) #if HAVE_WCHAR_T type = TYPE_WIDE_STRING; #else goto error; #endif else type = TYPE_STRING; break; #if HAVE_WCHAR_T case 'S': type = TYPE_WIDE_STRING; c = 's'; break; #endif case 'p': type = TYPE_POINTER; break; case 'n': #if HAVE_LONG_LONG_INT /* If 'long long' exists and is larger than 'long': */ if (flags >= 16 || (flags & 4)) type = TYPE_COUNT_LONGLONGINT_POINTER; else #endif /* If 'long long' exists and is the same as 'long', we parse "lln" into TYPE_COUNT_LONGINT_POINTER. */ if (flags >= 8) type = TYPE_COUNT_LONGINT_POINTER; else if (flags & 2) type = TYPE_COUNT_SCHAR_POINTER; else if (flags & 1) type = TYPE_COUNT_SHORT_POINTER; else type = TYPE_COUNT_INT_POINTER; break; #if ENABLE_UNISTDIO /* The unistdio extensions. */ case 'U': if (flags >= 16) type = TYPE_U32_STRING; else if (flags >= 8) type = TYPE_U16_STRING; else type = TYPE_U8_STRING; break; #endif case '%': type = TYPE_NONE; break; default: /* Unknown conversion character. */ goto error; } } if (type != TYPE_NONE) { dp->arg_index = arg_index; if (dp->arg_index == ARG_NONE) { dp->arg_index = arg_posn++; if (dp->arg_index == ARG_NONE) /* arg_posn wrapped around. */ goto error; } REGISTER_ARG (dp->arg_index, type); } dp->conversion = c; dp->dir_end = cp; } d->count++; if (d->count >= d_allocated) { size_t memory_size; DIRECTIVE *memory; d_allocated = xtimes (d_allocated, 2); memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); if (size_overflow_p (memory_size)) /* Overflow, would lead to out of memory. */ goto out_of_memory; memory = (DIRECTIVE *) realloc (d->dir, memory_size); if (memory == NULL) /* Out of memory. */ goto out_of_memory; d->dir = memory; } } #if CHAR_T_ONLY_ASCII else if (!c_isascii (c)) { /* Non-ASCII character. Not supported. */ goto error; } #endif } d->dir[d->count].dir_start = cp; d->max_width_length = max_width_length; d->max_precision_length = max_precision_length; return 0; error: if (a->arg) free (a->arg); if (d->dir) free (d->dir); errno = EINVAL; return -1; out_of_memory: if (a->arg) free (a->arg); if (d->dir) free (d->dir); out_of_memory_1: errno = ENOMEM; return -1; } #undef PRINTF_PARSE #undef DIRECTIVES #undef DIRECTIVE #undef CHAR_T_ONLY_ASCII #undef CHAR_T gtick-0.5.2/intl/ref-del.sin0000644000175000017500000000203010661555200012532 00000000000000# Remove this package from a list of references stored in a text file. # # Copyright (C) 2000 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. # # Written by Bruno Haible . # /^# Packages using this file: / { s/# Packages using this file:// s/ @PACKAGE@ / / s/^/# Packages using this file:/ } gtick-0.5.2/intl/version.c0000644000175000017500000000173110661555200012341 00000000000000/* libintl library version. Copyright (C) 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "libgnuintl.h" /* Version number: (major<<16) + (minor<<8) + subminor */ int libintl_version = LIBINTL_VERSION; gtick-0.5.2/intl/dngettext.c0000644000175000017500000000354610661555177012705 00000000000000/* Implementation of the dngettext(3) function. Copyright (C) 1995-1997, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H # include #endif #include "gettextP.h" #include #ifdef _LIBC # include #else # include "libgnuintl.h" #endif /* @@ end of prolog @@ */ /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DNGETTEXT __dngettext # define DCNGETTEXT __dcngettext #else # define DNGETTEXT libintl_dngettext # define DCNGETTEXT libintl_dcngettext #endif /* Look up MSGID in the DOMAINNAME message catalog of the current LC_MESSAGES locale and skip message according to the plural form. */ char * DNGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, unsigned long int n) { return DCNGETTEXT (domainname, msgid1, msgid2, n, LC_MESSAGES); } #ifdef _LIBC /* Alias for function name in GNU C Library. */ weak_alias (__dngettext, dngettext); #endif gtick-0.5.2/intl/dcigettext.c0000644000175000017500000013402211617270151013021 00000000000000/* Implementation of the internal dcigettext function. Copyright (C) 1995-1999, 2000-2009 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* Tell glibc's to provide a prototype for mempcpy(). This must come before because may include , and once has been included, it's too late. */ #ifndef _GNU_SOURCE # define _GNU_SOURCE 1 #endif #ifdef HAVE_CONFIG_H # include #endif #include #ifdef __GNUC__ # define alloca __builtin_alloca # define HAVE_ALLOCA 1 #else # ifdef _MSC_VER # include # define alloca _alloca # else # if defined HAVE_ALLOCA_H || defined _LIBC # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca char *alloca (); # endif # endif # endif # endif #endif #include #ifndef errno extern int errno; #endif #ifndef __set_errno # define __set_errno(val) errno = (val) #endif #include #include #include #if defined HAVE_UNISTD_H || defined _LIBC # include #endif #include #ifdef _LIBC /* Guess whether integer division by zero raises signal SIGFPE. Set to 1 only if you know for sure. In case of doubt, set to 0. */ # if defined __alpha__ || defined __arm__ || defined __i386__ \ || defined __m68k__ || defined __s390__ # define INTDIV0_RAISES_SIGFPE 1 # else # define INTDIV0_RAISES_SIGFPE 0 # endif #endif #if !INTDIV0_RAISES_SIGFPE # include #endif #if defined HAVE_SYS_PARAM_H || defined _LIBC # include #endif #if !defined _LIBC # include "localcharset.h" #endif #include "gettextP.h" #include "plural-exp.h" #ifdef _LIBC # include #else # ifdef IN_LIBGLOCALE # include # endif # include "libgnuintl.h" #endif #include "hash-string.h" /* Handle multi-threaded applications. */ #ifdef _LIBC # include # define gl_rwlock_define_initialized __libc_rwlock_define_initialized # define gl_rwlock_rdlock __libc_rwlock_rdlock # define gl_rwlock_wrlock __libc_rwlock_wrlock # define gl_rwlock_unlock __libc_rwlock_unlock #else # include "lock.h" #endif /* Alignment of types. */ #if defined __GNUC__ && __GNUC__ >= 2 # define alignof(TYPE) __alignof__ (TYPE) #else # define alignof(TYPE) \ ((int) &((struct { char dummy1; TYPE dummy2; } *) 0)->dummy2) #endif /* Some compilers, like SunOS4 cc, don't have offsetof in . */ #ifndef offsetof # define offsetof(type,ident) ((size_t)&(((type*)0)->ident)) #endif /* @@ end of prolog @@ */ #ifdef _LIBC /* Rename the non ANSI C functions. This is required by the standard because some ANSI C functions will require linking with this object file and the name space must not be polluted. */ # define getcwd __getcwd # ifndef stpcpy # define stpcpy __stpcpy # endif # define tfind __tfind #else # if !defined HAVE_GETCWD char *getwd (); # define getcwd(buf, max) getwd (buf) # else # if VMS # define getcwd(buf, max) (getcwd) (buf, max, 0) # else char *getcwd (); # endif # endif # ifndef HAVE_STPCPY static char *stpcpy (char *dest, const char *src); # endif # ifndef HAVE_MEMPCPY static void *mempcpy (void *dest, const void *src, size_t n); # endif #endif /* Use a replacement if the system does not provide the `tsearch' function family. */ #if HAVE_TSEARCH || defined _LIBC # include #else # define tsearch libintl_tsearch # define tfind libintl_tfind # define tdelete libintl_tdelete # define twalk libintl_twalk # include "tsearch.h" #endif #ifdef _LIBC # define tsearch __tsearch #endif /* Amount to increase buffer size by in each try. */ #define PATH_INCR 32 /* The following is from pathmax.h. */ /* Non-POSIX BSD systems might have gcc's limits.h, which doesn't define PATH_MAX but might cause redefinition warnings when sys/param.h is later included (as on MORE/BSD 4.3). */ #if defined _POSIX_VERSION || (defined HAVE_LIMITS_H && !defined __GNUC__) # include #endif #ifndef _POSIX_PATH_MAX # define _POSIX_PATH_MAX 255 #endif #if !defined PATH_MAX && defined _PC_PATH_MAX # define PATH_MAX (pathconf ("/", _PC_PATH_MAX) < 1 ? 1024 : pathconf ("/", _PC_PATH_MAX)) #endif /* Don't include sys/param.h if it already has been. */ #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN # include #endif #if !defined PATH_MAX && defined MAXPATHLEN # define PATH_MAX MAXPATHLEN #endif #ifndef PATH_MAX # define PATH_MAX _POSIX_PATH_MAX #endif /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. IS_ABSOLUTE_PATH(P) tests whether P is an absolute path. If it is not, it may be concatenated to a directory pathname. IS_PATH_WITH_DIR(P) tests whether P contains a directory specification. */ #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__ /* Win32, Cygwin, OS/2, DOS */ # define ISSLASH(C) ((C) == '/' || (C) == '\\') # define HAS_DEVICE(P) \ ((((P)[0] >= 'A' && (P)[0] <= 'Z') || ((P)[0] >= 'a' && (P)[0] <= 'z')) \ && (P)[1] == ':') # define IS_ABSOLUTE_PATH(P) (ISSLASH ((P)[0]) || HAS_DEVICE (P)) # define IS_PATH_WITH_DIR(P) \ (strchr (P, '/') != NULL || strchr (P, '\\') != NULL || HAS_DEVICE (P)) #else /* Unix */ # define ISSLASH(C) ((C) == '/') # define IS_ABSOLUTE_PATH(P) ISSLASH ((P)[0]) # define IS_PATH_WITH_DIR(P) (strchr (P, '/') != NULL) #endif /* Whether to support different locales in different threads. */ #if defined _LIBC || HAVE_USELOCALE || defined IN_LIBGLOCALE # define HAVE_PER_THREAD_LOCALE #endif /* This is the type used for the search tree where known translations are stored. */ struct known_translation_t { /* Domain in which to search. */ const char *domainname; /* The category. */ int category; #ifdef HAVE_PER_THREAD_LOCALE /* Name of the relevant locale category, or "" for the global locale. */ const char *localename; #endif #ifdef IN_LIBGLOCALE /* The character encoding. */ const char *encoding; #endif /* State of the catalog counter at the point the string was found. */ int counter; /* Catalog where the string was found. */ struct loaded_l10nfile *domain; /* And finally the translation. */ const char *translation; size_t translation_length; /* Pointer to the string in question. */ union { char appended[ZERO]; /* used if domain != NULL */ const char *ptr; /* used if domain == NULL */ } msgid; }; gl_rwlock_define_initialized (static, tree_lock) /* Root of the search tree with known translations. */ static void *root; /* Function to compare two entries in the table of known translations. */ static int transcmp (const void *p1, const void *p2) { const struct known_translation_t *s1; const struct known_translation_t *s2; int result; s1 = (const struct known_translation_t *) p1; s2 = (const struct known_translation_t *) p2; result = strcmp (s1->domain != NULL ? s1->msgid.appended : s1->msgid.ptr, s2->domain != NULL ? s2->msgid.appended : s2->msgid.ptr); if (result == 0) { result = strcmp (s1->domainname, s2->domainname); if (result == 0) { #ifdef HAVE_PER_THREAD_LOCALE result = strcmp (s1->localename, s2->localename); if (result == 0) #endif { #ifdef IN_LIBGLOCALE result = strcmp (s1->encoding, s2->encoding); if (result == 0) #endif /* We compare the category last (though this is the cheapest operation) since it is hopefully always the same (namely LC_MESSAGES). */ result = s1->category - s2->category; } } } return result; } /* Name of the default domain used for gettext(3) prior any call to textdomain(3). The default value for this is "messages". */ const char _nl_default_default_domain[] attribute_hidden = "messages"; #ifndef IN_LIBGLOCALE /* Value used as the default domain for gettext(3). */ const char *_nl_current_default_domain attribute_hidden = _nl_default_default_domain; #endif /* Contains the default location of the message catalogs. */ #if defined __EMX__ extern const char _nl_default_dirname[]; #else # ifdef _LIBC extern const char _nl_default_dirname[]; libc_hidden_proto (_nl_default_dirname) # endif const char _nl_default_dirname[] = LOCALEDIR; # ifdef _LIBC libc_hidden_data_def (_nl_default_dirname) # endif #endif #ifndef IN_LIBGLOCALE /* List with bindings of specific domains created by bindtextdomain() calls. */ struct binding *_nl_domain_bindings; #endif /* Prototypes for local functions. */ static char *plural_lookup (struct loaded_l10nfile *domain, unsigned long int n, const char *translation, size_t translation_len) internal_function; #ifdef IN_LIBGLOCALE static const char *guess_category_value (int category, const char *categoryname, const char *localename) internal_function; #else static const char *guess_category_value (int category, const char *categoryname) internal_function; #endif #ifdef _LIBC # include "../locale/localeinfo.h" # define category_to_name(category) \ _nl_category_names.str + _nl_category_name_idxs[category] #else static const char *category_to_name (int category) internal_function; #endif #if (defined _LIBC || HAVE_ICONV) && !defined IN_LIBGLOCALE static const char *get_output_charset (struct binding *domainbinding) internal_function; #endif /* For those loosing systems which don't have `alloca' we have to add some additional code emulating it. */ #ifdef HAVE_ALLOCA /* Nothing has to be done. */ # define freea(p) /* nothing */ # define ADD_BLOCK(list, address) /* nothing */ # define FREE_BLOCKS(list) /* nothing */ #else struct block_list { void *address; struct block_list *next; }; # define ADD_BLOCK(list, addr) \ do { \ struct block_list *newp = (struct block_list *) malloc (sizeof (*newp)); \ /* If we cannot get a free block we cannot add the new element to \ the list. */ \ if (newp != NULL) { \ newp->address = (addr); \ newp->next = (list); \ (list) = newp; \ } \ } while (0) # define FREE_BLOCKS(list) \ do { \ while (list != NULL) { \ struct block_list *old = list; \ list = list->next; \ free (old->address); \ free (old); \ } \ } while (0) # undef alloca # define alloca(size) (malloc (size)) # define freea(p) free (p) #endif /* have alloca */ #ifdef _LIBC /* List of blocks allocated for translations. */ typedef struct transmem_list { struct transmem_list *next; char data[ZERO]; } transmem_block_t; static struct transmem_list *transmem_list; #else typedef unsigned char transmem_block_t; #endif /* Names for the libintl functions are a problem. They must not clash with existing names and they should follow ANSI C. But this source code is also used in GNU C Library where the names have a __ prefix. So we have to make a difference here. */ #ifdef _LIBC # define DCIGETTEXT __dcigettext #else # define DCIGETTEXT libintl_dcigettext #endif /* Lock variable to protect the global data in the gettext implementation. */ gl_rwlock_define_initialized (, _nl_state_lock attribute_hidden) /* Checking whether the binaries runs SUID must be done and glibc provides easier methods therefore we make a difference here. */ #ifdef _LIBC # define ENABLE_SECURE __libc_enable_secure # define DETERMINE_SECURE #else # ifndef HAVE_GETUID # define getuid() 0 # endif # ifndef HAVE_GETGID # define getgid() 0 # endif # ifndef HAVE_GETEUID # define geteuid() getuid() # endif # ifndef HAVE_GETEGID # define getegid() getgid() # endif static int enable_secure; # define ENABLE_SECURE (enable_secure == 1) # define DETERMINE_SECURE \ if (enable_secure == 0) \ { \ if (getuid () != geteuid () || getgid () != getegid ()) \ enable_secure = 1; \ else \ enable_secure = -1; \ } #endif /* Get the function to evaluate the plural expression. */ #include "eval-plural.h" /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale and, if PLURAL is nonzero, search over string depending on the plural form determined by N. */ #ifdef IN_LIBGLOCALE char * gl_dcigettext (const char *domainname, const char *msgid1, const char *msgid2, int plural, unsigned long int n, int category, const char *localename, const char *encoding) #else char * DCIGETTEXT (const char *domainname, const char *msgid1, const char *msgid2, int plural, unsigned long int n, int category) #endif { #ifndef HAVE_ALLOCA struct block_list *block_list = NULL; #endif struct loaded_l10nfile *domain; struct binding *binding; const char *categoryname; const char *categoryvalue; const char *dirname; char *xdomainname; char *single_locale; char *retval; size_t retlen; int saved_errno; struct known_translation_t search; struct known_translation_t **foundp = NULL; #if defined HAVE_PER_THREAD_LOCALE && !defined IN_LIBGLOCALE const char *localename; #endif size_t domainname_len; /* If no real MSGID is given return NULL. */ if (msgid1 == NULL) return NULL; #ifdef _LIBC if (category < 0 || category >= __LC_LAST || category == LC_ALL) /* Bogus. */ return (plural == 0 ? (char *) msgid1 /* Use the Germanic plural rule. */ : n == 1 ? (char *) msgid1 : (char *) msgid2); #endif /* Preserve the `errno' value. */ saved_errno = errno; #ifdef _LIBC __libc_rwlock_define (extern, __libc_setlocale_lock attribute_hidden) __libc_rwlock_rdlock (__libc_setlocale_lock); #endif gl_rwlock_rdlock (_nl_state_lock); /* If DOMAINNAME is NULL, we are interested in the default domain. If CATEGORY is not LC_MESSAGES this might not make much sense but the definition left this undefined. */ if (domainname == NULL) domainname = _nl_current_default_domain; /* OS/2 specific: backward compatibility with older libintl versions */ #ifdef LC_MESSAGES_COMPAT if (category == LC_MESSAGES_COMPAT) category = LC_MESSAGES; #endif /* Try to find the translation among those which we found at some time. */ search.domain = NULL; search.msgid.ptr = msgid1; search.domainname = domainname; search.category = category; #ifdef HAVE_PER_THREAD_LOCALE # ifndef IN_LIBGLOCALE # ifdef _LIBC localename = _strdupa (_current_locale_name (category)); # else categoryname = category_to_name (category); # define CATEGORYNAME_INITIALIZED localename = _nl_locale_name_thread_unsafe (category, categoryname); if (localename == NULL) localename = ""; # endif # endif search.localename = localename; # ifdef IN_LIBGLOCALE search.encoding = encoding; # endif /* Since tfind/tsearch manage a balanced tree, concurrent tfind and tsearch calls can be fatal. */ gl_rwlock_rdlock (tree_lock); foundp = (struct known_translation_t **) tfind (&search, &root, transcmp); gl_rwlock_unlock (tree_lock); if (foundp != NULL && (*foundp)->counter == _nl_msg_cat_cntr) { /* Now deal with plural. */ if (plural) retval = plural_lookup ((*foundp)->domain, n, (*foundp)->translation, (*foundp)->translation_length); else retval = (char *) (*foundp)->translation; gl_rwlock_unlock (_nl_state_lock); # ifdef _LIBC __libc_rwlock_unlock (__libc_setlocale_lock); # endif __set_errno (saved_errno); return retval; } #endif /* See whether this is a SUID binary or not. */ DETERMINE_SECURE; /* First find matching binding. */ #ifdef IN_LIBGLOCALE /* We can use a trivial binding, since _nl_find_msg will ignore it anyway, and _nl_load_domain and _nl_find_domain just pass it through. */ binding = NULL; dirname = bindtextdomain (domainname, NULL); #else for (binding = _nl_domain_bindings; binding != NULL; binding = binding->next) { int compare = strcmp (domainname, binding->domainname); if (compare == 0) /* We found it! */ break; if (compare < 0) { /* It is not in the list. */ binding = NULL; break; } } if (binding == NULL) dirname = _nl_default_dirname; else { dirname = binding->dirname; #endif if (!IS_ABSOLUTE_PATH (dirname)) { /* We have a relative path. Make it absolute now. */ size_t dirname_len = strlen (dirname) + 1; size_t path_max; char *resolved_dirname; char *ret; path_max = (unsigned int) PATH_MAX; path_max += 2; /* The getcwd docs say to do this. */ for (;;) { resolved_dirname = (char *) alloca (path_max + dirname_len); ADD_BLOCK (block_list, tmp_dirname); __set_errno (0); ret = getcwd (resolved_dirname, path_max); if (ret != NULL || errno != ERANGE) break; path_max += path_max / 2; path_max += PATH_INCR; } if (ret == NULL) /* We cannot get the current working directory. Don't signal an error but simply return the default string. */ goto return_untranslated; stpcpy (stpcpy (strchr (resolved_dirname, '\0'), "/"), dirname); dirname = resolved_dirname; } #ifndef IN_LIBGLOCALE } #endif /* Now determine the symbolic name of CATEGORY and its value. */ #ifndef CATEGORYNAME_INITIALIZED categoryname = category_to_name (category); #endif #ifdef IN_LIBGLOCALE categoryvalue = guess_category_value (category, categoryname, localename); #else categoryvalue = guess_category_value (category, categoryname); #endif domainname_len = strlen (domainname); xdomainname = (char *) alloca (strlen (categoryname) + domainname_len + 5); ADD_BLOCK (block_list, xdomainname); stpcpy ((char *) mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"), domainname, domainname_len), ".mo"); /* Creating working area. */ single_locale = (char *) alloca (strlen (categoryvalue) + 1); ADD_BLOCK (block_list, single_locale); /* Search for the given string. This is a loop because we perhaps got an ordered list of languages to consider for the translation. */ while (1) { /* Make CATEGORYVALUE point to the next element of the list. */ while (categoryvalue[0] != '\0' && categoryvalue[0] == ':') ++categoryvalue; if (categoryvalue[0] == '\0') { /* The whole contents of CATEGORYVALUE has been searched but no valid entry has been found. We solve this situation by implicitly appending a "C" entry, i.e. no translation will take place. */ single_locale[0] = 'C'; single_locale[1] = '\0'; } else { char *cp = single_locale; while (categoryvalue[0] != '\0' && categoryvalue[0] != ':') *cp++ = *categoryvalue++; *cp = '\0'; /* When this is a SUID binary we must not allow accessing files outside the dedicated directories. */ if (ENABLE_SECURE && IS_PATH_WITH_DIR (single_locale)) /* Ingore this entry. */ continue; } /* If the current locale value is C (or POSIX) we don't load a domain. Return the MSGID. */ if (strcmp (single_locale, "C") == 0 || strcmp (single_locale, "POSIX") == 0) break; /* Find structure describing the message catalog matching the DOMAINNAME and CATEGORY. */ domain = _nl_find_domain (dirname, single_locale, xdomainname, binding); if (domain != NULL) { #if defined IN_LIBGLOCALE retval = _nl_find_msg (domain, binding, encoding, msgid1, &retlen); #else retval = _nl_find_msg (domain, binding, msgid1, 1, &retlen); #endif if (retval == NULL) { int cnt; for (cnt = 0; domain->successor[cnt] != NULL; ++cnt) { #if defined IN_LIBGLOCALE retval = _nl_find_msg (domain->successor[cnt], binding, encoding, msgid1, &retlen); #else retval = _nl_find_msg (domain->successor[cnt], binding, msgid1, 1, &retlen); #endif if (retval != NULL) { domain = domain->successor[cnt]; break; } } } /* Returning -1 means that some resource problem exists (likely memory) and that the strings could not be converted. Return the original strings. */ if (__builtin_expect (retval == (char *) -1, 0)) break; if (retval != NULL) { /* Found the translation of MSGID1 in domain DOMAIN: starting at RETVAL, RETLEN bytes. */ FREE_BLOCKS (block_list); if (foundp == NULL) { /* Create a new entry and add it to the search tree. */ size_t msgid_len; size_t size; struct known_translation_t *newp; msgid_len = strlen (msgid1) + 1; size = offsetof (struct known_translation_t, msgid) + msgid_len + domainname_len + 1; #ifdef HAVE_PER_THREAD_LOCALE size += strlen (localename) + 1; #endif newp = (struct known_translation_t *) malloc (size); if (newp != NULL) { char *new_domainname; #ifdef HAVE_PER_THREAD_LOCALE char *new_localename; #endif new_domainname = (char *) mempcpy (newp->msgid.appended, msgid1, msgid_len); memcpy (new_domainname, domainname, domainname_len + 1); #ifdef HAVE_PER_THREAD_LOCALE new_localename = new_domainname + domainname_len + 1; strcpy (new_localename, localename); #endif newp->domainname = new_domainname; newp->category = category; #ifdef HAVE_PER_THREAD_LOCALE newp->localename = new_localename; #endif #ifdef IN_LIBGLOCALE newp->encoding = encoding; #endif newp->counter = _nl_msg_cat_cntr; newp->domain = domain; newp->translation = retval; newp->translation_length = retlen; gl_rwlock_wrlock (tree_lock); /* Insert the entry in the search tree. */ foundp = (struct known_translation_t **) tsearch (newp, &root, transcmp); gl_rwlock_unlock (tree_lock); if (foundp == NULL || __builtin_expect (*foundp != newp, 0)) /* The insert failed. */ free (newp); } } else { /* We can update the existing entry. */ (*foundp)->counter = _nl_msg_cat_cntr; (*foundp)->domain = domain; (*foundp)->translation = retval; (*foundp)->translation_length = retlen; } __set_errno (saved_errno); /* Now deal with plural. */ if (plural) retval = plural_lookup (domain, n, retval, retlen); gl_rwlock_unlock (_nl_state_lock); #ifdef _LIBC __libc_rwlock_unlock (__libc_setlocale_lock); #endif return retval; } } } return_untranslated: /* Return the untranslated MSGID. */ FREE_BLOCKS (block_list); gl_rwlock_unlock (_nl_state_lock); #ifdef _LIBC __libc_rwlock_unlock (__libc_setlocale_lock); #endif #ifndef _LIBC if (!ENABLE_SECURE) { extern void _nl_log_untranslated (const char *logfilename, const char *domainname, const char *msgid1, const char *msgid2, int plural); const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED"); if (logfilename != NULL && logfilename[0] != '\0') _nl_log_untranslated (logfilename, domainname, msgid1, msgid2, plural); } #endif __set_errno (saved_errno); return (plural == 0 ? (char *) msgid1 /* Use the Germanic plural rule. */ : n == 1 ? (char *) msgid1 : (char *) msgid2); } /* Look up the translation of msgid within DOMAIN_FILE and DOMAINBINDING. Return it if found. Return NULL if not found or in case of a conversion failure (problem in the particular message catalog). Return (char *) -1 in case of a memory allocation failure during conversion (only if ENCODING != NULL resp. CONVERT == true). */ char * internal_function #ifdef IN_LIBGLOCALE _nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *encoding, const char *msgid, size_t *lengthp) #else _nl_find_msg (struct loaded_l10nfile *domain_file, struct binding *domainbinding, const char *msgid, int convert, size_t *lengthp) #endif { struct loaded_domain *domain; nls_uint32 nstrings; size_t act; char *result; size_t resultlen; if (domain_file->decided <= 0) _nl_load_domain (domain_file, domainbinding); if (domain_file->data == NULL) return NULL; domain = (struct loaded_domain *) domain_file->data; nstrings = domain->nstrings; /* Locate the MSGID and its translation. */ if (domain->hash_tab != NULL) { /* Use the hashing table. */ nls_uint32 len = strlen (msgid); nls_uint32 hash_val = __hash_string (msgid); nls_uint32 idx = hash_val % domain->hash_size; nls_uint32 incr = 1 + (hash_val % (domain->hash_size - 2)); while (1) { nls_uint32 nstr = W (domain->must_swap_hash_tab, domain->hash_tab[idx]); if (nstr == 0) /* Hash table entry is empty. */ return NULL; nstr--; /* Compare msgid with the original string at index nstr. We compare the lengths with >=, not ==, because plural entries are represented by strings with an embedded NUL. */ if (nstr < nstrings ? W (domain->must_swap, domain->orig_tab[nstr].length) >= len && (strcmp (msgid, domain->data + W (domain->must_swap, domain->orig_tab[nstr].offset)) == 0) : domain->orig_sysdep_tab[nstr - nstrings].length > len && (strcmp (msgid, domain->orig_sysdep_tab[nstr - nstrings].pointer) == 0)) { act = nstr; goto found; } if (idx >= domain->hash_size - incr) idx -= domain->hash_size - incr; else idx += incr; } /* NOTREACHED */ } else { /* Try the default method: binary search in the sorted array of messages. */ size_t top, bottom; bottom = 0; top = nstrings; while (bottom < top) { int cmp_val; act = (bottom + top) / 2; cmp_val = strcmp (msgid, (domain->data + W (domain->must_swap, domain->orig_tab[act].offset))); if (cmp_val < 0) top = act; else if (cmp_val > 0) bottom = act + 1; else goto found; } /* No translation was found. */ return NULL; } found: /* The translation was found at index ACT. If we have to convert the string to use a different character set, this is the time. */ if (act < nstrings) { result = (char *) (domain->data + W (domain->must_swap, domain->trans_tab[act].offset)); resultlen = W (domain->must_swap, domain->trans_tab[act].length) + 1; } else { result = (char *) domain->trans_sysdep_tab[act - nstrings].pointer; resultlen = domain->trans_sysdep_tab[act - nstrings].length; } #if defined _LIBC || HAVE_ICONV # ifdef IN_LIBGLOCALE if (encoding != NULL) # else if (convert) # endif { /* We are supposed to do a conversion. */ # ifndef IN_LIBGLOCALE const char *encoding = get_output_charset (domainbinding); # endif size_t nconversions; struct converted_domain *convd; size_t i; /* Protect against reallocation of the table. */ gl_rwlock_rdlock (domain->conversions_lock); /* Search whether a table with converted translations for this encoding has already been allocated. */ nconversions = domain->nconversions; convd = NULL; for (i = nconversions; i > 0; ) { i--; if (strcmp (domain->conversions[i].encoding, encoding) == 0) { convd = &domain->conversions[i]; break; } } gl_rwlock_unlock (domain->conversions_lock); if (convd == NULL) { /* We have to allocate a new conversions table. */ gl_rwlock_wrlock (domain->conversions_lock); nconversions = domain->nconversions; /* Maybe in the meantime somebody added the translation. Recheck. */ for (i = nconversions; i > 0; ) { i--; if (strcmp (domain->conversions[i].encoding, encoding) == 0) { convd = &domain->conversions[i]; goto found_convd; } } { /* Allocate a table for the converted translations for this encoding. */ struct converted_domain *new_conversions = (struct converted_domain *) (domain->conversions != NULL ? realloc (domain->conversions, (nconversions + 1) * sizeof (struct converted_domain)) : malloc ((nconversions + 1) * sizeof (struct converted_domain))); if (__builtin_expect (new_conversions == NULL, 0)) { /* Nothing we can do, no more memory. We cannot use the translation because it might be encoded incorrectly. */ unlock_fail: gl_rwlock_unlock (domain->conversions_lock); return (char *) -1; } domain->conversions = new_conversions; /* Copy the 'encoding' string to permanent storage. */ encoding = strdup (encoding); if (__builtin_expect (encoding == NULL, 0)) /* Nothing we can do, no more memory. We cannot use the translation because it might be encoded incorrectly. */ goto unlock_fail; convd = &new_conversions[nconversions]; convd->encoding = encoding; /* Find out about the character set the file is encoded with. This can be found (in textual form) in the entry "". If this entry does not exist or if this does not contain the 'charset=' information, we will assume the charset matches the one the current locale and we don't have to perform any conversion. */ # ifdef _LIBC convd->conv = (__gconv_t) -1; # else # if HAVE_ICONV convd->conv = (iconv_t) -1; # endif # endif { char *nullentry; size_t nullentrylen; /* Get the header entry. This is a recursion, but it doesn't reallocate domain->conversions because we pass encoding = NULL or convert = 0, respectively. */ nullentry = # ifdef IN_LIBGLOCALE _nl_find_msg (domain_file, domainbinding, NULL, "", &nullentrylen); # else _nl_find_msg (domain_file, domainbinding, "", 0, &nullentrylen); # endif if (nullentry != NULL) { const char *charsetstr; charsetstr = strstr (nullentry, "charset="); if (charsetstr != NULL) { size_t len; char *charset; const char *outcharset; charsetstr += strlen ("charset="); len = strcspn (charsetstr, " \t\n"); charset = (char *) alloca (len + 1); # if defined _LIBC || HAVE_MEMPCPY *((char *) mempcpy (charset, charsetstr, len)) = '\0'; # else memcpy (charset, charsetstr, len); charset[len] = '\0'; # endif outcharset = encoding; # ifdef _LIBC /* We always want to use transliteration. */ outcharset = norm_add_slashes (outcharset, "TRANSLIT"); charset = norm_add_slashes (charset, ""); int r = __gconv_open (outcharset, charset, &convd->conv, GCONV_AVOID_NOCONV); if (__builtin_expect (r != __GCONV_OK, 0)) { /* If the output encoding is the same there is nothing to do. Otherwise do not use the translation at all. */ if (__builtin_expect (r != __GCONV_NULCONV, 1)) { gl_rwlock_unlock (domain->conversions_lock); free ((char *) encoding); return NULL; } convd->conv = (__gconv_t) -1; } # else # if HAVE_ICONV /* When using GNU libc >= 2.2 or GNU libiconv >= 1.5, we want to use transliteration. */ # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2 \ || _LIBICONV_VERSION >= 0x0105 if (strchr (outcharset, '/') == NULL) { char *tmp; len = strlen (outcharset); tmp = (char *) alloca (len + 10 + 1); memcpy (tmp, outcharset, len); memcpy (tmp + len, "//TRANSLIT", 10 + 1); outcharset = tmp; convd->conv = iconv_open (outcharset, charset); freea (outcharset); } else # endif convd->conv = iconv_open (outcharset, charset); # endif # endif freea (charset); } } } convd->conv_tab = NULL; /* Here domain->conversions is still == new_conversions. */ domain->nconversions++; } found_convd: gl_rwlock_unlock (domain->conversions_lock); } if ( # ifdef _LIBC convd->conv != (__gconv_t) -1 # else # if HAVE_ICONV convd->conv != (iconv_t) -1 # endif # endif ) { /* We are supposed to do a conversion. First allocate an appropriate table with the same structure as the table of translations in the file, where we can put the pointers to the converted strings in. There is a slight complication with plural entries. They are represented by consecutive NUL terminated strings. We handle this case by converting RESULTLEN bytes, including NULs. */ /* This lock primarily protects the memory management variables freemem, freemem_size. It also protects write accesses to convd->conv_tab. It's not worth using a separate lock (such as domain->conversions_lock) for this purpose, because when modifying convd->conv_tab, we also need to lock freemem, freemem_size for most of the time. */ __libc_lock_define_initialized (static, lock) if (__builtin_expect (convd->conv_tab == NULL, 0)) { __libc_lock_lock (lock); if (convd->conv_tab == NULL) { convd->conv_tab = (char **) calloc (nstrings + domain->n_sysdep_strings, sizeof (char *)); if (convd->conv_tab != NULL) goto not_translated_yet; /* Mark that we didn't succeed allocating a table. */ convd->conv_tab = (char **) -1; } __libc_lock_unlock (lock); } if (__builtin_expect (convd->conv_tab == (char **) -1, 0)) /* Nothing we can do, no more memory. We cannot use the translation because it might be encoded incorrectly. */ return (char *) -1; if (convd->conv_tab[act] == NULL) { /* We haven't used this string so far, so it is not translated yet. Do this now. */ /* We use a bit more efficient memory handling. We allocate always larger blocks which get used over time. This is faster than many small allocations. */ # define INITIAL_BLOCK_SIZE 4080 static unsigned char *freemem; static size_t freemem_size; const unsigned char *inbuf; unsigned char *outbuf; int malloc_count; # ifndef _LIBC transmem_block_t *transmem_list; # endif __libc_lock_lock (lock); not_translated_yet: inbuf = (const unsigned char *) result; outbuf = freemem + sizeof (size_t); # ifndef _LIBC transmem_list = NULL; # endif malloc_count = 0; while (1) { transmem_block_t *newmem; # ifdef _LIBC size_t non_reversible; int res; if (freemem_size < sizeof (size_t)) goto resize_freemem; res = __gconv (convd->conv, &inbuf, inbuf + resultlen, &outbuf, outbuf + freemem_size - sizeof (size_t), &non_reversible); if (res == __GCONV_OK || res == __GCONV_EMPTY_INPUT) break; if (res != __GCONV_FULL_OUTPUT) { /* We should not use the translation at all, it is incorrectly encoded. */ __libc_lock_unlock (lock); return NULL; } inbuf = (const unsigned char *) result; # else # if HAVE_ICONV const char *inptr = (const char *) inbuf; size_t inleft = resultlen; char *outptr = (char *) outbuf; size_t outleft; if (freemem_size < sizeof (size_t)) goto resize_freemem; outleft = freemem_size - sizeof (size_t); if (iconv (convd->conv, (ICONV_CONST char **) &inptr, &inleft, &outptr, &outleft) != (size_t) (-1)) { outbuf = (unsigned char *) outptr; break; } if (errno != E2BIG) { __libc_lock_unlock (lock); return NULL; } # endif # endif resize_freemem: /* We must allocate a new buffer or resize the old one. */ if (malloc_count > 0) { ++malloc_count; freemem_size = malloc_count * INITIAL_BLOCK_SIZE; newmem = (transmem_block_t *) realloc (transmem_list, freemem_size); # ifdef _LIBC if (newmem != NULL) transmem_list = transmem_list->next; else { struct transmem_list *old = transmem_list; transmem_list = transmem_list->next; free (old); } # endif } else { malloc_count = 1; freemem_size = INITIAL_BLOCK_SIZE; newmem = (transmem_block_t *) malloc (freemem_size); } if (__builtin_expect (newmem == NULL, 0)) { freemem = NULL; freemem_size = 0; __libc_lock_unlock (lock); return (char *) -1; } # ifdef _LIBC /* Add the block to the list of blocks we have to free at some point. */ newmem->next = transmem_list; transmem_list = newmem; freemem = (unsigned char *) newmem->data; freemem_size -= offsetof (struct transmem_list, data); # else transmem_list = newmem; freemem = newmem; # endif outbuf = freemem + sizeof (size_t); } /* We have now in our buffer a converted string. Put this into the table of conversions. */ *(size_t *) freemem = outbuf - freemem - sizeof (size_t); convd->conv_tab[act] = (char *) freemem; /* Shrink freemem, but keep it aligned. */ freemem_size -= outbuf - freemem; freemem = outbuf; freemem += freemem_size & (alignof (size_t) - 1); freemem_size = freemem_size & ~ (alignof (size_t) - 1); __libc_lock_unlock (lock); } /* Now convd->conv_tab[act] contains the translation of all the plural variants. */ result = convd->conv_tab[act] + sizeof (size_t); resultlen = *(size_t *) convd->conv_tab[act]; } } /* The result string is converted. */ #endif /* _LIBC || HAVE_ICONV */ *lengthp = resultlen; return result; } /* Look up a plural variant. */ static char * internal_function plural_lookup (struct loaded_l10nfile *domain, unsigned long int n, const char *translation, size_t translation_len) { struct loaded_domain *domaindata = (struct loaded_domain *) domain->data; unsigned long int index; const char *p; index = plural_eval (domaindata->plural, n); if (index >= domaindata->nplurals) /* This should never happen. It means the plural expression and the given maximum value do not match. */ index = 0; /* Skip INDEX strings at TRANSLATION. */ p = translation; while (index-- > 0) { #ifdef _LIBC p = __rawmemchr (p, '\0'); #else p = strchr (p, '\0'); #endif /* And skip over the NUL byte. */ p++; if (p >= translation + translation_len) /* This should never happen. It means the plural expression evaluated to a value larger than the number of variants available for MSGID1. */ return (char *) translation; } return (char *) p; } #ifndef _LIBC /* Return string representation of locale CATEGORY. */ static const char * internal_function category_to_name (int category) { const char *retval; switch (category) { #ifdef LC_COLLATE case LC_COLLATE: retval = "LC_COLLATE"; break; #endif #ifdef LC_CTYPE case LC_CTYPE: retval = "LC_CTYPE"; break; #endif #ifdef LC_MONETARY case LC_MONETARY: retval = "LC_MONETARY"; break; #endif #ifdef LC_NUMERIC case LC_NUMERIC: retval = "LC_NUMERIC"; break; #endif #ifdef LC_TIME case LC_TIME: retval = "LC_TIME"; break; #endif #ifdef LC_MESSAGES case LC_MESSAGES: retval = "LC_MESSAGES"; break; #endif #ifdef LC_RESPONSE case LC_RESPONSE: retval = "LC_RESPONSE"; break; #endif #ifdef LC_ALL case LC_ALL: /* This might not make sense but is perhaps better than any other value. */ retval = "LC_ALL"; break; #endif default: /* If you have a better idea for a default value let me know. */ retval = "LC_XXX"; } return retval; } #endif /* Guess value of current locale from value of the environment variables or system-dependent defaults. */ static const char * internal_function #ifdef IN_LIBGLOCALE guess_category_value (int category, const char *categoryname, const char *locale) #else guess_category_value (int category, const char *categoryname) #endif { const char *language; #ifndef IN_LIBGLOCALE const char *locale; # ifndef _LIBC const char *language_default; int locale_defaulted; # endif #endif /* We use the settings in the following order: 1. The value of the environment variable 'LANGUAGE'. This is a GNU extension. Its value can be a colon-separated list of locale names. 2. The value of the environment variable 'LC_ALL', 'LC_xxx', or 'LANG'. More precisely, the first among these that is set to a non-empty value. This is how POSIX specifies it. The value is a single locale name. 3. A system-dependent preference list of languages. Its value can be a colon-separated list of locale names. 4. A system-dependent default locale name. This way: - System-dependent settings can be overridden by environment variables. - If the system provides both a list of languages and a default locale, the former is used. */ #ifndef IN_LIBGLOCALE /* Fetch the locale name, through the POSIX method of looking to `LC_ALL', `LC_xxx', and `LANG'. On some systems this can be done by the `setlocale' function itself. */ # ifdef _LIBC locale = __current_locale_name (category); # else locale_defaulted = 0; # if HAVE_USELOCALE locale = _nl_locale_name_thread_unsafe (category, categoryname); if (locale == NULL) # endif { locale = _nl_locale_name_posix (category, categoryname); if (locale == NULL) { locale = _nl_locale_name_default (); locale_defaulted = 1; } } # endif #endif /* Ignore LANGUAGE and its system-dependent analogon if the locale is set to "C" because 1. "C" locale usually uses the ASCII encoding, and most international messages use non-ASCII characters. These characters get displayed as question marks (if using glibc's iconv()) or as invalid 8-bit characters (because other iconv()s refuse to convert most non-ASCII characters to ASCII). In any case, the output is ugly. 2. The precise output of some programs in the "C" locale is specified by POSIX and should not depend on environment variables like "LANGUAGE" or system-dependent information. We allow such programs to use gettext(). */ if (strcmp (locale, "C") == 0) return locale; /* The highest priority value is the value of the 'LANGUAGE' environment variable. */ language = getenv ("LANGUAGE"); if (language != NULL && language[0] != '\0') return language; #if !defined IN_LIBGLOCALE && !defined _LIBC /* The next priority value is the locale name, if not defaulted. */ if (locale_defaulted) { /* The next priority value is the default language preferences list. */ language_default = _nl_language_preferences_default (); if (language_default != NULL) return language_default; } /* The least priority value is the locale name, if defaulted. */ #endif return locale; } #if (defined _LIBC || HAVE_ICONV) && !defined IN_LIBGLOCALE /* Returns the output charset. */ static const char * internal_function get_output_charset (struct binding *domainbinding) { /* The output charset should normally be determined by the locale. But sometimes the locale is not used or not correctly set up, so we provide a possibility for the user to override this: the OUTPUT_CHARSET environment variable. Moreover, the value specified through bind_textdomain_codeset overrides both. */ if (domainbinding != NULL && domainbinding->codeset != NULL) return domainbinding->codeset; else { /* For speed reasons, we look at the value of OUTPUT_CHARSET only once. This is a user variable that is not supposed to change during a program run. */ static char *output_charset_cache; static int output_charset_cached; if (!output_charset_cached) { const char *value = getenv ("OUTPUT_CHARSET"); if (value != NULL && value[0] != '\0') { size_t len = strlen (value) + 1; char *value_copy = (char *) malloc (len); if (value_copy != NULL) memcpy (value_copy, value, len); output_charset_cache = value_copy; } output_charset_cached = 1; } if (output_charset_cache != NULL) return output_charset_cache; else { # ifdef _LIBC return _NL_CURRENT (LC_CTYPE, CODESET); # else # if HAVE_ICONV return locale_charset (); # endif # endif } } } #endif /* @@ begin of epilog @@ */ /* We don't want libintl.a to depend on any other library. So we avoid the non-standard function stpcpy. In GNU C Library this function is available, though. Also allow the symbol HAVE_STPCPY to be defined. */ #if !_LIBC && !HAVE_STPCPY static char * stpcpy (char *dest, const char *src) { while ((*dest++ = *src++) != '\0') /* Do nothing. */ ; return dest - 1; } #endif #if !_LIBC && !HAVE_MEMPCPY static void * mempcpy (void *dest, const void *src, size_t n) { return (void *) ((char *) memcpy (dest, src, n) + n); } #endif #if !_LIBC && !HAVE_TSEARCH # include "tsearch.c" #endif #ifdef _LIBC /* If we want to free all resources we have to do some work at program's end. */ libc_freeres_fn (free_mem) { void *old; while (_nl_domain_bindings != NULL) { struct binding *oldp = _nl_domain_bindings; _nl_domain_bindings = _nl_domain_bindings->next; if (oldp->dirname != _nl_default_dirname) /* Yes, this is a pointer comparison. */ free (oldp->dirname); free (oldp->codeset); free (oldp); } if (_nl_current_default_domain != _nl_default_default_domain) /* Yes, again a pointer comparison. */ free ((char *) _nl_current_default_domain); /* Remove the search tree with the known translations. */ __tdestroy (root, free); root = NULL; while (transmem_list != NULL) { old = transmem_list; transmem_list = transmem_list->next; free (old); } } #endif gtick-0.5.2/intl/Makefile.in0000644000175000017500000005770111617270150012565 00000000000000# Makefile for directory with message catalog handling library of GNU gettext # Copyright (C) 1995-1998, 2000-2007, 2009-2010 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2, 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 # Library General Public License for more details. # # You should have received a copy of the GNU Library General Public # License along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # USA. PACKAGE = @PACKAGE@ VERSION = @VERSION@ SHELL = /bin/sh srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. # The VPATH variables allows builds with $builddir != $srcdir, assuming a # 'make' program that supports VPATH (such as GNU make). This line is removed # by autoconf automatically when "$(srcdir)" = ".". # In this directory, the VPATH handling is particular: # 1. If INTL_LIBTOOL_SUFFIX_PREFIX is 'l' (indicating a build with libtool), # the .c -> .lo rules carefully use $(srcdir), so that VPATH can be omitted. # 2. If PACKAGE = gettext-tools, VPATH _must_ be omitted, because otherwise # 'make' does the wrong thing if GNU gettext was configured with # "./configure --srcdir=`pwd`", namely it gets confused by the .lo and .la # files it finds in srcdir = ../../gettext-runtime/intl. VPATH = $(srcdir) prefix = @prefix@ exec_prefix = @exec_prefix@ transform = @program_transform_name@ libdir = @libdir@ includedir = @includedir@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = $(datadir)/locale gettextsrcdir = $(datadir)/gettext/intl aliaspath = $(localedir) subdir = intl INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ l = @INTL_LIBTOOL_SUFFIX_PREFIX@ AR = ar CC = @CC@ LIBTOOL = @LIBTOOL@ RANLIB = @RANLIB@ YACC = @INTLBISON@ -y -d YFLAGS = --name-prefix=__gettext # Windows resource compiler (windres). Used when libtool is not used. WINDRES = @WINDRES@ # Windows resource compiler (windres). Used via libtool. RC = @RC@ # Support for silent-rules. AM_V_at = $(am__v_at_$(V)) am__v_at_ = $(am__v_at_@INTL_DEFAULT_VERBOSITY@) am__v_at_0 = @ AM_V_AR = $(am__v_AR_$(V)) am__v_AR_ = $(am__v_AR_@INTL_DEFAULT_VERBOSITY@) am__v_AR_0 = @echo " AR " $@; AM_V_CC = $(am__v_CC_$(V)) am__v_CC_ = $(am__v_CC_@INTL_DEFAULT_VERBOSITY@) am__v_CC_0 = @echo " CC " $@; AM_V_GEN = $(am__v_GEN_$(V)) am__v_GEN_ = $(am__v_GEN_@INTL_DEFAULT_VERBOSITY@) am__v_GEN_0 = @echo " GEN " $@; AM_V_YACC = $(am__v_YACC_$(V)) am__v_YACC_ = $(am__v_YACC_@INTL_DEFAULT_VERBOSITY@) am__v_YACC_0 = @echo " YACC " $@; AM_V_lt = $(am__v_lt_$(V)) am__v_lt_ = $(am__v_lt_@INTL_DEFAULT_VERBOSITY@) am__v_lt_0 = --silent # -DBUILDING_LIBINTL: Change expansion of LIBINTL_DLL_EXPORTED macro. # -DBUILDING_DLL: Change expansion of RELOCATABLE_DLL_EXPORTED macro. DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ -DLIBDIR=\"$(libdir)\" -DBUILDING_LIBINTL -DBUILDING_DLL -DIN_LIBINTL \ -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(libdir)\" -DNO_XMALLOC \ -Dset_relocation_prefix=libintl_set_relocation_prefix \ -Drelocate=libintl_relocate \ -DDEPENDS_ON_LIBICONV=1 @DEFS@ CPPFLAGS = @CPPFLAGS@ CFLAGS = @CFLAGS@ @CFLAG_VISIBILITY@ LDFLAGS = @LDFLAGS@ $(LDFLAGS_@WOE32DLL@) LDFLAGS_yes = -Wl,--export-all-symbols LDFLAGS_no = LIBS = @LIBS@ COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) HEADERS = \ gmo.h \ gettextP.h \ hash-string.h \ loadinfo.h \ plural-exp.h \ eval-plural.h \ localcharset.h \ lock.h \ relocatable.h \ tsearch.h tsearch.c \ xsize.h \ printf-args.h printf-args.c \ printf-parse.h wprintf-parse.h printf-parse.c \ vasnprintf.h vasnwprintf.h vasnprintf.c \ os2compat.h \ libgnuintl.h.in SOURCES = \ bindtextdom.c \ dcgettext.c \ dgettext.c \ gettext.c \ finddomain.c \ hash-string.c \ loadmsgcat.c \ localealias.c \ textdomain.c \ l10nflist.c \ explodename.c \ dcigettext.c \ dcngettext.c \ dngettext.c \ ngettext.c \ plural.y \ plural-exp.c \ localcharset.c \ threadlib.c \ lock.c \ relocatable.c \ langprefs.c \ localename.c \ log.c \ printf.c \ setlocale.c \ version.c \ osdep.c \ os2compat.c \ intl-exports.c \ intl-compat.c OBJECTS = \ bindtextdom.$lo \ dcgettext.$lo \ dgettext.$lo \ gettext.$lo \ finddomain.$lo \ hash-string.$lo \ loadmsgcat.$lo \ localealias.$lo \ textdomain.$lo \ l10nflist.$lo \ explodename.$lo \ dcigettext.$lo \ dcngettext.$lo \ dngettext.$lo \ ngettext.$lo \ plural.$lo \ plural-exp.$lo \ localcharset.$lo \ threadlib.$lo \ lock.$lo \ relocatable.$lo \ langprefs.$lo \ localename.$lo \ log.$lo \ printf.$lo \ setlocale.$lo \ version.$lo \ osdep.$lo \ intl-compat.$lo OBJECTS_RES_yes = libintl.res.$lo OBJECTS_RES_no = DISTFILES.common = Makefile.in \ config.charset locale.alias ref-add.sin ref-del.sin export.h libintl.rc \ $(HEADERS) $(SOURCES) DISTFILES.generated = plural.c DISTFILES.normal = VERSION DISTFILES.gettext = COPYING.LIB-2.0 COPYING.LIB-2.1 libintl.glibc README.woe32 DISTFILES.obsolete = xopen-msg.sed linux-msg.sed po2tbl.sed.in cat-compat.c \ COPYING.LIB-2 gettext.h libgettext.h plural-eval.c libgnuintl.h \ libgnuintl.h_vms Makefile.vms libgnuintl.h.msvc-static \ libgnuintl.h.msvc-shared Makefile.msvc all: all-@USE_INCLUDED_LIBINTL@ all-yes: libintl.$la libintl.h charset.alias ref-add.sed ref-del.sed all-no: all-no-@BUILD_INCLUDED_LIBINTL@ all-no-yes: libgnuintl.$la all-no-no: libintl.a libgnuintl.a: $(OBJECTS) $(AM_V_at)rm -f $@ $(AM_V_AR)$(AR) cru $@ $(OBJECTS) $(AM_V_at)$(RANLIB) $@ libintl.la libgnuintl.la: $(OBJECTS) $(OBJECTS_RES_@WOE32@) $(AM_V_GEN)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=link \ $(CC) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS) $(LDFLAGS) -o $@ \ $(OBJECTS) @LTLIBICONV@ @INTL_MACOSX_LIBS@ $(LIBS) @LTLIBTHREAD@ @LTLIBC@ \ $(OBJECTS_RES_@WOE32@) \ -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \ -rpath $(libdir) \ -no-undefined # Libtool's library version information for libintl. # Before making a gettext release, the gettext maintainer must change this # according to the libtool documentation, section "Library interface versions". # Maintainers of other packages that include the intl directory must *not* # change these values. LTV_CURRENT=9 LTV_REVISION=1 LTV_AGE=1 .SUFFIXES: .SUFFIXES: .c .y .o .lo .sin .sed .c.o: $(AM_V_CC)$(COMPILE) $< .y.c: $(AM_V_YACC)$(YACC) $(YFLAGS) --output $@ $< $(AM_V_at)rm -f $*.h bindtextdom.lo: $(srcdir)/bindtextdom.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/bindtextdom.c dcgettext.lo: $(srcdir)/dcgettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcgettext.c dgettext.lo: $(srcdir)/dgettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dgettext.c gettext.lo: $(srcdir)/gettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/gettext.c finddomain.lo: $(srcdir)/finddomain.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/finddomain.c hash-string.lo: $(srcdir)/hash-string.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/hash-string.c loadmsgcat.lo: $(srcdir)/loadmsgcat.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/loadmsgcat.c localealias.lo: $(srcdir)/localealias.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localealias.c textdomain.lo: $(srcdir)/textdomain.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/textdomain.c l10nflist.lo: $(srcdir)/l10nflist.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/l10nflist.c explodename.lo: $(srcdir)/explodename.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/explodename.c dcigettext.lo: $(srcdir)/dcigettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcigettext.c dcngettext.lo: $(srcdir)/dcngettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dcngettext.c dngettext.lo: $(srcdir)/dngettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/dngettext.c ngettext.lo: $(srcdir)/ngettext.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/ngettext.c plural.lo: $(srcdir)/plural.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural.c plural-exp.lo: $(srcdir)/plural-exp.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/plural-exp.c localcharset.lo: $(srcdir)/localcharset.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localcharset.c threadlib.lo: $(srcdir)/threadlib.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/threadlib.c lock.lo: $(srcdir)/lock.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/lock.c relocatable.lo: $(srcdir)/relocatable.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/relocatable.c langprefs.lo: $(srcdir)/langprefs.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/langprefs.c localename.lo: $(srcdir)/localename.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/localename.c log.lo: $(srcdir)/log.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/log.c printf.lo: $(srcdir)/printf.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/printf.c setlocale.lo: $(srcdir)/setlocale.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/setlocale.c version.lo: $(srcdir)/version.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/version.c osdep.lo: $(srcdir)/osdep.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/osdep.c intl-compat.lo: $(srcdir)/intl-compat.c $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC --mode=compile $(COMPILE) $(srcdir)/intl-compat.c # This rule is executed only on Woe32 systems. # The following sed expressions come from the windres-options script. They are # inlined here, so that they can be written in a Makefile without requiring a # temporary file. They must contain literal newlines rather than semicolons, # so that they work with the sed-3.02 that is shipped with MSYS. libintl.res.o: $(srcdir)/libintl.rc nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ $(WINDRES) \ "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \ "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ -i $(srcdir)/libintl.rc -o libintl.res.o --output-format=coff libintl.res.lo: $(srcdir)/libintl.rc nlinit=`echo 'nl="'; echo '"'`; eval "$$nlinit"; \ sed_extract_major='/^[0-9]/{'$${nl}'s/^\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{'$${nl}'s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p'$${nl}q$${nl}'}'$${nl}'c\'$${nl}0$${nl}q; \ $(LIBTOOL) --mode=compile --tag=RC $(RC) \ "-DPACKAGE_VERSION_STRING=\\\"$(VERSION)\\\"" \ "-DPACKAGE_VERSION_MAJOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_major"` \ "-DPACKAGE_VERSION_MINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_minor"` \ "-DPACKAGE_VERSION_SUBMINOR="`echo '$(VERSION)' | sed -n -e "$$sed_extract_subminor"` \ -i $(srcdir)/libintl.rc -o libintl.res.lo --output-format=coff ref-add.sed: $(srcdir)/ref-add.sin sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-add.sin > t-ref-add.sed mv t-ref-add.sed ref-add.sed ref-del.sed: $(srcdir)/ref-del.sin sed -e '/^#/d' -e 's/@''PACKAGE''@/@PACKAGE@/g' $(srcdir)/ref-del.sin > t-ref-del.sed mv t-ref-del.sed ref-del.sed INCLUDES = -I. -I$(srcdir) -I.. libgnuintl.h: $(srcdir)/libgnuintl.h.in sed -e '/IN_LIBGLOCALE/d' \ -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ < $(srcdir)/libgnuintl.h.in \ | if test '@WOE32DLL@' = yes; then \ sed -e 's/extern \([^()]*\);/extern __declspec (dllimport) \1;/'; \ else \ cat; \ fi \ | sed -e 's/extern \([^"]\)/extern LIBINTL_DLL_EXPORTED \1/' \ -e "/#define _LIBINTL_H/r $(srcdir)/export.h" \ | sed -e 's,@''HAVE_VISIBILITY''@,@HAVE_VISIBILITY@,g' \ > libgnuintl.h libintl.h: $(srcdir)/libgnuintl.h.in sed -e '/IN_LIBGLOCALE/d' \ -e 's,@''HAVE_POSIX_PRINTF''@,@HAVE_POSIX_PRINTF@,g' \ -e 's,@''HAVE_ASPRINTF''@,@HAVE_ASPRINTF@,g' \ -e 's,@''HAVE_NEWLOCALE''@,@HAVE_NEWLOCALE@,g' \ -e 's,@''HAVE_SNPRINTF''@,@HAVE_SNPRINTF@,g' \ -e 's,@''HAVE_WPRINTF''@,@HAVE_WPRINTF@,g' \ < $(srcdir)/libgnuintl.h.in > libintl.h charset.alias: $(srcdir)/config.charset $(SHELL) $(srcdir)/config.charset '@host@' > t-$@ mv t-$@ $@ check: all # We must not install the libintl.h/libintl.a files if we are on a # system which has the GNU gettext() function in its C library or in a # separate library. # If you want to use the one which comes with this version of the # package, you have to use `configure --with-included-gettext'. install: install-exec install-data install-exec: all if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ $(INSTALL_DATA) libintl.h $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=install \ $(INSTALL_DATA) libintl.$la $(DESTDIR)$(libdir)/libintl.$la; \ if test "@RELOCATABLE@" = yes; then \ dependencies=`sed -n -e 's,^dependency_libs=\(.*\),\1,p' < $(DESTDIR)$(libdir)/libintl.la | sed -e "s,^',," -e "s,'\$$,,"`; \ if test -n "$$dependencies"; then \ rm -f $(DESTDIR)$(libdir)/libintl.la; \ fi; \ fi; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ $(mkdir_p) $(DESTDIR)$(libdir); \ $(LIBTOOL) --mode=install \ $(INSTALL_DATA) libgnuintl.$la $(DESTDIR)$(libdir)/libgnuintl.$la; \ rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ $(INSTALL_DATA) $(DESTDIR)$(libdir)/libgnuintl.so $(DESTDIR)$(libdir)/preloadable_libintl.so; \ $(LIBTOOL) --mode=uninstall \ rm -f $(DESTDIR)$(libdir)/libgnuintl.$la; \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ if test @GLIBC21@ = no; then \ case '@host_os@' in \ darwin[56]*) \ need_charset_alias=true ;; \ darwin* | cygwin* | mingw* | pw32* | cegcc*) \ need_charset_alias=false ;; \ *) \ need_charset_alias=true ;; \ esac; \ else \ need_charset_alias=false; \ fi; \ if $$need_charset_alias; then \ $(mkdir_p) $(DESTDIR)$(libdir); \ fi; \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ orig=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ if $$need_charset_alias; then \ orig=charset.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ fi; \ fi; \ $(mkdir_p) $(DESTDIR)$(localedir); \ test -f $(DESTDIR)$(localedir)/locale.alias \ && orig=$(DESTDIR)$(localedir)/locale.alias \ || orig=$(srcdir)/locale.alias; \ temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-add.sed $$orig > $$temp; \ $(INSTALL_DATA) $$temp $$dest; \ rm -f $$temp; \ else \ : ; \ fi install-data: all if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ $(INSTALL_DATA) VERSION $(DESTDIR)$(gettextsrcdir)/VERSION; \ $(INSTALL_DATA) ChangeLog.inst $(DESTDIR)$(gettextsrcdir)/ChangeLog; \ dists="COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common)"; \ for file in $$dists; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ chmod a+x $(DESTDIR)$(gettextsrcdir)/config.charset; \ dists="$(DISTFILES.generated)"; \ for file in $$dists; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ $(INSTALL_DATA) $$dir/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ dists="$(DISTFILES.obsolete)"; \ for file in $$dists; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-strip: install install-dvi install-html install-info install-ps install-pdf: installdirs: if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ $(mkdir_p) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir); \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ $(mkdir_p) $(DESTDIR)$(libdir); \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ if test @GLIBC21@ = no; then \ case '@host_os@' in \ darwin[56]*) \ need_charset_alias=true ;; \ darwin* | cygwin* | mingw* | pw32* | cegcc*) \ need_charset_alias=false ;; \ *) \ need_charset_alias=true ;; \ esac; \ else \ need_charset_alias=false; \ fi; \ if $$need_charset_alias; then \ $(mkdir_p) $(DESTDIR)$(libdir); \ fi; \ $(mkdir_p) $(DESTDIR)$(localedir); \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi # Define this as empty until I found a useful application. installcheck: uninstall: if { test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; } \ && test '@USE_INCLUDED_LIBINTL@' = yes; then \ rm -f $(DESTDIR)$(includedir)/libintl.h; \ $(LIBTOOL) --mode=uninstall \ rm -f $(DESTDIR)$(libdir)/libintl.$la; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools" \ && test '@USE_INCLUDED_LIBINTL@' = no \ && test @GLIBC2@ != no; then \ rm -f $(DESTDIR)$(libdir)/preloadable_libintl.so; \ else \ : ; \ fi if test '@USE_INCLUDED_LIBINTL@' = yes; then \ if test -f $(DESTDIR)$(libdir)/charset.alias; then \ temp=$(DESTDIR)$(libdir)/t-charset.alias; \ dest=$(DESTDIR)$(libdir)/charset.alias; \ sed -f ref-del.sed $$dest > $$temp; \ if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ rm -f $$dest; \ else \ $(INSTALL_DATA) $$temp $$dest; \ fi; \ rm -f $$temp; \ fi; \ if test -f $(DESTDIR)$(localedir)/locale.alias; then \ temp=$(DESTDIR)$(localedir)/t-locale.alias; \ dest=$(DESTDIR)$(localedir)/locale.alias; \ sed -f ref-del.sed $$dest > $$temp; \ if grep '^# Packages using this file: $$' $$temp > /dev/null; then \ rm -f $$dest; \ else \ $(INSTALL_DATA) $$temp $$dest; \ fi; \ rm -f $$temp; \ fi; \ else \ : ; \ fi if test "$(PACKAGE)" = "gettext-tools"; then \ for file in VERSION ChangeLog COPYING.LIB-2.0 COPYING.LIB-2.1 $(DISTFILES.common) $(DISTFILES.generated); do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi info dvi ps pdf html: $(OBJECTS): ../config.h libgnuintl.h bindtextdom.$lo dcgettext.$lo dcigettext.$lo dcngettext.$lo dgettext.$lo dngettext.$lo finddomain.$lo gettext.$lo intl-compat.$lo loadmsgcat.$lo localealias.$lo ngettext.$lo setlocale.$lo textdomain.$lo: $(srcdir)/gettextP.h $(srcdir)/gmo.h $(srcdir)/loadinfo.h localename.$lo: $(srcdir)/gettextP.h hash-string.$lo dcigettext.$lo loadmsgcat.$lo: $(srcdir)/hash-string.h explodename.$lo l10nflist.$lo: $(srcdir)/loadinfo.h dcigettext.$lo loadmsgcat.$lo plural.$lo plural-exp.$lo: $(srcdir)/plural-exp.h dcigettext.$lo: $(srcdir)/eval-plural.h localcharset.$lo: $(srcdir)/localcharset.h bindtextdom.$lo dcigettext.$lo finddomain.$lo loadmsgcat.$lo localealias.$lo lock.$lo log.$lo: $(srcdir)/lock.h localealias.$lo localcharset.$lo relocatable.$lo: $(srcdir)/relocatable.h printf.$lo: $(srcdir)/printf-args.h $(srcdir)/printf-args.c $(srcdir)/printf-parse.h $(srcdir)/wprintf-parse.h $(srcdir)/xsize.h $(srcdir)/printf-parse.c $(srcdir)/vasnprintf.h $(srcdir)/vasnwprintf.h $(srcdir)/vasnprintf.c # A bison-2.1 generated plural.c includes if ENABLE_NLS. PLURAL_DEPS_yes = libintl.h PLURAL_DEPS_no = plural.$lo: $(PLURAL_DEPS_@USE_INCLUDED_LIBINTL@) tags: TAGS TAGS: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && etags -o $$here/TAGS $(HEADERS) $(SOURCES) ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && ctags -o $$here/CTAGS $(HEADERS) $(SOURCES) id: ID ID: $(HEADERS) $(SOURCES) here=`pwd`; cd $(srcdir) && mkid -f$$here/ID $(HEADERS) $(SOURCES) mostlyclean: rm -f *.a *.la *.o *.obj *.lo core core.* rm -f libgnuintl.h libintl.h charset.alias ref-add.sed ref-del.sed rm -f -r .libs _libs clean: mostlyclean distclean: clean rm -f Makefile ID TAGS if test "$(PACKAGE)" = "gettext-runtime" || test "$(PACKAGE)" = "gettext-tools"; then \ rm -f ChangeLog.inst $(DISTFILES.normal); \ else \ : ; \ fi maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." # GNU gettext needs not contain the file `VERSION' but contains some # other files which should not be distributed in other packages. distdir = ../$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: Makefile if test "$(PACKAGE)" = "gettext-tools"; then \ : ; \ else \ if test "$(PACKAGE)" = "gettext-runtime"; then \ additional="$(DISTFILES.gettext)"; \ else \ additional="$(DISTFILES.normal)"; \ fi; \ $(MAKE) $(DISTFILES.common) $(DISTFILES.generated) $$additional; \ for file in ChangeLog $(DISTFILES.common) $(DISTFILES.generated) $$additional; do \ if test -f $$file; then dir=.; else dir=$(srcdir); fi; \ cp -p $$dir/$$file $(distdir) || test $$file = Makefile.in || exit 1; \ done; \ fi Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status cd $(top_builddir) && $(SHELL) ./config.status # This would be more efficient, but doesn't work any more with autoconf-2.57, # when AC_CONFIG_FILES([intl/Makefile:somedir/Makefile.in]) is used. # cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtick-0.5.2/intl/libgnuintl.h.in0000644000175000017500000004062111617270151013437 00000000000000/* Message catalogs for internationalization. Copyright (C) 1995-1997, 2000-2010 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LIBINTL_H #define _LIBINTL_H 1 #include #if (defined __APPLE__ && defined __MACH__) && @HAVE_NEWLOCALE@ # include #endif /* The LC_MESSAGES locale category is the category used by the functions gettext() and dgettext(). It is specified in POSIX, but not in ANSI C. On systems that don't define it, use an arbitrary value instead. On Solaris, defines __LOCALE_H (or _LOCALE_H in Solaris 2.5) then includes (i.e. this file!) and then only defines LC_MESSAGES. To avoid a redefinition warning, don't define LC_MESSAGES in this case. */ #if !defined LC_MESSAGES && !(defined __LOCALE_H || (defined _LOCALE_H && defined __sun)) # define LC_MESSAGES 1729 #endif /* We define an additional symbol to signal that we use the GNU implementation of gettext. */ #define __USE_GNU_GETTEXT 1 /* Provide information about the supported file formats. Returns the maximum minor revision number supported for a given major revision. */ #define __GNU_GETTEXT_SUPPORTED_REVISION(major) \ ((major) == 0 || (major) == 1 ? 1 : -1) /* Resolve a platform specific conflict on DJGPP. GNU gettext takes precedence over _conio_gettext. */ #ifdef __DJGPP__ # undef gettext #endif #ifdef __cplusplus extern "C" { #endif /* Version number: (major<<16) + (minor<<8) + subminor */ #define LIBINTL_VERSION 0x001201 extern int libintl_version; /* We redirect the functions to those prefixed with "libintl_". This is necessary, because some systems define gettext/textdomain/... in the C library (namely, Solaris 2.4 and newer, and GNU libc 2.0 and newer). If we used the unprefixed names, there would be cases where the definition in the C library would override the one in the libintl.so shared library. Recall that on ELF systems, the symbols are looked up in the following order: 1. in the executable, 2. in the shared libraries specified on the link command line, in order, 3. in the dependencies of the shared libraries specified on the link command line, 4. in the dlopen()ed shared libraries, in the order in which they were dlopen()ed. The definition in the C library would override the one in libintl.so if either * -lc is given on the link command line and -lintl isn't, or * -lc is given on the link command line before -lintl, or * libintl.so is a dependency of a dlopen()ed shared library but not linked to the executable at link time. Since Solaris gettext() behaves differently than GNU gettext(), this would be unacceptable. The redirection happens by default through macros in C, so that &gettext is independent of the compilation unit, but through inline functions in C++, in order not to interfere with the name mangling of class fields or class methods called 'gettext'. */ /* The user can define _INTL_REDIRECT_INLINE or _INTL_REDIRECT_MACROS. If he doesn't, we choose the method. A third possible method is _INTL_REDIRECT_ASM, supported only by GCC. */ #if !(defined _INTL_REDIRECT_INLINE || defined _INTL_REDIRECT_MACROS) # if defined __GNUC__ && __GNUC__ >= 2 && !(defined __APPLE_CC__ && __APPLE_CC__ > 1) && !defined __MINGW32__ && !(__GNUC__ == 2 && defined _AIX) && (defined __STDC__ || defined __cplusplus) # define _INTL_REDIRECT_ASM # else # ifdef __cplusplus # define _INTL_REDIRECT_INLINE # else # define _INTL_REDIRECT_MACROS # endif # endif #endif /* Auxiliary macros. */ #ifdef _INTL_REDIRECT_ASM # define _INTL_ASM(cname) __asm__ (_INTL_ASMNAME (__USER_LABEL_PREFIX__, #cname)) # define _INTL_ASMNAME(prefix,cnamestring) _INTL_STRINGIFY (prefix) cnamestring # define _INTL_STRINGIFY(prefix) #prefix #else # define _INTL_ASM(cname) #endif /* _INTL_MAY_RETURN_STRING_ARG(n) declares that the given function may return its n-th argument literally. This enables GCC to warn for example about printf (gettext ("foo %y")). */ #if defined __GNUC__ && __GNUC__ >= 3 && !(defined __APPLE_CC__ && __APPLE_CC__ > 1 && defined __cplusplus) # define _INTL_MAY_RETURN_STRING_ARG(n) __attribute__ ((__format_arg__ (n))) #else # define _INTL_MAY_RETURN_STRING_ARG(n) #endif /* Look up MSGID in the current default message catalog for the current LC_MESSAGES locale. If not found, returns MSGID itself (the default text). */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_gettext (const char *__msgid) _INTL_MAY_RETURN_STRING_ARG (1); static inline char *gettext (const char *__msgid) { return libintl_gettext (__msgid); } #else #ifdef _INTL_REDIRECT_MACROS # define gettext libintl_gettext #endif extern char *gettext (const char *__msgid) _INTL_ASM (libintl_gettext) _INTL_MAY_RETURN_STRING_ARG (1); #endif /* Look up MSGID in the DOMAINNAME message catalog for the current LC_MESSAGES locale. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dgettext (const char *__domainname, const char *__msgid) _INTL_MAY_RETURN_STRING_ARG (2); static inline char *dgettext (const char *__domainname, const char *__msgid) { return libintl_dgettext (__domainname, __msgid); } #else #ifdef _INTL_REDIRECT_MACROS # define dgettext libintl_dgettext #endif extern char *dgettext (const char *__domainname, const char *__msgid) _INTL_ASM (libintl_dgettext) _INTL_MAY_RETURN_STRING_ARG (2); #endif /* Look up MSGID in the DOMAINNAME message catalog for the current CATEGORY locale. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dcgettext (const char *__domainname, const char *__msgid, int __category) _INTL_MAY_RETURN_STRING_ARG (2); static inline char *dcgettext (const char *__domainname, const char *__msgid, int __category) { return libintl_dcgettext (__domainname, __msgid, __category); } #else #ifdef _INTL_REDIRECT_MACROS # define dcgettext libintl_dcgettext #endif extern char *dcgettext (const char *__domainname, const char *__msgid, int __category) _INTL_ASM (libintl_dcgettext) _INTL_MAY_RETURN_STRING_ARG (2); #endif /* Similar to `gettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_MAY_RETURN_STRING_ARG (1) _INTL_MAY_RETURN_STRING_ARG (2); static inline char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) { return libintl_ngettext (__msgid1, __msgid2, __n); } #else #ifdef _INTL_REDIRECT_MACROS # define ngettext libintl_ngettext #endif extern char *ngettext (const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_ASM (libintl_ngettext) _INTL_MAY_RETURN_STRING_ARG (1) _INTL_MAY_RETURN_STRING_ARG (2); #endif /* Similar to `dgettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); static inline char *dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) { return libintl_dngettext (__domainname, __msgid1, __msgid2, __n); } #else #ifdef _INTL_REDIRECT_MACROS # define dngettext libintl_dngettext #endif extern char *dngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n) _INTL_ASM (libintl_dngettext) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); #endif /* Similar to `dcgettext' but select the plural form corresponding to the number N. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); static inline char *dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) { return libintl_dcngettext (__domainname, __msgid1, __msgid2, __n, __category); } #else #ifdef _INTL_REDIRECT_MACROS # define dcngettext libintl_dcngettext #endif extern char *dcngettext (const char *__domainname, const char *__msgid1, const char *__msgid2, unsigned long int __n, int __category) _INTL_ASM (libintl_dcngettext) _INTL_MAY_RETURN_STRING_ARG (2) _INTL_MAY_RETURN_STRING_ARG (3); #endif #ifndef IN_LIBGLOCALE /* Set the current default message catalog to DOMAINNAME. If DOMAINNAME is null, return the current default. If DOMAINNAME is "", reset to the default of "messages". */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_textdomain (const char *__domainname); static inline char *textdomain (const char *__domainname) { return libintl_textdomain (__domainname); } #else #ifdef _INTL_REDIRECT_MACROS # define textdomain libintl_textdomain #endif extern char *textdomain (const char *__domainname) _INTL_ASM (libintl_textdomain); #endif /* Specify that the DOMAINNAME message catalog will be found in DIRNAME rather than in the system locale data base. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_bindtextdomain (const char *__domainname, const char *__dirname); static inline char *bindtextdomain (const char *__domainname, const char *__dirname) { return libintl_bindtextdomain (__domainname, __dirname); } #else #ifdef _INTL_REDIRECT_MACROS # define bindtextdomain libintl_bindtextdomain #endif extern char *bindtextdomain (const char *__domainname, const char *__dirname) _INTL_ASM (libintl_bindtextdomain); #endif /* Specify the character encoding in which the messages from the DOMAINNAME message catalog will be returned. */ #ifdef _INTL_REDIRECT_INLINE extern char *libintl_bind_textdomain_codeset (const char *__domainname, const char *__codeset); static inline char *bind_textdomain_codeset (const char *__domainname, const char *__codeset) { return libintl_bind_textdomain_codeset (__domainname, __codeset); } #else #ifdef _INTL_REDIRECT_MACROS # define bind_textdomain_codeset libintl_bind_textdomain_codeset #endif extern char *bind_textdomain_codeset (const char *__domainname, const char *__codeset) _INTL_ASM (libintl_bind_textdomain_codeset); #endif #endif /* IN_LIBGLOCALE */ /* Support for format strings with positions in *printf(), following the POSIX/XSI specification. Note: These replacements for the *printf() functions are visible only in source files that #include or #include "gettext.h". Packages that use *printf() in source files that don't refer to _() or gettext() but for which the format string could be the return value of _() or gettext() need to add this #include. Oh well. */ #if !@HAVE_POSIX_PRINTF@ #include #include /* Get va_list. */ #if (defined __STDC__ && __STDC__) || defined __cplusplus || defined _MSC_VER # include #else # include #endif #if !(defined fprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef fprintf #define fprintf libintl_fprintf extern int fprintf (FILE *, const char *, ...); #endif #if !(defined vfprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vfprintf #define vfprintf libintl_vfprintf extern int vfprintf (FILE *, const char *, va_list); #endif #if !(defined printf && defined _GL_STDIO_H) /* don't override gnulib */ #undef printf #if defined __NetBSD__ || defined __BEOS__ || defined __CYGWIN__ || defined __MINGW32__ /* Don't break __attribute__((format(printf,M,N))). This redefinition is only possible because the libc in NetBSD, Cygwin, mingw does not have a function __printf__. Alternatively, we could have done this redirection only when compiling with __GNUC__, together with a symbol redirection: extern int printf (const char *, ...) __asm__ (#__USER_LABEL_PREFIX__ "libintl_printf"); But doing it now would introduce a binary incompatibility with already distributed versions of libintl on these systems. */ # define libintl_printf __printf__ #endif #define printf libintl_printf extern int printf (const char *, ...); #endif #if !(defined vprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vprintf #define vprintf libintl_vprintf extern int vprintf (const char *, va_list); #endif #if !(defined sprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef sprintf #define sprintf libintl_sprintf extern int sprintf (char *, const char *, ...); #endif #if !(defined vsprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vsprintf #define vsprintf libintl_vsprintf extern int vsprintf (char *, const char *, va_list); #endif #if @HAVE_SNPRINTF@ #if !(defined snprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef snprintf #define snprintf libintl_snprintf extern int snprintf (char *, size_t, const char *, ...); #endif #if !(defined vsnprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vsnprintf #define vsnprintf libintl_vsnprintf extern int vsnprintf (char *, size_t, const char *, va_list); #endif #endif #if @HAVE_ASPRINTF@ #if !(defined asprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef asprintf #define asprintf libintl_asprintf extern int asprintf (char **, const char *, ...); #endif #if !(defined vasprintf && defined _GL_STDIO_H) /* don't override gnulib */ #undef vasprintf #define vasprintf libintl_vasprintf extern int vasprintf (char **, const char *, va_list); #endif #endif #if @HAVE_WPRINTF@ #undef fwprintf #define fwprintf libintl_fwprintf extern int fwprintf (FILE *, const wchar_t *, ...); #undef vfwprintf #define vfwprintf libintl_vfwprintf extern int vfwprintf (FILE *, const wchar_t *, va_list); #undef wprintf #define wprintf libintl_wprintf extern int wprintf (const wchar_t *, ...); #undef vwprintf #define vwprintf libintl_vwprintf extern int vwprintf (const wchar_t *, va_list); #undef swprintf #define swprintf libintl_swprintf extern int swprintf (wchar_t *, size_t, const wchar_t *, ...); #undef vswprintf #define vswprintf libintl_vswprintf extern int vswprintf (wchar_t *, size_t, const wchar_t *, va_list); #endif #endif /* Support for the locale chosen by the user. */ #if (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ #undef setlocale #define setlocale libintl_setlocale extern char *setlocale (int, const char *); #if @HAVE_NEWLOCALE@ #undef newlocale #define newlocale libintl_newlocale extern locale_t newlocale (int, const char *, locale_t); #endif #endif /* Support for relocatable packages. */ /* Sets the original and the current installation prefix of the package. Relocation simply replaces a pathname starting with the original prefix by the corresponding pathname with the current prefix instead. Both prefixes should be directory names without trailing slash (i.e. use "" instead of "/"). */ #define libintl_set_relocation_prefix libintl_set_relocation_prefix extern void libintl_set_relocation_prefix (const char *orig_prefix, const char *curr_prefix); #ifdef __cplusplus } #endif #endif /* libintl.h */ gtick-0.5.2/intl/printf-args.h0000644000175000017500000000742211617270153013123 00000000000000/* Decomposed printf argument list. Copyright (C) 1999, 2002-2003, 2006-2007 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _PRINTF_ARGS_H #define _PRINTF_ARGS_H /* This file can be parametrized with the following macros: ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. PRINTF_FETCHARGS Name of the function to be declared. STATIC Set to 'static' to declare the function static. */ /* Default parameters. */ #ifndef PRINTF_FETCHARGS # define PRINTF_FETCHARGS printf_fetchargs #endif /* Get size_t. */ #include /* Get wchar_t. */ #if HAVE_WCHAR_T # include #endif /* Get wint_t. */ #if HAVE_WINT_T # include #endif /* Get va_list. */ #include /* Argument types */ typedef enum { TYPE_NONE, TYPE_SCHAR, TYPE_UCHAR, TYPE_SHORT, TYPE_USHORT, TYPE_INT, TYPE_UINT, TYPE_LONGINT, TYPE_ULONGINT, #if HAVE_LONG_LONG_INT TYPE_LONGLONGINT, TYPE_ULONGLONGINT, #endif TYPE_DOUBLE, TYPE_LONGDOUBLE, TYPE_CHAR, #if HAVE_WINT_T TYPE_WIDE_CHAR, #endif TYPE_STRING, #if HAVE_WCHAR_T TYPE_WIDE_STRING, #endif TYPE_POINTER, TYPE_COUNT_SCHAR_POINTER, TYPE_COUNT_SHORT_POINTER, TYPE_COUNT_INT_POINTER, TYPE_COUNT_LONGINT_POINTER #if HAVE_LONG_LONG_INT , TYPE_COUNT_LONGLONGINT_POINTER #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ , TYPE_U8_STRING , TYPE_U16_STRING , TYPE_U32_STRING #endif } arg_type; /* Polymorphic argument */ typedef struct { arg_type type; union { signed char a_schar; unsigned char a_uchar; short a_short; unsigned short a_ushort; int a_int; unsigned int a_uint; long int a_longint; unsigned long int a_ulongint; #if HAVE_LONG_LONG_INT long long int a_longlongint; unsigned long long int a_ulonglongint; #endif float a_float; double a_double; long double a_longdouble; int a_char; #if HAVE_WINT_T wint_t a_wide_char; #endif const char* a_string; #if HAVE_WCHAR_T const wchar_t* a_wide_string; #endif void* a_pointer; signed char * a_count_schar_pointer; short * a_count_short_pointer; int * a_count_int_pointer; long int * a_count_longint_pointer; #if HAVE_LONG_LONG_INT long long int * a_count_longlongint_pointer; #endif #if ENABLE_UNISTDIO /* The unistdio extensions. */ const uint8_t * a_u8_string; const uint16_t * a_u16_string; const uint32_t * a_u32_string; #endif } a; } argument; typedef struct { size_t count; argument *arg; } arguments; /* Fetch the arguments, putting them into a. */ #ifdef STATIC STATIC #else extern #endif int PRINTF_FETCHARGS (va_list args, arguments *a); #endif /* _PRINTF_ARGS_H */ gtick-0.5.2/intl/libintl.rc0000644000175000017500000000323511617270151012475 00000000000000/* Resources for intl.dll */ #include VS_VERSION_INFO VERSIONINFO FILEVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0 PRODUCTVERSION PACKAGE_VERSION_MAJOR,PACKAGE_VERSION_MINOR,PACKAGE_VERSION_SUBMINOR,0 FILEFLAGSMASK 0x3fL /* VS_FFI_FILEFLAGSMASK */ #ifdef _DEBUG FILEFLAGS 0x1L /* VS_FF_DEBUG */ #else FILEFLAGS 0x0L #endif FILEOS 0x10004L /* VOS_DOS_WINDOWS32 */ FILETYPE 0x2L /* VFT_DLL */ FILESUBTYPE 0x0L /* VFT2_UNKNOWN */ BEGIN BLOCK "StringFileInfo" BEGIN BLOCK "04090000" /* Lang = US English, Charset = ASCII */ BEGIN VALUE "Comments", "This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA\0" VALUE "CompanyName", "Free Software Foundation\0" VALUE "FileDescription", "LGPLed libintl for Windows NT/2000/XP/Vista/7 and Windows 95/98/ME\0" VALUE "FileVersion", PACKAGE_VERSION_STRING "\0" VALUE "InternalName", "intl.dll\0" VALUE "LegalCopyright", "Copyright (C) 1995-2010\0" VALUE "LegalTrademarks", "\0" VALUE "OriginalFilename", "intl.dll\0" VALUE "ProductName", "libintl: accessing NLS message catalogs\0" VALUE "ProductVersion", PACKAGE_VERSION_STRING "\0" END END BLOCK "VarFileInfo" BEGIN VALUE "Translation", 0x0409, 0 /* US English, ASCII */ END END gtick-0.5.2/intl/hash-string.h0000644000175000017500000000256610661555177013134 00000000000000/* Description of GNU message catalog format: string hashing function. Copyright (C) 1995, 1997-1998, 2000-2003, 2005 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* @@ end of prolog @@ */ /* We assume to have `unsigned long int' value with at least 32 bits. */ #define HASHWORDBITS 32 #ifndef _LIBC # ifdef IN_LIBINTL # define __hash_string libintl_hash_string # else # define __hash_string hash_string # endif #endif /* Defines the so called `hashpjw' function by P.J. Weinberger [see Aho/Sethi/Ullman, COMPILERS: Principles, Techniques and Tools, 1986, 1987 Bell Telephone Laboratories, Inc.] */ extern unsigned long int __hash_string (const char *str_param); gtick-0.5.2/src/0000755000175000017500000000000012116334677010421 500000000000000gtick-0.5.2/src/metro.c0000644000175000017500000017054511617227610011640 00000000000000/* * Metronome session * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2005 Marco Tulio Gontijo e Silva * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include #include #include #include #include #include /* GTK+ headers */ #include #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "metro.h" #include "dsp.h" #include "help.h" #include "gtkutil.h" #include "util.h" #include "option.h" #include "gtkoptions.h" #include "threadtalk.h" #include "visualtick.h" #include "profiles.h" /* icons */ #include "icon32x32.xpm" #include "icon48x48.xpm" #include "icon64x64.xpm" /* prototypes */ static void metro_toggle_cb(GtkToggleAction *action, metro_t* metro); static void preferences_cb(GtkAction *action, metro_t *metro); static void quit_cb(GtkAction *action, metro_t *metro); static void toggle_accenttable_cb(GtkToggleAction *action, metro_t *metro); static void toggle_visualtick_cb(GtkToggleAction *action, metro_t *metro); #define TIMER_DELAY 300 volatile int interrupted = 0; /* the caught signal will be stored here */ static state_data_t state_data[] = { { N_("Idle"), N_("Start") }, /* STATE_IDLE */ { N_("Running"), N_("Stop") } /* STATE_RUNNING */ }; static const GtkActionEntry actions[] = { { "HelpMenu", NULL, N_("_Help"), NULL, NULL, NULL }, { "MetronomeMenu", NULL, N_("_Metronome"), NULL, NULL, NULL }, { "Quit", GTK_STOCK_QUIT, N_("_Quit"), "Q", NULL, G_CALLBACK(quit_cb) }, { "EditMenu", NULL, N_("_Edit"), NULL, NULL, NULL }, { "Preferences", GTK_STOCK_PREFERENCES, N_("_Preferences"), "P", NULL, G_CALLBACK(preferences_cb) }, { "ViewMenu", NULL, N_("_View"), NULL, NULL, NULL }, { "About", GTK_STOCK_ABOUT, N_("_About"), NULL, NULL, G_CALLBACK(about_box) }, { "Shortcuts", NULL, N_("_Shortcuts"), NULL, NULL, G_CALLBACK(help_shortcuts) } }; static const GtkToggleActionEntry toggle_actions[] = { { "Start", NULL, N_("Start"), "S", N_("Start the metronome"), G_CALLBACK(metro_toggle_cb), FALSE }, { "VisualTick", NULL, N_("_Visual Tick"), "V", NULL, G_CALLBACK(toggle_visualtick_cb), FALSE }, { "AccentTable", NULL, N_("_Accent Table"), "A", NULL, G_CALLBACK(toggle_accenttable_cb), FALSE }, { "Profiles", NULL, N_("Pr_ofiles"), "O", NULL, G_CALLBACK(toggle_profiles_cb), FALSE }, }; static const char *ui_description = "" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ""; /* Stores speed names with their common range, non overlapping */ typedef struct speed_name_t { char* name; int min_bpm; /* min_bpm <= speed ("name") */ int max_bpm; /* speed ("name") < max_bpm */ } speed_name_t; /* * Numbers collected from wikipedia, with some adjustments. * http://en.wikipedia.org/wiki/Tempo */ static speed_name_t speed_names[] = { /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Larghissimo"), 0, 40 }, /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Largo"), 40, 60 }, /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Larghetto"), 60, 66 }, /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Adagio"), 66, 76 }, /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Andante"), 76, 108 }, /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Moderato"), 108, 120 }, /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Allegro"), 120, 168 }, /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Presto"), 168, 208 }, /* TRANSLATORS: This is the Italian name of a musical tempo. Normally, it's not not translated, at least not in languages with latin alphabets. */ { N_("Prestissimo"), 208, MAX_BPM }, }; /* handler for SIGTERM and SIGINT */ static void terminate_signal_callback(int sig) { interrupted = sig; } static guint get_name_index_from_speed(int speed) { guint result = 0; while (result < sizeof(speed_names) / sizeof(speed_name_t) && (speed_names[result].min_bpm > speed || speed_names[result].max_bpm <= speed)) { result ++; } return result; } /* * Returns center speed from indexed named speed from speed_names */ static int get_speed_from_name_index(int index) { return (speed_names[index].min_bpm + speed_names[index].max_bpm) / 2; } /* * Return 1 if speed is in range of indexed index name */ static int is_in_range_of_index_name(int speed, int index) { if (speed_names[index].min_bpm <= speed && speed < speed_names[index].max_bpm) return 1; else return 0; } /* * Called whenever tap button is clicked */ static void tap_cb(metro_t* metro) { struct timeval thistime; struct timeval diffval; double timediff; assert(metro != NULL); gettimeofday(&thistime, NULL); timeval_subtract(&diffval, &thistime, &metro->lasttap); timediff = diffval.tv_sec + (double)diffval.tv_usec / 1000000.0; if (timediff < 10.0) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), round(60.0 / timediff)); } else { if (debug) g_print("tap_cb(): No new speed yet: Tap again.\n"); } metro->lasttap = thistime; } /* * read meter from GUI (widgets) */ int gui_get_meter(metro_t* metro) { int meter; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(metro->meter_button_1))) meter = 1; else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( metro->meter_button_2))) meter = 2; else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( metro->meter_button_3))) meter = 3; else if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( metro->meter_button_4))) meter = 4; else meter = gtk_spin_button_get_value_as_int( GTK_SPIN_BUTTON(metro->meter_spin_button)); return meter; } /* * GUI volume change callback */ static void set_volume_cb(metro_t* metro) { double* volume = (double*) g_malloc(sizeof(double)); *volume = GTK_ADJUSTMENT(metro->volume_adjustment)->value / 100.0; comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_VOLUME, volume); } /* * GUI rate change callback, called on speed_adjustment */ static void set_speed_cb(metro_t *metro) { double* frequency = (double*) g_malloc(sizeof(double)); gint old_index; gint new_index; *frequency = GTK_ADJUSTMENT(metro->speed_adjustment)->value / 60.0; if (debug) g_print ("set_speed_cb(): rate=%f bpm\n", *frequency * 60.0); old_index = (gint) gtk_combo_box_get_active(GTK_COMBO_BOX(metro->speed_name)); new_index = get_name_index_from_speed((int)round(*frequency * 60.0)); if (new_index != old_index) gtk_combo_box_set_active(GTK_COMBO_BOX(metro->speed_name), new_index); if (debug) g_print("set_speed_cb(): New speed name = \"%s\"\n", speed_names[new_index].name); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_FREQUENCY, frequency); } /* * Callback called on speed name change */ static void set_speed_name_cb(metro_t *metro) { gint index = gtk_combo_box_get_active(GTK_COMBO_BOX(metro->speed_name)); if (!is_in_range_of_index_name( gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)), index)) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), get_speed_from_name_index(index)); } } /* * At least one accent check button has been toggled */ static void accents_changed_cb(metro_t* metro) { int* message = (int*) g_malloc (sizeof(int) * MAX_METER); int i; for (i = 0; i < MAX_METER; i++) { message[i] = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( metro->accentbuttons[i])); } comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_ACCENTS, message); } /* * Change state */ static void set_state(metro_t* metro, int state) { if (state != metro->state) { if (metro->state == STATE_RUNNING && state == STATE_IDLE) { comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_STOP_METRONOME, NULL); execute(metro->options->command_on_stop); } else if (metro->state == STATE_IDLE && state == STATE_RUNNING) { comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_START_METRONOME, NULL); execute(metro->options->command_on_start); visualtick_sync(metro, 0); } else { fprintf(stderr, "Warning: Unhandled state change.\n"); } gtk_statusbar_pop(GTK_STATUSBAR(metro->statusbar), metro->status_context); gtk_statusbar_push(GTK_STATUSBAR(metro->statusbar), metro->status_context, _(state_data[state].state)); gtk_label_set_text(GTK_LABEL(metro->togglebutton_label), _(state_data[state].toggle_label)); /* Set Start/Stop label */ g_object_set(metro->start_action, "label", _(state_data[state].toggle_label), NULL); metro->state = state; } } /* * handle messages from server (i.e., from metronome backend) */ static gint handle_comm(metro_t* metro) { message_type_t message_type; void* body = NULL; while ((message_type = comm_client_try_get_reply(metro->inter_thread_comm, &body)) != MESSAGE_TYPE_NO_MESSAGE) { switch (message_type) { case MESSAGE_TYPE_RESPONSE_SYNC: visualtick_sync(metro, *((unsigned int*) body)); free(body); break; case MESSAGE_TYPE_RESPONSE_START_ERROR: gtk_widget_show(metro->start_error); set_state(metro, STATE_IDLE); break; default: printf("Warning: Unhandled message type: %d.\n", message_type); } } return TRUE; } /* * Callback for "Show Visual Tick" check item menu entry */ static void toggle_visualtick_cb(GtkToggleAction *action _U_, metro_t *metro) { if (GTK_WIDGET_VISIBLE(metro->visualtick)) { visualtick_disable(metro); } else { visualtick_enable(metro); } } /* * Callback for "Show Accent Table" check item menu entry */ static void toggle_accenttable_cb(GtkToggleAction *action _U_, metro_t *metro) { if (GTK_WIDGET_VISIBLE(metro->accentframe)) { gtk_widget_hide(metro->accentframe); gtk_window_resize(GTK_WINDOW(metro->window), 1, 1); } else { gtk_widget_show(metro->accentframe); } } /* * Callback for toggle button (metronome on/off ...) */ static void metro_toggle_cb(GtkToggleAction *action _U_, metro_t *metro) { int new_state; if (metro->state == STATE_IDLE) { new_state = STATE_RUNNING; } else { new_state = STATE_IDLE; } set_state(metro, new_state); } /* * Quit program and destroy callback */ static void quit_cb(GtkAction *action _U_, metro_t *metro) { set_state(metro, STATE_IDLE); option_save_all(metro->options->option_list); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_STOP_SERVER, NULL); gtk_main_quit(); } /* * periodically (e.g. each 300 milliseconds) from gtk main loop called function */ static gint timeout_callback(metro_t* metro) { if (interrupted) { switch(interrupted) { case SIGINT: if (debug) fprintf(stderr, "SIGINT (Ctrl-C ?) caught.\n"); break; case SIGTERM: if (debug) fprintf(stderr, "SIGTERM caught.\n"); break; default: fprintf(stderr, "Warning: Unknown signal caught.\n"); } quit_cb(NULL, metro); } return TRUE; /* call it again */ } /* * indirecting callback showing gtk_options_dialog_new() */ static void preferences_cb(GtkAction *action _U_, metro_t *metro) { GtkWidget* dialog = gtk_options_dialog_new(metro->window, metro->options); gtk_widget_show(dialog); } /* * option system callback for initializing sample name with default value * returns 0 on success, -1 otherwise */ static int new_sample(metro_t* metro) { metro->options->sample_name = strdup(DEFAULT_SAMPLE_FILENAME); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_SOUND, strdup(DEFAULT_SAMPLE_FILENAME)); if (metro->options->sample_name) return 0; else return -1; } /* * option system callback for destroying sample name */ static void delete_sample(metro_t* metro) { if (metro->options->sample_name) free(metro->options->sample_name); } /* * option system callback for choosing the sample * * returns 0 on success, -1 otherwise */ static int set_sample(metro_t* metro, const char* option_name _U_, const char* sample_name) { if (metro->options->sample_name) free(metro->options->sample_name); else fprintf(stderr, "free() error: metro->options->sample_name not allocated.\n"); metro->options->sample_name = strdup(sample_name); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_SOUND, strdup(sample_name)); if (metro->state == STATE_RUNNING) { comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_STOP_METRONOME, NULL); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_START_METRONOME, NULL); } return 0; } /* * option system callback for spotting the sample */ static const char* get_sample(metro_t* metro, int n _U_, char** option_name _U_) { return metro->options->sample_name; } /* * option system callback for initializing sound device name with default value * returns 0 on success, -1 otherwise */ static int new_sound_device_name(metro_t* metro) { metro->options->sound_device_name = strdup(DEFAULT_SOUND_DEVICE_FILENAME); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_DEVICE, strdup(DEFAULT_SOUND_DEVICE_FILENAME)); if (metro->options->sound_device_name) return 0; else return -1; } /* * option system callback for destroying sound device name */ static void delete_sound_device_name(metro_t* metro) { if (metro->options->sound_device_name) free(metro->options->sound_device_name); } /* * option system callback for choosing the sound device name * * returns 0 on success, -1 otherwise */ static int set_sound_device_name(metro_t* metro, const char* option_name _U_, const char* sound_device_name) { if (metro->options->sound_device_name) free(metro->options->sound_device_name); else fprintf(stderr, "free() error: metro->options->sound_device_name not allocated.\n"); metro->options->sound_device_name = strdup(sound_device_name); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_DEVICE, strdup(sound_device_name)); if (metro->state == STATE_RUNNING) { comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_STOP_METRONOME, NULL); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_START_METRONOME, NULL); } return 0; } /* * option system callback for initializing sound system with default value * returns 0 on success, -1 otherwise */ static int new_sound_system(metro_t* metro) { metro->options->sound_device_name = strdup(DEFAULT_SOUND_SYSTEM); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_SOUNDSYSTEM, strdup(DEFAULT_SOUND_SYSTEM)); if (metro->options->soundsystem) return 0; else return -1; } /* * option system callback for destroying sound system */ static void delete_sound_system(metro_t* metro) { if (metro->options->soundsystem) free(metro->options->soundsystem); } /* * option system callback for choosing the sound system * * returns 0 on success, -1 otherwise */ static int set_sound_system(metro_t* metro, const char* option_name _U_, const char* sound_system) { if (metro->options->soundsystem) free(metro->options->soundsystem); else fprintf(stderr, "free() error: metro->options->sound_device_name not allocated.\n"); metro->options->soundsystem = strdup(sound_system); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_SOUNDSYSTEM, strdup(sound_system)); if (metro->state == STATE_RUNNING) { comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_STOP_METRONOME, NULL); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_START_METRONOME, NULL); } return 0; } /* * option system callback for spotting the sound device name */ static const char* get_sound_system(metro_t* metro, int n _U_, char** option_name _U_) { return metro->options->soundsystem; } /* * option system callback for spotting the sound device name */ static const char* get_sound_device_name(metro_t* metro, int n _U_, char** option_name _U_) { return metro->options->sound_device_name; } /* * option system callback for choosing the min_bpm * * returns 0 on success, -1 otherwise */ static int set_min_bpm(metro_t* metro, const char* option_name _U_, const char* min_bpm) { gint new_min_bpm; if (!metro || !metro->speed_adjustment || !min_bpm) return -1; new_min_bpm = abs(strtol(min_bpm, NULL, 0)); if (new_min_bpm >= MIN_BPM && new_min_bpm <= MAX_BPM) { if (new_min_bpm > GTK_ADJUSTMENT(metro->speed_adjustment)->upper) GTK_ADJUSTMENT(metro->speed_adjustment)->upper = (gdouble) new_min_bpm; GTK_ADJUSTMENT(metro->speed_adjustment)->lower = (gdouble) new_min_bpm; gtk_adjustment_changed(GTK_ADJUSTMENT(metro->speed_adjustment)); } return 0; } /* * option system callback for spotting the min_bpm * * if called with metro == NULL, returns NULL */ static const char* get_min_bpm(metro_t* metro, int n _U_, char** option_name _U_) { if (metro == NULL) { return NULL; } else { return g_strdup_printf("%d", (int) round( GTK_ADJUSTMENT(metro->speed_adjustment)->lower)); } } /* * option system callback for initializing min_bpm option */ static int new_min_bpm(metro_t* metro) { if (metro->speed_adjustment) { GTK_ADJUSTMENT(metro->speed_adjustment)->lower = DEFAULT_MIN_BPM; gtk_adjustment_changed(GTK_ADJUSTMENT(metro->speed_adjustment)); return 0; } else { return -1; } } /* * option system callback for destroying min_bpm option */ static void delete_min_bpm(metro_t* metro _U_) { } /* * option system callback for choosing the max_bpm * * returns 0 on success, -1 otherwise */ static int set_max_bpm(metro_t* metro, const char* option_name _U_, const char* max_bpm) { gint new_max_bpm; if (!metro || !metro->speed_adjustment || !max_bpm) return -1; new_max_bpm = abs(strtol(max_bpm, NULL, 0)); if (new_max_bpm >= MIN_BPM && new_max_bpm <= MAX_BPM) { if (new_max_bpm < GTK_ADJUSTMENT(metro->speed_adjustment)->lower) GTK_ADJUSTMENT(metro->speed_adjustment)->lower = (gdouble) new_max_bpm; GTK_ADJUSTMENT(metro->speed_adjustment)->upper = (gdouble) new_max_bpm; gtk_adjustment_changed(GTK_ADJUSTMENT(metro->speed_adjustment)); } return 0; } /* * option system callback for spotting the max_bpm * * if called with metro == NULL, returns NULL */ static const char* get_max_bpm(metro_t* metro, int n _U_, char** option_name _U_) { if (metro == NULL) { return NULL; } else { return g_strdup_printf("%d", (int) round( GTK_ADJUSTMENT(metro->speed_adjustment)->upper)); } } /* * option system callback for initializing max_bpm option */ static int new_max_bpm(metro_t* metro) { if (metro->speed_adjustment) { GTK_ADJUSTMENT(metro->speed_adjustment)->upper = DEFAULT_MAX_BPM; gtk_adjustment_changed(GTK_ADJUSTMENT(metro->speed_adjustment)); return 0; } else { return -1; } } /* * option system callback for destroying max_bpm option */ static void delete_max_bpm(metro_t* metro _U_) { } /* * option system callback for choosing the speed * * returns 0 on success, -1 otherwise */ int set_speed(metro_t* metro, const char* option_name _U_, const char* speed) { if (!metro || !metro->speed_adjustment || !speed) return -1; gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), (gdouble) strtol(speed, NULL, 0)); return 0; } /* * option system callback for spotting the speed * * if called with metro == NULL, returns NULL */ const char* get_speed(metro_t* metro, int n _U_, char** option_name _U_) { if (metro == NULL) { return NULL; } else { return g_strdup_printf("%d", (int) round( gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)))); } } /* * option system callback for initializing speed option */ static int new_speed(metro_t* metro) { if (metro->speed_adjustment) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), (gdouble) DEFAULT_SPEED); return 0; } else { return -1; } } /* * option system callback for destroying speed option */ static void delete_speed(metro_t* metro _U_) { } /* * option system callback for choosing the volume * * returns 0 on success, -1 otherwise */ int set_volume(metro_t* metro, const char* option_name _U_, const char* volume) { if (!metro || !metro->volume_adjustment || !volume) return -1; gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), g_ascii_strtod(volume, NULL)); return 0; } /* * option system callback for spotting the volume * * if called with metro == NULL, returns NULL */ const char* get_volume(metro_t* metro, int n _U_, char** option_name _U_) { if (metro == NULL) { return NULL; } else { gchar* result = g_malloc(G_ASCII_DTOSTR_BUF_SIZE); return g_ascii_dtostr(result, G_ASCII_DTOSTR_BUF_SIZE, gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->volume_adjustment))); } } /* * option system callback for initializing volume option */ static int new_volume(metro_t* metro) { if (metro->volume_adjustment) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), DEFAULT_VOLUME); return 0; } else { return -1; } } /* * option system callback for destroying volume option */ static void delete_volume(metro_t* metro _U_) { } /* * Sets the specified meter (type int) */ static void set_meter_int(metro_t* metro, int meter) { int* message; int i; switch (meter) { case 1: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(metro->meter_button_1), TRUE); break; case 2: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(metro->meter_button_2), TRUE); break; case 3: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(metro->meter_button_3), TRUE); break; case 4: gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(metro->meter_button_4), TRUE); break; default: gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(metro->meter_button_more), TRUE); gtk_spin_button_set_value(GTK_SPIN_BUTTON(metro->meter_spin_button), meter); } gtk_widget_set_sensitive(metro->meter_spin_button, meter > 4); message = (int*) g_malloc (sizeof(int)); *message = meter; for (i = 0; i < MAX_METER; i++) { if (i < meter) { gtk_widget_show(metro->accentbuttons[i]); } else { gtk_widget_hide(metro->accentbuttons[i]); } } gtk_window_resize(GTK_WINDOW(metro->window), 1, 1); if (debug) g_print("new meter: %d\n", meter); visualtick_new_meter(metro, meter); comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_METER, message); } /* * Callback for meter mode */ static void set_meter_cb(GtkWidget* widget, metro_t *metro) { if (GTK_IS_TOGGLE_BUTTON(widget) && !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) return; set_meter_int(metro, gui_get_meter(metro)); } /* * option system callback for choosing the meter * * returns 0 on success, -1 otherwise */ int set_meter(metro_t* metro, const char* option_name _U_, const char* meter) { int n; if (!metro || !meter) return -1; n = (int) strtol(meter, NULL, 0); set_meter_int(metro, n); return 0; } /* * option system callback for spotting the meter * * if called with metro == NULL, deinitializes state and return NULL */ const char* get_meter(metro_t* metro, int n _U_, char** option_name _U_) { static char* result = NULL; if (result) free(result); if (metro == NULL) return NULL; result = g_strdup_printf("%d", gui_get_meter(metro)); return result; } /* * option system callback for initializing meter option */ static int new_meter(metro_t* metro) { char* s; int* meter; s = g_strdup_printf("%d", DEFAULT_METER); set_meter(metro, NULL, s); free(s); meter = (int*) g_malloc (sizeof(int)); *meter = DEFAULT_METER; comm_client_query(metro->inter_thread_comm, MESSAGE_TYPE_SET_METER, meter); return 0; } /* * option system callback for destroying meter option */ static void delete_meter(metro_t* metro _U_) { get_meter(NULL, 0, NULL); } /* option system callback for initializing command for metronome start */ static int new_command_on_start(options_t* options) { if ((options->command_on_start = strdup(DEFAULT_COMMAND_ON_START))) return 0; else return -1; } /* option system callback for destroying command for metronome start */ static void delete_command_on_start(options_t* options) { if (options->command_on_start) free(options->command_on_start); } /* option system callback for setting command for metronome start */ static int set_command_on_start(options_t* options, const char* option_name _U_, const char* command) { if (options->command_on_start) free(options->command_on_start); if ((options->command_on_start = strdup(command))) return 0; else return -1; } /* option system callback for getting command for metronome start */ static const char* get_command_on_start(options_t* options, int n _U_, char** option_name _U_) { return options->command_on_start; } /* option system callback for initializing command for metronome stop */ static int new_command_on_stop(options_t* options) { if ((options->command_on_stop = strdup(DEFAULT_COMMAND_ON_STOP))) return 0; else return -1; } /* option system callback for destroying command for metronome stop */ static void delete_command_on_stop(options_t* options) { if (options->command_on_stop) free(options->command_on_stop); } /* option system callback for setting command for metronome stop */ static int set_command_on_stop(options_t* options, const char* option_name _U_, const char* command) { if (options->command_on_stop) free(options->command_on_stop); if ((options->command_on_stop = strdup(command))) return 0; else return -1; } /* option system callback for getting command for metronome stop */ static const char* get_command_on_stop(options_t* options, int n _U_, char** option_name _U_) { return options->command_on_stop; } /* * option system callback for initializing visualtick * returns 0 on success, -1 on error (metro == NULL) */ static int new_visualtick(metro_t* metro) { if (metro) { gtk_toggle_action_set_active(metro->visualtick_action, FALSE); return 0; } else { return -1; } } /* option system callback for destroying visualtick option */ static void delete_visualtick(metro_t* metro _U_) { } /* option system callback for setting visualtick */ static int set_visualtick(metro_t* metro, const char* option_name _U_, const char* visualtick) { if (metro) { gtk_toggle_action_set_active(metro->visualtick_action, !strcmp(visualtick, "yes") || !strcmp(visualtick, "1")); return 0; } else { return -1; } } /* option system callback for getting visualtick */ static const char* get_visualtick(metro_t* metro, int n _U_, char** option_name _U_) { if (gtk_toggle_action_get_active(metro->visualtick_action)) { return "1"; } else { return "0"; } } /* option system callback for initializing accenttable option */ static int new_show_accenttable(metro_t* metro) { if (metro) { gtk_toggle_action_set_active(metro->accenttable_action, FALSE); return 0; } else { return -1; } } /* option system callback for destroying accenttable option */ static void delete_show_accenttable(metro_t* metro _U_) { } /* option system callback for setting accenttable option */ static int set_show_accenttable(metro_t* metro, const char* option_name _U_, const char* accenttable) { if (metro) { gtk_toggle_action_set_active(metro->accenttable_action, !strcmp(accenttable, "yes") || !strcmp(accenttable, "1")); return 0; } else { return -1; } } /* option system callback for getting accenttable option */ static const char* get_show_accenttable(metro_t* metro, int n _U_, char** option_name _U_) { if (gtk_toggle_action_get_active(metro->accenttable_action)) { return "1"; } else { return "0"; } } /* option system callback for initializing accents */ static int new_accents(metro_t* metro) { if (metro) { int i; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(metro->accentbuttons[0]), TRUE); for (i = 1; i < MAX_METER; i++) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(metro->accentbuttons[i]), FALSE); } return 0; } else { return -1; } } /* option system callback for destroying accents option */ static void delete_accents(metro_t* metro _U_) { } /* option system callback for setting accents option */ int set_accents(metro_t* metro, const char* option_name _U_, const char* accents) { if (metro) { int i = 0; while (*accents && i < MAX_METER) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(metro->accentbuttons[i]), *accents == '1'); i++; accents++; } while (i < MAX_METER) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(metro->accentbuttons[i]), FALSE); i++; } return 0; } else { return -1; } } /* option system callback for getting accents option */ const char* get_accents(metro_t* metro, int n _U_, char** option_name _U_) { static char result[MAX_METER + 1]; if (metro) { int i; for (i = 0; i < MAX_METER; i++) { result[i] = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON( metro->accentbuttons[i])) ? '1' : '0'; } result[MAX_METER] = '\0'; i = MAX_METER - 1; while (i > 0 && result[i] == '0') { result[i] = '\0'; i--; } return result; } else { return NULL; } } /* * returns the (main) menu bar for the specified window * * further initialization done in metro: * - menu-prepared accel_group added to window * - visualtick_menu_item * - accenttable_menu_item */ static GtkWidget* get_menubar(metro_t* metro) { GtkActionGroup *action_group; GtkAccelGroup *accel_group; GtkUIManager *ui_manager; GError *error; action_group = gtk_action_group_new("MenuActions"); gtk_action_group_set_translation_domain(action_group, PACKAGE); gtk_action_group_add_actions(action_group, actions, G_N_ELEMENTS(actions), metro); gtk_action_group_add_toggle_actions(action_group, toggle_actions, G_N_ELEMENTS(toggle_actions), metro); ui_manager = gtk_ui_manager_new(); gtk_ui_manager_insert_action_group(ui_manager, action_group, 0); accel_group = gtk_ui_manager_get_accel_group(ui_manager); gtk_window_add_accel_group(GTK_WINDOW(metro->window), accel_group); error = NULL; if (!gtk_ui_manager_add_ui_from_string(ui_manager, ui_description, -1, &error)) { g_message("Building menus failed: %s", error->message); g_error_free(error); exit(EXIT_FAILURE); } metro->visualtick_action = GTK_TOGGLE_ACTION( gtk_ui_manager_get_action(ui_manager, "/ui/MainMenu/ViewMenu/VisualTick")); metro->accenttable_action = GTK_TOGGLE_ACTION( gtk_ui_manager_get_action(ui_manager, "/ui/MainMenu/ViewMenu/AccentTable")); metro->profiles_action = GTK_TOGGLE_ACTION( gtk_ui_manager_get_action(ui_manager, "/ui/MainMenu/ViewMenu/Profiles")); metro->start_action = gtk_ui_manager_get_action(ui_manager, "/ui/MainMenu/MetronomeMenu/Start"); metro->accel_group = accel_group; return gtk_ui_manager_get_widget(ui_manager, "/MainMenu"); } /* * The audio thread */ static gpointer audio_loop(metro_t* metro) { dsp_t* dsp; dsp = dsp_new(metro->inter_thread_comm); dsp_main_loop(dsp); dsp_delete(dsp); return NULL; } typedef struct closure_data_t { metro_t* metro; int value; } closure_data_t; /* meter shortcuts (e.g. '1'..'9') */ static void set_meter_shortcut_cb(closure_data_t* closure_data) { set_meter_int(closure_data->metro, closure_data->value); } /* callback for destruction of closure_data */ static void set_meter_shortcut_destroy_notify(closure_data_t* closure_data, GClosure *closure _U_) { free(closure_data); } static void set_speed_shortcut_cb_plus(metro_t* metro) { gdouble speed = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)); if (speed + 1 <= GTK_ADJUSTMENT(metro->speed_adjustment)->upper) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), speed + 1); } } static void set_speed_shortcut_cb_plusTwo(metro_t* metro) { gdouble speed = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)); if (speed + 2 <= GTK_ADJUSTMENT(metro->speed_adjustment)->upper) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), speed + 2); } } static void set_speed_shortcut_cb_plusTen(metro_t* metro) { gdouble speed = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)); if (speed + 10 <= GTK_ADJUSTMENT(metro->speed_adjustment)->upper) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), speed + 10); } } static void set_speed_shortcut_cb_minus(metro_t* metro) { gdouble speed = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)); if (speed - 1 >= GTK_ADJUSTMENT(metro->speed_adjustment)->lower) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), speed - 1); } } static void set_speed_shortcut_cb_minusTwo(metro_t* metro) { gdouble speed = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)); if (speed - 2 >= GTK_ADJUSTMENT(metro->speed_adjustment)->lower) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), speed - 2); } } static void set_speed_shortcut_cb_minusTen(metro_t* metro) { gdouble speed = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)); if (speed - 10 >= GTK_ADJUSTMENT(metro->speed_adjustment)->lower) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), speed - 10); } } static void set_speed_shortcut_cb_double(metro_t* metro) { gdouble speed = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)); if (speed * 2 <= GTK_ADJUSTMENT(metro->speed_adjustment)->upper) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), speed *= 2); } } static void set_speed_shortcut_cb_half(metro_t* metro) { gdouble speed = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->speed_adjustment)); if (round(speed / 2) >= GTK_ADJUSTMENT(metro->speed_adjustment)->lower) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->speed_adjustment), speed = round(speed / 2)); } } static void set_volume_shortcut_cb_plusTwo(metro_t* metro) { gdouble volume = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->volume_adjustment)); if (volume + 2 <= 100) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), volume + 2); } } static void set_volume_shortcut_cb_minusTwo(metro_t* metro) { gdouble volume = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->volume_adjustment)); if (volume - 2 >= 0) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), volume - 2); } } static void set_volume_shortcut_cb_plusTen(metro_t* metro) { gdouble volume = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->volume_adjustment)); if (volume + 10 <= 100) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), volume + 10); } } static void set_volume_shortcut_cb_minusTen(metro_t* metro) { gdouble volume = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->volume_adjustment)); if (volume - 10 >= 0) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), volume - 10); } } static void set_volume_shortcut_cb_double(metro_t* metro) { gdouble volume = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->volume_adjustment)); if (volume * 2 <= 100) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), volume *= 2); } else { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), volume = 100); } } static void set_volume_shortcut_cb_half(metro_t* metro) { gdouble volume = gtk_adjustment_get_value(GTK_ADJUSTMENT(metro->volume_adjustment)); if (volume / 2 >= 0) { gtk_adjustment_set_value(GTK_ADJUSTMENT(metro->volume_adjustment), volume /= 2); } } /* * returns a new metro object */ metro_t* metro_new(void) { metro_t* metro; GtkObject* adjustment; GList* icon_list = NULL; GtkWidget* windowvbox; GtkWidget* vbox; GtkWidget* metroframe; GtkWidget* metrovbox; GtkWidget* label; GtkWidget* table; GtkWidget* beatframe; GtkWidget* beatvbox; GtkWidget* spinbutton; GtkWidget* hbox; GtkWidget* togglebutton; GtkWidget* scale; GtkWidget* accenttable; GtkWidget* button; GtkWidget* alignment; closure_data_t* closure_data; guint i, j; metro = g_malloc0(sizeof(metro_t)); if (debug) printf("Creating metro object at %p.\n", metro); metro->options = options_new(); metro->state = STATE_IDLE; /* set default */ metro->inter_thread_comm = comm_new(); metro->audio_thread = g_thread_create_full((GThreadFunc) audio_loop, metro, /* data passed to function */ 0, /* stack size = default */ TRUE, /* joinable */ TRUE, /* bound in system scope (faster) */ G_THREAD_PRIORITY_NORMAL, /* G_THREAD_PRIORITY_URGENT would be highest priority */ NULL /* no GError reporting */); option_register(&metro->options->option_list, "SampleFilename", (option_new_t) new_sample, (option_delete_t) delete_sample, (option_set_t) set_sample, (option_get_n_t) option_return_one, (option_get_t) get_sample, (void*) metro); option_register(&metro->options->option_list, "SoundSystem", (option_new_t) new_sound_system, (option_delete_t) delete_sound_system, (option_set_t) set_sound_system, (option_get_n_t) option_return_one, (option_get_t) get_sound_system, (void*) metro); option_register(&metro->options->option_list, "SoundDevice", (option_new_t) new_sound_device_name, (option_delete_t) delete_sound_device_name, (option_set_t) set_sound_device_name, (option_get_n_t) option_return_one, (option_get_t) get_sound_device_name, (void*) metro); option_register(&metro->options->option_list, "CommandOnStart", (option_new_t) new_command_on_start, (option_delete_t) delete_command_on_start, (option_set_t) set_command_on_start, (option_get_n_t) option_return_one, (option_get_t) get_command_on_start, (void*) metro->options); option_register(&metro->options->option_list, "CommandOnStop", (option_new_t) new_command_on_stop, (option_delete_t) delete_command_on_stop, (option_set_t) set_command_on_stop, (option_get_n_t) option_return_one, (option_get_t) get_command_on_stop, (void*) metro->options); metro->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT(metro->window), "destroy", G_CALLBACK(quit_cb), metro); gtk_window_set_title (GTK_WINDOW (metro->window), TITLE " " VERSION); icon_list = g_list_append(icon_list, (gpointer) gdk_pixbuf_new_from_xpm_data((const char**) icon32x32)); icon_list = g_list_append(icon_list, (gpointer) gdk_pixbuf_new_from_xpm_data((const char**) icon48x48)); icon_list = g_list_append(icon_list, (gpointer) gdk_pixbuf_new_from_xpm_data((const char**) icon64x64)); gtk_window_set_icon_list(GTK_WINDOW(metro->window), icon_list); windowvbox = gtk_vbox_new (FALSE, 0); gtk_container_add(GTK_CONTAINER(metro->window), windowvbox); gtk_widget_show (windowvbox); metro->menu = get_menubar(metro); gtk_box_pack_start(GTK_BOX(windowvbox), metro->menu, FALSE, TRUE, 0); gtk_widget_show(metro->menu); vbox = gtk_vbox_new(FALSE, 18); gtk_box_pack_start_defaults(GTK_BOX(windowvbox), vbox); gtk_container_set_border_width(GTK_CONTAINER(vbox), 12); gtk_widget_show(vbox); metro->statusbar = gtk_statusbar_new(); metro->status_context = gtk_statusbar_get_context_id(GTK_STATUSBAR(metro->statusbar), "status"); gtk_statusbar_push(GTK_STATUSBAR(metro->statusbar), metro->status_context, _(state_data[metro->state].state)); gtk_box_pack_end(GTK_BOX(windowvbox), metro->statusbar, FALSE, TRUE, 0); gtk_widget_show(metro->statusbar); /* Metronome UI Code */ metro->visualtick = visualtick_init(metro); gtk_box_pack_start_defaults(GTK_BOX(vbox), metro->visualtick); /* gtk_widget_show(metro->visualtick); */ metroframe = gtk_frame_new(_("Settings")); label = gtk_frame_get_label_widget(GTK_FRAME(metroframe)); gtk_label_attr_bold(GTK_LABEL(label)); gtk_frame_set_shadow_type(GTK_FRAME(metroframe), GTK_SHADOW_NONE); gtk_box_pack_start(GTK_BOX(vbox), metroframe, FALSE, TRUE, 0); gtk_widget_show (metroframe); alignment = gtk_alignment_new(1.0, 1.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 6, 0, 24, 0); gtk_container_add(GTK_CONTAINER(metroframe), alignment); gtk_widget_show(alignment); metrovbox = gtk_vbox_new(FALSE, 6); gtk_container_set_border_width(GTK_CONTAINER(metrovbox), 0); gtk_container_add(GTK_CONTAINER(alignment), metrovbox); gtk_widget_show(metrovbox); table = gtk_table_new(3, 3, FALSE); gtk_box_pack_start(GTK_BOX(metrovbox), table, FALSE, TRUE, 0); gtk_table_set_row_spacings(GTK_TABLE(table), 6); gtk_table_set_col_spacings(GTK_TABLE(table), 12); gtk_widget_show(table); metro->speed_name = gtk_combo_box_new_text(); for (i = 0; i < sizeof(speed_names) / sizeof(speed_name_t); i++) { gchar tmpbuf[1000]; /* TRANSLATORS: This is a tempo name with its associated BPM (beats per minute) range */ g_snprintf(tmpbuf, 1000, _("%s (%d ... %d)"), _(speed_names[i].name), speed_names[i].min_bpm, speed_names[i].max_bpm - 1); gtk_combo_box_append_text(GTK_COMBO_BOX(metro->speed_name), tmpbuf); } gtk_table_attach_defaults(GTK_TABLE(table), metro->speed_name, 1, 2, 0, 1); gtk_widget_show(metro->speed_name); g_signal_connect_swapped(G_OBJECT(metro->speed_name), "changed", G_CALLBACK(set_speed_name_cb), metro); /* TRANSLATORS: This button needs to be clicked ("tapped") at least twice for specifying a tempo */ button = gtk_button_new_with_label(_("Tap")); gtk_table_attach_defaults(GTK_TABLE(table), button, 2, 3, 0, 1); gtk_widget_show(button); g_signal_connect_swapped(button, "clicked", G_CALLBACK(tap_cb), metro); label = gtk_label_new(_("Speed:")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_widget_show (label); metro->speed_adjustment = gtk_adjustment_new(DEFAULT_BPM, DEFAULT_MIN_BPM, DEFAULT_MAX_BPM, 1.0, 1.0, 0.0); g_signal_connect_swapped(G_OBJECT(metro->speed_adjustment), "value_changed", G_CALLBACK(set_speed_cb), metro); set_speed_cb(metro); scale = gtk_hscale_new (GTK_ADJUSTMENT (metro->speed_adjustment)); gtk_range_set_increments(GTK_RANGE (scale), 1.0, 1.0); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE); gtk_table_attach(GTK_TABLE(table), scale, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); gtk_widget_show (scale); spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(metro->speed_adjustment), 1.0, /* Step */ 0 /* number of decimals */); gtk_table_attach(GTK_TABLE(table), spinbutton, 2, 3, 1, 2, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); gtk_widget_show(spinbutton); option_register(&metro->options->option_list, "MinBPM", (option_new_t) new_min_bpm, (option_delete_t) delete_min_bpm, (option_set_t) set_min_bpm, (option_get_n_t) option_return_one, (option_get_t) get_min_bpm, (void*) metro); option_register(&metro->options->option_list, "MaxBPM", (option_new_t) new_max_bpm, (option_delete_t) delete_max_bpm, (option_set_t) set_max_bpm, (option_get_n_t) option_return_one, (option_get_t) get_max_bpm, (void*) metro); option_register(&metro->options->option_list, "Speed", (option_new_t) new_speed, (option_delete_t) delete_speed, (option_set_t) set_speed, (option_get_n_t) option_return_one, (option_get_t) get_speed, (void*) metro); option_register(&metro->options->option_list, "Volume", (option_new_t) new_volume, (option_delete_t) delete_volume, (option_set_t) set_volume, (option_get_n_t) option_return_one, (option_get_t) get_volume, (void*) metro); label = gtk_label_new (_("Volume:")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); gtk_misc_set_alignment(GTK_MISC(label), 0.0, 0.5); gtk_widget_show (label); metro->volume_adjustment = gtk_adjustment_new(DEFAULT_VOLUME, VOLUME_MIN, VOLUME_MAX, 5.0, 25.0, 0.0); g_signal_connect_swapped(G_OBJECT(metro->volume_adjustment), "value_changed", G_CALLBACK(set_volume_cb), metro); set_volume_cb(metro); scale = gtk_hscale_new (GTK_ADJUSTMENT(metro->volume_adjustment)); gtk_range_set_update_policy (GTK_RANGE (scale), GTK_UPDATE_CONTINUOUS); gtk_scale_set_digits (GTK_SCALE (scale), 0); gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE); gtk_table_attach(GTK_TABLE(table), scale, 1, 2, 2, 3, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); gtk_widget_show (scale); spinbutton = gtk_spin_button_new(GTK_ADJUSTMENT(metro->volume_adjustment), 1.0, /* Step */ 1 /* number of decimals */); gtk_table_attach(GTK_TABLE(table), spinbutton, 2, 3, 2, 3, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); gtk_widget_show(spinbutton); /* Timing UI Code */ beatframe = gtk_frame_new (_("Meter")); gtk_frame_set_shadow_type(GTK_FRAME(beatframe), GTK_SHADOW_NONE); label = gtk_frame_get_label_widget(GTK_FRAME(beatframe)); gtk_label_attr_bold(GTK_LABEL(label)); gtk_box_pack_start(GTK_BOX(vbox), beatframe, FALSE, TRUE, 0); gtk_widget_show(beatframe); alignment = gtk_alignment_new(1.0, 1.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 6, 0, 24, 0); gtk_container_add(GTK_CONTAINER(beatframe), alignment); gtk_widget_show(alignment); beatvbox = gtk_vbox_new (FALSE, 6); gtk_container_set_border_width (GTK_CONTAINER (beatvbox), 0); gtk_container_add (GTK_CONTAINER (alignment), beatvbox); gtk_widget_show(beatvbox); hbox = gtk_hbox_new (FALSE, 12); gtk_box_pack_start(GTK_BOX (beatvbox), hbox, FALSE, TRUE, 0); gtk_widget_show (hbox); metro->meter_button_1 = gtk_radio_button_new_with_label (NULL, /* TRANSLATORS: all beats are equal */ _("Even")); gtk_box_pack_start(GTK_BOX (hbox), metro->meter_button_1, FALSE, TRUE, 0); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON (metro->meter_button_1), TRUE); gtk_widget_show (metro->meter_button_1); g_signal_connect(G_OBJECT(metro->meter_button_1), "toggled", G_CALLBACK(set_meter_cb), metro); metro->meter_button_2 = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(metro->meter_button_1), /* TRANSLATORS: duple meter */ _("2/4")); gtk_box_pack_start(GTK_BOX(hbox), metro->meter_button_2, FALSE, TRUE, 0); gtk_widget_show (metro->meter_button_2); g_signal_connect(G_OBJECT(metro->meter_button_2), "toggled", G_CALLBACK(set_meter_cb), metro); metro->meter_button_3 = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(metro->meter_button_2), /* TRANSLATORS: triple meter */ _("3/4")); gtk_box_pack_start(GTK_BOX(hbox), metro->meter_button_3, FALSE, TRUE, 0); gtk_widget_show (metro->meter_button_3); g_signal_connect(G_OBJECT(metro->meter_button_3), "toggled", G_CALLBACK(set_meter_cb), metro); metro->meter_button_4 = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(metro->meter_button_3), /* TRANSLATORS: quadruple meter / common meter */ _("4/4")); gtk_box_pack_start(GTK_BOX(hbox), metro->meter_button_4, FALSE, TRUE, 0); gtk_widget_show (metro->meter_button_4); g_signal_connect(G_OBJECT(metro->meter_button_4), "toggled", G_CALLBACK(set_meter_cb), metro); metro->meter_button_more = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(metro->meter_button_4), /* TRANSLATORS: meter with more than 4 beats per measure */ _("Other:")); gtk_box_pack_start(GTK_BOX(hbox), metro->meter_button_more, FALSE, TRUE, 0); gtk_widget_show(metro->meter_button_more); g_signal_connect(G_OBJECT(metro->meter_button_more), "toggled", G_CALLBACK(set_meter_cb), metro); adjustment = gtk_adjustment_new(5, 5, MAX_METER, 1, 4, 0); metro->meter_spin_button = gtk_spin_button_new(GTK_ADJUSTMENT(adjustment), 1, 0); gtk_widget_set_sensitive(metro->meter_spin_button, FALSE); gtk_widget_show(metro->meter_spin_button); gtk_box_pack_start(GTK_BOX(hbox), metro->meter_spin_button, FALSE, TRUE, 0); g_signal_connect(G_OBJECT(metro->meter_spin_button), "value-changed", G_CALLBACK(set_meter_cb), metro); /* Accent table */ metro->accentframe = gtk_frame_new(_("Beat Accent")); gtk_frame_set_shadow_type(GTK_FRAME(metro->accentframe), GTK_SHADOW_NONE); label = gtk_frame_get_label_widget(GTK_FRAME(metro->accentframe)); gtk_label_attr_bold(GTK_LABEL(label)); gtk_box_pack_start(GTK_BOX(vbox), metro->accentframe, FALSE, TRUE, 0); /* gtk_widget_show(metro->accentframe); */ alignment = gtk_alignment_new(1.0, 1.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 6, 0, 24, 0); gtk_container_add(GTK_CONTAINER(metro->accentframe), alignment); gtk_widget_show(alignment); accenttable = gtk_table_new((MAX_METER - 1) / 10 + 1, 10, FALSE); gtk_table_set_col_spacings(GTK_TABLE(accenttable), 12); gtk_container_set_border_width(GTK_CONTAINER(accenttable), 0); gtk_container_add(GTK_CONTAINER(alignment), accenttable); gtk_widget_show(accenttable); metro->accentbuttons = (GtkWidget**) g_malloc(sizeof(GtkWidget*) * MAX_METER); for (i = 0; i < (MAX_METER - 1) / 10 + 1; i++) { for (j = 0; j < 10; j++) { char* temp; temp = g_strdup_printf("%d", i * 10 + j + 1); button = gtk_check_button_new_with_label(temp); free(temp); gtk_table_attach(GTK_TABLE(accenttable), button, j, j + 1, i, i + 1, GTK_FILL, GTK_FILL, 0, 0); g_signal_connect_swapped(button, "toggled", G_CALLBACK(accents_changed_cb), metro); metro->accentbuttons[i * 10 + j] = button; } } option_register(&metro->options->option_list, "Meter", (option_new_t) new_meter, (option_delete_t) delete_meter, (option_set_t) set_meter, (option_get_n_t) option_return_one, (option_get_t) get_meter, (void*) metro); option_register(&metro->options->option_list, "ShowAccentTable", (option_new_t) new_show_accenttable, (option_delete_t) delete_show_accenttable, (option_set_t) set_show_accenttable, (option_get_n_t) option_return_one, (option_get_t) get_show_accenttable, (void*) metro); option_register(&metro->options->option_list, "Accents", (option_new_t) new_accents, (option_delete_t) delete_accents, (option_set_t) set_accents, (option_get_n_t) option_return_one, (option_get_t) get_accents, (void*) metro); /* Profiles */ metro->profileframe = profiles_new(metro); gtk_box_pack_start(GTK_BOX(vbox), metro->profileframe, FALSE, TRUE, 0); /* General UI Code */ hbox = gtk_hbox_new (FALSE, 10); gtk_container_set_border_width (GTK_CONTAINER (hbox), 5); gtk_box_pack_start (GTK_BOX(windowvbox), hbox, FALSE, TRUE, 0); gtk_widget_show (hbox); togglebutton = gtk_button_new(); g_signal_connect(G_OBJECT(togglebutton), "clicked", G_CALLBACK(metro_toggle_cb), metro); gtk_box_pack_start(GTK_BOX(hbox), togglebutton, TRUE, FALSE, 0); GTK_WIDGET_SET_FLAGS (togglebutton, GTK_CAN_DEFAULT); gtk_widget_grab_default (togglebutton); GTK_WIDGET_SET_FLAGS (togglebutton, GTK_CAN_FOCUS); gtk_widget_grab_focus (togglebutton); gtk_widget_show (togglebutton); metro->togglebutton_label = gtk_label_new(_(state_data[metro->state].toggle_label)); gtk_misc_set_padding(GTK_MISC(metro->togglebutton_label), 64, 0); gtk_container_add(GTK_CONTAINER(togglebutton), metro->togglebutton_label); gtk_widget_show(metro->togglebutton_label); /* set up additional short cuts */ for (i = '1'; i <= '9'; i++) { closure_data = (closure_data_t*) g_malloc (sizeof(closure_data_t)); closure_data->metro = metro; closure_data->value = i - '1' + 1; gtk_accel_group_connect(metro->accel_group, i, GDK_CONTROL_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_meter_shortcut_cb), closure_data, (GClosureNotify) set_meter_shortcut_destroy_notify)); } gtk_accel_group_connect(metro->accel_group, '+', GDK_CONTROL_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_plus), metro, NULL)); gtk_accel_group_connect(metro->accel_group, '-', GDK_CONTROL_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_minus),metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'x', GDK_MOD1_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_plusTwo), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'z', GDK_MOD1_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_minusTwo),metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'd', GDK_CONTROL_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_double), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'h', GDK_CONTROL_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_half), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'w', GDK_MOD1_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_double), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'q', GDK_MOD1_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_half), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 's', GDK_MOD1_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_plusTen), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'a', GDK_MOD1_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_speed_shortcut_cb_minusTen), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'x', GDK_SHIFT_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_volume_shortcut_cb_plusTwo), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'z', GDK_SHIFT_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_volume_shortcut_cb_minusTwo),metro, NULL)); gtk_accel_group_connect(metro->accel_group, 's', GDK_SHIFT_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_volume_shortcut_cb_plusTen), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'a', GDK_SHIFT_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_volume_shortcut_cb_minusTen),metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'w', GDK_SHIFT_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_volume_shortcut_cb_double), metro, NULL)); gtk_accel_group_connect(metro->accel_group, 'q', GDK_SHIFT_MASK, 0, g_cclosure_new_swap(G_CALLBACK(set_volume_shortcut_cb_half),metro, NULL)); option_register(&metro->options->option_list, "VisualTick", (option_new_t) new_visualtick, (option_delete_t) delete_visualtick, (option_set_t) set_visualtick, (option_get_n_t) option_return_one, (option_get_t) get_visualtick, (void*) metro); /* read rc file */ option_restore_all(metro->options->option_list); /* set up additional handlers */ gtk_timeout_add(TIMER_DELAY, (GtkFunction) timeout_callback, metro); gtk_timeout_add(VISUAL_DELAY * 1000, (GtkFunction) handle_comm, metro); signal(SIGINT, &terminate_signal_callback); signal(SIGTERM, &terminate_signal_callback); /* additional helper widgets: */ /* Start error message */ metro->start_error = gtk_message_dialog_new(GTK_WINDOW(metro->window), GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR, GTK_BUTTONS_CLOSE, _("Couldn't start metronome.\n" "Please check if specified sound device\n" "and sample file are accessible.")); /* Hide the dialog when the user responds to it */ g_signal_connect_swapped(G_OBJECT(metro->start_error), "response", G_CALLBACK(gtk_widget_hide), G_OBJECT(metro->start_error)); gtk_widget_show (metro->window); return metro; } void metro_delete(metro_t* metro) { g_thread_join(metro->audio_thread); comm_delete(metro->inter_thread_comm); metro->inter_thread_comm = NULL; options_delete(metro->options); free(metro->accentbuttons); if (debug) printf("Destroying metro object at %p.\n", metro); g_free(metro); } gtick-0.5.2/src/optionlexer.h0000644000175000017500000000172610660406274013063 00000000000000/* * options file format additional lexer declarations * * This file is part of GTick * * Copyright 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef OPTIONLEXER_H #define OPTIONLEXER_H extern FILE *option_in; int option_parse(); void option_lexer_init(char* filename); void option_lexer_deinit(); #endif /* OPTIONLEXER_H */ gtick-0.5.2/src/gtick.c0000644000175000017500000000565211005112670011575 00000000000000/* * gnu gtick - a gtk+ metronome * * gtick.c: main app code * * * copyright (c) 1999 alex roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include #include #include /* GTK+ headers */ #include #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "metro.h" #include "dsp.h" #include "util.h" metro_t* metro; int main(int argc, char *argv[]) { struct option long_options[] = { {"help", no_argument, 0, 'h'}, {"usage", no_argument, 0, 'h'}, {"version", no_argument, 0, 'v'}, {"debug", optional_argument, 0, 'd'}, {0, 0, 0, 0} }; char *short_options = "hvd::"; int option_index = 0; int c; /* prepare for i18n */ #ifdef ENABLE_NLS setlocale(LC_ALL, ""); if (!bindtextdomain(PACKAGE, LOCALEDIR)) { fprintf(stderr, "Error setting directory for textdomain (i18n).\n"); } if (!textdomain(PACKAGE)) { fprintf(stderr, "Error setting domainname for gettext() " "(internationalization).\n"); } #endif /* Initialise GTK+ */ gtk_init (&argc, &argv); while ((c = getopt_long(argc, argv, short_options, long_options, &option_index)) != -1) { switch(c) { case 'h': /* help */ printf(_("\ Usage: %s [OPTION...]\n\ \n\ Options:\n\ -h, --help Show this help message\n\ -v, --version Print version information\n\ -d, --debug[=level] Print additional runtime debugging data to stdout\n\ \n"), argv[0]); exit(0); case 'v': /* version */ printf(PACKAGE " " VERSION "\n"); exit(0); case 'd': /* debug mode */ if (optarg) { debug = strtol(optarg, NULL, 0); } else { debug = 1; } break; case '?': exit(1); } } /* no further arguments expected, so not handled */ #ifdef ENABLE_NLS if (!bind_textdomain_codeset(PACKAGE, "UTF-8")) { /* needed for GTK */ fprintf(stderr, "Error setting gettext output codeset to UTF-8.\n"); } #endif if (!g_thread_supported()) { g_thread_init(NULL); } /* Initialise UI */ metro = metro_new(); /* GTK+ internal main loop */ gtk_main(); metro_delete(metro); return 0; } gtick-0.5.2/src/threadtalk.h0000644000175000017500000000525711617227611012640 00000000000000/* * Interface for asynchronous thread conversation * * This file is part of GTick * * * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef THREADTALK_H #define THREADTALK_H /* GLib thread abstraction implementation */ #include typedef struct comm_t { GAsyncQueue* client; /* e.g. in GTick: (messages to) main thread */ GAsyncQueue* server; /* e.g. in GTick: (messages to) audio thread */ } comm_t; /* * actual data in message_t body field, if documented * reply only for labelled messages */ enum message_type_t { MESSAGE_TYPE_NO_MESSAGE, MESSAGE_TYPE_STOP_SERVER, MESSAGE_TYPE_SET_DEVICE, /* param: char*: device */ MESSAGE_TYPE_SET_SOUND, /* param: char* sound name or filename */ MESSAGE_TYPE_SET_SOUNDSYSTEM, MESSAGE_TYPE_SET_METER, /* param: int*: meter */ MESSAGE_TYPE_SET_ACCENTS, /* param: char*: accent list: {'0','1'}* */ MESSAGE_TYPE_SET_FREQUENCY, /* param: double*: frequency */ MESSAGE_TYPE_START_METRONOME, /* response needed: OK / ERROR */ MESSAGE_TYPE_STOP_METRONOME, MESSAGE_TYPE_START_SYNC, /* start / stop messages from server */ MESSAGE_TYPE_STOP_SYNC, MESSAGE_TYPE_SET_VOLUME, /* param: double*: volume 0.0 ... 1.0 */ MESSAGE_TYPE_GET_VOLUME, /* response needed: double*: volume 0.0...1.0 */ MESSAGE_TYPE_RESPONSE_VOLUME, /* param: int*: volume 0 ... 100 */ MESSAGE_TYPE_RESPONSE_SYNC, /* param: unsigned int*: position in meter*/ MESSAGE_TYPE_RESPONSE_START_ERROR }; typedef enum message_type_t message_type_t; typedef struct message_t { message_type_t type; void* body; } message_t; comm_t* comm_new(void); void comm_delete(comm_t* comm); void comm_client_query(comm_t* comm, message_type_t type, void* body); message_type_t comm_client_try_get_reply(comm_t* comm, void** body); void comm_server_register(comm_t* comm); void comm_server_unregister(comm_t* comm); message_type_t comm_server_try_get_query(comm_t* comm, void** body); void comm_server_send_response(comm_t* comm, message_type_t type, void* body); #endif /* THREADTALK_H */ gtick-0.5.2/src/util.h0000644000175000017500000000217310660406274011465 00000000000000/* * Miscellaneous utility functions * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef UTIL_H #define UTIL_H #include #ifdef HAVE_SYS_TIME_H #include #endif int timeval_subtract(struct timeval* result, struct timeval* x, struct timeval* y); char* stripchr(char* s, char c); char* get_rc_filename(void); void execute(char *command); #endif /* UTIL_H */ gtick-0.5.2/src/optionlexer.c0000644000175000017500000013403510661555373013064 00000000000000#line 2 "optionlexer.c" #line 4 "optionlexer.c" #define YY_INT_ALIGNED short int /* A lexical scanner generated by flex */ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_SUBMINOR_VERSION 33 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif /* First, we deal with platform-specific or compiler-specific issues. */ /* begin standard C headers. */ #include #include #include #include /* end standard C headers. */ /* flex integer type definitions */ #ifndef FLEXINT_H #define FLEXINT_H /* C99 systems have . Non-C99 systems may or may not. */ #if __STDC_VERSION__ >= 199901L /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h, * if you want the limit (max/min) macros for int types. */ #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS 1 #endif #include typedef int8_t flex_int8_t; typedef uint8_t flex_uint8_t; typedef int16_t flex_int16_t; typedef uint16_t flex_uint16_t; typedef int32_t flex_int32_t; typedef uint32_t flex_uint32_t; #else typedef signed char flex_int8_t; typedef short int flex_int16_t; typedef int flex_int32_t; typedef unsigned char flex_uint8_t; typedef unsigned short int flex_uint16_t; typedef unsigned int flex_uint32_t; #endif /* ! C99 */ /* Limits of integral types. */ #ifndef INT8_MIN #define INT8_MIN (-128) #endif #ifndef INT16_MIN #define INT16_MIN (-32767-1) #endif #ifndef INT32_MIN #define INT32_MIN (-2147483647-1) #endif #ifndef INT8_MAX #define INT8_MAX (127) #endif #ifndef INT16_MAX #define INT16_MAX (32767) #endif #ifndef INT32_MAX #define INT32_MAX (2147483647) #endif #ifndef UINT8_MAX #define UINT8_MAX (255U) #endif #ifndef UINT16_MAX #define UINT16_MAX (65535U) #endif #ifndef UINT32_MAX #define UINT32_MAX (4294967295U) #endif #endif /* ! FLEXINT_H */ #ifdef __cplusplus /* The "const" storage-class-modifier is valid. */ #define YY_USE_CONST #else /* ! __cplusplus */ #if __STDC__ #define YY_USE_CONST #endif /* __STDC__ */ #endif /* ! __cplusplus */ #ifdef YY_USE_CONST #define yyconst const #else #define yyconst #endif /* Returned upon end-of-file. */ #define YY_NULL 0 /* Promotes a possibly negative, possibly signed char to an unsigned * integer for use as an array index. If the signed char is negative, * we want to instead treat it as an 8-bit unsigned char, hence the * double cast. */ #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) /* Enter a start condition. This macro really ought to take a parameter, * but we do it the disgusting crufty way forced on us by the ()-less * definition of BEGIN. */ #define BEGIN (yy_start) = 1 + 2 * /* Translate the current start state into a value that can be later handed * to BEGIN to return to the state. The YYSTATE alias is for lex * compatibility. */ #define YY_START (((yy_start) - 1) / 2) #define YYSTATE YY_START /* Action number for EOF rule of a given start state. */ #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) /* Special action meaning "start processing a new file". */ #define YY_NEW_FILE option_restart(option_in ) #define YY_END_OF_BUFFER_CHAR 0 /* Size of default input buffer. */ #ifndef YY_BUF_SIZE #define YY_BUF_SIZE 16384 #endif /* The state buf must be large enough to hold one state per character in the main buffer. */ #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) #ifndef YY_TYPEDEF_YY_BUFFER_STATE #define YY_TYPEDEF_YY_BUFFER_STATE typedef struct yy_buffer_state *YY_BUFFER_STATE; #endif extern int option_leng; extern FILE *option_in, *option_out; #define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_LAST_MATCH 2 #define YY_LESS_LINENO(n) /* Return all but the first "n" matched characters back to the input stream. */ #define yyless(n) \ do \ { \ /* Undo effects of setting up option_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = (yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ YY_DO_BEFORE_ACTION; /* set up option_text again */ \ } \ while ( 0 ) #define unput(c) yyunput( c, (yytext_ptr) ) /* The following is because we cannot portably get our hands on size_t * (without autoconf's help, which isn't available because we want * flex-generated scanners to compile on their own). */ #ifndef YY_TYPEDEF_YY_SIZE_T #define YY_TYPEDEF_YY_SIZE_T typedef unsigned int yy_size_t; #endif #ifndef YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE struct yy_buffer_state { FILE *yy_input_file; char *yy_ch_buf; /* input buffer */ char *yy_buf_pos; /* current position in input buffer */ /* Size of input buffer in bytes, not including room for EOB * characters. */ yy_size_t yy_buf_size; /* Number of characters read into yy_ch_buf, not including EOB * characters. */ int yy_n_chars; /* Whether we "own" the buffer - i.e., we know we created it, * and can realloc() it to grow it, and should free() it to * delete it. */ int yy_is_our_buffer; /* Whether this is an "interactive" input source; if so, and * if we're using stdio for input, then we want to use getc() * instead of fread(), to make sure we stop fetching input after * each newline. */ int yy_is_interactive; /* Whether we're considered to be at the beginning of a line. * If so, '^' rules will be active on the next match, otherwise * not. */ int yy_at_bol; int yy_bs_lineno; /**< The line count. */ int yy_bs_column; /**< The column count. */ /* Whether to try to fill the input buffer when we reach the * end of it. */ int yy_fill_buffer; int yy_buffer_status; #define YY_BUFFER_NEW 0 #define YY_BUFFER_NORMAL 1 /* When an EOF's been seen but there's still some text to process * then we mark the buffer as YY_EOF_PENDING, to indicate that we * shouldn't try reading from the input source any more. We might * still have a bunch of tokens to match, though, because of * possible backing-up. * * When we actually see the EOF, we change the status to "new" * (via option_restart()), so that the user can continue scanning by * just pointing option_in at a new input file. */ #define YY_BUFFER_EOF_PENDING 2 }; #endif /* !YY_STRUCT_YY_BUFFER_STATE */ /* Stack of input buffers. */ static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ /* We provide macros for accessing buffer states in case in the * future we want to put the buffer states in a more general * "scanner state". * * Returns the top of the stack, or NULL. */ #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ : NULL) /* Same as previous macro, but useful when we know that the buffer stack is not * NULL or when we need an lvalue. For internal use only. */ #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] /* yy_hold_char holds the character lost when option_text is formed. */ static char yy_hold_char; static int yy_n_chars; /* number of characters read into yy_ch_buf */ int option_leng; /* Points to current character in buffer. */ static char *yy_c_buf_p = (char *) 0; static int yy_init = 0; /* whether we need to initialize */ static int yy_start = 0; /* start state number */ /* Flag which is used to allow option_wrap()'s to do buffer switches * instead of setting up a fresh option_in. A bit of a hack ... */ static int yy_did_buffer_switch_on_eof; void option_restart (FILE *input_file ); void option__switch_to_buffer (YY_BUFFER_STATE new_buffer ); YY_BUFFER_STATE option__create_buffer (FILE *file,int size ); void option__delete_buffer (YY_BUFFER_STATE b ); void option__flush_buffer (YY_BUFFER_STATE b ); void option_push_buffer_state (YY_BUFFER_STATE new_buffer ); void option_pop_buffer_state (void ); static void option_ensure_buffer_stack (void ); static void option__load_buffer_state (void ); static void option__init_buffer (YY_BUFFER_STATE b,FILE *file ); #define YY_FLUSH_BUFFER option__flush_buffer(YY_CURRENT_BUFFER ) YY_BUFFER_STATE option__scan_buffer (char *base,yy_size_t size ); YY_BUFFER_STATE option__scan_string (yyconst char *yy_str ); YY_BUFFER_STATE option__scan_bytes (yyconst char *bytes,int len ); void *option_alloc (yy_size_t ); void *option_realloc (void *,yy_size_t ); void option_free (void * ); #define yy_new_buffer option__create_buffer #define yy_set_interactive(is_interactive) \ { \ if ( ! YY_CURRENT_BUFFER ){ \ option_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ option__create_buffer(option_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ } #define yy_set_bol(at_bol) \ { \ if ( ! YY_CURRENT_BUFFER ){\ option_ensure_buffer_stack (); \ YY_CURRENT_BUFFER_LVALUE = \ option__create_buffer(option_in,YY_BUF_SIZE ); \ } \ YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ } #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) /* Begin user sect3 */ typedef unsigned char YY_CHAR; FILE *option_in = (FILE *) 0, *option_out = (FILE *) 0; typedef int yy_state_type; extern int option_lineno; int option_lineno = 1; extern char *option_text; #define yytext_ptr option_text static yy_state_type yy_get_previous_state (void ); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); static int yy_get_next_buffer (void ); static void yy_fatal_error (yyconst char msg[] ); /* Done after the current pattern has been matched and before the * corresponding action - sets up option_text. */ #define YY_DO_BEFORE_ACTION \ (yytext_ptr) = yy_bp; \ option_leng = (size_t) (yy_cp - yy_bp); \ (yy_hold_char) = *yy_cp; \ *yy_cp = '\0'; \ (yy_c_buf_p) = yy_cp; #define YY_NUM_RULES 9 #define YY_END_OF_BUFFER 10 /* This struct is not used in this scanner, but its presence is necessary. */ struct yy_trans_info { flex_int32_t yy_verify; flex_int32_t yy_nxt; }; static yyconst flex_int16_t yy_accept[22] = { 0, 0, 0, 0, 0, 10, 8, 8, 3, 2, 4, 7, 6, 7, 0, 1, 2, 4, 0, 0, 5, 0 } ; static yyconst flex_int32_t yy_ec[256] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 4, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 1, 1, 1, 7, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 8, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 } ; static yyconst flex_int32_t yy_meta[9] = { 0, 1, 1, 2, 3, 1, 1, 1, 1 } ; static yyconst flex_int16_t yy_base[26] = { 0, 0, 0, 7, 10, 33, 34, 29, 34, 9, 29, 34, 34, 26, 26, 34, 0, 26, 25, 21, 34, 34, 17, 20, 15, 23 } ; static yyconst flex_int16_t yy_def[26] = { 0, 21, 1, 22, 22, 21, 21, 23, 21, 21, 24, 21, 21, 25, 23, 21, 9, 24, 24, 25, 21, 0, 21, 21, 21, 21 } ; static yyconst flex_int16_t yy_nxt[43] = { 0, 6, 6, 6, 6, 7, 6, 8, 9, 11, 12, 13, 11, 12, 13, 16, 17, 16, 10, 10, 10, 14, 14, 14, 19, 20, 19, 18, 18, 15, 20, 18, 15, 21, 5, 21, 21, 21, 21, 21, 21, 21, 21 } ; static yyconst flex_int16_t yy_chk[43] = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 4, 4, 4, 9, 24, 9, 22, 22, 22, 23, 23, 23, 25, 19, 25, 18, 17, 14, 13, 10, 7, 5, 21, 21, 21, 21, 21, 21, 21, 21, 21 } ; static yy_state_type yy_last_accepting_state; static char *yy_last_accepting_cpos; extern int option__flex_debug; int option__flex_debug = 0; /* The intent behind this definition is that it'll catch * any uses of REJECT which flex missed. */ #define REJECT reject_used_but_not_detected #define yymore() yymore_used_but_not_detected #define YY_MORE_ADJ 0 #define YY_RESTORE_YY_MORE_OFFSET char *option_text; #line 1 "optionlexer.l" #line 4 "optionlexer.l" /* * options file format lexer * * This file is part of GTick * * Copyright 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ /* type for semantic values of symbols: malloc'ed strings */ #define YYSTYPE char* /* GNU headers */ #include #include #include /* GTK+ headers */ #include /* own headers */ #include "globals.h" #include "optionparser.h" #include "optionlexer.h" char* option_filename; YYLTYPE option_lloc; void option_locate(); /* exclusive start condition for C-style comments */ #line 513 "optionlexer.c" #define INITIAL 0 #define _VALUE_ 1 #ifndef YY_NO_UNISTD_H /* Special case for "unistd.h", since it is non-ANSI. We include it way * down here because we want the user's section 1 to have been scanned first. * The user has a chance to override it with an option. */ #include #endif #ifndef YY_EXTRA_TYPE #define YY_EXTRA_TYPE void * #endif static int yy_init_globals (void ); /* Macros after this point can all be overridden by user definitions in * section 1. */ #ifndef YY_SKIP_YYWRAP #ifdef __cplusplus extern "C" int option_wrap (void ); #else extern int option_wrap (void ); #endif #endif #ifndef yytext_ptr static void yy_flex_strncpy (char *,yyconst char *,int ); #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * ); #endif #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void ); #else static int input (void ); #endif #endif /* Amount of stuff to slurp up with each read. */ #ifndef YY_READ_BUF_SIZE #define YY_READ_BUF_SIZE 8192 #endif /* Copy whatever the last rule matched to the standard output. */ #ifndef ECHO /* This used to be an fputs(), but since the string might contain NUL's, * we now use fwrite(). */ #define ECHO (void) fwrite( option_text, option_leng, 1, option_out ) #endif /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, * is returned in "result". */ #ifndef YY_INPUT #define YY_INPUT(buf,result,max_size) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ { \ int c = '*'; \ size_t n; \ for ( n = 0; n < max_size && \ (c = getc( option_in )) != EOF && c != '\n'; ++n ) \ buf[n] = (char) c; \ if ( c == '\n' ) \ buf[n++] = (char) c; \ if ( c == EOF && ferror( option_in ) ) \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ result = n; \ } \ else \ { \ errno=0; \ while ( (result = fread(buf, 1, max_size, option_in))==0 && ferror(option_in)) \ { \ if( errno != EINTR) \ { \ YY_FATAL_ERROR( "input in flex scanner failed" ); \ break; \ } \ errno=0; \ clearerr(option_in); \ } \ }\ \ #endif /* No semi-colon after return; correct usage is to write "yyterminate();" - * we don't want an extra ';' after the "return" because that will cause * some compilers to complain about unreachable statements. */ #ifndef yyterminate #define yyterminate() return YY_NULL #endif /* Number of entries by which start-condition stack grows. */ #ifndef YY_START_STACK_INCR #define YY_START_STACK_INCR 25 #endif /* Report a fatal error. */ #ifndef YY_FATAL_ERROR #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) #endif /* end tables serialization structures and prototypes */ /* Default declaration of generated scanner - a define so the user can * easily add parameters. */ #ifndef YY_DECL #define YY_DECL_IS_OURS 1 extern int option_lex (void); #define YY_DECL int option_lex (void) #endif /* !YY_DECL */ /* Code executed at the beginning of each rule, after option_text and option_leng * have been set up. */ #ifndef YY_USER_ACTION #define YY_USER_ACTION #endif /* Code executed at the end of each rule. */ #ifndef YY_BREAK #define YY_BREAK break; #endif #define YY_RULE_SETUP \ YY_USER_ACTION /** The main scanner function which does all the work. */ YY_DECL { register yy_state_type yy_current_state; register char *yy_cp, *yy_bp; register int yy_act; #line 54 "optionlexer.l" #line 668 "optionlexer.c" if ( !(yy_init) ) { (yy_init) = 1; #ifdef YY_USER_INIT YY_USER_INIT; #endif if ( ! (yy_start) ) (yy_start) = 1; /* first start state */ if ( ! option_in ) option_in = stdin; if ( ! option_out ) option_out = stdout; if ( ! YY_CURRENT_BUFFER ) { option_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = option__create_buffer(option_in,YY_BUF_SIZE ); } option__load_buffer_state( ); } while ( 1 ) /* loops until end-of-file is reached */ { yy_cp = (yy_c_buf_p); /* Support of option_text. */ *yy_cp = (yy_hold_char); /* yy_bp points to the position in yy_ch_buf of the start of * the current run. */ yy_bp = yy_cp; yy_current_state = (yy_start); yy_match: do { register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)]; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 22 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; ++yy_cp; } while ( yy_base[yy_current_state] != 34 ); yy_find_action: yy_act = yy_accept[yy_current_state]; if ( yy_act == 0 ) { /* have to back up */ yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); yy_act = yy_accept[yy_current_state]; } YY_DO_BEFORE_ACTION; do_action: /* This label is used only to access EOF actions. */ switch ( yy_act ) { /* beginning of action switch */ case 0: /* must back up */ /* undo the effects of YY_DO_BEFORE_ACTION */ *yy_cp = (yy_hold_char); yy_cp = (yy_last_accepting_cpos); yy_current_state = (yy_last_accepting_state); goto yy_find_action; case 1: /* rule 1 can match eol */ YY_RULE_SETUP #line 56 "optionlexer.l" { /* eat up comment lines */ option_locate(); } YY_BREAK case 2: YY_RULE_SETUP #line 59 "optionlexer.l" { option_locate(); option_lval = strdup(option_text); return TOKEN_NAME; } YY_BREAK case 3: YY_RULE_SETUP #line 64 "optionlexer.l" { option_locate(); BEGIN(_VALUE_); return *option_text; } YY_BREAK case 4: YY_RULE_SETUP #line 69 "optionlexer.l" { option_locate(); option_lval = strdup(option_text); return TOKEN_VALUE; } YY_BREAK case 5: YY_RULE_SETUP #line 74 "optionlexer.l" { int len = strlen(option_text) - 2; option_locate(); option_lval = (char *)g_malloc(len + 1); strncpy(option_lval, option_text + 1, len); option_lval[len] = '\0'; return TOKEN_VALUE; } YY_BREAK case 6: /* rule 6 can match eol */ YY_RULE_SETUP #line 83 "optionlexer.l" { option_locate(); BEGIN(INITIAL); } YY_BREAK case 7: YY_RULE_SETUP #line 87 "optionlexer.l" { /* eat up rest (whitespace & unknown) */ option_locate(); } YY_BREAK case 8: /* rule 8 can match eol */ YY_RULE_SETUP #line 90 "optionlexer.l" { /* eat up rest (whitespace & unknown) */ option_locate(); } YY_BREAK case 9: YY_RULE_SETUP #line 94 "optionlexer.l" ECHO; YY_BREAK #line 828 "optionlexer.c" case YY_STATE_EOF(INITIAL): case YY_STATE_EOF(_VALUE_): yyterminate(); case YY_END_OF_BUFFER: { /* Amount of text matched not including the EOB char. */ int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; /* Undo the effects of YY_DO_BEFORE_ACTION. */ *yy_cp = (yy_hold_char); YY_RESTORE_YY_MORE_OFFSET if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) { /* We're scanning a new file or input source. It's * possible that this happened because the user * just pointed option_in at a new source and called * option_lex(). If so, then we have to assure * consistency between YY_CURRENT_BUFFER and our * globals. Here is the right place to do so, because * this is the first action (other than possibly a * back-up) that will match for the new input source. */ (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; YY_CURRENT_BUFFER_LVALUE->yy_input_file = option_in; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; } /* Note that here we test for yy_c_buf_p "<=" to the position * of the first EOB in the buffer, since yy_c_buf_p will * already have been incremented past the NUL character * (since all states make transitions on EOB to the * end-of-buffer state). Contrast this with the test * in input(). */ if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) { /* This was really a NUL. */ yy_state_type yy_next_state; (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); /* Okay, we're now positioned to make the NUL * transition. We couldn't have * yy_get_previous_state() go ahead and do it * for us because it doesn't know how to deal * with the possibility of jamming (and we don't * want to build jamming into it because then it * will run more slowly). */ yy_next_state = yy_try_NUL_trans( yy_current_state ); yy_bp = (yytext_ptr) + YY_MORE_ADJ; if ( yy_next_state ) { /* Consume the NUL. */ yy_cp = ++(yy_c_buf_p); yy_current_state = yy_next_state; goto yy_match; } else { yy_cp = (yy_c_buf_p); goto yy_find_action; } } else switch ( yy_get_next_buffer( ) ) { case EOB_ACT_END_OF_FILE: { (yy_did_buffer_switch_on_eof) = 0; if ( option_wrap( ) ) { /* Note: because we've taken care in * yy_get_next_buffer() to have set up * option_text, we can now set up * yy_c_buf_p so that if some total * hoser (like flex itself) wants to * call the scanner after we return the * YY_NULL, it'll still work - another * YY_NULL will get returned. */ (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; yy_act = YY_STATE_EOF(YY_START); goto do_action; } else { if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; } break; } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_match; case EOB_ACT_LAST_MATCH: (yy_c_buf_p) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; yy_current_state = yy_get_previous_state( ); yy_cp = (yy_c_buf_p); yy_bp = (yytext_ptr) + YY_MORE_ADJ; goto yy_find_action; } break; } default: YY_FATAL_ERROR( "fatal flex scanner internal error--no action found" ); } /* end of action switch */ } /* end of scanning one token */ } /* end of option_lex */ /* yy_get_next_buffer - try to read in a new buffer * * Returns a code representing an action: * EOB_ACT_LAST_MATCH - * EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_END_OF_FILE - end of file */ static int yy_get_next_buffer (void) { register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *source = (yytext_ptr); register int number_to_move, i; int ret_val; if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) YY_FATAL_ERROR( "fatal flex scanner internal error--end of buffer missed" ); if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) { /* Don't try to fill the buffer, so this is an EOF. */ if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) { /* We matched a single character, the EOB, so * treat this as a final EOF. */ return EOB_ACT_END_OF_FILE; } else { /* We matched some text prior to the EOB, first * process it. */ return EOB_ACT_LAST_MATCH; } } /* Try to read more data. */ /* First move last chars to start of buffer. */ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; for ( i = 0; i < number_to_move; ++i ) *(dest++) = *(source++); if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) /* don't do the read, it's not guaranteed to return an EOF, * just force an EOF */ YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; else { int num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; while ( num_to_read <= 0 ) { /* Not enough room in the buffer - grow it. */ /* just a shorter name for the current buffer */ YY_BUFFER_STATE b = YY_CURRENT_BUFFER; int yy_c_buf_p_offset = (int) ((yy_c_buf_p) - b->yy_ch_buf); if ( b->yy_is_our_buffer ) { int new_size = b->yy_buf_size * 2; if ( new_size <= 0 ) b->yy_buf_size += b->yy_buf_size / 8; else b->yy_buf_size *= 2; b->yy_ch_buf = (char *) /* Include room in for 2 EOB chars. */ option_realloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); } else /* Can't grow it, we don't own it. */ b->yy_ch_buf = 0; if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" ); (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; } if ( num_to_read > YY_READ_BUF_SIZE ) num_to_read = YY_READ_BUF_SIZE; /* Read in more data. */ YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), (yy_n_chars), (size_t) num_to_read ); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } if ( (yy_n_chars) == 0 ) { if ( number_to_move == YY_MORE_ADJ ) { ret_val = EOB_ACT_END_OF_FILE; option_restart(option_in ); } else { ret_val = EOB_ACT_LAST_MATCH; YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_EOF_PENDING; } } else ret_val = EOB_ACT_CONTINUE_SCAN; (yy_n_chars) += number_to_move; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; return ret_val; } /* yy_get_previous_state - get the state just before the EOB char was reached */ static yy_state_type yy_get_previous_state (void) { register yy_state_type yy_current_state; register char *yy_cp; yy_current_state = (yy_start); for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) { register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 22 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; } return yy_current_state; } /* yy_try_NUL_trans - try to make a transition on the NUL character * * synopsis * next_state = yy_try_NUL_trans( current_state ); */ static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) { register int yy_is_jam; register char *yy_cp = (yy_c_buf_p); register YY_CHAR yy_c = 1; if ( yy_accept[yy_current_state] ) { (yy_last_accepting_state) = yy_current_state; (yy_last_accepting_cpos) = yy_cp; } while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) { yy_current_state = (int) yy_def[yy_current_state]; if ( yy_current_state >= 22 ) yy_c = yy_meta[(unsigned int) yy_c]; } yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c]; yy_is_jam = (yy_current_state == 21); return yy_is_jam ? 0 : yy_current_state; } #ifndef YY_NO_INPUT #ifdef __cplusplus static int yyinput (void) #else static int input (void) #endif { int c; *(yy_c_buf_p) = (yy_hold_char); if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) { /* yy_c_buf_p now points to the character we want to return. * If this occurs *before* the EOB characters, then it's a * valid NUL; if not, then we've hit the end of the buffer. */ if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) /* This was really a NUL. */ *(yy_c_buf_p) = '\0'; else { /* need more input */ int offset = (yy_c_buf_p) - (yytext_ptr); ++(yy_c_buf_p); switch ( yy_get_next_buffer( ) ) { case EOB_ACT_LAST_MATCH: /* This happens because yy_g_n_b() * sees that we've accumulated a * token and flags that we need to * try matching the token before * proceeding. But for input(), * there's no matching to consider. * So convert the EOB_ACT_LAST_MATCH * to EOB_ACT_END_OF_FILE. */ /* Reset buffer status. */ option_restart(option_in ); /*FALLTHROUGH*/ case EOB_ACT_END_OF_FILE: { if ( option_wrap( ) ) return EOF; if ( ! (yy_did_buffer_switch_on_eof) ) YY_NEW_FILE; #ifdef __cplusplus return yyinput(); #else return input(); #endif } case EOB_ACT_CONTINUE_SCAN: (yy_c_buf_p) = (yytext_ptr) + offset; break; } } } c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ *(yy_c_buf_p) = '\0'; /* preserve option_text */ (yy_hold_char) = *++(yy_c_buf_p); return c; } #endif /* ifndef YY_NO_INPUT */ /** Immediately switch to a different input stream. * @param input_file A readable stream. * * @note This function does not reset the start condition to @c INITIAL . */ void option_restart (FILE * input_file ) { if ( ! YY_CURRENT_BUFFER ){ option_ensure_buffer_stack (); YY_CURRENT_BUFFER_LVALUE = option__create_buffer(option_in,YY_BUF_SIZE ); } option__init_buffer(YY_CURRENT_BUFFER,input_file ); option__load_buffer_state( ); } /** Switch to a different input buffer. * @param new_buffer The new input buffer. * */ void option__switch_to_buffer (YY_BUFFER_STATE new_buffer ) { /* TODO. We should be able to replace this entire function body * with * option_pop_buffer_state(); * option_push_buffer_state(new_buffer); */ option_ensure_buffer_stack (); if ( YY_CURRENT_BUFFER == new_buffer ) return; if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } YY_CURRENT_BUFFER_LVALUE = new_buffer; option__load_buffer_state( ); /* We don't actually know whether we did this switch during * EOF (option_wrap()) processing, but the only time this flag * is looked at is after option_wrap() is called, so it's safe * to go ahead and always set it. */ (yy_did_buffer_switch_on_eof) = 1; } static void option__load_buffer_state (void) { (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; option_in = YY_CURRENT_BUFFER_LVALUE->yy_input_file; (yy_hold_char) = *(yy_c_buf_p); } /** Allocate and initialize an input buffer state. * @param file A readable stream. * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. * * @return the allocated buffer state. */ YY_BUFFER_STATE option__create_buffer (FILE * file, int size ) { YY_BUFFER_STATE b; b = (YY_BUFFER_STATE) option_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in option__create_buffer()" ); b->yy_buf_size = size; /* yy_ch_buf has to be 2 characters longer than the size given because * we need to put in 2 end-of-buffer characters. */ b->yy_ch_buf = (char *) option_alloc(b->yy_buf_size + 2 ); if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in option__create_buffer()" ); b->yy_is_our_buffer = 1; option__init_buffer(b,file ); return b; } /** Destroy the buffer. * @param b a buffer created with option__create_buffer() * */ void option__delete_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; if ( b->yy_is_our_buffer ) option_free((void *) b->yy_ch_buf ); option_free((void *) b ); } #ifndef __cplusplus extern int isatty (int ); #endif /* __cplusplus */ /* Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a option_restart() or at EOF. */ static void option__init_buffer (YY_BUFFER_STATE b, FILE * file ) { int oerrno = errno; option__flush_buffer(b ); b->yy_input_file = file; b->yy_fill_buffer = 1; /* If b is the current buffer, then option__init_buffer was _probably_ * called from option_restart() or through yy_get_next_buffer. * In that case, we don't want to reset the lineno or column. */ if (b != YY_CURRENT_BUFFER){ b->yy_bs_lineno = 1; b->yy_bs_column = 0; } b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; errno = oerrno; } /** Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * */ void option__flush_buffer (YY_BUFFER_STATE b ) { if ( ! b ) return; b->yy_n_chars = 0; /* We always need two end-of-buffer characters. The first causes * a transition to the end-of-buffer state. The second causes * a jam in that state. */ b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; b->yy_buf_pos = &b->yy_ch_buf[0]; b->yy_at_bol = 1; b->yy_buffer_status = YY_BUFFER_NEW; if ( b == YY_CURRENT_BUFFER ) option__load_buffer_state( ); } /** Pushes the new state onto the stack. The new state becomes * the current state. This function will allocate the stack * if necessary. * @param new_buffer The new state. * */ void option_push_buffer_state (YY_BUFFER_STATE new_buffer ) { if (new_buffer == NULL) return; option_ensure_buffer_stack(); /* This block is copied from option__switch_to_buffer. */ if ( YY_CURRENT_BUFFER ) { /* Flush out information for old buffer. */ *(yy_c_buf_p) = (yy_hold_char); YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); } /* Only push if top exists. Otherwise, replace top. */ if (YY_CURRENT_BUFFER) (yy_buffer_stack_top)++; YY_CURRENT_BUFFER_LVALUE = new_buffer; /* copied from option__switch_to_buffer. */ option__load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } /** Removes and deletes the top of the stack, if present. * The next element becomes the new top. * */ void option_pop_buffer_state (void) { if (!YY_CURRENT_BUFFER) return; option__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; if ((yy_buffer_stack_top) > 0) --(yy_buffer_stack_top); if (YY_CURRENT_BUFFER) { option__load_buffer_state( ); (yy_did_buffer_switch_on_eof) = 1; } } /* Allocates the stack if it does not exist. * Guarantees space for at least one push. */ static void option_ensure_buffer_stack (void) { int num_to_alloc; if (!(yy_buffer_stack)) { /* First allocation is just for 2 elements, since we don't know if this * scanner will even need a stack. We use 2 instead of 1 to avoid an * immediate realloc on the next call. */ num_to_alloc = 1; (yy_buffer_stack) = (struct yy_buffer_state**)option_alloc (num_to_alloc * sizeof(struct yy_buffer_state*) ); memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; (yy_buffer_stack_top) = 0; return; } if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ /* Increase the buffer to prepare for a possible push. */ int grow_size = 8 /* arbitrary grow size */; num_to_alloc = (yy_buffer_stack_max) + grow_size; (yy_buffer_stack) = (struct yy_buffer_state**)option_realloc ((yy_buffer_stack), num_to_alloc * sizeof(struct yy_buffer_state*) ); /* zero only the new slots.*/ memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); (yy_buffer_stack_max) = num_to_alloc; } } /** Setup the input buffer state to scan directly from a user-specified character buffer. * @param base the character buffer * @param size the size in bytes of the character buffer * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE option__scan_buffer (char * base, yy_size_t size ) { YY_BUFFER_STATE b; if ( size < 2 || base[size-2] != YY_END_OF_BUFFER_CHAR || base[size-1] != YY_END_OF_BUFFER_CHAR ) /* They forgot to leave room for the EOB's. */ return 0; b = (YY_BUFFER_STATE) option_alloc(sizeof( struct yy_buffer_state ) ); if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in option__scan_buffer()" ); b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ b->yy_buf_pos = b->yy_ch_buf = base; b->yy_is_our_buffer = 0; b->yy_input_file = 0; b->yy_n_chars = b->yy_buf_size; b->yy_is_interactive = 0; b->yy_at_bol = 1; b->yy_fill_buffer = 0; b->yy_buffer_status = YY_BUFFER_NEW; option__switch_to_buffer(b ); return b; } /** Setup the input buffer state to scan a string. The next call to option_lex() will * scan from a @e copy of @a str. * @param yystr a NUL-terminated string to scan * * @return the newly allocated buffer state object. * @note If you want to scan bytes that may contain NUL values, then use * option__scan_bytes() instead. */ YY_BUFFER_STATE option__scan_string (yyconst char * yystr ) { return option__scan_bytes(yystr,strlen(yystr) ); } /** Setup the input buffer state to scan the given bytes. The next call to option_lex() will * scan from a @e copy of @a bytes. * @param bytes the byte buffer to scan * @param len the number of bytes in the buffer pointed to by @a bytes. * * @return the newly allocated buffer state object. */ YY_BUFFER_STATE option__scan_bytes (yyconst char * yybytes, int _yybytes_len ) { YY_BUFFER_STATE b; char *buf; yy_size_t n; int i; /* Get memory for full buffer, including space for trailing EOB's. */ n = _yybytes_len + 2; buf = (char *) option_alloc(n ); if ( ! buf ) YY_FATAL_ERROR( "out of dynamic memory in option__scan_bytes()" ); for ( i = 0; i < _yybytes_len; ++i ) buf[i] = yybytes[i]; buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR; b = option__scan_buffer(buf,n ); if ( ! b ) YY_FATAL_ERROR( "bad buffer in option__scan_bytes()" ); /* It's okay to grow etc. this buffer, and we should throw it * away when we're done. */ b->yy_is_our_buffer = 1; return b; } #ifndef YY_EXIT_FAILURE #define YY_EXIT_FAILURE 2 #endif static void yy_fatal_error (yyconst char* msg ) { (void) fprintf( stderr, "%s\n", msg ); exit( YY_EXIT_FAILURE ); } /* Redefine yyless() so it works in section 3 code. */ #undef yyless #define yyless(n) \ do \ { \ /* Undo effects of setting up option_text. */ \ int yyless_macro_arg = (n); \ YY_LESS_LINENO(yyless_macro_arg);\ option_text[option_leng] = (yy_hold_char); \ (yy_c_buf_p) = option_text + yyless_macro_arg; \ (yy_hold_char) = *(yy_c_buf_p); \ *(yy_c_buf_p) = '\0'; \ option_leng = yyless_macro_arg; \ } \ while ( 0 ) /* Accessor methods (get/set functions) to struct members. */ /** Get the current line number. * */ int option_get_lineno (void) { return option_lineno; } /** Get the input stream. * */ FILE *option_get_in (void) { return option_in; } /** Get the output stream. * */ FILE *option_get_out (void) { return option_out; } /** Get the length of the current token. * */ int option_get_leng (void) { return option_leng; } /** Get the current token. * */ char *option_get_text (void) { return option_text; } /** Set the current line number. * @param line_number * */ void option_set_lineno (int line_number ) { option_lineno = line_number; } /** Set the input stream. This does not discard the current * input buffer. * @param in_str A readable stream. * * @see option__switch_to_buffer */ void option_set_in (FILE * in_str ) { option_in = in_str ; } void option_set_out (FILE * out_str ) { option_out = out_str ; } int option_get_debug (void) { return option__flex_debug; } void option_set_debug (int bdebug ) { option__flex_debug = bdebug ; } static int yy_init_globals (void) { /* Initialization is the same as for the non-reentrant scanner. * This function is called from option_lex_destroy(), so don't allocate here. */ (yy_buffer_stack) = 0; (yy_buffer_stack_top) = 0; (yy_buffer_stack_max) = 0; (yy_c_buf_p) = (char *) 0; (yy_init) = 0; (yy_start) = 0; /* Defined in main.c */ #ifdef YY_STDINIT option_in = stdin; option_out = stdout; #else option_in = (FILE *) 0; option_out = (FILE *) 0; #endif /* For future reference: Set errno on error, since we are called by * option_lex_init() */ return 0; } /* option_lex_destroy is for both reentrant and non-reentrant scanners. */ int option_lex_destroy (void) { /* Pop the buffer stack, destroying each element. */ while(YY_CURRENT_BUFFER){ option__delete_buffer(YY_CURRENT_BUFFER ); YY_CURRENT_BUFFER_LVALUE = NULL; option_pop_buffer_state(); } /* Destroy the stack itself. */ option_free((yy_buffer_stack) ); (yy_buffer_stack) = NULL; /* Reset the globals. This is important in a non-reentrant scanner so the next time * option_lex() is called, initialization will occur. */ yy_init_globals( ); return 0; } /* * Internal utility routines. */ #ifndef yytext_ptr static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) { register int i; for ( i = 0; i < n; ++i ) s1[i] = s2[i]; } #endif #ifdef YY_NEED_STRLEN static int yy_flex_strlen (yyconst char * s ) { register int n; for ( n = 0; s[n]; ++n ) ; return n; } #endif void *option_alloc (yy_size_t size ) { return (void *) malloc( size ); } void *option_realloc (void * ptr, yy_size_t size ) { /* The cast to (char *) in the following accommodates both * implementations that use char* generic pointers, and those * that use void* generic pointers. It works with the latter * because both ANSI C and C++ allow castless assignment from * any pointer type to void*, and deal with argument conversions * as though doing an assignment. */ return (void *) realloc( (char *) ptr, size ); } void option_free (void * ptr ) { free( (char *) ptr ); /* see option_realloc() for (char *) cast */ } #define YYTABLES_NAME "yytables" #line 94 "optionlexer.l" /* For portability's sake */ int option_wrap() { return 1; } /* * adjusts option_lloc according to option_text */ void option_locate() { char* temp; option_lloc.first_line = option_lloc.last_line; option_lloc.first_column = option_lloc.last_column; for (temp = option_text; *temp != '\0'; temp++) { if (*temp == '\n') { ++ option_lloc.last_line; option_lloc.last_column = 1; } else { ++ option_lloc.last_column; } } } /* * to be called directly before the parser run * sets up option_filename (to be free'd by option_lexer_deinit) on success * * on success, option_in contains valid FILE* handle, else NULL */ void option_lexer_init(char* filename) { option_lloc.first_line = 1; option_lloc.first_column = 1; option_lloc.last_line = 1; option_lloc.last_column = 1; if ((option_in = fopen(filename, "r"))) { option_filename = strdup(filename); } } /* * to be called directly after the parser run */ void option_lexer_deinit() { if (fclose(option_in) == EOF) { fprintf(stderr, "Warning: Couldn't close options file.\n"); } free(option_filename); } gtick-0.5.2/src/threadtalk.c0000644000175000017500000000672411005112744012622 00000000000000/* * Interface for thread conversation * * This file is part of GTick * * * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ /* GNU headers */ #include #include /* GTK+ headers */ #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "threadtalk.h" /* * returns initialized comm object */ comm_t* comm_new(void) { comm_t* result; result = (comm_t*) g_malloc(sizeof(comm_t)); result->server = g_async_queue_new(); result->client = g_async_queue_new(); return result; } /* * destructor for comm objects */ void comm_delete(comm_t* comm) { g_async_queue_unref(comm->server); g_async_queue_unref(comm->client); free(comm); } /* * client sends query to server with separately allocated body * (to be only accessed by server and destroyed there) */ void comm_client_query(comm_t* comm, message_type_t type, void* body) { message_t* message; message = (message_t*) g_malloc (sizeof(message_t)); message->type = type; message->body = body; g_async_queue_push(comm->server, message); } /* * client tries to read message from queue * stores message in body if body != 0 * if no message is available, returns MESSAGE_TYPE_NO_MESSAGE * NOTE: message from server must be freed by client thread */ message_type_t comm_client_try_get_reply(comm_t* comm, void** body) { message_t* message = (message_t*) g_async_queue_try_pop(comm->client); if (message) { message_type_t type = message->type; if (body) { *body = message->body; } free(message); return type; } else { return MESSAGE_TYPE_NO_MESSAGE; } } /* * register server at comm object (by increasing reference count) */ void comm_server_register(comm_t* comm) { g_async_queue_ref(comm->server); g_async_queue_ref(comm->client); } /* * un-register server at comm object (by decreasing reference count) */ void comm_server_unregister(comm_t* comm) { g_async_queue_unref(comm->server); g_async_queue_unref(comm->client); } /* * server tries to read message from queue * stores message in body if body != 0 * if no message is available, returns MESSAGE_TYPE_NO_MESSAGE * NOTE: message from client must be freed by server thread */ message_type_t comm_server_try_get_query(comm_t* comm, void** body) { message_t* message = (message_t*) g_async_queue_try_pop(comm->server); if (message) { message_type_t type = message->type; if (body) { *body = message->body; } free(message); return type; } else { return MESSAGE_TYPE_NO_MESSAGE; } } /* * send message (back) to client */ void comm_server_send_response(comm_t* comm, message_type_t type, void* body) { message_t* message; message = (message_t*) g_malloc (sizeof(message_t)); message->type = type; message->body = body; g_async_queue_push(comm->client, message); } gtick-0.5.2/src/optionparser.h0000644000175000017500000000453612116334650013236 00000000000000/* A Bison parser, made by GNU Bison 2.5. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. 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 3 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, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { TOKEN_NAME = 258, TOKEN_VALUE = 259 }; #endif /* Tokens. */ #define TOKEN_NAME 258 #define TOKEN_VALUE 259 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif extern YYSTYPE option_lval; #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED typedef struct YYLTYPE { int first_line; int first_column; int last_line; int last_column; } YYLTYPE; # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ # define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_TRIVIAL 1 #endif extern YYLTYPE option_lloc; gtick-0.5.2/src/g711.c0000644000175000017500000001702211005112512011140 00000000000000/* * This source code is a product of Sun Microsystems, Inc. and is provided * for unrestricted use. Users may copy or modify this source code without * charge. * * SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING * THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. * * Sun source code is provided with no support and without any obligation on * the part of Sun Microsystems, Inc. to assist in its use, correction, * modification or enhancement. * * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY THIS SOFTWARE * OR ANY PART THEREOF. * * In no event will Sun Microsystems, Inc. be liable for any lost revenue * or profits or other special, indirect and consequential damages, even if * Sun has been advised of the possibility of such damages. * * Sun Microsystems, Inc. * 2550 Garcia Avenue * Mountain View, California 94043 */ #include #ifdef USE_DMALLOC #include #endif /* * g711.c * * u-law, A-law and linear PCM conversions. */ #define SIGN_BIT (0x80) /* Sign bit for a A-law byte. */ #define QUANT_MASK (0xf) /* Quantization field mask. */ #define NSEGS (8) /* Number of A-law segments. */ #define SEG_SHIFT (4) /* Left shift for segment number. */ #define SEG_MASK (0x70) /* Segment field mask. */ /* copy from CCITT G.711 specifications */ unsigned char _u2a[128] = { /* u- to A-law conversions */ 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 27, 29, 31, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 46, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128}; unsigned char _a2u[128] = { /* A- to u-law conversions */ 1, 3, 5, 7, 9, 11, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 32, 33, 33, 34, 34, 35, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 48, 49, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127}; /* see libst.h */ /*#ifdef SUPERCEDED*/ static short seg_end[8] = {0xFF, 0x1FF, 0x3FF, 0x7FF, 0xFFF, 0x1FFF, 0x3FFF, 0x7FFF}; static int search(val, table, size) int val; short *table; int size; { int i; for (i = 0; i < size; i++) { if (val <= *table++) return (i); } return (size); } /* * linear2alaw() - Convert a 16-bit linear PCM value to 8-bit A-law * * linear2alaw() accepts an 16-bit integer and encodes it as A-law data. * * Linear Input Code Compressed Code * ------------------------ --------------- * 0000000wxyza 000wxyz * 0000001wxyza 001wxyz * 000001wxyzab 010wxyz * 00001wxyzabc 011wxyz * 0001wxyzabcd 100wxyz * 001wxyzabcde 101wxyz * 01wxyzabcdef 110wxyz * 1wxyzabcdefg 111wxyz * * For further information see John C. Bellamy's Digital Telephony, 1982, * John Wiley & Sons, pps 98-111 and 472-476. */ unsigned char linear2alaw(pcm_val) int pcm_val; /* 2's complement (16-bit range) */ { int mask; int seg; unsigned char aval; if (pcm_val >= 0) { mask = 0xD5; /* sign (7th) bit = 1 */ } else { mask = 0x55; /* sign bit = 0 */ pcm_val = -pcm_val - 8; } /* Convert the scaled magnitude to segment number. */ seg = search(pcm_val, seg_end, 8); /* Combine the sign, segment, and quantization bits. */ if (seg >= 8) /* out of range, return maximum value. */ return (0x7F ^ mask); else { aval = seg << SEG_SHIFT; if (seg < 2) aval |= (pcm_val >> 4) & QUANT_MASK; else aval |= (pcm_val >> (seg + 3)) & QUANT_MASK; return (aval ^ mask); } } /* * alaw2linear() - Convert an A-law value to 16-bit linear PCM * */ int alaw2linear(a_val) unsigned char a_val; { int t; int seg; a_val ^= 0x55; t = (a_val & QUANT_MASK) << 4; seg = ((unsigned)a_val & SEG_MASK) >> SEG_SHIFT; switch (seg) { case 0: t += 8; break; case 1: t += 0x108; break; default: t += 0x108; t <<= seg - 1; } return ((a_val & SIGN_BIT) ? t : -t); } #define BIAS (0x84) /* Bias for linear code. */ /* * linear2ulaw() - Convert a linear PCM value to u-law * * In order to simplify the encoding process, the original linear magnitude * is biased by adding 33 which shifts the encoding range from (0 - 8158) to * (33 - 8191). The result can be seen in the following encoding table: * * Biased Linear Input Code Compressed Code * ------------------------ --------------- * 00000001wxyza 000wxyz * 0000001wxyzab 001wxyz * 000001wxyzabc 010wxyz * 00001wxyzabcd 011wxyz * 0001wxyzabcde 100wxyz * 001wxyzabcdef 101wxyz * 01wxyzabcdefg 110wxyz * 1wxyzabcdefgh 111wxyz * * Each biased linear code has a leading 1 which identifies the segment * number. The value of the segment number is equal to 7 minus the number * of leading 0's. The quantization interval is directly available as the * four bits wxyz. * The trailing bits (a - h) are ignored. * * Ordinarily the complement of the resulting code word is used for * transmission, and so the code word is complemented before it is returned. * * For further information see John C. Bellamy's Digital Telephony, 1982, * John Wiley & Sons, pps 98-111 and 472-476. */ unsigned char linear2ulaw(pcm_val) int pcm_val; /* 2's complement (16-bit range) */ { int mask; int seg; unsigned char uval; /* Get the sign and the magnitude of the value. */ if (pcm_val < 0) { pcm_val = BIAS - pcm_val; mask = 0x7F; } else { pcm_val += BIAS; mask = 0xFF; } /* Convert the scaled magnitude to segment number. */ seg = search(pcm_val, seg_end, 8); /* * Combine the sign, segment, quantization bits; * and complement the code word. */ if (seg >= 8) /* out of range, return maximum value. */ return (0x7F ^ mask); else { uval = (seg << 4) | ((pcm_val >> (seg + 3)) & 0xF); return (uval ^ mask); } } /* * ulaw2linear() - Convert a u-law value to 16-bit linear PCM * * First, a biased linear code is derived from the code word. An unbiased * output can then be obtained by subtracting 33 from the biased code. * * Note that this function expects to be passed the complement of the * original code word. This is in keeping with ISDN conventions. */ int ulaw2linear(u_val) unsigned char u_val; { int t; /* Complement to obtain normal u-law value. */ u_val = ~u_val; /* * Extract and bias the quantization bits. Then * shift up by the segment number and subtract out the bias. */ t = ((u_val & QUANT_MASK) << 3) + BIAS; t <<= ((unsigned)u_val & SEG_MASK) >> SEG_SHIFT; return ((u_val & SIGN_BIT) ? (BIAS - t) : (t - BIAS)); } /*#endif*/ /* A-law to u-law conversion */ unsigned char alaw2ulaw(aval) unsigned char aval; { aval &= 0xff; return ((aval & 0x80) ? (0xFF ^ _a2u[aval ^ 0xD5]) : (0x7F ^ _a2u[aval ^ 0x55])); } /* u-law to A-law conversion */ unsigned char ulaw2alaw(uval) unsigned char uval; { uval &= 0xff; return ((uval & 0x80) ? (0xD5 ^ (_u2a[0xFF ^ uval] - 1)) : (0x55 ^ (_u2a[0x7F ^ uval] - 1))); } gtick-0.5.2/src/optionlexer.l0000644000175000017500000000717110660406274013067 00000000000000%option prefix="option_" %option nounput %{ /* * options file format lexer * * This file is part of GTick * * Copyright 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ /* type for semantic values of symbols: malloc'ed strings */ #define YYSTYPE char* /* GNU headers */ #include #include #include /* GTK+ headers */ #include /* own headers */ #include "globals.h" #include "optionparser.h" #include "optionlexer.h" char* option_filename; YYLTYPE option_lloc; void option_locate(); %} LETTER [a-zA-Z_] DIGIT [0-9] /* exclusive start condition for C-style comments */ %x _VALUE_ %% "#"[^\n]*\n { /* eat up comment lines */ option_locate(); } {LETTER}({LETTER}|{DIGIT})* { option_locate(); option_lval = strdup(option_text); return TOKEN_NAME; } "=" { option_locate(); BEGIN(_VALUE_); return *option_text; } <_VALUE_>[^ \t\n"]([^\n"]*[^ \t\n"])* { option_locate(); option_lval = strdup(option_text); return TOKEN_VALUE; } <_VALUE_>\"[^"\n]*\" { int len = strlen(option_text) - 2; option_locate(); option_lval = (char *)g_malloc(len + 1); strncpy(option_lval, option_text + 1, len); option_lval[len] = '\0'; return TOKEN_VALUE; } <_VALUE_>\n { option_locate(); BEGIN(INITIAL); } <_VALUE_>. { /* eat up rest (whitespace & unknown) */ option_locate(); } .|\n { /* eat up rest (whitespace & unknown) */ option_locate(); } %% /* For portability's sake */ int option_wrap() { return 1; } /* * adjusts option_lloc according to option_text */ void option_locate() { char* temp; option_lloc.first_line = option_lloc.last_line; option_lloc.first_column = option_lloc.last_column; for (temp = yytext; *temp != '\0'; temp++) { if (*temp == '\n') { ++ option_lloc.last_line; option_lloc.last_column = 1; } else { ++ option_lloc.last_column; } } } /* * to be called directly before the parser run * sets up option_filename (to be free'd by option_lexer_deinit) on success * * on success, option_in contains valid FILE* handle, else NULL */ void option_lexer_init(char* filename) { option_lloc.first_line = 1; option_lloc.first_column = 1; option_lloc.last_line = 1; option_lloc.last_column = 1; if ((option_in = fopen(filename, "r"))) { option_filename = strdup(filename); } } /* * to be called directly after the parser run */ void option_lexer_deinit() { if (fclose(option_in) == EOF) { fprintf(stderr, "Warning: Couldn't close options file.\n"); } free(option_filename); } gtick-0.5.2/src/option.c0000644000175000017500000001433611005112553012003 00000000000000/* * option.c: Options handling functions * * This file is part of GTick * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include #include /* GTK+ headers */ #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "option.h" #include "optionlexer.h" #include "optionparser.h" #include "util.h" /* * returns new, empty options list */ option_list_t* option_list_new(void) { return NULL; } /* * destroys list, releasing all memory associated with it and destructing * options */ void option_list_delete(option_list_t* list) { option_list_t* temp; while (list) { temp = list; list = list->next; if (temp->destructor) temp->destructor(temp->object); free(temp); } } /* * inserts new option entry to specified list* with: * * name: name of the option * constructor: will be called once on registration * (actually, by this function) * can be NULL for no constructor * destructor: will be called on options list destruction * can be NULL for nu destructor * getter, setter: getter and setter functions for this option * object: argument to deliver to setter and getter * * returns 0 on success, -1 otherwise */ int option_register(option_list_t** list, const char* prefix, option_new_t constructor, option_delete_t destructor, option_set_t setter, option_get_n_t getter_n, option_get_t getter, void* object) { option_list_t* temp; temp = g_malloc(sizeof(option_list_t)); temp->prefix = prefix; temp->destructor = destructor; temp->setter = setter; temp->getter_n = getter_n; temp->getter = getter; temp->object = object; temp->next = *list; temp->previous = NULL; if (*list) (*list)->previous = temp; *list = temp; if (constructor) constructor(object); return 0; } /* * sets specified value to specified option (by name) in option list * by calling setter * * returns 0 on success, -1 otherwise */ int option_set(option_list_t* list, const char* name, const char* value) { if (debug) fprintf(stderr, "Setting %s to \"%s\" ...", name, value); while (list && strncmp(list->prefix, name, strlen(list->prefix))) { list = list->next; } if (list) { if (debug) fprintf(stderr, " OK.\n"); return list->setter ? list->setter(list->object, name, value) : 0; } else { if (debug) fprintf(stderr, " WARNING: Couldn't find option.\n"); return -1; } } /* * gets number of options for specified option prefix * * returns -1 if prefix doesn't exist */ int option_get_n(option_list_t* list, const char* prefix) { while (list && strcmp(list->prefix, prefix)) { list = list->next; } if (list) { return list->getter_n ? list->getter_n(list->object) : 0; } else { return -1; } } /* * gets specified option (value and name, by prefix and number) * from by calling getter * * returns associated value, NULL on error */ const char* option_get(option_list_t* list, const char* prefix, int n, const char** name) { while (list && strcmp(list->prefix, prefix)) { list = list->next; } if (list) { if (name) *name = prefix; return list->getter ? list->getter(list->object, n, name) : 0; } else { return NULL; } } /* * loads options from rc file * * returns 0 on success, -1 otherwise */ int option_restore_all(option_list_t* list) { char* filename = get_rc_filename(); if (!filename) { if (debug) fprintf(stderr, "Warning: Couldn't determine rc file name.\n"); return -1; } else { if (debug) fprintf(stderr, "Reading rc file %s ...\n", filename); option_lexer_init(filename); if (option_in) { option_parse(list); option_lexer_deinit(); free(filename); return 0; } else { if (debug) fprintf(stderr, "Warning: Couldn't open %s. Proceeding without it.\n", filename); free(filename); return -1; } } } /* * saves options to rc file * * returns 0 on success, -1 otherwise */ int option_save_all(option_list_t* list) { char* filename = get_rc_filename(); if (!filename) { if (debug) fprintf(stderr, "Warning: Couldn't determine rc file name.\n"); return -1; } else { FILE* fp = fopen(filename, "w"); if (debug) fprintf(stderr, "Writing all options to rc file %s... \n", filename); if (fp) { fprintf(fp, "#\n" "# This is a personal GTick run control file and " "was generated by GTick.\n" "# (Feel free to edit it while GTick isn't running to " "customize it for the\n" "# next GTick startup)\n" "#\n" "\n"); while (list && list->next) list = list->next; while (list) { int i; int num = option_get_n(list, list->prefix); const char* name; const char* value; for (i = 0; i < num; i++) { name = list->prefix; value = option_get(list, list->prefix, i, &name); if (!value) fprintf(stderr, "Couldn't get value #%d from prefix \"%s\".\n", i, list->prefix); else fprintf(fp, "%s = %s\n", name, value); } list = list->previous; } fclose(fp); if (debug) fprintf(stderr, "OK.\n"); return 0; } else { if (debug) fprintf(stderr, "Warning: Couldn't open rc file for writing.\n"); return -1; } } } /* can be used with for every registered option that has 1 value for getter_n */ int option_return_one(void* object _U_) { return 1; } gtick-0.5.2/src/icon32x32.xpm0000644000175000017500000001111510660406274012513 00000000000000/* XPM */ static char *icon32x32[] = { /* columns rows colors chars-per-pixel */ "32 32 150 2", " c #000000", ". c #0C0000", "X c #0B0B0B", "o c #120101", "O c #160808", "+ c #1A0202", "@ c #1D0808", "# c #131313", "$ c #1B1B1B", "% c #240101", "& c #210909", "* c #2A0202", "= c #2A0C0C", "- c #350202", "; c #310F0F", ": c #3B0404", "> c #3F0A0A", ", c #311212", "< c #3E1212", "1 c #212121", "2 c #2C2C2C", "3 c #333333", "4 c #3E3E3E", "5 c #420404", "6 c #410808", "7 c #4B0000", "8 c #490A0A", "9 c #401616", "0 c #4A1010", "q c #550303", "w c #510C0C", "e c #5A0101", "r c #5B0C0C", "t c #5B1717", "y c #5D1F1F", "u c #630303", "i c #630E0E", "p c #6F0000", "a c #6F0A0A", "s c #641313", "d c #641C1C", "f c #740202", "g c #710808", "h c #7F0202", "j c #780A0A", "k c #731111", "l c #7E1B1B", "z c #642424", "x c #414141", "c c #4C4C4C", "v c #515151", "b c #5C5C5C", "n c #646464", "m c #6B6B6B", "M c #727272", "N c #7B7B7B", "B c #840202", "V c #8A1010", "C c #8F1D1D", "Z c #950303", "A c #970808", "S c #9A0000", "D c #9B0F0F", "F c #961D1D", "G c #9E1616", "H c #842323", "J c #833030", "K c #922323", "L c #A00000", "P c #A60E0E", "I c #A21010", "U c #AD1414", "Y c #AC1B1B", "T c #B10C0C", "R c #B80F0F", "E c #B31313", "W c #BC1111", "Q c #AB3E3E", "! c #B72525", "~ c #BD2929", "^ c #BE3939", "/ c #C60000", "( c #C80000", ") c #C51414", "_ c #CE1515", "` c #D20D0D", "' c #DA0909", "] c #D01414", "[ c #D61B1B", "{ c #DA1717", "} c #D91A1A", "| c #D72525", " . c #D72C2C", ".. c #D92222", "X. c #D82B2B", "o. c #D63535", "O. c #D23B3B", "+. c #D83232", "@. c #D83939", "#. c #EE0303", "$. c #E81313", "%. c #EC1B1B", "&. c #F10505", "*. c #F50A0A", "=. c #F80E0E", "-. c #F11212", ";. c #F51C1C", ":. c #FE1313", ">. c #FE1D1D", ",. c #E62222", "<. c #E82323", "1. c #E53E3E", "2. c #EB3737", "3. c #F22323", "4. c #FE2323", "5. c #FE2B2B", "6. c #FE3333", "7. c #FE3B3B", "8. c #C14646", "9. c #C94343", "0. c #E64343", "q. c #E34D4D", "w. c #EC4444", "e. c #F24646", "r. c #FF4242", "t. c #FF4A4A", "y. c #FE5454", "u. c #FF5C5C", "i. c #FF6464", "p. c #FF6B6B", "a. c #FF7373", "s. c #FF7B7B", "d. c #848484", "f. c #8C8C8C", "g. c #939393", "h. c #9C9C9C", "j. c #A4A4A4", "k. c #ACACAC", "l. c gray71", "z. c gray74", "x. c #FF8383", "c. c #FF8A8A", "v. c #C3C3C3", "b. c #CACACA", "n. c #D3D3D3", "m. c #DCDCDC", "M. c #E4E4E4", "N. c #EDEDED", "B. c #F4F4F4", "V. c #FEFEFE", /* pixels */ "( ( ( ( ( ( ( ( ( / ( / ( ( ( / ( ( ( ( / ( ( ( ( / ( / ( / ( ( ", "( / ( ( ( ( ( ( ( ( ( ( / ( / / ( / ( / ( ( / ( ( ( ( ( ( ( ( / ", "( ( ( ( ( ( ( ( ( ( ( ( ( ( ( / ( ( ( ( ( / ( ( / / ( / ( / / / ", "5.5.5.5.4.4.4.4.>.>.>.>.:.:.:.:.=.=.=.=.*.=.*.*.*.&.&.&.#.#.#.#.", "x.s.s.s.a.p.p.i.u.u.u.y.y.y.t.t.t.r.7.7.7.7.6.6.6.6.5.5.5.6.6.2.", "c.x.x.s.s.s.a.a.a.p.p.i.i.u.u.u.u.y.y.y.t.7.r.r.7.o.! 5.C F ~ t ", "s.s.s.s.a.a.a.p.a.p.p.i.u.u.u.u.6.6.5.6.6.H 8 ) >.: - 4.> F K l ", "s.a.p.p.i.p.i.p.i.y.>.>.4.5.6.K 9 O G >.>.o _ >.+ r 4.+ k 8 - ", "y.>.5.6.7.t.q.Q J y ; R :.:.>.6 T >.:. %.>. * a 7 7 h ", "y.:.:.:.=.:.g R >.:.:.* ) >.[ f j - e f U ,.5.", "e.:.:.:.:.:.a ) >.:.:.+ T $.W o e 7 u I } ;.5.6.6.", "w.:.:.=.:.:.a ` :.:.>.. - % + : g P ] ;.t.t.y.t.t.7.", "0.:.:.:.=.:.a Z ` $.-. h S L E O.7.6.4.>.>.>.4.5.6.", "0.:.:.:.:.:.u p e : - - V U ) { 4.7.t.y.u.u.y.t.7.6.4.>.", "1.:.:.:.:.:.q S L L S B Y 4.4.4.4.>.>.>.4.6.r.t.y.u.u.u.", "O.,./ ' =.=.q . % q A _ w.u.u.u.y.r.6.4.4.4.>.>.>.>.4.5.6.t.", "B S S f q h e G ..3.4.4.4.4.5.7.y.u.u.u.u.y.t.6.5.4.} _ [ <.>.>.", "B S e * o . q %.k 8 8 8 8 8 8 r & , 8.u.u.u.u.u.^ X X - >.4.", "q o 2 f.l.k.M X w X f.f.f.f.f.n X j.N O 6.t.u.u.u.l b V.k.& 6.5.", " n V.V.V.V.V.b.O 2 V.V.V.V.V.g.2 V.m. r i s d z = N V.d.< 9.9.", "3 V.V.l.v b N.b.1 $ b l.V.b.b 2 v 3 X 3 2 h.V.b X X ", "h.V.m.. 1 k.V.f. M V.f. v N.V.V.N b.V.3 N V.m.", "b.V.f. m m.m.m.g. n.V.b h.V.n $ V.V.f.N b N.V.M V.m.1 ", "v.V.h. d.n.B.V.d. V.V.3 b.V.4 b V.z. $ V.B.V.N.1 r ", "d.V.V.b $ m V.V.2 2 V.V.X N.V.# b V.n. # x V.v.m.V.c 8 ", "X n.V.V.V.V.V.d. c V.M. # V.N. # N.V.N.M. m V.g.b V.M.O ", "k X M l.v.j.c 4 g.M 1 g.M 3 k.v.N v g.x d.g.x ", "5.Y 8 + . % > > > > > > 6 < < < 9 9 < < < @ o = 9 > > > 6 > > > ", "<.} { [ } } } { } } [ } } . .@.+.@.@.@.@.@.@.o.+. .X.| } [ } } ", "} } [ [ [ [ [ [ [ [ [ [ [ ..X. .o.o.o.@.@.@.o.o.+.+. . . .| ....", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ." }; gtick-0.5.2/src/gtkoptions.c0000644000175000017500000004531611617227610012710 00000000000000/* * gtkoptions.c: Options dialog functions * * This file is part of GTick * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include #include #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "gtkoptions.h" #include "options.h" #include "option.h" #include "util.h" #include "gtkutil.h" static void sound_button_toggled(GtkToggleButton *togglebutton, options_t* options) { GSList* group; GtkWidget* radio_button; const char* samplename; #ifdef WITH_SNDFILE GtkWidget *entry; #endif /* WITH_SNDFILE */ /* * Sample filename setup */ group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(togglebutton)); while (group && !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(group->data))) { group = group->next; } radio_button = GTK_WIDGET(group->data); if (!strcmp(g_object_get_data(G_OBJECT(radio_button), "choice"), "")) { samplename = ""; } else if (!strcmp(g_object_get_data(G_OBJECT(radio_button), "choice"), "")) { samplename = ""; } else { /* other */ #ifdef WITH_SNDFILE entry = g_object_get_data(G_OBJECT(radio_button), "sample_name_entry"); samplename = gtk_entry_get_text(GTK_ENTRY(entry)); #else fprintf(stderr, "Warning: Unhandled samplename case: \"%s\".\n", (char*) g_object_get_data(G_OBJECT(radio_button), "choice")); samplename = ""; #endif /* WITH_SNDFILE */ } option_set(options->option_list, "SampleFilename", samplename); } static void soundsystem_button_toggled(GtkToggleButton *togglebutton, options_t* options) { GSList* group; GtkWidget* radio_button; const char* soundsystem; /* * Sample filename setup */ group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(togglebutton)); while (group && !gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(group->data))) { group = group->next; } radio_button = GTK_WIDGET(group->data); soundsystem = g_object_get_data(G_OBJECT(radio_button), "choice"); if (strcmp(soundsystem, "")!=0 && strcmp(soundsystem, "")!=0) { fprintf(stderr, "Warning: Unhandled samplename case: \"%s\".\n", (char*) g_object_get_data(G_OBJECT(radio_button), "choice")); soundsystem = ""; } option_set(options->option_list, "SoundSystem", soundsystem); } static void sound_device_entry_changed(GtkEntry *entry, options_t* options) { const char* sounddevice; /* * Sound device setup */ sounddevice = gtk_entry_get_text(entry); option_set(options->option_list, "SoundDevice", sounddevice); } static void cmd_start_entry_changed(GtkEntry *entry, options_t* options) { const char* command; /* * External commands setup */ command = gtk_entry_get_text(entry); option_set(options->option_list, "CommandOnStart", command); } static void cmd_stop_entry_changed(GtkEntry *entry, options_t* options) { const char* command; /* * External commands setup */ command = gtk_entry_get_text(entry); option_set(options->option_list, "CommandOnStop", command); } static void min_bpm_value_changed(GtkSpinButton *entry, options_t* options) { const char* value; /* * BPM bounds */ value = g_strdup_printf("%d", (int) round(gtk_spin_button_get_value(entry))); option_set(options->option_list, "MinBPM", value); } static void max_bpm_value_changed(GtkSpinButton *entry, options_t* options) { const char* value; /* * BPM bounds */ value = g_strdup_printf("%d", (int) round(gtk_spin_button_get_value(entry))); option_set(options->option_list, "MaxBPM", value); } /* * callback invoked by response signal in dialog */ static void response_cb(GtkDialog *dialog, gint response, options_t* options _U_) { switch (response) { case GTK_RESPONSE_DELETE_EVENT: case GTK_RESPONSE_NONE: case GTK_RESPONSE_CLOSE: gtk_widget_destroy(GTK_WIDGET(dialog)); break; default: fprintf(stderr, "Warning: Unhandled response to dialog: %d\n", response); } } /* * callback invoked by ok button in file selection dialog */ #ifdef WITH_SNDFILE static void choose_cb_store(GtkWidget *button) { const gchar* filename; GtkWidget* file_selection; GtkWidget* entry; file_selection = g_object_get_data(G_OBJECT(button), "file_selection"); filename = gtk_file_selection_get_filename(GTK_FILE_SELECTION(file_selection)); entry = g_object_get_data(G_OBJECT(button), "sample_name_entry"); gtk_entry_set_text(GTK_ENTRY(entry), filename); } #endif /* WITH_SNDFILE */ /* * callback invoked by filename choose button */ #ifdef WITH_SNDFILE static void choose_cb(GtkWidget *button) { GtkWidget* file_selection = gtk_file_selection_new(_("Please choose a sound file.")); gtk_window_set_modal(GTK_WINDOW(file_selection), TRUE); g_object_set_data(G_OBJECT(GTK_FILE_SELECTION(file_selection)->ok_button), "sample_name_entry", g_object_get_data(G_OBJECT(button), "sample_name_entry")); g_object_set_data(G_OBJECT(GTK_FILE_SELECTION(file_selection)->ok_button), "file_selection", file_selection); g_signal_connect(GTK_OBJECT(GTK_FILE_SELECTION(file_selection)->ok_button), "clicked", G_CALLBACK(choose_cb_store), NULL); /* destroy file selection dialog if ok or cancel button has been clicked */ g_signal_connect_swapped( GTK_OBJECT(GTK_FILE_SELECTION(file_selection)->ok_button), "clicked", G_CALLBACK(gtk_widget_destroy), (gpointer) file_selection); g_signal_connect_swapped( GTK_OBJECT(GTK_FILE_SELECTION(file_selection)->cancel_button), "clicked", G_CALLBACK(gtk_widget_destroy), (gpointer) file_selection); gtk_widget_show(file_selection); } #endif /* WITH_SNDFILE */ /* * callback invoked on toggled radiobutton for filename */ #ifdef WITH_SNDFILE static void radio_toggled_cb(GtkWidget *button, GtkWidget* activewidget) { gtk_widget_set_sensitive(activewidget, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(button))); } #endif /* WITH_SNDFILE */ /* * callback invoked by sample name entry change */ #ifdef WITH_SNDFILE static void sample_name_entry_changed(GtkEntry *entry, options_t* options) { const char *samplename; samplename = gtk_entry_get_text(GTK_ENTRY(entry)); option_set(options->option_list, "SampleFilename", samplename); } #endif /* WITH_SNDFILE */ /* * return options dialog */ GtkWidget* gtk_options_dialog_new(GtkWidget* parent, options_t* options) { GtkWidget* window = gtk_dialog_new_with_buttons(_("Preferences"), GTK_WINDOW(parent), GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_NO_SEPARATOR, GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL); GtkWidget* vbox; GtkWidget* frame; GtkWidget* soundvbox; GtkWidget* devicevbox; GtkWidget* radiobutton; GtkWidget* hbox; GtkWidget* entry; GtkWidget* spinbutton; GtkWidget* table; #ifdef WITH_SNDFILE GtkWidget* button; GtkWidget* activehbox; #endif /* WITH_SNDFILE */ GtkWidget* label; GtkWidget* alignment; GtkSizeGroup* sizegroup; const char* samplename; const char* soundsystem; if (!(samplename = option_get(options->option_list, "SampleFilename", 0, NULL))) { fprintf(stderr, "gtk_options_dialog_new: " "Couldn't get SampleFilename from options.\n"); exit(1); } gtk_window_set_resizable(GTK_WINDOW(window), FALSE); gtk_box_set_spacing(GTK_BOX(GTK_DIALOG(window)->vbox), 12); vbox = gtk_vbox_new(FALSE, 18); gtk_container_add(GTK_CONTAINER(GTK_DIALOG(window)->vbox), vbox); gtk_container_set_border_width(GTK_CONTAINER(vbox), 12); gtk_widget_show(vbox); sizegroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); /* * Sound effect setting */ frame = gtk_frame_new(_("Sound")); label = gtk_frame_get_label_widget(GTK_FRAME(frame)); gtk_label_attr_bold(GTK_LABEL(label)); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_NONE); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, TRUE, 0); gtk_widget_show(frame); alignment = gtk_alignment_new(1.0, 1.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 6, 0, 24, 0); gtk_container_add(GTK_CONTAINER(frame), alignment); gtk_widget_show(alignment); soundvbox = gtk_vbox_new(FALSE, 5); gtk_container_add(GTK_CONTAINER(alignment), soundvbox); gtk_widget_show(soundvbox); radiobutton = gtk_radio_button_new_with_label(NULL, _("Default")); g_object_set_data(G_OBJECT(radiobutton), "choice", ""); if (!strcmp(samplename, "")) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radiobutton), TRUE); gtk_box_pack_start(GTK_BOX(soundvbox), radiobutton, FALSE, TRUE, 0); gtk_widget_show(radiobutton); /* Instant apply */ g_signal_connect(G_OBJECT(radiobutton), "toggled", G_CALLBACK(sound_button_toggled), options); radiobutton = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(radiobutton), _("Sine")); g_object_set_data(G_OBJECT(radiobutton), "choice", ""); if (!strcmp(samplename, "")) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radiobutton), TRUE); gtk_box_pack_start(GTK_BOX(soundvbox), radiobutton, FALSE, TRUE, 0); gtk_widget_show(radiobutton); /* Instant apply */ g_signal_connect(G_OBJECT(radiobutton), "toggled", G_CALLBACK(sound_button_toggled), options); #ifdef WITH_SNDFILE hbox = gtk_hbox_new(FALSE, 5); gtk_box_pack_start(GTK_BOX(soundvbox), hbox, FALSE, TRUE, 0); gtk_widget_show(hbox); radiobutton = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(radiobutton), _("Other:")); g_object_set_data(G_OBJECT(radiobutton), "choice", ""); gtk_box_pack_start(GTK_BOX(hbox), radiobutton, FALSE, FALSE, 0); gtk_widget_show(radiobutton); activehbox = gtk_hbox_new(FALSE, 5); gtk_box_pack_start_defaults(GTK_BOX(hbox), activehbox); gtk_widget_show(activehbox); entry = gtk_entry_new(); if (samplename[0] != '<') gtk_entry_set_text(GTK_ENTRY(entry), samplename); gtk_box_pack_start_defaults(GTK_BOX(activehbox), entry); gtk_widget_show(entry); /* save entry at togglebutton to retrieve value on apply */ g_object_set_data(G_OBJECT(radiobutton), "sample_name_entry", entry); g_signal_connect(G_OBJECT(radiobutton), "toggled", G_CALLBACK(radio_toggled_cb), activehbox); if (samplename[0] != '<') { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radiobutton), TRUE); } else { gtk_widget_set_sensitive(activehbox, FALSE); } button = gtk_button_new_with_label(_("Choose")); gtk_box_pack_start(GTK_BOX(activehbox), button, FALSE, FALSE, 0); gtk_widget_show(button); /* Instant apply */ g_signal_connect(G_OBJECT(radiobutton), "toggled", G_CALLBACK(sound_button_toggled), options); g_signal_connect(G_OBJECT(entry), "changed", G_CALLBACK(sample_name_entry_changed), options); /* save entry at button to retrieve value in file selection dialog */ g_object_set_data(G_OBJECT(button), "sample_name_entry", entry); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(choose_cb), options); #endif /* WITH_SNDFILE */ /* * Sound device setting */ frame = gtk_frame_new(_("Sound System")); label = gtk_frame_get_label_widget(GTK_FRAME(frame)); gtk_label_attr_bold(GTK_LABEL(label)); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_NONE); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, TRUE, 0); gtk_widget_show(frame); alignment = gtk_alignment_new(1.0, 1.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 6, 0, 24, 0); gtk_container_add(GTK_CONTAINER(frame), alignment); gtk_widget_show(alignment); devicevbox = gtk_vbox_new(FALSE, 12); gtk_container_add(GTK_CONTAINER(alignment), devicevbox); gtk_widget_show(devicevbox); if(! (soundsystem = option_get(options->option_list, "SoundSystem", 0, NULL)) ) soundsystem = ""; radiobutton = gtk_radio_button_new_with_label(NULL, _("Pulseaudio")); g_object_set_data(G_OBJECT(radiobutton), "choice", ""); if (!strcmp(soundsystem, "")) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radiobutton), TRUE); gtk_box_pack_start(GTK_BOX(devicevbox), radiobutton, FALSE, TRUE, 0); gtk_widget_show(radiobutton); /* Instant apply */ g_signal_connect(G_OBJECT(radiobutton), "toggled", G_CALLBACK(soundsystem_button_toggled), options); radiobutton = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(radiobutton), _("OSS")); g_object_set_data(G_OBJECT(radiobutton), "choice", ""); if (!strcmp(soundsystem, "")) gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radiobutton), TRUE); gtk_box_pack_start(GTK_BOX(devicevbox), radiobutton, FALSE, TRUE, 0); gtk_widget_show(radiobutton); /* Instant apply */ g_signal_connect(G_OBJECT(radiobutton), "toggled", G_CALLBACK(soundsystem_button_toggled), options); hbox = gtk_hbox_new(FALSE, 12); gtk_box_pack_start(GTK_BOX(devicevbox), hbox, FALSE, TRUE, 0); gtk_widget_show(hbox); label = gtk_label_new(_("Device filename:")); gtk_size_group_add_widget(sizegroup, label); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, TRUE, 0); gtk_widget_show(label); entry = gtk_entry_new(); gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0); gtk_entry_set_text(GTK_ENTRY(entry), option_get(options->option_list, "SoundDevice", 0, NULL)); gtk_widget_show(entry); /* Instant apply */ g_signal_connect(G_OBJECT(entry), "changed", G_CALLBACK(sound_device_entry_changed), options); /* * External commands */ frame = gtk_frame_new(_("External Commands")); label = gtk_frame_get_label_widget(GTK_FRAME(frame)); gtk_label_attr_bold(GTK_LABEL(label)); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_NONE); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, TRUE, 0); gtk_widget_show(frame); alignment = gtk_alignment_new(1.0, 1.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 6, 0, 24, 0); gtk_container_add(GTK_CONTAINER(frame), alignment); gtk_widget_show(alignment); table = gtk_table_new(2, 2, FALSE); gtk_container_add(GTK_CONTAINER(alignment), table); gtk_table_set_row_spacings(GTK_TABLE(table), 6); gtk_table_set_col_spacings(GTK_TABLE(table), 12); gtk_widget_show(table); label = gtk_label_new(_("Execute on start:")); gtk_size_group_add_widget(sizegroup, label); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, 0, GTK_EXPAND, 0, 0); gtk_widget_show(label); entry = gtk_entry_new(); gtk_entry_set_text(GTK_ENTRY(entry), option_get(options->option_list, "CommandOnStart", 0, NULL)); gtk_table_attach(GTK_TABLE(table), entry, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND, 0, 0); gtk_widget_show(entry); /* Instant apply */ g_signal_connect(G_OBJECT(entry), "changed", G_CALLBACK(cmd_start_entry_changed), options); label = gtk_label_new(_("Execute on stop:")); gtk_size_group_add_widget(sizegroup, label); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, 0, GTK_EXPAND, 0, 0); gtk_widget_show(label); entry = gtk_entry_new(); gtk_entry_set_text(GTK_ENTRY(entry), option_get(options->option_list, "CommandOnStop", 0, NULL)); gtk_table_attach(GTK_TABLE(table), entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND, 0, 0); gtk_widget_show(entry); /* Instant apply */ g_signal_connect(G_OBJECT(entry), "changed", G_CALLBACK(cmd_stop_entry_changed), options); /* * BPM bounds */ frame = gtk_frame_new(_("Speed Range")); label = gtk_frame_get_label_widget(GTK_FRAME(frame)); gtk_label_attr_bold(GTK_LABEL(label)); gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_NONE); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, TRUE, 0); gtk_widget_show(frame); alignment = gtk_alignment_new(1.0, 1.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 6, 0, 24, 0); gtk_container_add(GTK_CONTAINER(frame), alignment); gtk_widget_show(alignment); table = gtk_table_new(2, 2, FALSE); gtk_container_add(GTK_CONTAINER(alignment), table); gtk_table_set_row_spacings(GTK_TABLE(table), 6); gtk_table_set_col_spacings(GTK_TABLE(table), 12); gtk_widget_show(table); label = gtk_label_new(_("Minimum BPM:")); gtk_size_group_add_widget(sizegroup, label); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, 0, GTK_EXPAND | GTK_FILL, 0, 0); gtk_widget_show(label); spinbutton = gtk_spin_button_new_with_range(MIN_BPM, MAX_BPM, 10.0); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spinbutton), 1); gtk_spin_button_set_value(GTK_SPIN_BUTTON(spinbutton), (gdouble) strtol(option_get(options->option_list, "MinBPM", 0, NULL), NULL, 0)); gtk_table_attach(GTK_TABLE(table), spinbutton, 1, 2, 0, 1, 0, GTK_EXPAND | GTK_FILL, 0, 0); gtk_widget_show(spinbutton); g_signal_connect(G_OBJECT(spinbutton), "value-changed", G_CALLBACK(min_bpm_value_changed), options); label = gtk_label_new(_("Maximum BPM:")); gtk_size_group_add_widget(sizegroup, label); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, 0, GTK_EXPAND, 0, 0); gtk_widget_show(label); spinbutton = gtk_spin_button_new_with_range(MIN_BPM, MAX_BPM, 10.0); gtk_spin_button_set_digits(GTK_SPIN_BUTTON(spinbutton), 1); gtk_spin_button_set_value(GTK_SPIN_BUTTON(spinbutton), (gdouble) strtol(option_get(options->option_list, "MaxBPM", 0, NULL), NULL, 0)); gtk_table_attach(GTK_TABLE(table), spinbutton, 1, 2, 1, 2, 0, GTK_EXPAND, 0, 0); gtk_widget_show(spinbutton); g_signal_connect(G_OBJECT(spinbutton), "value-changed", G_CALLBACK(max_bpm_value_changed), options); g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(response_cb), options); return window; } gtick-0.5.2/src/help.h0000644000175000017500000000177210660406274011444 00000000000000/* * Help / about interface * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef HELP_H #define HELP_H #include "metro.h" void license_box(void); void about_box(GtkAction *action, metro_t *metro); void help_shortcuts(GtkAction *action, metro_t *metro); #endif /* HELP_H */ gtick-0.5.2/src/tickdata.c0000644000175000017500000001737310660406274012277 00000000000000/* */ /* This file was automatically generated by converter. */ /* It contains samples in signed 16 bit format. */ /* */ static short tickdata[] = { -797, -639, -557, -529, -482, -460, -425, -315, -132, -81, -4, -120, -25, -155, 150, -276, 475, -561, 416, -2478, 8908, 18230, 17342, -2167, -29424, -13059, 14064, 12602, 6970, 6932, -24796, -26810, -21127, -15492, -9666, -14682, -14039, -7338, 15007, 29094, 16561, -4309, 9753, 20109, 13018, 11624, -16900, -27585, -18805, -3348, 24024, 17656, 2714, -21286, -17125, 16446, 20472, 10483, -16321, -30005, -17898, -3527, 19914, 4675, -22829, -21715, -785, 27069, 15929, 16302, -2337, -30194, -21854, -12154, -11071, -14719, -13200, -9215, -11669, -1756, 12320, 14969, 27587, 24769, 17421, 19490, -3607, -27850, -14892, 5455, 27474, 2405, -23848, -13375, -12188, 344, 27071, 21639, -10367, -15136, 16242, 29537, 20748, 17401, 15634, -1315, -795, 19343, -9089, -26785, -19274, -15246, -13906, -2567, 10527, -529, 10856, 29070, 18026, 18268, 8219, -20183, -24116, -8604, 16538, 13528, -11722, -2146, 20296, 19711, 14071, 13919, 6505, -10486, -22309, -24611, -18950, -15703, -14666, -11046, -12765, -4207, 9649, 14080, 27260, 22691, 18391, 16327, 5434, -14055, -23111, -16528, -11830, -10525, 354, 14298, 6210, 4998, 17145, 18222, 4902, 1170, -6127, -6226, -3748, -8025, 1738, 13523, 25258, 19044, 16460, 20732, 507, -13914, -15061, 699, 15568, 13859, 22501, 18926, 15934, 5472, -3044, -9665, -21021, -18376, -15022, -12717, -8347, 14142, 29615, 23005, 18123, 17061, 12800, 1075, -2778, -7691, -11425, 4204, 16185, 15801, 11825, 9502, 7710, 4852, -12899, -31714, -27476, -22530, -19284, -17237, -9321, 3519, 9761, 17026, 18594, 13512, 12203, 7109, -7382, -21524, -25841, -21746, -14354, 5711, 21421, 7995, 4620, 11546, 10886, 5297, -22378, -30571, -14880, -17277, -9215, 3423, 3986, 3679, -8697, 6414, 14569, -2887, -15842, -13024, -1163, -2471, -4203, -13635, -21955, -1176, 25496, 7001, -16123, -25731, -14452, 8305, 19602, 1231, -29050, -15845, 10417, 23236, 12545, -5446, -17571, -26365, -6906, 10486, -7594, -20301, -17864, -5814, 17299, 23865, 17790, 11336, -2990, -7286, -11665, -22040, -20367, -16423, -7857, 5291, 13640, 6275, 6463, 14906, 11494, 15199, -6194, -32201, -21265, -19886, -9451, 20525, 21074, 8406, 3156, 673, 1443, 9382, -1216, -25426, -27239, -19246, -19706, -1388, 24578, 18675, 13229, 10714, 8521, 6925, 4701, -7354, -19748, -26365, -15524, 3118, -1796, -8439, -8508, -1499, 6937, 7188, -10132, -30616, -24760, -15722, -19267, -26276, -21439, -20733, -13101, 14976, 20590, 12637, 7038, -901, -957, -4741, -22585, -31115, -23863, -20928, -18895, -17028, -15365, -5212, 13459, 18988, 16864, 12695, 535, -3016, -5280, -10625, 811, 13943, 11199, 8051, 3361, -3959, -15820, -29601, -29381, -25897, -22763, -20808, -17045, -3418, 3017, 9944, 18206, 11967, 9446, -4918, -20001, -15722, -15433, -18025, -7452, 7679, 10424, 11477, 5382, -9855, -24436, -22466, -3183, 3935, -2102, -14359, -24045, -10054, 11877, 10086, 5768, -12011, -32767, -30502, -20690, -18481, -19841, -13674, 633, 10184, 8615, 4989, 771, -4988, -14042, -23609, -27009, -23069, -19998, -17608, -8453, -937, 1763, 0, 3568, 16884, 16031, 10374, -1450, -11782, -9028, -9531, -10833, -5478, 1139, -1295, -12480, -16475, -8164, 2814, 917, -12454, -22043, -24332, -15040, 667, 9901, 3257, -7804, -4319, 8831, 12883, 1919, -18604, -25661, -14796, 881, 5345, -1836, -3816, -2975, -1595, -7848, -13762, -14042, -10977, -3254, 6882, 12287, 12019, 13258, 11638, 8532, 7161, 3784, -16270, -32452, -28372, -23881, -20479, -19467, -15751, -8337, 6426, 21644, 18111, 12433, 1174, -14201, -19581, -21332, -18972, -14804, -12883, -8053, 1602, 15534, 18559, 12480, 9796, 10228, 6332, 199, -2706, -5262, -5496, -5784, -9730, -10337, -4319, -1578, -4860, -6942, -7144, -6187, -327, 3905, 4421, 1686, -6731, -15271, -15754, -8512, -851, 71, -3706, -3790, 1368, 9652, 13018, 8510, 851, -3583, -4957, -7247, -9405, -11600, -11669, -4469, 3887, 3957, 543, 763, 4603, 3894, -159, -4191, -6778, -4180, -2351, -7998, -13560, -15807, -13301, -6639, -2456, 4255, 10216, 13831, 14439, 13891, 10883, 987, -7275, -6940, -4351, -3596, -1260, -1156, -1099, 3679, 9158, 11184, 9867, 6172, 3184, 2936, -1339, -9927, -12893, -4143, 7006, 9046, 4929, 1514, 1708, 3023, 2098, -941, -2834, -5807, -11158, -13557, -11005, -4716, -839, -4956, -7554, -6816, -6430, -3191, -1507, -2388, -4376, -4042, 492, 7386, 12808, 15995, 14248, 8523, 5048, 3674, -108, -4071, -2740, -797, -1447, -5055, -8862, -6751, -1086, 2301, 779, -3354, -4283, -76, 4025, 4820, 4065, 4164, 5618, 9511, 15008, 14748, 8747, 182, -6270, -6515, -4614, -3583, -2388, -893, -2450, -2881, 2384, 9124, 12636, 8320, -108, -5541, -4978, -2239, -1875, -2085, -436, 4223, 9582, 12789, 10239, 3502, -2584, -3879, -2288, -4044, -8260, -9620, -5704, -1826, 767, 1130, -467, -3450, -5869, -5114, -3999, -1991, -46, 3071, 12288, 18972, 17770, 17545, 13247, 8561, 6489, 2220, -1843, -10168, -16995, -14812, -11779, -5509, 1059, 1011, -81, 2221, 8074, 11137, 9451, 6251, 4564, 4175, 1899, 76, 2578, 5468, 6720, 6184, 2948, 1487, 3551, 4270, 3510, 3726, 803, -4198, -5952, -3849, -1470, 607, 2471, 657, -1095, 1819, 4095, 4039, 5065, 4692, 3493, 4031, 4853, 2444, -1767, -2998, -3318, -2742, 406, 2868, 849, -1776, 447, 3937, 4709, 3077, -897, -3250, 329, 4261, 3487, 1778, 2301, 3162, 3428, 2866, 553, -1055, -312, -236, -1712, -3879, -4564, -1406, 1879, 2967, 2772, 1796, 1950, 3720, 7492, 9449, 8556, 7539, 6207, 5999, 6989, 6844, 3265, -863, -2444, -681, 1051, 192, -673, -1631, -2173, -1924, -2384, -3615, -3775, -3190, -2416, 351, 3943, 6547, 7141, 5309, 4457, 4929, 4230, 2343, 1088, -484, -2924, -4116, -3824, -2463, -1618, 351, 2879, 2317, -51, -504, 1366, 2913, 4257, 4641, 3375, 1724, 1591, 2834, 5176, 7307, 5957, 3319, 2574, 2847, 1275, -2497, -7368, -9997, -8713, -6522, -4014, -1223, 1954, 4888, 7219, 9163, 10185, 11606, 12284, 10324, 6089, 1351, -1950, -2377, 19, 1571, 829, -1628, -3769, -4040, -1871, -367, -1595, -3478, -4159, -2119, 450, 1936, 1963, 2223, 2847, 3359, 4611, 6479, 5997, 1740, -1499, -2450, -1956, -741, -1708, -4873, -5146, -2565, -577, 1986, 4050, 4012, 3446, 2256, 1191, 1964, 3252, 4238, 5978, 7691, 5914, 2106, -44, 901, 2981, 2672, -349, -3927, -4539, -2384, 807, 2760, 2711, 1227, 135, 268, -32, -229, -450, -573, 484, 2369, 2855, 2839, 3897, 4095, 2546, 1110, 300, -1051, -2142, -1668, -635, -238, -285, -233, 1287, 3335, 4238, 4057, 3741, 3694, 2482, -404, -2087, -1483, 25, 1499, 63, -3191, -5104, -5468, -4899, -3049, -324, 228, -1892, -4203, -3861, -543, 3158, 4323, 3841, 3103, 1712, 1386, 2309 }; gtick-0.5.2/src/globals.h0000644000175000017500000000313311734025404012123 00000000000000/* * Global definitions * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef GLOBALS_H #define GLOBALS_H #include #define TITLE "GTick" /* GNU gettext introduction */ #include #include "gettext.h" #define _(String) gettext (String) #define N_(String) gettext_noop (String) #define MIN_BPM 1 #define MAX_BPM 1000 #define DEFAULT_BPM 100 #define DEFAULT_MIN_BPM 30 #define DEFAULT_MAX_BPM 250 #define VOLUME_MIN 0 #define VOLUME_MAX 100 #define MAX_METER 100 #define DEFAULT_SOUND_SYSTEM "" #define DEFAULT_SOUND_DEVICE_FILENAME "/dev/dsp" #define DEFAULT_SAMPLE_FILENAME "" #define DEFAULT_SPEED 75 #define DEFAULT_VOLUME VOLUME_MAX #define DEFAULT_METER 1 #define DEFAULT_COMMAND_ON_START "" #define DEFAULT_COMMAND_ON_STOP "" /* How often to update the "Visual Tick" */ #define VISUAL_DELAY 0.03 extern int debug; #endif /* GLOBALS_H */ gtick-0.5.2/src/g711.h0000644000175000017500000000217010660406274011164 00000000000000/* * G.711 conversion function header file * (adjusted for g711.c from SoX) * * This file is part of GTick * * Copyright 2002, 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ unsigned char linear2alaw(int pcm_val); /* 2's complement (16-bit range) */ int alaw2linear(unsigned char a_val); unsigned char linear2ulaw(int pcm_val); /* 2's complement (16-bit range) */ int ulaw2linear(unsigned char u_val); unsigned char alaw2ulaw(unsigned char aval); unsigned char ulaw2alaw(unsigned char uval); gtick-0.5.2/src/profiles.c0000644000175000017500000006056611005112572012325 00000000000000/* * Profiles implementation * * This file is part of GTick * * * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include #include #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "metro.h" #include "option.h" #include "profiles.h" #include "util.h" #include "gtkutil.h" enum { COLUMN_NAME, COLUMN_PROFILE, N_COLUMNS }; typedef struct profile_t { char* speed; char* meter; char* accents; } profile_t; static profile_t* profile_new(void) { return g_malloc0(sizeof(profile_t)); } static void profile_delete(profile_t* profile) { if (profile) { if (profile->speed) { g_free(profile->speed); } if (profile->meter) { g_free(profile->meter); } if (profile->accents) { g_free(profile->accents); } g_free(profile); } else g_print("profile_delete(): profile==NULL\n"); } static void profile_set_speed(profile_t* profile, const gchar* s) { if (profile) { if (profile->speed) g_free(profile->speed); profile->speed = g_strdup(s); } else g_print("profile_set_speed(): profile==NULL\n"); } static gchar* profile_get_speed(profile_t* profile) { if (profile) { return profile->speed; } else { g_print("profile_get_speed(): profile==NULL\n"); return NULL; } } static void profile_set_meter(profile_t* profile, const gchar* s) { if (profile) { if (profile->meter) g_free(profile->meter); profile->meter = g_strdup(s); } else g_print("profile_set_meter(): profile==NULL\n"); } static gchar* profile_get_meter(profile_t* profile) { if (profile) { return profile->meter; } else { g_print("profile_get_meter(): profile==NULL\n"); return NULL; } } static void profile_set_accents(profile_t* profile, const gchar* s) { if (profile) { if (profile->accents) g_free(profile->accents); profile->accents = g_strdup(s); } else g_print("profile_set_accents(): profile==NULL\n"); } static gchar* profile_get_accents(profile_t* profile) { if (profile) { return profile->accents; } else { g_print("profile_get_accents(): profile==NULL\n"); return NULL; } } /* Callback for changed selection -> setting to respective profile values */ static void selection_changed_cb(metro_t* metro) { GtkTreeSelection* selection; GtkTreeIter iter; if (debug) g_print("Selection changed. Restoring settings from profile.\n"); selection = gtk_tree_view_get_selection(metro->profiles_tree); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { GtkListStore* store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)); profile_t* profile; gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, COLUMN_PROFILE, &profile, -1); set_meter(metro, NULL, profile_get_meter(profile)); set_speed(metro, NULL, profile_get_speed(profile)); set_accents(metro, NULL, profile_get_accents(profile)); } else if (debug) g_print("selection_changed_cb(): No Profile list selection available.\n"); } /* * Callback for "Show Profiles" check item menu entry */ void toggle_profiles_cb(GtkToggleAction *action _U_, metro_t *metro) { if (GTK_WIDGET_VISIBLE(metro->profileframe)) { gtk_widget_hide(metro->profileframe); gtk_window_resize(GTK_WINDOW(metro->window), 1, 1); } else { gtk_widget_show(metro->profileframe); } } /* option system callback for initializing profiles show option */ static int new_show_profiles(metro_t* metro) { if (metro) { gtk_toggle_action_set_active(metro->profiles_action, FALSE); return 0; } else { return -1; } } /* option system callback for destroying profiles show option */ static void delete_show_profiles(metro_t* metro _U_) { } /* option system callback for setting profiles show option */ static int set_show_profiles(metro_t* metro, const char* option_name _U_, const char* show_profiles) { if (metro) { gtk_toggle_action_set_active(metro->profiles_action, !strcmp(show_profiles, "yes") || !strcmp(show_profiles, "1")); return 0; } else { return -1; } } /* option system callback for getting profiles show option */ static const char* get_show_profiles(metro_t* metro, int n _U_, char** option_name _U_) { if (gtk_toggle_action_get_active(metro->profiles_action)) { return "1"; } else { return "0"; } } /* option system callback for initializing selected profile option */ static int new_profile_selected(metro_t* metro) { if (metro) { GtkListStore* store; if ((store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)))) { GtkTreeSelection* selection = gtk_tree_view_get_selection(metro->profiles_tree); GtkTreeIter iter; if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter)) { gtk_tree_selection_select_iter(selection, &iter); } else if (debug) g_print("new_profile_selected(): No entries.\n"); } else g_print("new_profile_selected(): No tree model available.\n"); return 0; } else { return -1; } } /* option system callback for destroying selected profile option */ static void delete_profile_selected(metro_t* metro _U_) { } /* option system callback for setting selected profile option */ static int set_profile_selected(metro_t* metro, const char* option_name _U_, const char* profile_selected) { if (metro) { GtkListStore* store; if ((store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)))) { GtkTreeSelection* selection = gtk_tree_view_get_selection(metro->profiles_tree); GtkTreeIter iter; int n = strtol(profile_selected, NULL, 0) - 1; if (gtk_tree_model_iter_nth_child( GTK_TREE_MODEL(store), &iter, NULL, n)) { g_signal_handlers_block_by_func( selection, G_CALLBACK(selection_changed_cb), metro); gtk_tree_selection_select_iter(selection, &iter); g_signal_handlers_unblock_by_func( selection, G_CALLBACK(selection_changed_cb), metro); } else if (debug) g_print("set_profile_selected(): No profile #%s available.\n", profile_selected); } else g_print("set_profile_selected(): No tree model available.\n"); return 0; } else { return -1; } } /* option system callback for getting selected profile option */ static const char* get_profile_selected(metro_t* metro, int n _U_, char** option_name _U_) { static gchar selected[16]; selected[0] = '1'; selected[1] = 0; if (metro) { GtkListStore* store; if ((store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)))) { GtkTreeSelection* selection = gtk_tree_view_get_selection(metro->profiles_tree); GtkTreeIter iter; int n = 1; if (gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter)) { gboolean valid = TRUE; while (valid && !gtk_tree_selection_iter_is_selected(selection, &iter)) { valid = gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter); n++; } if (valid) { g_snprintf(selected, 16, "%d", n); } } else if (debug) g_print("get_profile_selected(): No items.\n"); } else g_print("get_profile_selected(): No tree model available.\n"); } return selected; } /* option system callback for initializing profile option */ static int new_profile(metro_t* metro _U_) { return 0; } /* option system callback for destroying profile option */ static void delete_profile(metro_t* metro _U_) { } /* option system callback for setting profile option */ static int set_profile(metro_t* metro, const char* option_name, const char* option_value) { gchar* name_copy = g_strdup(option_name); gchar* tmp; int n = 0; //g_print("\n"); tmp = strtok(name_copy, "_"); /* Initial "Profile_" */ if (tmp) { if (!strcmp(tmp, "Profile")) { tmp = strtok(NULL, "_"); /* Profile number */ if (tmp) { n = strtol(tmp, NULL, 0) - 1; if (n >= 0) { tmp = strtok(NULL, "_"); /* Option suffix */ if (tmp) { GtkListStore* store; if ((store = GTK_LIST_STORE( gtk_tree_view_get_model(metro->profiles_tree)))) { GtkTreeIter iter; profile_t* profile = NULL; while (!gtk_tree_model_iter_nth_child( GTK_TREE_MODEL(store), &iter, NULL, n)) { /* Create new entry */ gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, COLUMN_NAME, _("Unnamed Profile"), COLUMN_PROFILE, profile_new(), -1); } gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, COLUMN_PROFILE, &profile, -1); if (!strcmp(tmp, "Name")) { gtk_list_store_set(store, &iter, COLUMN_NAME, option_value, -1); } else if (!strcmp(tmp, "Speed")) { profile_set_speed(profile, option_value); } else if (!strcmp(tmp, "Meter")) { profile_set_meter(profile, option_value); } else if (!strcmp(tmp, "Accents")) { profile_set_accents(profile, option_value); } else { g_print("set_profile(): Bad option suffix: %s\n", tmp); g_free(name_copy); return -1; } g_free(name_copy); return 0; } else g_print("set_profile(): No Tree Model available.\n"); } else g_print("set_profile(): No option suffix.\n"); } else g_print("set_profile(): Bad profile number in option: %s.\n", tmp); } else g_print("set_profile(): No profile number in option.\n"); } else g_print("set_profile(): Bad option name prefix: %s.\n", tmp); } else g_print("set_profile(): No option name prefix.\n"); g_free(name_copy); return -1; } /* option system callback for getting profile option */ static int get_n_profile(metro_t* metro) { GtkListStore* store; if ((store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)))) { return gtk_tree_model_iter_n_children(GTK_TREE_MODEL(store), NULL) * 4 /* name + profile data entries */; } else { g_print("get_n_profile(): No tree model available.\n"); return 0; } } /* option system callback for getting profile option */ static const char* get_profile(metro_t* metro, int n, char** option_name) { static gchar* name = NULL; gchar* value = NULL; int profile_n = n / 4; int suboption_n = n % 4; GtkListStore* store; gchar* name_prefix = option_name ? *option_name : "Profile_"; gchar* name_suffix = ""; if (name) { g_free(name); name = NULL; } if ((store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)))) { GtkTreeIter iter; if (gtk_tree_model_iter_nth_child( GTK_TREE_MODEL(store), &iter, NULL, profile_n)) { profile_t* profile; gchar* s; gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, COLUMN_NAME, &s, COLUMN_PROFILE, &profile, -1); switch (suboption_n) { case 0: name_suffix = "Name"; value = s; break; case 1: name_suffix = "Speed"; value = profile_get_speed(profile); break; case 2: name_suffix = "Meter"; value = profile_get_meter(profile); break; case 3: name_suffix = "Accents"; value = profile_get_accents(profile); break; default: g_print("get_profile(): unhandled suboption: %d.\n", suboption_n); } name = g_strdup_printf("%s%d_%s", name_prefix, profile_n + 1, name_suffix); if (option_name) *option_name = name; } else g_print("get_profile(): No profile #%d available.\n", profile_n); } else g_print("get_profile(): No tree model available.\n"); return value; } /* * callback invoked by response signal in dialog */ static void edit_response_cb(GtkDialog *dialog, gint response, metro_t* metro) { GtkTreeSelection* selection = NULL; GtkTreeIter iter; GtkListStore* store; switch (response) { case GTK_RESPONSE_DELETE_EVENT: case GTK_RESPONSE_CLOSE: gtk_widget_destroy(GTK_WIDGET(dialog)); break; case GTK_RESPONSE_OK: store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)); selection = gtk_tree_view_get_selection(metro->profiles_tree); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { GtkEntry* entry = (GtkEntry*) g_object_get_data(G_OBJECT(dialog), "profile_entry"); gtk_list_store_set(GTK_LIST_STORE(store), &iter, COLUMN_NAME, gtk_entry_get_text(entry), -1); } else g_print("edit_response_cb(): no selection available.\n"); gtk_widget_destroy(GTK_WIDGET(dialog)); break; default: fprintf(stderr, "Warning: Unhandled response to dialog: %d\n", response); } } /* * Actual save function: saves current settings to selected profile */ static void save_profile(metro_t* metro, GtkTreeIter* iter) { GtkListStore* store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)); profile_t* profile; gtk_tree_model_get(GTK_TREE_MODEL(store), iter, COLUMN_PROFILE, &profile, -1); profile_set_meter(profile, get_meter(metro, 1, NULL)); profile_set_speed(profile, get_speed(metro, 1, NULL)); profile_set_accents(profile, get_accents(metro, 1, NULL)); } /* * Actual editing dialog */ static void edit_profile(metro_t* metro) { GtkTreeSelection* selection; GtkTreeIter iter; selection = gtk_tree_view_get_selection(metro->profiles_tree); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { GtkWidget* window; GtkWidget* table; GtkWidget* label; GtkWidget* entry; gchar* s; GtkListStore* store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)); gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, COLUMN_NAME, &s, -1); window = gtk_dialog_new_with_buttons(_("Edit Profile"), GTK_WINDOW(metro->window), GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL | GTK_DIALOG_NO_SEPARATOR, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_widget_destroy), window); table = gtk_table_new(1, 2, FALSE); gtk_container_set_border_width(GTK_CONTAINER(table), 10); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox), table, TRUE, TRUE, 0); gtk_widget_show(table); label = gtk_label_new(_("Please enter new Profile name: ")); gtk_table_attach_defaults(GTK_TABLE(table), label, 0, 1, 0, 1); gtk_widget_show(label); entry = gtk_entry_new(); gtk_entry_set_text(GTK_ENTRY(entry), s); gtk_table_attach_defaults(GTK_TABLE(table), entry, 1, 2, 0, 1); gtk_widget_show(entry); g_object_set_data(G_OBJECT(window), "profile_entry", entry); g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(edit_response_cb), metro); gtk_widget_show(window); } else g_print("edit_profile(): No Profile list selection available.\n"); } /* Callback for Up button */ static void up_cb(metro_t* metro) { GtkTreeSelection* selection; GtkTreeIter iter; if (debug) g_print("Up button clicked.\n"); selection = gtk_tree_view_get_selection(metro->profiles_tree); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { /* Get previous entry for swapping */ GtkListStore* store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)); if (store) { GtkTreePath* path = gtk_tree_model_get_path(GTK_TREE_MODEL(store), &iter); if (gtk_tree_path_prev(path)) { GtkTreeIter prev_iter; if (gtk_tree_model_get_iter(GTK_TREE_MODEL(store), &prev_iter, path)) { gtk_list_store_swap(store, &iter, &prev_iter); if (debug) g_print("Entries swapped.\n"); } else if (debug) g_print("Couldn't get iterator for previous node path.\n"); } else if (debug) g_print("No previous entry available.\n"); gtk_tree_path_free(path); } else g_print("up_cb(): No TreeView model available!\n"); } else if (debug) g_print("No selection available.\n"); } /* Callback for Down button */ static void down_cb(metro_t* metro) { GtkTreeSelection* selection; GtkTreeIter iter; if (debug) g_print("Down button clicked.\n"); selection = gtk_tree_view_get_selection(metro->profiles_tree); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { /* Get previous entry for swapping */ GtkListStore* store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)); if (store) { GtkTreeIter next_iter = iter; if (gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &next_iter)) { gtk_list_store_swap(store, &iter, &next_iter); if (debug) g_print("Entries swapped.\n"); } else if (debug) g_print("No next entry available.\n"); } else g_print("down_cb(): No TreeView model available!\n"); } else if (debug) g_print("No selection available.\n"); } /* Callback for Add button */ static void add_cb(metro_t* metro) { GtkListStore* store; if (debug) g_print("Add button clicked.\n"); if ((store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)))) { GtkTreeSelection* selection = gtk_tree_view_get_selection(metro->profiles_tree); GtkTreeIter iter; gtk_list_store_append(GTK_LIST_STORE(store), &iter); gtk_list_store_set( GTK_LIST_STORE(store), &iter, COLUMN_NAME, _("Unnamed Profile"), COLUMN_PROFILE, profile_new(), -1); save_profile(metro, &iter); gtk_tree_selection_select_iter(selection, &iter); edit_profile(metro); } else g_print("add_cb(): No TreeView model available!\n"); } /* Callback for Delete button */ static void delete_cb(metro_t* metro) { GtkTreeSelection* selection; GtkTreeIter iter; if (debug) g_print("Delete button clicked.\n"); selection = gtk_tree_view_get_selection(metro->profiles_tree); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { GtkListStore* store = GTK_LIST_STORE(gtk_tree_view_get_model(metro->profiles_tree)); profile_t* profile; gtk_tree_model_get(GTK_TREE_MODEL(store), &iter, COLUMN_PROFILE, &profile, -1); profile_delete(profile); gtk_list_store_remove(store, &iter); } else if (debug) g_print("delete_cb(): No selection available.\n"); } /* Callback for Save button */ static void save_cb(metro_t* metro) { GtkTreeSelection* selection; GtkTreeIter iter; if (debug) g_print("Save button clicked.\n"); selection = gtk_tree_view_get_selection(metro->profiles_tree); if (gtk_tree_selection_get_selected(selection, NULL, &iter)) { save_profile(metro, &iter); } else if (debug) g_print("save_cb(): No Profile selection available.\n"); } /* Callback for Edit button */ static void edit_cb(metro_t* metro) { GtkTreeSelection* selection; if (debug) g_print("Edit button clicked.\n"); selection = gtk_tree_view_get_selection(metro->profiles_tree); if (gtk_tree_selection_get_selected(selection, NULL, NULL)) { edit_profile(metro); } else if (debug) g_print("edit_cb(): No Profile selection available.\n"); } /* * Creates new profile frame and connects it with metro (options) */ GtkWidget* profiles_new(metro_t* metro) { GtkWidget* profileframe = gtk_frame_new(_("Profiles")); GtkWidget* label; GtkWidget* alignment; GtkWidget* table; GtkWidget* button; GtkListStore *store; GtkWidget *tree; /* the list in a GtkTreeView */ GtkCellRenderer *renderer; GtkTreeViewColumn *column; GtkTreeSelection *selection; GtkWidget* scrolled_window; gtk_frame_set_shadow_type(GTK_FRAME(profileframe), GTK_SHADOW_NONE); label = gtk_frame_get_label_widget(GTK_FRAME(profileframe)); gtk_label_attr_bold(GTK_LABEL(label)); alignment = gtk_alignment_new(1.0, 1.0, 1.0, 1.0); gtk_alignment_set_padding(GTK_ALIGNMENT(alignment), 6, 0, 24, 0); gtk_container_add(GTK_CONTAINER(profileframe), alignment); gtk_widget_show(alignment); table = gtk_table_new(3, 3, FALSE); gtk_container_add(GTK_CONTAINER(alignment), table); gtk_widget_show(table); scrolled_window = gtk_scrolled_window_new(NULL, NULL); gtk_table_attach(GTK_TABLE(table), scrolled_window, 0, 1, 0, 3, GTK_FILL | GTK_EXPAND, GTK_FILL | GTK_EXPAND, 5, 5); gtk_widget_show(scrolled_window); store = gtk_list_store_new (N_COLUMNS, G_TYPE_STRING, G_TYPE_POINTER); tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (store)); gtk_tree_view_set_headers_visible(GTK_TREE_VIEW(tree), FALSE); renderer = gtk_cell_renderer_text_new (); column = gtk_tree_view_column_new_with_attributes( "Preset Name", renderer, "text", COLUMN_NAME, NULL); gtk_tree_view_append_column (GTK_TREE_VIEW (tree), column); selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (tree)); gtk_tree_selection_set_mode (selection, GTK_SELECTION_SINGLE); g_signal_connect_swapped(G_OBJECT(selection), "changed", G_CALLBACK(selection_changed_cb), metro); g_signal_connect_swapped(G_OBJECT(tree), "button-press-event", G_CALLBACK(selection_changed_cb), metro); metro->profiles_tree = GTK_TREE_VIEW(tree); gtk_container_add(GTK_CONTAINER(scrolled_window), tree); gtk_widget_show(tree); button = gtk_button_new_from_stock(GTK_STOCK_GO_UP); gtk_table_attach(GTK_TABLE(table), button, 1, 2, 0, 1, GTK_FILL, GTK_FILL, 5, 5); g_signal_connect_swapped(button, "clicked", G_CALLBACK(up_cb), metro); gtk_widget_show(button); button = gtk_button_new_from_stock(GTK_STOCK_GO_DOWN); gtk_table_attach(GTK_TABLE(table), button, 1, 2, 1, 2, GTK_FILL, GTK_FILL, 5, 5); g_signal_connect_swapped(button, "clicked", G_CALLBACK(down_cb), metro); gtk_widget_show(button); button = gtk_button_new_from_stock(GTK_STOCK_SAVE); gtk_table_attach(GTK_TABLE(table), button, 1, 2, 2, 3, GTK_FILL, GTK_FILL, 5, 5); g_signal_connect_swapped(button, "clicked", G_CALLBACK(save_cb), metro); gtk_widget_show(button); button = gtk_button_new_from_stock(GTK_STOCK_ADD); gtk_table_attach(GTK_TABLE(table), button, 2, 3, 0, 1, GTK_FILL, GTK_FILL, 5, 5); g_signal_connect_swapped(button, "clicked", G_CALLBACK(add_cb), metro); gtk_widget_show(button); button = gtk_button_new_from_stock(GTK_STOCK_DELETE); gtk_table_attach(GTK_TABLE(table), button, 2, 3, 1, 2, GTK_FILL, GTK_FILL, 5, 5); g_signal_connect_swapped(button, "clicked", G_CALLBACK(delete_cb), metro); gtk_widget_show(button); button = gtk_button_new_from_stock(GTK_STOCK_EDIT); gtk_table_attach(GTK_TABLE(table), button, 2, 3, 2, 3, GTK_FILL, GTK_FILL, 5, 5); g_signal_connect_swapped(button, "clicked", G_CALLBACK(edit_cb), metro); gtk_widget_show(button); option_register(&metro->options->option_list, "ShowProfiles", (option_new_t) new_show_profiles, (option_delete_t) delete_show_profiles, (option_set_t) set_show_profiles, (option_get_n_t) option_return_one, (option_get_t) get_show_profiles, (void*) metro); option_register(&metro->options->option_list, "Profile_", (option_new_t) new_profile, (option_delete_t) delete_profile, (option_set_t) set_profile, (option_get_n_t) get_n_profile, (option_get_t) get_profile, (void*) metro); option_register(&metro->options->option_list, "ProfileSelected", (option_new_t) new_profile_selected, (option_delete_t) delete_profile_selected, (option_set_t) set_profile_selected, (option_get_n_t) option_return_one, (option_get_t) get_profile_selected, (void*) metro); return profileframe; } gtick-0.5.2/src/profiles.h0000644000175000017500000000215710660406274012335 00000000000000/* * Interface for Profiles * * This file is part of GTick * * * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef PROFILES_H #define PROFILES_H /* GNU headers */ #ifdef HAVE_SYS_TIME_H #include #endif #include /* GTK+ headers */ #include #include /* own headers */ #include "metro.h" void toggle_profiles_cb(GtkToggleAction *action, metro_t *metro); GtkWidget* profiles_new(metro_t* metro); #endif /* PROFILES_H */ gtick-0.5.2/src/option.h0000644000175000017500000000516210660406274012021 00000000000000/* * option.h: Options handling functions * * This file is part of GTick * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef OPTION_H #define OPTION_H /* constructor: initialize object with default value returns 0 on success, -1 otherwise */ typedef int (*option_new_t) (void* object); /* destructor */ typedef void (*option_delete_t) (void* object); /* setter: returns 0 on success, -1 otherwise */ typedef int (*option_set_t) (void* object, const char* name, const char* value); /* getter_n: returns number of options */ typedef int (*option_get_n_t) (void* object); /* getter: returns associated value (and name) for specified option * (i.e., for the prefix represented by the option) * * name must be NULL, or be initialized with prefix when calling (then, it will * be changed by getter function, if necessary) */ typedef const char* (*option_get_t) (void* object, int n, const char** name); typedef struct option_list_t option_list_t; struct option_list_t { const char* prefix; option_delete_t destructor; option_set_t setter; option_get_n_t getter_n; option_get_t getter; void* object; option_list_t* next; option_list_t* previous; }; option_list_t* option_list_new(void); void option_list_delete(option_list_t* list); int option_register(option_list_t** list, const char* prefix, option_new_t constructor, option_delete_t destructor, option_set_t setter, option_get_n_t getter_n, option_get_t getter, void* object); int option_set(option_list_t* list, const char* name, const char* value); int option_get_n(option_list_t* list, const char* prefix); const char* option_get(option_list_t* list, const char* prefix, int n, const char** name); int option_restore_all(option_list_t* list); int option_save_all(option_list_t* list); /* can be used with for every registered option that has 1 value for getter_n */ int option_return_one(void* object); #endif /* OPTION_H */ gtick-0.5.2/src/aboutlogo.xpm0000644000175000017500000036762410660406274013077 00000000000000/* XPM */ static char * aboutlogo_xpm[] = { "330 137 2240 2", " c None", ". c #5A0000", "+ c #980000", "@ c #9E0000", "# c #A10000", "$ c #A20000", "% c #A30000", "& c #BC0000", "* c #E10000", "= c #DF0000", "- c #DE0000", "; c #DD0000", "> c #DB0000", ", c #DA0000", "' c #D80000", ") c #D70000", "! c #D60000", "~ c #D50000", "{ c #D40000", "] c #D30000", "^ c #D10000", "/ c #CF0000", "( c #CC0000", "_ c #CA0000", ": c #C80000", "< c #C70000", "[ c #C60000", "} c #C50000", "| c #C40000", "1 c #C20000", "2 c #BB0000", "3 c #B90000", "4 c #B80000", "5 c #B70000", "6 c #610000", "7 c #640000", "8 c #660000", "9 c #690000", "0 c #8A0000", "a c #AF0000", "b c #B10000", "c c #F40000", "d c #F80000", "e c #F80303", "f c #FA0303", "g c #FA0101", "h c #FA0000", "i c #F70000", "j c #F60000", "k c #F50000", "l c #F20000", "m c #F10000", "n c #EF0000", "o c #ED0000", "p c #EB0000", "q c #EA0000", "r c #E90000", "s c #E80000", "t c #E60000", "u c #E50000", "v c #E30000", "w c #D90000", "x c #D20000", "y c #CE0000", "z c #CD0000", "A c #B50B0B", "B c #FE1010", "C c #FF1010", "D c #FF1111", "E c #FF1212", "F c #FF1414", "G c #FF1616", "H c #FF1919", "I c #FF0E0E", "J c #FF0D0D", "K c #FF0B0B", "L c #FF0A0A", "M c #FF0909", "N c #FF0606", "O c #FF0404", "P c #FE0404", "Q c #FD0404", "R c #FD0303", "S c #F30000", "T c #F00000", "U c #EE0000", "V c #E40000", "W c #E20000", "X c #E00000", "Y c #DC0000", "Z c #FF2525", "` c #FF2727", " . c #FF2828", ".. c #FF2929", "+. c #FF2C2C", "@. c #FF2F2F", "#. c #FF3030", "$. c #FF3131", "%. c #FF3333", "&. c #FF3434", "*. c #FF2626", "=. c #FF2424", "-. c #FF2323", ";. c #FF2222", ">. c #FF2121", ",. c #FF1F1F", "'. c #FF1E1E", "). c #FF1D1D", "!. c #FF1C1C", "~. c #FF1B1B", "{. c #FF1A1A", "]. c #FF1717", "^. c #FF1515", "/. c #FF1313", "(. c #FF0F0F", "_. c #FF0808", ":. c #FF0303", "<. c #FD0000", "[. c #F90000", "}. c #FF3D3D", "|. c #FF4040", "1. c #FF4141", "2. c #FF4343", "3. c #FF4444", "4. c #FF4646", "5. c #FF4747", "6. c #FF4848", "7. c #FF4949", "8. c #FF4B4B", "9. c #FF4C4C", "0. c #FF4E4E", "a. c #FF4F4F", "b. c #FF5050", "c. c #FF3F3F", "d. c #FF3C3C", "e. c #FF3B3B", "f. c #FF3939", "g. c #FF3636", "h. c #FF3232", "i. c #FF2D2D", "j. c #FF2B2B", "k. c #FF1818", "l. c #FD0202", "m. c #FC0000", "n. c #FF5555", "o. c #FF5858", "p. c #FF5A5A", "q. c #FF5B5B", "r. c #FF5C5C", "s. c #FF5D5D", "t. c #FF5E5E", "u. c #FF6060", "v. c #FF6161", "w. c #FF6262", "x. c #FF6363", "y. c #FF6464", "z. c #FF6565", "A. c #FF6666", "B. c #FF6767", "C. c #FF6969", "D. c #FF6A6A", "E. c #FF6B6B", "F. c #FF6D6D", "G. c #FF6C6C", "H. c #FF5F5F", "I. c #FF5959", "J. c #FF5656", "K. c #FF5353", "L. c #FF5151", "M. c #FF4545", "N. c #FF3A3A", "O. c #FF3737", "P. c #FF3535", "Q. c #FF2A2A", "R. c #FF2020", "S. c #FE0202", "T. c #FC4747", "U. c #FB4848", "V. c #FF6F6F", "W. c #FF7171", "X. c #FF7373", "Y. c #FF7575", "Z. c #FF7676", "`. c #FF7777", " + c #FF7878", ".+ c #FF7C7C", "++ c #FF7D7D", "@+ c #FF7F7F", "#+ c #FF8181", "$+ c #FF8383", "%+ c #FF8585", "&+ c #FF8686", "*+ c #FF8787", "=+ c #FF8B8B", "-+ c #FF8D8D", ";+ c #FF8E8E", ">+ c #FF8F8F", ",+ c #FF9090", "'+ c #FF9191", ")+ c #FF8C8C", "!+ c #FF8A8A", "~+ c #FF8888", "{+ c #FF8484", "]+ c #FF7E7E", "^+ c #FF7A7A", "/+ c #FF7979", "(+ c #FF7474", "_+ c #FF7272", ":+ c #FF7070", "<+ c #FF6E6E", "[+ c #FF6868", "}+ c #FF5454", "|+ c #FF5252", "1+ c #FF4D4D", "2+ c #FF4A4A", "3+ c #FF4242", "4+ c #FF0C0C", "5+ c #FF8080", "6+ c #FF8282", "7+ c #FF8989", "8+ c #FF9393", "9+ c #FF9595", "0+ c #FF9797", "a+ c #FF9898", "b+ c #FF9999", "c+ c #FF9C9C", "d+ c #FF9D9D", "e+ c #FF9E9E", "f+ c #FF9F9F", "g+ c #FFA1A1", "h+ c #FFA2A2", "i+ c #FFA4A4", "j+ c #FFA5A5", "k+ c #FFA7A7", "l+ c #FFA8A8", "m+ c #FFAAAA", "n+ c #FFABAB", "o+ c #FFADAD", "p+ c #FFAEAE", "q+ c #FFB0B0", "r+ c #FFB4B4", "s+ c #FFB5B5", "t+ c #FFB6B6", "u+ c #FFB7B7", "v+ c #FFB3B3", "w+ c #FFB2B2", "x+ c #FFB1B1", "y+ c #FFAFAF", "z+ c #FFA9A9", "A+ c #FFA6A6", "B+ c #FFA3A3", "C+ c #FF9B9B", "D+ c #FF9A9A", "E+ c #FF9696", "F+ c #FF9494", "G+ c #FF9292", "H+ c #FF5757", "I+ c #FF3E3E", "J+ c #FF2E2E", "K+ c #FFB8B8", "L+ c #FFB9B9", "M+ c #FFBABA", "N+ c #FFBBBB", "O+ c #FFBCBC", "P+ c #FFBDBD", "Q+ c #FFC0C0", "R+ c #FFC1C1", "S+ c #FFC3C3", "T+ c #FFC5C5", "U+ c #FFC6C6", "V+ c #FFC8C8", "W+ c #FFCACA", "X+ c #FFCBCB", "Y+ c #FFCCCC", "Z+ c #FFCDCD", "`+ c #FFCECE", " @ c #FFD0D0", ".@ c #FFD1D1", "+@ c #FFD2D2", "@@ c #FFD3D3", "#@ c #FFD4D4", "$@ c #FFD5D5", "%@ c #FFD6D6", "&@ c #FFD8D8", "*@ c #FFD9D9", "=@ c #FFDADA", "-@ c #FFDBDB", ";@ c #FFDCDC", ">@ c #FFDDDD", ",@ c #FFDEDE", "'@ c #FFD7D7", ")@ c #FFCFCF", "!@ c #FFC9C9", "~@ c #FFC7C7", "{@ c #FFC2C2", "]@ c #FFBFBF", "^@ c #FFBEBE", "/@ c #FFA0A0", "(@ c #FF7B7B", "_@ c #C13A3A", ":@ c #420303", "<@ c #0F0303", "[@ c #9A2121", "}@ c #FFC4C4", "|@ c #FFDFDF", "1@ c #FFE2E2", "2@ c #FFE4E4", "3@ c #FFE5E5", "4@ c #FFE6E6", "5@ c #FFE8E8", "6@ c #FFE9E9", "7@ c #FFEAEA", "8@ c #FFECEC", "9@ c #FFEEEE", "0@ c #FFF0F0", "a@ c #FFF1F1", "b@ c #FFF2F2", "c@ c #FFF3F3", "d@ c #FFF5F5", "e@ c #FFF6F6", "f@ c #FFF8F8", "g@ c #FFF4F4", "h@ c #FFEBEB", "i@ c #FFE7E7", "j@ c #FFE1E1", "k@ c #FFACAC", "l@ c #FF3838", "m@ c #A82929", "n@ c #701616", "o@ c #640303", "p@ c #C93030", "q@ c #7D2F2F", "r@ c #000000", "s@ c #A03838", "t@ c #FFE0E0", "u@ c #FFEDED", "v@ c #FFEFEF", "w@ c #FFF7F7", "x@ c #FFF9F9", "y@ c #FFFAFA", "z@ c #FFFCFC", "A@ c #FFFDFD", "B@ c #FFFEFE", "C@ c #FFFBFB", "D@ c #FFE3E3", "E@ c #FB4949", "F@ c #8A2828", "G@ c #9F2828", "H@ c #CC2929", "I@ c #7A2424", "J@ c #020000", "K@ c #030000", "L@ c #D73131", "M@ c #FE5F5F", "N@ c #441919", "O@ c #010000", "P@ c #F03A3A", "Q@ c #F63636", "R@ c #0A0303", "S@ c #800808", "T@ c #D23131", "U@ c #FD5E5E", "V@ c #BF3636", "W@ c #8B2424", "X@ c #8B2323", "Y@ c #8A2222", "Z@ c #850505", "`@ c #F63535", " # c #8D2525", ".# c #FD4A4A", "+# c #431414", "@# c #1D0101", "## c #E24646", "$# c #2C0101", "%# c #F22323", "&# c #0C0404", "*# c #050202", "=# c #4A0202", "-# c #7C1B1B", ";# c #040000", "># c #C72828", ",# c #FA4949", "'# c #510101", ")# c #833131", "!# c #750606", "~# c #F73D3D", "{# c #8D1A1A", "]# c #8D1717", "^# c #911515", "/# c #E81C1C", "(# c #781111", "_# c #7C0202", ":# c #761A1A", "<# c #070000", "[# c #F72929", "}# c #4E0101", "|# c #812B2B", "1# c #F63939", "2# c #B12C2C", "3# c #842929", "4# c #0E0404", "5# c #0D0404", "6# c #0E0000", "7# c #EC1414", "8# c #721010", "9# c #8B1111", "0# c #0E0202", "a# c #C13939", "b# c #811717", "c# c #BA3737", "d# c #863838", "e# c #EB1D1D", "f# c #050000", "g# c #0F0101", "h# c #F31919", "i# c #B81E1E", "j# c #070101", "k# c #4B0202", "l# c #FC5E5E", "m# c #070303", "n# c #970303", "o# c #BC0606", "p# c #C70606", "q# c #670303", "r# c #F44949", "s# c #902525", "t# c #902323", "u# c #A41F1F", "v# c #8A0D0D", "w# c #ED1515", "x# c #2C0202", "y# c #F92222", "z# c #400909", "A# c #090000", "B# c #E31E1E", "C# c #7E0404", "D# c #C73131", "E# c #8B0000", "F# c #900000", "G# c #480000", "H# c #F35151", "I# c #913030", "J# c #842C2C", "K# c #110606", "L# c #0F0505", "M# c #130000", "N# c #ED1212", "O# c #5F0202", "P# c #F12121", "Q# c #0B0101", "R# c #FB2424", "S# c #770202", "T# c #FC4A4A", "U# c #451414", "V# c #060000", "W# c #BC0303", "X# c #CE0C0C", "Y# c #C50808", "Z# c #C50E0E", "`# c #1A0000", " $ c #F31E1E", ".$ c #420B0B", "+$ c #EB1414", "@$ c #B51616", "#$ c #7E0202", "$$ c #240202", "%$ c #BF2929", "&$ c #C12525", "*$ c #F94949", "=$ c #170000", "-$ c #750000", ";$ c #770000", ">$ c #3D0000", ",$ c #340000", "'$ c #E31818", ")$ c #1E0303", "!$ c #6C0D0D", "~$ c #911111", "{$ c #5A0303", "]$ c #761919", "^$ c #DD1717", "/$ c #FC2E2E", "($ c #F93B3B", "_$ c #2A0000", ":$ c #740000", "<$ c #390000", "[$ c #710000", "}$ c #F04F4F", "|$ c #942E2E", "1$ c #942B2B", "2$ c #590202", "3$ c #4C0303", "4$ c #BE1414", "5$ c #7B1111", "6$ c #830707", "7$ c #560000", "8$ c #730000", "9$ c #6A0101", "0$ c #7E0303", "a$ c #6C0303", "b$ c #400000", "c$ c #210000", "d$ c #6F0000", "e$ c #970000", "f$ c #6D0000", "g$ c #670000", "h$ c #BA4040", "i$ c #953333", "j$ c #822D2D", "k$ c #150707", "l$ c #120606", "m$ c #9E0505", "n$ c #700303", "o$ c #0C0000", "p$ c #DF1414", "q$ c #711010", "r$ c #790F0F", "s$ c #FB3636", "t$ c #450F0F", "u$ c #220000", "v$ c #570000", "w$ c #230000", "x$ c #270000", "y$ c #3E0000", "z$ c #EF3B3B", "A$ c #421717", "B$ c #080303", "C$ c #A50E0E", "D$ c #8E0303", "E$ c #F71E1E", "F$ c #3F0808", "G$ c #100000", "H$ c #F71414", "I$ c #B71212", "J$ c #FB2727", "K$ c #F53434", "L$ c #150000", "M$ c #7E0000", "N$ c #860000", "O$ c #850000", "P$ c #420000", "Q$ c #500000", "R$ c #BB0202", "S$ c #BE0505", "T$ c #950505", "U$ c #8E0505", "V$ c #9F0505", "W$ c #D81313", "X$ c #C21111", "Y$ c #AF1313", "Z$ c #990B0B", "`$ c #200202", " % c #430909", ".% c #670101", "+% c #940202", "@% c #980404", "#% c #9F0404", "$% c #B20404", "%% c #460000", "&% c #6A0000", "*% c #820000", "=% c #8E0000", "-% c #9F0000", ";% c #A00000", ">% c #AA0000", ",% c #C80F0F", "'% c #ED2626", ")% c #640909", "!% c #D51111", "~% c #630B0B", "{% c #0A0000", "]% c #C01212", "^% c #5A0202", "/% c #190000", "(% c #1C0000", "_% c #1F0000", ":% c #290000", "<% c #5B0000", "[% c #7B0505", "}% c #7E0505", "|% c #800505", "1% c #7F0505", "2% c #930505", "3% c #D20505", "4% c #F40505", "5% c #F60C0C", "6% c #FB0C0C", "7% c #580808", "8% c #180000", "9% c #E41111", "0% c #DB1212", "a% c #790202", "b% c #0D0000", "c% c #7B0000", "d% c #960000", "e% c #6B0000", "f% c #6C0000", "g% c #910000", "h% c #510000", "i% c #540000", "j% c #600000", "k% c #830101", "l% c #B20101", "m% c #D90303", "n% c #EC0606", "o% c #FC0A0A", "p% c #EB5050", "q% c #993434", "r% c #411414", "s% c #190606", "t% c #190404", "u% c #880606", "v% c #1E0000", "w% c #F61111", "x% c #140000", "y% c #EC1212", "z% c #B81616", "A% c #880101", "B% c #F71010", "C% c #650000", "D% c #D10B0B", "E% c #F42727", "F% c #FA4343", "G% c #FE4848", "H% c #EA5050", "I% c #9A3535", "J% c #812C2C", "K% c #1A0909", "L% c #840404", "M% c #210101", "N% c #180101", "O% c #FD1616", "P% c #FE1E1E", "Q% c #640808", "R% c #300000", "S% c #7C0101", "T% c #980101", "U% c #A90101", "V% c #AD0202", "W% c #C00303", "X% c #5C0303", "Y% c #0B0000", "Z% c #1D0000", "`% c #7C0404", " & c #810808", ".& c #830808", "+& c #840808", "@& c #A60808", "#& c #D70808", "$& c #F51010", "%& c #FA1B1B", "&& c #B84343", "*& c #9B3939", "=& c #802F2F", "-& c #1B0A0A", ";& c #1B0909", ">& c #160707", ",& c #900404", "'& c #330303", ")& c #F41A1A", "!& c #3C0606", "~& c #310303", "{& c #690C0C", "]& c #0F0000", "^& c #080000", "/& c #310000", "(& c #350000", "_& c #960707", ":& c #8E0A0A", "<& c #8F0A0A", "[& c #B20A0A", "}& c #D40B0B", "|& c #FE0F0F", "1& c #E93F3F", "2& c #9C3939", "3& c #401717", "4& c #1C0A0A", "5& c #9D0404", "6& c #530404", "7& c #5E0303", "8& c #6B0D0D", "9& c #790000", "0& c #990000", "a& c #940000", "b& c #920000", "c& c #A80000", "d& c #CC0707", "e& c #FD2626", "f& c #C70F0F", "g& c #A40404", "h& c #740404", "i& c #800303", "j& c #420808", "k& c #4E0000", "l& c #870000", "m& c #9D0000", "n& c #A90000", "o& c #BF0505", "p& c #E51E1E", "q& c #F93D3D", "r& c #FE5252", "s& c #AE0707", "t& c #DC1414", "u& c #0A0101", "v& c #860404", "w& c #920202", "x& c #FC1414", "y& c #FE1919", "z& c #EA1D1D", "A& c #120000", "B& c #700505", "C& c #720909", "D& c #750909", "E& c #830909", "F& c #9B0909", "G& c #D80707", "H& c #EF0C0C", "I& c #F41212", "J& c #F71919", "K& c #FD2121", "L& c #FFFFFF", "M& c #AF0F0F", "N& c #990404", "O& c #4C0000", "P& c #B60202", "Q& c #AF0303", "R& c #BA0202", "S& c #D80404", "T& c #DA0C0C", "U& c #E20909", "V& c #EA0D0D", "W& c #E51212", "X& c #2F0000", "Y& c #3C0000", "Z& c #3A0000", "`& c #8F0808", " * c #A20C0C", ".* c #B60C0C", "+* c #C70C0C", "@* c #EB0C0C", "#* c #FE1616", "$* c #B91010", "%* c #A20D0D", "&* c #730C0C", "** c #160000", "=* c #320000", "-* c #470000", ";* c #8C0000", ">* c #8D0000", ",* c #730303", "'* c #A70A0A", ")* c #DA1919", "!* c #FC2323", "~* c #C31010", "{* c #B71111", "]* c #630A0A", "^* c #BD0101", "/* c #E31919", "(* c #F63434", "_* c #FE4A4A", ":* c #B64C4C", "<* c #A24343", "[* c #A24141", "}* c #3E1919", "|* c #220D0D", "1* c #A22828", "2* c #D11010", "3* c #110000", "4* c #D11111", "5* c #2D0000", "6* c #700000", "7* c #7A0000", "8* c #9B0000", "9* c #AC0000", "0* c #B90101", "a* c #D21010", "b* c #F22828", "c* c #FC3F3F", "d* c #B65757", "e* c #A34C4C", "f* c #A34A4A", "g* c #3E1C1C", "h* c #230F0F", "i* c #8D1E1E", "j* c #DB1010", "k* c #E11111", "l* c #6D0101", "m* c #6E0909", "n* c #6E0808", "o* c #B40808", "p* c #D10808", "q* c #EE0F0F", "r* c #F21414", "s* c #FC1818", "t* c #E48A8A", "u* c #A35F5F", "v* c #A35C5C", "w* c #7E4545", "x* c #231313", "y* c #231212", "z* c #070404", "A* c #8D1D1D", "B* c #E21010", "C* c #EE1111", "D* c #200000", "E* c #CB0808", "F* c #DE1313", "G* c #DF1717", "H* c #E41717", "I* c #F31717", "J* c #FE1717", "K* c #B68C8C", "L* c #A47979", "M* c #A47474", "N* c #7E5656", "O* c #241818", "P* c #241717", "Q* c #1A1010", "R* c #240000", "S* c #EC1010", "T* c #6A0A0A", "U* c #E70404", "V* c #F80D0D", "W* c #F60A0A", "X* c #FD1414", "Y* c #E61818", "Z* c #0E0101", "`* c #890000", " = c #830000", ".= c #7D0000", "+= c #6E0000", "@= c #620000", "#= c #610202", "$= c #700404", "%= c #A30404", "&= c #AF0808", "*= c #C81111", "== c #E81111", "-= c #FE1313", ";= c #B6B4B4", ">= c #A59E9E", ",= c #A59797", "'= c #3D3636", ")= c #251F1F", "!= c #251E1E", "~= c #070606", "{= c #781D1D", "]= c #F01010", "^= c #9C0000", "/= c #B00202", "(= c #B50202", "_= c #D30303", ":= c #DD0606", "<= c #F00909", "[= c #F30B0B", "}= c #FE1212", "|= c #E21414", "1= c #4D0000", "2= c #A10505", "3= c #CB1717", "4= c #F02424", "5= c #FE2727", "6= c #E2E2E2", "7= c #A6A6A6", "8= c #3D3D3D", "9= c #262626", "0= c #070707", "a= c #691D1D", "b= c #2B0000", "c= c #F81010", "d= c #2E0000", "e= c #580000", "f= c #680000", "g= c #720000", "h= c #950000", "i= c #B00000", "j= c #AC0202", "k= c #590000", "l= c #C30404", "m= c #E41616", "n= c #F73434", "o= c #FE5151", "p= c #E2AAAA", "q= c #A7A7A7", "r= c #7D7D7D", "s= c #272727", "t= c #1A1A1A", "u= c #490000", "v= c #BE0000", "w= c #DB0C0C", "x= c #F62B2B", "y= c #A90909", "z= c #2F0202", "A= c #530000", "B= c #950909", "C= c #D40909", "D= c #EA0B0B", "E= c #F12020", "F= c #FB3838", "G= c #521D1D", "H= c #3F0404", "I= c #360000", "J= c #530101", "K= c #680A0A", "L= c #830A0A", "M= c #D60A0A", "N= c #DA1515", "O= c #DA1717", "P= c #E31717", "Q= c #F01717", "R= c #FB1717", "S= c #451D1D", "T= c #500404", "U= c #920909", "V= c #D51010", "W= c #DA1818", "X= c #DF1A1A", "Y= c #F71A1A", "Z= c #650404", "`= c #DE1414", " - c #780000", ".- c #410000", "+- c #4F0000", "@- c #A40606", "#- c #CD0909", "$- c #DA1212", "%- c #EF1616", "&- c #760404", "*- c #D71313", "=- c #760000", "-- c #930000", ";- c #600101", ">- c #A00303", ",- c #DC0606", "'- c #F91010", ")- c #451818", "!- c #750303", "~- c #F70909", "{- c #F90D0D", "]- c #FD1313", "^- c #FE1515", "/- c #840000", "(- c #9A0000", "_- c #AC0404", ":- c #C91212", "<- c #E31B1B", "[- c #F00C0C", "}- c #230202", "|- c #C30000", "1- c #C50202", "2- c #DB0303", "3- c #ED0505", "4- c #EC0707", "5- c #F30606", "6- c #FB0808", "7- c #A70000", "8- c #DA0E0E", "9- c #F32424", "0- c #FC4545", "a- c #2A0202", "b- c #440000", "c- c #630000", "d- c #B20000", "e- c #DB0202", "f- c #DE0202", "g- c #F00404", "h- c #F40606", "i- c #F80808", "j- c #F90F0F", "k- c #A40000", "l- c #D60606", "m- c #EF1F1F", "n- c #FD3E3E", "o- c #430000", "p- c #7F0000", "q- c #AD0000", "r- c #D50101", "s- c #E60A0A", "t- c #EF0808", "u- c #F60F0F", "v- c #D40D0D", "w- c #4A0000", "x- c #A60000", "y- c #CB0606", "z- c #E51616", "A- c #F92F2F", "B- c #DDDDDD", "C- c #B1A2A2", "D- c #CA7878", "E- c #FE7070", "F- c #5E0000", "G- c #880000", "H- c #700606", "I- c #910A0A", "J- c #BA0A0A", "K- c #DF0A0A", "L- c #EE1313", "M- c #F62F2F", "N- c #B6B6B6", "O- c #B1B1B1", "P- c #7A7A7A", "Q- c #323232", "R- c #1C1C1C", "S- c #F46B6B", "T- c #450B0B", "U- c #600707", "V- c #250000", "W- c #610707", "X- c #700909", "Y- c #940909", "Z- c #BE0909", "`- c #CD0B0B", " ; c #D31919", ".; c #E01919", "+; c #EB1919", "@; c #B2B2B2", "#; c #393939", "$; c #030303", "%; c #ED5F5F", "&; c #470505", "*; c #370000", "=; c #1B0000", "-; c #320707", ";; c #570B0B", ">; c #B90D0D", ",; c #D01C1C", "'; c #D21C1C", "); c #D41C1C", "!; c #E61C1C", "~; c #F81C1C", "{; c #DCDCDC", "]; c #B3B3B3", "^; c #797979", "/; c #333333", "(; c #020202", "_; c #E94040", ":; c #4B0000", "<; c #400303", "[; c #C21212", "}; c #E61717", "|; c #B4B4B4", "1; c #795A5A", "2; c #343434", "3; c #C03131", "4; c #450606", "5; c #680101", "6; c #A50606", "7; c #C90606", "8; c #DD1313", "9; c #F41919", "0; c #FB1919", "a; c #FE1F1F", "b; c #B7B7B7", "c; c #B5B5B5", "d; c #383838", "e; c #353535", "f; c #8F0707", "g; c #450202", "h; c #810000", "i; c #8F0000", "j; c #3F0000", "k; c #2C0000", "l; c #A00505", "m; c #CC0606", "n; c #EC0808", "o; c #FB1111", "p; c #DBBFBF", "q; c #B6A3A3", "r; c #B6A8A8", "s; c #B6ABAB", "t; c #383636", "u; c #363636", "v; c #010101", "w; c #6D1B1B", "x; c #AA0909", "y; c #C70101", "z; c #E70B0B", "A; c #FC1C1C", "B; c #DBA1A1", "C; c #B78B8B", "D; c #B78E8E", "E; c #785F5F", "F; c #372D2D", "G; c #372E2E", "H; c #1C1818", "I; c #660303", "J; c #FE6767", "K; c #800000", "L; c #950101", "M; c #B70A0A", "N; c #E61010", "O; c #F31313", "P; c #FE1C1C", "Q; c #1C1515", "R; c #F86767", "S; c #FB5050", "T; c #C80202", "U; c #FA3D3D", "V; c #EE5F5F", "W; c #F74F4F", "X; c #BF0000", "Y; c #D60505", "Z; c #EF1D1D", "`; c #FC3A3A", " > c #EB3F3F", ".> c #FC0E0E", "+> c #FC0D0D", "@> c #E40707", "#> c #FA2C2C", "$> c #FE4747", "%> c #D42F2F", "&> c #F60606", "*> c #F70505", "=> c #FD0A0A", "-> c #280000", ";> c #D30202", ">> c #E91313", ",> c #9F2F2F", "'> c #C00A0A", ")> c #F34F4F", "!> c #EE0C0C", "~> c #DD0303", "{> c #EE0101", "]> c #FA0A0A", "^> c #FC0F0F", "/> c #B50000", "(> c #CB0303", "_> c #E70909", ":> c #F41D1D", "<> c #6E2525", "[> c #2B0202", "}> c #ED4646", "|> c #FA4C4C", "1> c #F24949", "2> c #EF3F3F", "3> c #E72F2F", "4> c #DF1D1D", "5> c #D71717", "6> c #CC0F0F", "7> c #BA0707", "8> c #C10000", "9> c #D70202", "0> c #EB0101", "a> c #F90707", "b> c #FD0F0F", "c> c #FD0E0E", "d> c #450000", "e> c #770303", "f> c #890909", "g> c #9A0909", "h> c #AC0909", "i> c #C10909", "j> c #EC0F0F", "k> c #F91F1F", "l> c #660505", "m> c #FE6868", "n> c #A30B0B", "o> c #B70707", "p> c #B30000", "q> c #AB0000", "r> c #AE0000", "s> c #BD0000", "t> c #CB0000", "u> c #E50101", "v> c #ED0202", "w> c #F30A0A", "x> c #F60808", "y> c #FB0D0D", "z> c #FD1111", "A> c #610303", "B> c #7A0808", "C> c #9D0909", "D> c #B20909", "E> c #C00909", "F> c #D90F0F", "G> c #EE1B1B", "H> c #F61B1B", "I> c #FD1E1E", "J> c #380000", "K> c #C90000", "L> c #D10101", "M> c #E80202", "N> c #F40909", "O> c #FA0F0F", "P> c #470404", "Q> c #4A0404", "R> c #500A0A", "S> c #6D0A0A", "T> c #B80C0C", "U> c #C71919", "V> c #D11B1B", "W> c #DA1A1A", "X> c #ED1A1A", "Y> c #F91A1A", "Z> c #FD1D1D", "`> c #EF6565", " , c #520000", "., c #DC0101", "+, c #EF0606", "@, c #460303", "#, c #400A0A", "$, c #9B1919", "%, c #C61F1F", "&, c #EE1F1F", "*, c #EC4E4E", "=, c #3B0000", "-, c #550000", ";, c #3F0A0A", ">, c #9A1919", ",, c #CC2121", "', c #E13333", "), c #7C0000", "!, c #4F0303", "~, c #CA1414", "{, c #F61E1E", "], c #F01D1D", "^, c #F41E1E", "/, c #A52F2F", "(, c #A50303", "_, c #D40A0A", ":, c #ED0D0D", "<, c #FB1818", "[, c #FE2323", "}, c #D61D1D", "|, c #791111", "1, c #390707", "2, c #320606", "3, c #370707", "4, c #670D0D", "5, c #CB1919", "6, c #FD1F1F", "7, c #702828", "8, c #890707", "9, c #C60101", "0, c #E80505", "a, c #F61919", "b, c #FE2626", "c, c #F03535", "d, c #CB3737", "e, c #A53737", "f, c #832F2F", "g, c #833030", "h, c #853131", "i, c #A13C3C", "j, c #CF4D4D", "k, c #F15A5A", "l, c #FD2E2E", "m, c #A91C1C", "n, c #1A0303", "o, c #120202", "p, c #861010", "q, c #FA1E1E", "r, c #5D0000", "s, c #D00808", "t, c #F30D0D", "u, c #FC2929", "v, c #DB2323", "w, c #A51B1B", "x, c #841515", "y, c #841414", "z, c #841212", "A, c #891313", "B, c #BC1A1A", "C, c #EB2020", "D, c #E92020", "E, c #921414", "F, c #360909", "G, c #0B0202", "H, c #0E0505", "I, c #3A1616", "J, c #953838", "K, c #EB5757", "L, c #BE2C2C", "M, c #060101", "N, c #9C1313", "O, c #FB6363", "P, c #5C0000", "Q, c #D40303", "R, c #F22727", "S, c #851515", "T, c #1D0505", "U, c #040101", "V, c #350707", "W, c #911414", "X, c #020101", "Y, c #3A1515", "Z, c #C04747", "`, c #FE5E5E", " ' c #F64C4C", ".' c #3C1212", "+' c #1B0303", "@' c #F46262", "#' c #C30101", "$' c #DC0B0B", "%' c #F51D1D", "&' c #FB2121", "*' c #F52727", "=' c #6D1111", "-' c #160808", ";' c #A53939", ">' c #FE5A5A", ",' c #D44B4B", "'' c #AB1515", ")' c #EC4D4D", "!' c #880C0C", "~' c #EF2323", "{' c #9E1A1A", "]' c #050101", "^' c #130505", "/' c #B63333", "(' c #A33C3C", "_' c #0E0E0E", ":' c #101010", "<' c #7F1010", "[' c #E43131", "}' c #4A0C0C", "|' c #D42222", "1' c #410A0A", "2' c #270909", "3' c #E23333", "4' c #792D2D", "5' c #7E7E7E", "6' c #DBDBDB", "7' c #7D1010", "8' c #BF2D2D", "9' c #0B0B0B", "0' c #222222", "a' c #373737", "b' c #565656", "c' c #727272", "d' c #767676", "e' c #676767", "f' c #474747", "g' c #2B2B2B", "h' c #151515", "i' c #260606", "j' c #B81D1D", "k' c #FE2929", "l' c #DA2323", "m' c #160404", "n' c #0F0F0F", "o' c #525252", "p' c #8D8D8D", "q' c #969696", "r' c #888888", "s' c #494949", "t' c #731414", "u' c #FB5E5E", "v' c #562020", "w' c #050505", "x' c #B0B0B0", "y' c #FEFEFE", "z' c #6B6B6B", "A' c #9D1C1C", "B' c #7F2C2C", "C' c #BC0A0A", "D' c #131313", "E' c #414141", "F' c #8B8B8B", "G' c #C2C2C2", "H' c #E3E3E3", "I' c #FBFBFB", "J' c #EFEFEF", "K' c #D2D2D2", "L' c #A3A3A3", "M' c #545454", "N' c #191919", "O' c #A61B1B", "P' c #C31F1F", "Q' c #2C2C2C", "R' c #959595", "S' c #7B7B7B", "T' c #B8B8B8", "U' c #FCFCFC", "V' c #232323", "W' c #1B0404", "X' c #E62323", "Y' c #F55B5B", "Z' c #341313", "`' c #0A0A0A", " ) c #D4D4D4", ".) c #FAFAFA", "+) c #444444", "@) c #C32E2E", "#) c #6C1919", "$) c #CDCDCD", "%) c #F9F9F9", "&) c #FDFDFD", "*) c #D6D6D6", "=) c #787878", "-) c #1E1E1E", ";) c #100303", ">) c #4C0C0C", ",) c #181818", "') c #C9C9C9", ")) c #C5C5C5", "!) c #A61717", "~) c #EF5959", "{) c #120707", "]) c #111111", "^) c #F7F7F7", "/) c #F6F6F6", "() c #202020", "_) c #080202", ":) c #E64242", "<) c #5A0101", "[) c #FC6363", "}) c #161616", "|) c #E0E0E0", "1) c #D8D8D8", "2) c #606060", "3) c #919191", "4) c #737373", "5) c #6D0F0F", "6) c #D85050", "7) c #2F2F2F", "8) c #ECECEC", "9) c #040404", "0) c #190909", "a) c #F46363", "b) c #424242", "c) c #C7C7C7", "d) c #F8F8F8", "e) c #9E9E9E", "f) c #666666", "g) c #0D0D0D", "h) c #C4C4C4", "i) c #BEBEBE", "j) c #470A0A", "k) c #B04141", "l) c #595959", "m) c #441818", "n) c #EC5B5B", "o) c #080808", "p) c #6F6F6F", "q) c #EEEEEE", "r) c #252525", "s) c #141414", "t) c #D1D1D1", "u) c #454545", "v) c #DFDFDF", "w) c #3B0808", "x) c #F32121", "y) c #F32222", "z) c #F32727", "A) c #F32929", "B) c #F32F2F", "C) c #F33434", "D) c #F33636", "E) c #F33E3E", "F) c #F34141", "G) c #F34545", "H) c #F34C4C", "I) c #F35656", "J) c #F35454", "K) c #F35858", "L) c #F35A5A", "M) c #853232", "N) c #7F7F7F", "O) c #999999", "P) c #6C2727", "Q) c #EA3D3D", "R) c #868686", "S) c #242424", "T) c #EAEAEA", "U) c #E9E9E9", "V) c #D5D5D5", "W) c #3B0909", "X) c #3B0A0A", "Y) c #3B0D0D", "Z) c #3B0E0E", "`) c #3B0F0F", " ! c #3B1212", ".! c #3B1111", "+! c #3B1313", "@! c #3B1515", "#! c #3B1616", "$! c #A5A5A5", "%! c #943636", "&! c #D32D2D", "*! c #FE3F3F", "=! c #FC1F1F", "-! c #FC1E1E", ";! c #BFBFBF", ">! c #171717", ",! c #3B3B3B", "'! c #A8A8A8", ")! c #9C9C9C", "!! c #4F4F4F", "~! c #B94444", "{! c #F75A5A", "]! c #F35959", "^! c #F35757", "/! c #F35555", "(! c #FE4E4E", "_! c #882C2C", ":! c #FB4747", "~ c #616161", ",~ c #CCCCCC", "'~ c #EDEDED", ")~ c #4A4A4A", "!~ c #CECECE", "~~ c #C14141", "{~ c #FC5959", "]~ c #F65959", "^~ c #EF5151", "/~ c #EF4141", "(~ c #ED2F2F", "_~ c #D72121", ":~ c #C81919", "<~ c #BF1212", "[~ c #BF0404", "}~ c #F50808", "|~ c #300303", "1~ c #640707", "2~ c #A20808", "3~ c #BD1818", "4~ c #D81C1C", "5~ c #E61D1D", "6~ c #FD2020", "7~ c #C82020", "8~ c #110303", "9~ c #848484", "0~ c #757575", "a~ c #4B4B4B", "b~ c #ABABAB", "c~ c #F3F3F3", "d~ c #2A2A2A", "e~ c #3E3E3E", "f~ c #707070", "g~ c #A4A4A4", "h~ c #331212", "i~ c #FB5757", "j~ c #B10C0C", "k~ c #BA0101", "l~ c #E00404", "m~ c #230606", "n~ c #530E0E", "o~ c #AB1D1D", "p~ c #E71E1E", "q~ c #701212", "r~ c #2E2E2E", "s~ c #E7E7E7", "t~ c #818181", "u~ c #535353", "v~ c #090909", "w~ c #121212", "x~ c #979797", "y~ c #C54747", "z~ c #D90101", "A~ c #EE0909", "B~ c #220606", "C~ c #520E0E", "D~ c #AA1D1D", "E~ c #EF2828", "F~ c #E82525", "G~ c #270606", "H~ c #E1E1E1", "I~ c #4E4E4E", "J~ c #303030", "K~ c #F0F0F0", "L~ c #A1A1A1", "M~ c #BCBCBC", "N~ c #C8C8C8", "O~ c #555555", "P~ c #913535", "Q~ c #F30404", "R~ c #FA0C0C", "S~ c #A91D1D", "T~ c #B41D1D", "U~ c #EBEBEB", "V~ c #0C0C0C", "W~ c #1B1B1B", "X~ c #D0D0D0", "Y~ c #313131", "Z~ c #747474", "`~ c #873131", " { c #D20101", ".{ c #F20303", "+{ c #210606", "@{ c #A81C1C", "#{ c #691111", "${ c #696969", "%{ c #C0C0C0", "&{ c #515151", "*{ c #484848", "={ c #6E6E6E", "-{ c #F1F1F1", ";{ c #AE4040", ">{ c #260000", ",{ c #FA0B0B", "'{ c #210505", "){ c #510E0E", "!{ c #A71C1C", "~{ c #F02828", "{{ c #320808", "]{ c #B9B9B9", "^{ c #7C7C7C", "/{ c #6D6D6D", "({ c #4D4D4D", "_{ c #EB5656", ":{ c #C00000", "<{ c #E22020", "[{ c #D22222", "}{ c #150303", "|{ c #404040", "1{ c #3A3A3A", "2{ c #E8E8E8", "3{ c #883232", "4{ c #E30606", "5{ c #B71D1D", "6{ c #5E5E5E", "7{ c #212121", "8{ c #F2F2F2", "9{ c #858585", "0{ c #602323", "a{ c #EA0303", "b{ c #FC0B0B", "c{ c #8C1717", "d{ c #898989", "e{ c #DADADA", "f{ c #F5F5F5", "g{ c #AFAFAF", "h{ c #ACACAC", "i{ c #5D5D5D", "j{ c #5F1F1F", "k{ c #F75959", "l{ c #8C8C8C", "m{ c #C3C3C3", "n{ c #292929", "o{ c #E5E5E5", "p{ c #5F1C1C", "q{ c #F74E4E", "r{ c #E20505", "s{ c #F60D0D", "t{ c #570E0E", "u{ c #464646", "v{ c #5F5F5F", "w{ c #8F8F8F", "x{ c #D9D9D9", "y{ c #5E1919", "z{ c #F74343", "A{ c #5F0000", "B{ c #FC1111", "C{ c #410B0B", "D{ c #1D1D1D", "E{ c #BABABA", "F{ c #2D2D2D", "G{ c #949494", "H{ c #5E1515", "I{ c #380909", "J{ c #939393", "K{ c #E6E6E6", "L{ c #5D1111", "M{ c #F72C2C", "N{ c #330000", "O{ c #C20202", "P{ c #DF0505", "Q{ c #FB0B0B", "R{ c #4C4C4C", "S{ c #686868", "T{ c #5B5B5B", "U{ c #6A6A6A", "V{ c #5D0E0E", "W{ c #F62828", "X{ c #E00A0A", "Y{ c #FD1919", "Z{ c #CACACA", "`{ c #838383", " ] c #A9A9A9", ".] c #5C0D0D", "+] c #F62323", "@] c #BF0202", "#] c #E40D0D", "$] c #F41B1B", "%] c #FE2121", "&] c #590E0E", "*] c #9A9A9A", "=] c #AAAAAA", "-] c #610D0D", ";] c #F62222", ">] c #E00505", ",] c #FE1A1A", "'] c #6C1111", ")] c #9D9D9D", "!] c #A0A0A0", "~] c #E4E4E4", "{] c #731010", "]] c #C20101", "^] c #E40505", "/] c #FA1818", "(] c #D70404", "_] c #EF0B0B", ":] c #FB1616", "<] c #B61D1D", "[] c #C6C6C6", "}] c #C90101", "|] c #EF0303", "1] c #FA1313", "2] c #D62323", "3] c #180404", "4] c #777777", "5] c #828282", "6] c #981515", "7] c #A50000", "8] c #B50101", "9] c #F91212", "0] c #F82929", "a] c #160303", "b] c #E01F1F", "c] c #D60202", "d] c #E30303", "e] c #F10F0F", "f] c #7C1414", "g] c #434343", "h] c #8E8E8E", "i] c #929292", "j] c #560C0C", "k] c #CD0101", "l] c #E60707", "m] c #F11212", "n] c #FD2323", "o] c #C52121", "p] c #0D0202", "q] c #585858", "r] c #AD1818", "s] c #C00101", "t] c #E30707", "u] c #F50E0E", "v] c #F62929", "w] c #400B0B", "x] c #626262", "y] c #200404", "z] c #EC2020", "A] c #A31B1B", "B] c #989898", "C] c #6C0F0F", "D] c #BB0101", "E] c #E40202", "F] c #F40B0B", "G] c #EE2828", "H] c #C21B1B", "I] c #EF0404", "J] c #F81B1B", "K] c #B01D1D", "L] c #090101", "M] c #D7D7D7", "N] c #5C5C5C", "O] c #6C6C6C", "P] c #ADADAD", "Q] c #BDBDBD", "R] c #2E0606", "S] c #F52222", "T] c #E60202", "U] c #F92A2A", "V] c #5C0F0F", "W] c #801212", "X] c #E70505", "Y] c #FE2222", "Z] c #E02525", "`] c #2B0707", " ^ c #D51D1D", ".^ c #E50202", "+^ c #BF1F1F", "@^ c #CFCFCF", "#^ c #700F0F", "$^ c #A91B1B", "%^ c #120303", "&^ c #330707", "*^ c #D40101", "=^ c #ED0707", "-^ c #F61212", ";^ c #FE2525", ">^ c #878787", ",^ c #A2A2A2", "'^ c #909090", ")^ c #250505", "!^ c #ED0303", "~^ c #B91E1E", "{^ c #3C3C3C", "]^ c #505050", "^^ c #370808", "/^ c #FD2222", "(^ c #DB0101", "_^ c #F41010", ":^ c #FE2A2A", "<^ c #FD2828", "[^ c #DA2222", "}^ c #4B0C0C", "|^ c #781010", "1^ c #FC2222", "2^ c #CC0101", "3^ c #F20707", "4^ c #FE2B2B", "5^ c #FD2A2A", "6^ c #FD2929", "7^ c #FC2828", "8^ c #F22525", "9^ c #981717", "0^ c #1E0404", "a^ c #110202", "b^ c #DA1D1D", "c^ c #FA2121", "d^ c #ED0606", "e^ c #FC2A2A", "f^ c #FB2929", "g^ c #FA2727", "h^ c #F82626", "i^ c #F62525", "j^ c #F52525", "k^ c #E12121", "l^ c #801313", "m^ c #A11414", "n^ c #F62020", "o^ c #F82121", "p^ c #D60101", "q^ c #F10E0E", "r^ c #F81818", "s^ c #F92929", "t^ c #F12323", "u^ c #EE2222", "v^ c #EC2121", "w^ c #DC1E1E", "x^ c #8F1313", "y^ c #2D0505", "z^ c #B11515", "A^ c #F01E1E", "B^ c #F31F1F", "C^ c #F92121", "D^ c #FB2222", "E^ c #C40101", "F^ c #D80101", "G^ c #E50404", "H^ c #ED0909", "I^ c #F92828", "J^ c #F72727", "K^ c #F42626", "L^ c #F22424", "M^ c #EF2222", "N^ c #EA2020", "O^ c #E71F1F", "P^ c #E31D1D", "Q^ c #E21D1D", "R^ c #540A0A", "S^ c #220404", "T^ c #3E0707", "U^ c #750E0E", "V^ c #911212", "W^ c #911313", "X^ c #911717", "Y^ c #911818", "Z^ c #911A1A", "`^ c #911B1B", " / c #911C1C", "./ c #911E1E", "+/ c #912020", "@/ c #912222", "#/ c #912424", "$/ c #912626", "%/ c #912828", "&/ c #912929", "*/ c #8E2828", "=/ c #601B1B", "-/ c #1F0909", ";/ c #060202", ">/ c #070202", ",/ c #1E0707", "'/ c #531414", ")/ c #891E1E", "!/ c #911F1F", "~/ c #911D1D", "{/ c #911616", "]/ c #911010", "^/ c #9D1414", "// c #BB1515", "(/ c #A91313", "_/ c #910F0F", ":/ c #921010", "( c #F60B0B", ",( c #FA0D0D", "'( c #FB1313", ")( c #F02525", "!( c #ED2323", "~( c #EA2121", "{( c #E41E1E", "]( c #DF1C1C", "^( c #D91919", "/( c #D81919", "(( c #D91A1A", "_( c #D91C1C", ":( c #D91F1F", "<( c #D92222", "[( c #D92424", "}( c #D92626", "|( c #D92828", "1( c #D92A2A", "2( c #D92E2E", "3( c #D93232", "4( c #D93535", "5( c #D93737", "6( c #D93A3A", "7( c #D93939", "8( c #D83737", "9( c #D93838", "0( c #D93636", "a( c #D93434", "b( c #D93333", "c( c #D93131", "d( c #D93030", "e( c #D92F2F", "f( c #D92D2D", "g( c #D92C2C", "h( c #D92B2B", "i( c #D92929", "j( c #D92727", "k( c #D92525", "l( c #D92121", "m( c #D92020", "n( c #D91E1E", "o( c #D91D1D", "p( c #D91B1B", "q( c #D91818", "r( c #D91717", "s( c #D91616", "t( c #DA1616", "u( c #E11919", "v( c #E51A1A", "w( c #E91C1C", "x( c #EE1D1D", "y( c #F21F1F", "z( c #7E0101", "A( c #A60101", "B( c #DF0303", "C( c #E00303", "D( c #F20B0B", "E( c #F21616", "F( c #E92222", "G( c #E62020", "H( c #E11C1C", "I( c #DC1A1A", "J( c #D81B1B", "K( c #D81E1E", "L( c #D82121", "M( c #D82424", "N( c #D82626", "O( c #D82828", "P( c #D82A2A", "Q( c #D82B2B", "R( c #D82E2E", "S( c #D82F2F", "T( c #D83333", "U( c #D83535", "V( c #D83838", "W( c #D83939", "X( c #D83A3A", "Y( c #D83434", "Z( c #D83232", "`( c #D83030", " _ c #D82D2D", "._ c #D82C2C", "+_ c #D82929", "@_ c #D82525", "#_ c #D82020", "$_ c #D81A1A", "%_ c #D81818", "&_ c #D81717", "*_ c #D81616", "=_ c #DD1818", "-_ c #E41A1A", ";_ c #E81B1B", ">_ c #960101", ",_ c #CB0101", "'_ c #E81212", ")_ c #F61717", "!_ c #E92121", "~_ c #E31F1F", "{_ c #E01D1D", "]_ c #D71919", "^_ c #D81D1D", "/_ c #D81F1F", "(_ c #D73939", "__ c #D73838", ":_ c #D83636", "<_ c #D73535", "[_ c #D83131", "}_ c #D82727", "|_ c #D81515", "1_ c #E41B1B", "2_ c #970101", "3_ c #E00F0F", "4_ c #E30909", "5_ c #F82828", "6_ c #EA2222", "7_ c #E21F1F", "8_ c #DD1C1C", "9_ c #D71C1C", "0_ c #D71E1E", "a_ c #D71F1F", "b_ c #D72424", "c_ c #D72525", "d_ c #D72626", "e_ c #D72929", "f_ c #D72C2C", "g_ c #D72E2E", "h_ c #D73030", "i_ c #D73232", "j_ c #D73737", "k_ c #D73434", "l_ c #D73333", "m_ c #D72F2F", "n_ c #D72D2D", "o_ c #D72A2A", "p_ c #D72828", "q_ c #D72323", "r_ c #D72222", "s_ c #D71D1D", "t_ c #D72020", "u_ c #D71B1B", "v_ c #DE1919", "w_ c #E51B1B", "x_ c #F72121", "y_ c #FD2424", "z_ c #9F0101", "A_ c #CB0909", "B_ c #DF1818", "C_ c #EF1515", "D_ c #F81A1A", "E_ c #EE2424", "F_ c #D72B2B", "G_ c #D73636", "H_ c #D72727", "I_ c #DA1B1B", "J_ c #E21B1B", "K_ c #E61E1E", "L_ c #F01F1F", "M_ c #F42222", "N_ c #F82424", "O_ c #FA2323", "P_ c #FE2424", "Q_ c #C11A1A", "R_ c #F32626", "S_ c #EF2424", "T_ c #EB2222", "U_ c #E72121", "V_ c #E01E1E", "W_ c #E41F1F", "X_ c #E81E1E", "Y_ c #ED2020", "Z_ c #F82222", "`_ c #FB2626", " : c #E42020", ".: c #E11E1E", "+: c #DE1D1D", "@: c #D82222", "#: c #DC1F1F", "$: c #DF2121", "%: c #E22121", "&: c #F72626", "*: c #FA2424", "=: c #DC1C1C", "-: c #D82323", ";: c #DA2020", ">: c #DE2424", ",: c #E12424", "': c #E52424", "): c #ED2121", "!: c #F12828", "~: c #F92B2B", "{: c #FD2B2B", "]: c #FE2828", "^: c #E82121", "/: c #DD2525", "(: c #E02A2A", "_: c #E32525", ":: c #E72626", "<: c #EB2929", "[: c #F02626", "}: c #F42828", "|: c #F72B2B", "1: c #FA2E2E", "2: c #FC2C2C", "3: c #FD2C2C", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + @ # # # # # # # $ % % % % % % & * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * = = = - ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; > , , , , , , , ' ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ) ! ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ { ] ] ] ] ] ] ] ] ] ] ] ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ / / / / / / / / ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( _ : : : : < [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ [ } | | 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 4 5 5 5 ", "6 7 7 8 9 9 9 9 9 9 9 9 9 9 9 9 0 a b b b b b b b b b b b b b b c d d d d d d d d d d d d d d d d d d d d d e f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f f g h h h d d d d d d d d d d d d d d d d d d d d d d d d d d i i i i i i j k k k k k k k k k k k k k c l l l l l l l l m n n n n n n n n n o o o o o o o o o o o p p p p p p q r r r r r r r r r r r s t t t u v v v v v v v v v v v v v v * * = = = = = = = = = = = = = = = = ; , , , , , , , , , , , , , , , , w ' ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ { ] ] x ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ ^ / y y y y z ( ( ( ( ( ( ( ( ( ", "A B B B B B B B B B B B B B B B B C C C D E E F F F F F F F F F F F F F F F F F F F F F F F F F F F F F F G H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H H G F F F F F F F F F F F F F F F F F F F F F F E E E E C C C C C C C C C C C C C I I I I I I J J J J J J J J J K L L L L L L M N N N N N N O O O O O O O O O P Q Q Q Q R R R R R R R R R R f f g h h h h h h h h h h h h i i i i i i i i i i i i i j S l l l l l l l l l l l l m T U o o o o o o o o o o o o p p p q r r r r r r r r r r r t t t t V v v v v v v v v v v W * * * * * X = = = = = = = = = ; Y Y Y Y Y Y Y , , ", "Z Z Z ` ` ` .....................................+.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.#.#.#.#.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.%.&.&.&.&.&.&.&.&.&.&.&.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.$.#.#.#.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.+....................... .` ` *.Z Z Z Z Z Z Z =.=.=.=.=.-.;.;.;.;.;.>.,.,.,.,.,.'.).).).!.~.~.~.~.~.~.~.{.H H ].].].].].].].].].^./.E E E E E E E E E E (.I I I I I I I I I J K L L L L L L L L L L M _.N O O O O O O O O O :.:.:.R R R R R R R R R <.<.<.<.h h h h h h h h [.[.[.[.[.[.i i i i i i i k c c c c c c l l l l l l l m T T T T T T T o o o o o o o p p p p p p p p p r ", "}.}.}.}.}.}.}.}.}.|.1.2.2.2.2.2.2.2.2.2.2.2.2.2.2.3.4.4.4.4.4.4.4.4.4.4.4.4.5.6.6.6.6.6.7.7.7.7.7.7.7.7.7.7.8.9.9.9.9.9.9.9.9.9.9.0.a.a.a.a.a.a.a.a.a.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.b.a.a.a.a.a.a.a.a.9.9.9.9.9.9.9.9.9.7.7.7.7.7.7.7.6.6.6.6.4.4.4.4.4.4.4.4.4.3.2.2.2.2.2.2.2.2.|.c.}.}.}.}.}.}.d.d.d.e.e.e.e.e.f.f.f.f.g.g.g.g.&.%.%.%.%.h.$.$.#.#.#.#.#.#.@.@.i.+.+.+.+.+.+.j.` ` ` ` ` ` ` ` *.=.=.=.=.=.=.=.=.;.,.,.,.,.,.,.,.,.).).!.~.~.~.~.~.~.H H H k.].].].].].].G ^.^.F E E E E E E D C C C C (.I I I I J K K K K K K L L L L L M _._._._._._.O O O O O :.:.:.:.:.:.:.:.R R R R l.<.<.<.<.<.<.<.<.m.h h h h [.[.[.[.[.[.[.[.[.d i i i i ", "n.n.n.n.n.n.n.n.n.n.o.p.p.p.p.p.p.p.p.p.q.q.r.s.s.s.s.s.s.t.t.t.t.u.v.v.v.w.x.x.x.x.x.x.x.y.z.A.A.A.A.A.A.A.A.A.B.C.D.D.D.D.D.D.D.D.D.D.E.E.E.E.E.E.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.F.G.E.E.E.D.D.D.D.D.D.D.D.D.C.B.A.A.A.A.A.A.z.y.y.x.x.x.x.w.v.v.v.H.t.s.s.s.s.s.q.p.p.p.p.p.I.o.J.n.n.n.n.K.L.L.L.L.b.b.b.a.a.a.9.9.9.8.7.6.5.5.5.5.4.M.M.M.M.M.M.3.1.|.|.|.|.|.c.d.d.d.d.d.d.N.f.f.f.f.f.f.O.P.%.%.%.%.%.h.h.#.#.#.#.#.@.i.i.i.+.+.+.+.Q.Q.Q.Q. .` ` ` ` *.*.*.Z =.=.=.=.;.>.>.>.>.R.,.,.,.'.).).).).).!.~.~.~.H H H H H H H ].].].G ^.^.^.^.^.^./.E E E C C C C C C C C I I I K K K K K K K K K L L L _._._._._._._._._._.N O O :.S.K L L T.U.I.", "G.G.G.G.G.G.F.F.V.V.V.V.V.W.W.W.X.X.X.Y.Y.Y.Y.Z.`. + + + + + +.+.+.+.+.+++++@+@+@+@+#+#+#+$+$+$+%+%+%+%+&+&+*+*+*+*+*+*+=+-+-+-+-+-+-+-+;+;+>+>+>+>+>+>+>+>+>+>+,+'+'+'+'+'+'+'+'+'+'+>+>+>+>+>+>+>+>+>+>+>+>+;+-+-+-+-+-+)+!+!+!+~+*+*+&+&+&+&+{+$+$+$+$+#+@+@+@+@+]+++.+^+/+/+/+ +`.`.`.(+X.X.X._+:+V.V.V.<+F.G.G.E.D.C.[+B.B.A.z.x.x.x.w.v.u.u.u.H.q.q.q.q.p.I.I.I.I.o.}+K.K.K.|+L.b.b.b.b.0.1+9.9.9.8.2+7.5.5.5.4.4.4.M.M.M.3.3+3+1.|.|.|.c.c.c.}.d.d.N.N.N.N.N.f.f.O.g.g.g.g.&.%.%.h.h.h.h.h.#.#.@.i.i.i.i.i.+.+.j.Q.Q.Q.Q.Q.Q. .` *.*.*.*.*.*.*.Z =.;.>.>.>.>.>.>.>.>.,.'.).).).).).).).).~.{.H H H H H H H H H ].G ^.^.^.^.^.^.^.^.^.^.E C C C J 4+/.R.!.!.a.G.^+.+5+5+{+A.B.", "#+#+6+$+{+{+{+&+&+&+7+!+!+!+!+=+;+;+;+;+'+'+'+'+8+9+9+9+0+a+a+b+b+b+c+d+e+e+f+g+g+g+h+i+i+i+j+k+l+l+m+m+m+n+o+o+o+p+q+q+q+q+q+r+r+r+r+r+s+t+u+u+u+u+u+u+u+u+u+u+u+u+u+u+u+u+u+u+u+u+u+u+s+s+s+s+s+v+w+w+w+w+x+y+y+p+o+o+n+m+z+z+l+A+A+A+i+B+B+g+f+f+d+d+c+C+D+0+E+E+F+8+8+G+,+,+;+)+=+=+!+7+~+~+%+$+$+6+#+#+#+]+.+.+.+/+/+/+`.Z.Z.Z.(+_+_+W.:+V.V.<+G.E.E.D.C.B.B.A.z.y.x.w.v.v.u.u.t.t.t.r.q.p.p.p.I.I.H+J.J.n.K.|+|+|+|+b.a.1+1+1+1+9.2+2+2+2+2+6.4.4.4.4.4.4.3.3+3+3+3+3+|.c.c.c.c.c.c.I+N.N.N.N.N.N.N.f.g.g.g.g.g.g.g.&.h.h.h.h.h.h.h.$.J+i.i.i.i.i.i.i.+.Q.Q.Q.Q.Q.Q.Q.Q.Q.*.*.*.*.*.*.*.*.*.Z >.>.>.>.>.>.>.>.>.>.R.).).).).).).{.{.'. .i.*. .O.B.B.[+D.F.F.W._+X.Y.Y.X.A.o.I.", "a+C+C+c+c+d+d+f+f+g+B+B+i+A+A+A+l+z+z+n+o+o+p+x+x+w+v+v+s+t+K+L+M+N+O+P+Q+Q+R+S+S+T+U+U+V+W+W+X+Y+Z+`+ @.@+@@@#@$@$@%@&@&@&@*@=@-@-@-@-@;@;@>@,@,@,@,@,@,@,@>@;@;@;@;@;@;@;@-@-@=@*@&@&@'@$@$@#@@@+@.@ @)@Z+Z+X+!@!@~@~@T+S+{@Q+]@^@P+N+M+K+u+s+r+x+q+q+p+p+m+m+l+k+A+i+i+g+/@f+e+d+C+D+b+a+9+F+8+8+,+>+-+-+)+!+7+~+*+&+&+$+6+6+#+@+]+++(@(@(@/+`.`.`.Z.(+(+X.W.W.W.W.<+F.F.F.E.C.C.C.[+z.z.z.z.w.v.v.v.v.H.t.t.t.t.q.p.p.p.p.H+J.J.J.J.J.K.|+|+|+|+L.1+1+1+1+1+9.2+2+2+2+2+2+7.4.4.4.4.4.4.3.3+3+3+3+3+3+1.c.c.c.c.c.c.I+d.N.N.N.N.N.N.f.O.g.g.g.g.g.g.g.P.%.h.h.h.h.h.h.h.#.@.i.i.i.i.i.i.i.i.j.Q.Q.Q.Q.Q.Q.Q.Q.Q...Z Z .J+$.@.J+@.p.q.t.H.u.u.w.w.x.x.x.x.p.b.b.b.b._@:@<@[@X.X.", "y+y+x+w+w+r+s+s+K+L+L+O+P+^@]@]@R+S+}@T+~@V+!@W+X+Z+`+)@.@+@#@$@%@&@*@=@-@>@,@|@1@1@2@3@4@5@5@6@7@7@8@9@9@0@a@b@c@c@c@d@e@e@e@e@e@e@f@f@f@f@f@f@f@f@f@f@e@g@g@g@g@b@b@a@0@0@9@9@9@h@h@6@i@i@2@2@1@j@|@,@>@-@*@'@$@#@@@.@)@`+Z+Y+W+V+U+}@S+{@Q+^@O+N+M+L+u+s+v+x+q+p+o+k@n+z+k+A+i+B+h+g+/@e+d+C+D+b+a+0+E+F+G+'+,+>+;+-+=+!+7+*+*+&+%+%+6+6+5+@+]+]+++(@(@^+ +`.`.Y.Y.(+(+(+_+W.W.:+V.F.F.F.E.D.C.C.[+B.z.z.z.y.x.v.v.v.v.u.H.t.t.t.s.s.q.p.p.p.o.H+J.J.J.J.n.}+|+|+|+|+b.a.0.1+1+1+1+9.8.2+2+2+2+2+7.7.5.4.4.4.4.M.2.2.3+3+3+3+3+1.1.|.c.c.c.c.c.I+}.}.N.N.N.N.N.N.l@O.O.g.g.g.g.g.g.g.P.P.%.h.h.h.h.@.%.%.h.#.i.i.7.1+0.0.1+8.8.2+7.2+2+8.8.6.6.6.7.8._@m@n@o@p@H.H.H.q@r@r@s@X.X.", "Q+R+R+}@T+T+V+V+!@X+X+Z+)@)@.@.@@@$@$@&@&@*@-@-@,@|@t@j@j@2@3@4@i@6@7@h@u@9@9@v@0@a@c@c@g@e@w@w@x@x@y@z@A@A@A@A@A@B@B@B@B@B@B@B@B@B@B@B@B@B@z@z@C@C@y@x@f@w@e@d@c@c@b@0@v@v@u@8@h@7@6@i@4@2@D@j@t@|@>@-@-@&@'@$@#@+@.@ @`+Z+X+W+~@U+}@}@{@R+]@P+N+M+M+u+u+r+v+x+q+o+o+k@n+m+k+k+j+B+B+h+g+/@d+d+c+b+b+a+0+0+9+'+'+'+>+>+>+-+=+=+!+*+*+*+&+%+%+{+#+@+@+]+++++++(@^+/+/+`.Z.Y.Y.Y.(+X.X.X.W.W.V.V.<+F.G.E.E.D.C.C.B.B.A.z.z.x.x.x.v.v.v.u.H.H.t.t.t.s.s.r.p.p.p.o.H+H+J.J.J.J.n.n.}+|+|+|+L.a.a.a.1+1+1+1+9.8.8.2+2+2+2+2+7.7.6.4.4.4.4.M.2.2.2.3+3+3+3+3+1.1.1.1.c.c.c.c.c.I+}.}.}.N.N.N.N.N.P.P.g.f.e.c.1.1.1.1.7.5.8.8.8.8.2+2+2+2+2+2+E@F@G@H@8.8.8.8.I@J@r@K@L@H.H.M@N@r@O@P@X.X.", "X+Y+`+`+`+.@.@+@#@#@#@%@'@*@*@-@>@>@,@|@|@|@D@D@D@2@3@3@i@5@6@7@h@h@u@9@9@9@9@v@0@0@0@a@b@b@b@b@b@b@c@g@d@d@d@d@d@d@d@d@d@g@c@c@b@b@b@b@b@0@9@9@9@u@h@h@h@7@6@6@i@3@3@D@1@1@j@t@,@>@-@=@=@&@'@%@@@@@+@ @ @Z+Y+Y+W+!@~@U+T+S+{@R+Q+^@P+O+M+M+K+u+t+v+v+x+y+y+o+k@k@m+z+z+A+j+j+B+h+h+g+f+f+d+c+C+b+b+a+0+0+9+G+'+'+,+>+>+>+)+=+=+=+~+*+*+&+%+%+%+{+@+@+@+@+]+++++++(@/+/+/+ +Z.Y.Y.Y.Y.X.X.X.X._+:+V.V.V.<+F.G.E.E.E.C.[+B.B.B.A.z.y.x.x.x.w.v.v.H.H.H.H.t.t.s.s.s.s.q.p.p.o.H+H+H+J.J.J.n.n.n.n.K.|+|+L.a.a.a.a.0.1+1+1+8.8.8.8.2+2+2+2+7.7.7.7.5.4.4.4.4.3.2.2.2.3+3+1.3+3+3.3.5.M.M.2.3+3+d.d.d.e.N.O.l@O.O.O.l@l@l@l@l@l@l@l@l@l@Q@R@R@r@J@S@8.8.8.8.I@r@r@J@T@H.H.U@r@r@O@o.X.X.", ")@)@)@ @+@@@@@@@#@$@$@%@'@'@&@=@-@-@-@-@,@,@,@,@,@t@t@j@j@j@1@1@1@1@D@D@D@D@3@3@i@i@i@i@i@i@i@i@3@3@3@3@3@3@3@3@3@3@D@D@1@1@1@1@1@j@|@|@|@|@,@;@-@-@=@=@*@*@&@'@$@$@@@@@+@.@.@ @)@Z+Z+X+W+W+!@~@~@~@S+S+S+R+Q+Q+^@P+P+N+M+K+K+u+s+s+v+w+x+y+y+p+k@k@m+z+z+z+A+j+j+i+h+h+h+/@f+f+e+c+C+C+D+a+a+a+0+9+F+G+'+,+,+>+>+>+-+)+=+=+!+7+*+*+*+&+%+%+%+$+5+@+@+@+]+++++++++.+/+/+/+/+ +Y.Y.Y.Y.Y.(+X.X.X.X.W.:+V.V.V.V.F.G.E.E.E.E.C.[+B.B.B.B.z.y.x.x.x.x.w.v.v.H.H.H.H.H.t.t.s.s.s.s.r.p.p.o.H+H+H+H+J.J.J.n.n.n.n.n.K.|+|+b.a.a.a.a.a.1+1+1+8.8.8.8.8.2+2+2+2+7.7.7.7.}.#.+.Q.P.}.}.I+I+I+I+I+}.}.}.9.9.2+2+2+2+2+7.6.V@W@X@Y@Z@O.O.O.O.O.`@r@r@r@r@ #8.8.8..#+#r@r@@###H.H.U@r@r@$#X.X.X.", "Y+Z+`+`+`+`+`+`+.@.@.@.@.@.@.@+@+@+@@@#@#@#@#@$@%@%@%@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@'@$@$@$@$@#@@@@@@@@@+@+@+@.@.@.@.@)@)@`+Z+Z+Z+X+W+W+W+W+!@~@~@~@~@}@S+S+S+S+Q+Q+Q+Q+P+P+P+O+M+L+L+K+u+t+t+s+v+w+w+x+q+y+p+o+k@k@n+m+z+z+l+A+j+j+i+h+h+h+h+/@f+f+f+d+C+C+C+D+a+a+a+0+E+F+F+8+'+'+,+,+>+>+;+-+-+=+=+!+7+~+*+*+*+&+%+%+%+{+6+5+@+@+@+]+]+++++++++(@/+/+/+/+/+`.Y.Y.Y.Y.Y.(+X.X.X.X.X.:+V.V.V.V.V.<+G.E.E.E.E.E.C.B.B.B.B.B.B.z.y.x.x.x.x.x.v.v.H.H.H.H.H.H.t.s.s.s.s.s.s.r.p.I.H+H+H+H+H+H+J.J.n.n.n.n.n.n.K.|+|+b.a.0.4.2.2.3+2.2+b.1+9.9.9.9.8.}.@.i.j...................*.Z Z Z Z Z Z Z Z %#&#*#r@r@r@=#O.O.O.O.O.-#r@r@r@;#>#8.8.8.,#r@r@r@'#H.H.H.)#r@r@!#X.X.X.", "~@~@~@~@~@~@~@~@~@V+!@W+W+W+W+W+W+W+X+Y+Y+Y+Y+Y+Y+Y+Y+Y+Y+Y+Y+X+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+W+V+~@~@~@~@~@~@~@~@~@S+S+S+S+S+S+S+{@Q+Q+Q+Q+Q+]@P+P+P+P+P+O+M+L+L+L+K+K+u+t+t+t+r+r+w+w+w+q+q+y+y+p+o+o+k@n+m+m+z+z+l+A+j+j+j+j+B+h+h+h+g+f+f+f+f+f+c+C+C+C+C+a+a+a+a+0+E+F+F+F+G+'+'+,+,+,+>+>+-+-+-+=+=+!+7+7+~+*+*+&+&+&+%+%+%+$+6+5+@+@+@+]+]+++++++++++(@^+/+/+/+/+ +Z.Y.Y.Y.Y.Y.(+X.X.X.X.X.X.:+V.V.V.V.V.V.G.E.E.E.E.E.E.D.[+B.B.B.B.B.B.z.x.x.x.x.x.x.w.v.u.H.H.H.H.H.H.t.t.s.s.s.s.s.s.r.p.o.H+H+H+H+H+H+H+J.J.n.n.|+g.@.J+@.N.}.}.}.1.n.n.n.K.b.a.a.a.0.0.1+1+1+1+8.6.4.M.3+~#{#]#^#/#-.-.-.-.-.-.(#r@r@r@r@r@_#O.O.O.O.O.:#r@r@r@<#[#8.8.8.,#r@r@r@}#H.H.H.q@r@r@|#X.X.X.", "R+R+R+R+R+R+R+R+R+R+R+R+R+R+R+R+R+R+{@{@{@{@{@{@{@{@{@R+Q+Q+Q+Q+Q+Q+Q+Q+Q+Q+]@^@^@^@^@^@P+P+P+P+P+P+P+N+N+N+N+M+L+L+L+L+K+K+K+K+t+t+t+t+r+r+r+r+w+w+w+q+q+q+q+y+y+p+o+o+k@k@n+n+m+m+z+z+z+l+A+A+j+j+j+i+B+h+h+h+h+g+f+f+f+f+f+d+C+C+C+C+C+D+a+a+a+a+a+0+9+F+F+F+8+'+'+,+,+,+,+>+>+;+-+-+-+=+=+!+7+7+7+*+*+*+&+&+&+%+%+%+{+6+6+5+@+@+@+@+]+]+++++++++++(@^+/+/+/+/+/+ +Z.Y.Y.Y.Y.Y.Y.X.X.X.X.X.X.X.W.V.V.V.V.V.V.V.G.E.E.E.E.E.E.E.C.B.B.B.B.B.B.B.A.y.x.x.x.x.x.x.x.v.H.H.H.H.H.H.H.H.t.s.s.s.s.s.s.r.K.}+J.J.H+H+H+H+H+H+H+b.-.-.-.-.-.-.-.-.-.*.*.*.*.*.Z Z Z ` e.e.N.N.N.1#2#3#4#4#5#r@r@6#7#-.-.-.-.-.-.8#r@r@r@r@r@9#O.O.O.O.O.:#r@r@r@0#M.8.8.8.a#r@r@O@b#H.H.H.q@r@O@c#<+:+d#", "K+L+L+L+L+L+L+L+L+L+L+L+L+L+L+K+K+K+K+K+K+K+K+K+K+K+K+u+u+u+u+u+u+u+u+t+t+t+t+r+r+r+r+r+r+v+v+v+w+w+w+q+q+q+q+q+y+y+y+y+y+o+o+o+k@k@k@k@n+m+m+m+z+z+z+z+z+k+A+j+j+j+j+j+j+B+h+h+h+h+h+h+g+f+f+f+f+f+f+e+c+C+C+C+C+C+D+a+a+a+a+a+a+0+E+F+F+F+F+8+'+'+,+,+,+,+>+>+>+;+-+-+-+)+=+=+=+7+7+7+~+*+*+*+&+&+&+%+%+%+%+{+6+6+5+@+@+@+@+]+]+]+++++++++++.+(@/+/+/+/+/+/+ +`.Y.Y.Y.Y.Y.Y.(+X.X.X.X.X.X.X.X.W.V.V.V.V.V.V.V.<+E.E.E.E.E.E.E.E.D.B.B.B.B.B.B.B.B.A.x.x.x.x.x.x.x.x.w.u.H.H.H.H.H.t.J.}+|+L.0.1+9.9.K.n.n.n.}+}+}+n.n.n.n.|+g.&.h.#.i.j.` Z -.-.-.-.-.-.-.-.-.;.>.,.,.,.,.e#f#r@r@r@r@r@r@g#h#-.-.-.-.-.-.8#r@r@r@r@f#i#O.O.O.O.`@j#r@r@r@k#8.8.8.8.I@r@r@K@T@H.H.l#m#r@O@n#o#p#q#", "v+v+v+v+x+x+x+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+q+y+o+o+o+k@k@k@k@k@k@k@k@k@k@k@m+m+z+z+z+z+z+z+z+z+z+k+A+A+A+A+A+A+A+A+A+i+h+h+h+h+h+h+h+h+h+/@f+f+f+f+f+f+f+e+d+c+c+c+c+c+C+C+b+b+a+a+a+a+a+a+0+E+9+9+9+F+F+G+'+'+'+'+,+,+,+>+>+>+>+-+-+-+-+)+=+=+=+7+7+7+7+*+*+*+*+&+&+&+&+%+%+%+%+{+6+6+6+@+@+@+@+@+]+]+]+++++++++++++(@(@^+/+/+/+/+/+/+`.Z.Y.Y.Y.Y.Y.Y.Y.(+X.X.X.X.X.X.X.X.W.V.V.V.V.V.V.V.V.<+G.E.E.E.E.E.E.E.E.[+B.B.B.B.B.B.B.B.B.y.x.x.x.x.x.x.x.x.x.v.H.r.d.@.$.d.}.}.}.I+c.1+n.n.n.n.n.n.n.n.n.n.n.n.n.n.}+}+}+K.K.|+|+b.r#s#t#u#v#w#>.,.,.,.,.,.,.,.e#r@r@r@r@r@r@r@x#-.-.-.-.-.-.y#z#r@r@r@r@A#B#O.O.O.O.`@r@r@r@r@C#8.8.8.8.I@r@r@J@D#H.H.l#r@r@O@E#F#F#G#", "k@k@k@k@k@k@k@k@k@k@k@n+n+n+m+z+z+z+z+z+z+z+z+z+z+z+z+z+z+z+z+l+k+A+A+A+A+A+A+A+A+A+A+A+A+j+B+B+h+h+h+h+h+h+h+h+h+h+g+g+/@f+f+f+f+f+f+f+f+d+d+c+c+c+c+c+c+C+C+D+b+b+a+a+a+a+a+a+a+0+0+E+9+9+9+F+F+F+G+'+'+'+'+,+,+,+,+>+>+>+>+;+-+-+-+-+=+=+=+=+!+7+7+7+7+*+*+*+*+*+&+&+&+&+%+%+%+%+%+$+6+6+5+@+@+@+@+@+@+]+]+++++++++++++++.+(@(@/+/+/+/+/+/+/+`.`.Y.Y.Y.Y.Y.Y.Y.Y.(+X.X.X.X.X.X.X.X.X.W.V.V.V.V.V.V.V.V.V.F.E.E.E.E.E.E.E.E.E.D.B.B.B.B.B.B.B.B.B.B.z.x.x.x.x.x.x.x.x.x.x.v.o.*.,.,.,.,.,.,.,.,.>.-.-.-.-.-.-.%.I+}.d.d.d.d.c.n.n.H#I#I#J#K#K#L#r@r@K@M#N#,.,.,.,.,.,.,.,.e#r@r@r@r@r@r@r@O#-.-.-.-.-.-.P#r@r@r@r@r@Q#R#O.O.O.O.`@r@r@r@r@S#8.8.8.T#U#r@r@V#W#X#Y#Z#r@r@`#F#F#F#f#", "k+A+A+A+A+A+A+A+A+A+A+A+A+A+j+j+j+j+i+B+B+B+B+B+h+h+h+h+h+h+h+h+h+h+h+h+h+g+g+g+/@f+f+f+f+f+f+f+f+f+e+d+d+d+d+c+c+c+c+c+C+C+C+b+b+b+b+b+a+a+a+a+a+a+a+0+0+0+E+9+9+9+F+F+F+8+'+'+'+'+'+,+,+,+,+,+>+>+>+>+>+-+-+-+-+-+)+=+=+=+=+!+7+7+7+7+~+*+*+*+*+*+&+&+&+&+%+%+%+%+%+%+$+6+6+6+@+@+@+@+@+@+@+]+]+]+++++++++++++++.+(@(@/+/+/+/+/+/+/+/+`.`.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X._+W.V.V.V.V.V.V.V.V.V.<+G.E.E.E.E.E.E.E.E.E.E.[+B.A.u.H.r.p.H+n.o.p.q.q.r.s.t.H.t.u.v.w.x.x.o.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.).~.~.~.~.~.~.~.,. $.$r@r@r@r@r@r@r@r@r@M#+$,.,.,.,.,.,.,.,.@$r@r@r@r@r@r@r@#$-.-.-.-.-.-.P#r@r@r@r@r@$$g.O.O.O.O.%$r@r@r@;#&$8.8.8.*$r@r@r@=$-$;$-$>$r@r@,$F#F#F#r@", "h+h+h+h+h+h+h+h+h+h+g+g+g+g+g+g+g+/@f+f+f+f+f+f+f+f+f+f+f+e+d+d+d+d+d+d+c+c+c+c+C+C+C+C+C+b+b+b+b+b+b+b+a+a+a+a+a+a+a+0+0+0+0+0+E+9+9+F+F+F+F+F+G+'+'+'+'+'+,+,+,+,+,+,+>+>+>+>+>+>+;+-+-+-+-+-+=+=+=+=+=+!+7+7+7+7+7+*+*+*+*+*+*+*+&+&+&+&+%+%+%+%+%+%+{+6+6+6+6+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++(@(@^+/+/+/+/+/+/+/+/+ +`.`.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.W.V.V.V.V.V.V.V.V.V.V.V.F.E.E.E.E.E.E.D.z.x.v.t.q.o.H+}+H+H+J.J.H+H+H+H+H+H+H+H+H+H+H+H+H+H+o.H+n.|.d.O.h.@.+. .=.R.,.,.,.,.'.!.~.~.~.~.~.~.~.~.~.~.'$r@r@r@r@r@r@r@r@r@r@)$'.,.,.,.,.,.,.,.,.!$r@r@r@r@r@r@r@~$-.-.-.-.-.-.P#r@r@r@r@r@{$O.O.O.O.O.]$r@r@r@V#^$J+/$N.($r@r@r@_$:$:$:$<$r@r@G#F#F#[$r@", "f+f+f+f+e+d+d+d+d+d+d+d+d+d+d+c+c+C+C+C+C+C+C+C+C+b+b+b+b+b+b+b+b+b+a+a+a+a+a+a+a+a+0+0+0+0+0+0+0+E+9+F+F+F+F+F+F+8+'+'+'+'+'+'+'+,+,+,+,+,+,+>+>+>+>+>+>+>+;+-+-+-+-+-+)+=+=+=+=+=+=+!+7+7+7+7+7+*+*+*+*+*+*+*+*+&+&+&+&+%+%+%+%+%+%+%+%+$+6+6+6+5+@+@+@+@+@+@+@+@+]+]+]+++++++++++++++++++.+(@(@^+/+/+/+/+/+/+/+/+/+`.`.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.X.W.:+V.V.V.V.V.V.V.V.V.V.V.F.E.E.E.E.E.E.L.J+-.P.I+}.}.}.0.H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+J.J.n.}+}$|$1$X@2$o#~.~.~.~.~.~.~.~.~.~.~.~.'$r@r@r@r@r@r@r@r@r@r@3$,.,.,.,.,.,.,.,.,.!$r@r@r@r@r@r@<#4$-.-.-.-.-.-.5$r@r@r@r@r@6$O.O.O.O.O.]$r@r@r@K@7$8$9$0$a$r@r@r@b$:$:$8$c$r@O@d$e$e$f$g$", "C+C+C+b+b+b+b+b+b+b+b+b+b+b+b+a+a+a+a+a+a+a+a+a+0+0+0+0+0+0+0+0+0+E+F+F+F+F+F+F+F+F+G+'+'+'+'+'+'+'+'+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+;+-+-+-+-+-+-+=+=+=+=+=+=+=+=+!+7+7+7+7+7+*+*+*+*+*+*+*+*+*+&+&+&+&+%+%+%+%+%+%+%+%+%+$+6+6+6+5+@+@+@+@+@+@+@+@+@+]+]+]+++++++++++++++++++++.+(@(@^+/+/+/+/+/+/+/+/+/+/+`.`.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.X.X.W.:+V.V.V.V.V.V.V.V.V.V.V.<+G.E.E.E.E.E.E.E.E.3+~.~.~.~.~.H ].~.!.!.!.!.;.d.d.d.d.d.0.H+H+H+H+H+H+H+H+H+H+H+H+H+h$i$i$j$k$k$l$r@r@r@r@m$~.~.~.~.~.~.~.~.~.~.~.~.'$r@r@r@r@r@r@r@r@r@r@n$,.,.,.,.,.,.,.,.,.!$r@r@r@r@r@r@o$p$-.-.-.-.-.-.q$r@r@r@r@O@r$O.O.O.O.s$t$r@r@r@f#G#G#G#G#u$r@r@O@v$:$:$8$r@r@V#w$x$x$<$y$", "a+a+a+a+0+0+0+0+0+0+0+0+0+0+0+0+E+9+9+9+9+9+9+9+9+8+G+G+G+G+G+G+G+'+'+'+'+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+>+>+-+-+-+-+-+-+)+=+=+=+=+=+=+=+=+=+!+7+7+7+7+7+~+*+*+*+*+*+*+*+*+*+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+]+]+]+++++++++++++++++++++++.+(@(@^+/+/+/+/+/+/+/+/+/+/+/+`.`.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.W.:+V.V.V.G.E.F.V.V.V.V.V.V.<+G.E.E.E.E.E.E.E.E.E.E.d.~.~.{.H ].].].].].].].].].].].].].].~.!.!.!.!.;.}.}.}.z$i$A$k$k$B$r@r@r@r@r@r@r@r@r@J@C$~.~.~.~.~.~.~.~.~.~.~.~.'$r@r@r@r@r@r@r@r@r@r@D$,.,.,.,.,.,.,.,.E$F$r@r@r@r@r@r@G$H$-.-.-.-.-.-.q$r@r@r@r@f#I$J$..&.P.K$r@r@r@r@L$G#G#G#G#u$r@r@J@M$N$N$O$P$Q$:$R$S$T$U$V$", "9+9+9+9+9+9+9+9+G+G+G+G+G+G+G+G+'+'+'+'+'+'+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+>+>+>+>+-+-+-+-+-+-+)+=+=+=+=+=+=+=+=+=+=+=+!+7+7+7+7+7+~+*+*+*+*+*+*+*+*+*+*+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+#+5+5+5+5+@+@+@+@+@+@+@+@+]+]+]+++++++++++++++++++++++++.+(@(@^+/+/+/+/+/+/+/+/+/+/+/+/+`.`.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.G.w.H.s.q.J.}+H+q.t.t.r.t.u.x.w.z.A.B.B.C.E.E.E.E.E.E.E.E.E.d.{.k.].].].].].].].].].].].].].].].].].].].].].].].].].W$r@r@r@r@r@r@r@r@r@r@r@r@r@r@o$X$~.~.~.~.~.~.~.~.~.~.~.~.Y$r@r@r@r@r@r@r@r@r@r@Z$,.,.,.,.,.,.,.,.e#r@r@r@r@r@r@r@`$>.-.-.-.-.-.y# %r@r@r@r@K@v$.%+%@%#%$%r@r@r@r@w$G#G#G#%%K@r@r@f#&%;$*%=%N$F#-%;%-%>%,%'%", "'+'+'+'+'+'+,+,+,+,+,+,+,+,+>+>+>+>+>+>+>+>+>+>+>+>+>+>+-+-+-+-+-+-+)+=+=+=+=+=+=+=+=+=+=+=+=+=+7+7+7+7+7+7+*+*+*+*+*+*+*+*+*+*+*+*+*+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+%+%+$+$+$+$+#+5+5+5+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++.+(@(@(@^+/+/+/+/+/+/+/+/+/+/+/+/+ +`.`.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.F.z.x.u.r.o.J.L.}+q.q.p.q.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.H.H.v.x.A.y.A.[+P.].].].].].].].].].].].].].].].].].].].].].].].].].].].)%r@r@r@r@r@r@r@r@r@r@r@r@r@r@M#!%~.~.~.~.~.~.~.~.~.~.~.~.~%r@r@r@r@r@r@r@r@r@{%]%,.,.,.,.,.,.,.,.e#r@r@r@r@r@r@r@^%-.-.-.-.-.-.P#r@r@r@r@r@O@/%(%_%w$_%(%r@r@r@r@:%G#G#G#%%r@V#o$`#<%[%}%|%1%2%3%4%5%6%D F ", ">+>+>+>+>+>+>+>+>+>+>+>+>+>+;+-+-+-+-+-+-+)+=+=+=+=+=+=+=+=+=+=+=+=+=+=+7+7+7+7+7+7+~+*+*+*+*+*+*+*+*+*+*+*+*+*+*+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+#+5+5+5+5+@+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++.+(@(@(@/+/+/+/+/+/+/+/+/+/+/+/+/+/+`.`.`.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.:+[+x.w.H.I.J.}+H+r.q.q.q.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.I.H+o.o.b.M.}.g.#.Q.Z ,.G ].].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@8%9%~.~.~.~.~.~.~.~.~.~.~.~.~%r@r@r@r@r@r@r@r@r@G$0%,.,.,.,.,.,.,.,.e#r@r@r@r@r@r@r@a%-.-.-.-.-.-.P#r@r@r@r@r@O@(%(%(%(%(%b%r@r@r@K@c%d%e%e%f%g%d$h%i%j%k%l%m%n%o%J J J J J J ", ">+-+-+-+-+-+-+)+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+!+7+7+7+7+7+~+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++++++.+(@(@^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+`.`.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.1+{.H k.-.|.c.c.J.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.q.o.H+H+H+H+H+p%q%q%q%r%s%t%u%].].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@v%w%~.~.~.~.~.~.~.~.~.~.~.~.~%r@r@r@r@r@r@r@r@r@x%y%,.,.,.,.,.,.,.,.z%r@r@r@r@r@r@r@A%B%H H H ~.>.P#r@r@r@r@r@O@(%(%(%(%(%b%r@r@r@K@C%e%-$F#+ @ ;%;%;%;%b D%E%F%G%6.6.6.6.6.5.", "=+=+=+=+=+=+=+=+=+=+=+=+!+7+7+7+7+7+~+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+++++++++++++++++++++++++++++++++.+(@(@(@/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ +`.`.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.8./././././././.H ~.~.~.g.|.|.5.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.H+H%I%I%J%K%K%k$r@r@r@r@r@r@L%].].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@M%^.~.~.~.~.~.~.~.~.~.~.~.~.~%r@r@r@r@r@r@r@r@r@N%O%,.,.,.,.,.,.,.P%Q%r@r@r@r@r@r@r@R%9 S%T%U%V%W%X%r@r@r@r@r@{%(%(%(%(%(%b%r@r@Y%M#(%Z%7$`% &.&+&@&#&$&%&*.h.&.g.l@I+1.3.7.1+", "!+7+7+7+7+7+~+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++++++++.+(@(@(@^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ +`.`.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.W.H+/./././././././././././././.^.~.~.~.g.|.|.|.n.s.s.s.s.s.s.s.s.s.s.s.&&*&*&=&-&;&>&r@r@r@r@r@r@r@r@r@r@r@r@,&].].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@'&~.~.~.~.~.~.~.~.~.~.~.~.)&!&r@r@r@r@r@r@r@r@r@~&,.,.,.,.,.,.,.,.,.{&r@r@r@r@r@r@r@O@J@<#V#]&G$(%^&r@r@r@r@O@/&Q$Q$Q$Q$(&b$G#0 a _&:&<&[&}&|&/./././././.E E E D C E /.E E /.", "*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+&+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++++++++++++.+(@(@(@/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ +`.`.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.X.Y.Y.Y.Y.Y.(+(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X._+W.:+V.V.H+/./././././././././././././././././././././.H ~.~.=.|.|.1&2&2&3&4&4&B$r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@5&].].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@6&~.~.~.~.~.~.~.~.~.~.~.~.'$r@r@r@r@r@r@r@r@r@r@7&,.,.,.,.,.,.,.,.,.8&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@;#9&;%;%;%;%0&;%;%;%@ a&g%b&c&d&e&P.i.i.i.i.Q.;.G /./././././.E E ", "*+*+*+*+*+&+&+&+&+&+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++++++++++++++.+(@(@(@^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ +`.`.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+#+;+0+e+l+p+w+M+w+/@;+$+(@Y.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.W.:+V.V.V.V.V.V.}+D /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@g&].].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@h&~.~.~.~.~.~.~.~.~.~.~.~.'$r@r@r@r@r@r@r@r@r@r@i&,.,.,.,.,.,.,.,.E$j&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@k&8 f$f$-$l&F#m&;%;%n&o&p&q&0.}+n.n.n.n.n.}+|+0.0.9.2+5.I+$.Q.Q.", "%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+++++++++++++++++++++++++++++++++++++++++++.+(@(@^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ +`.`.`.Y.Y.Y.Y.Y.Y.Y.^+'+i+m+k@{@&@6@9@b@e@b@u@2@-@+@W+S+O+r+n+B+c+>+&+]+`.X.X.X.X.X.X.X.X.X.W.W.V.V.V.V.V.V.V.V.V.V.r&|&/././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@s&].].].].].].].].].].].].].].].].].].t&u&r@r@r@r@r@r@r@r@r@r@r@r@r@r@v&~.~.~.~.~.~.~.~.~.~.~.~.'$r@r@r@r@r@r@r@r@r@r@w&x&y&!.H ,.,.,.,.z&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@Y%A&/%Z%G#B&C&D&E&F&G&H&I&J&K&@.d.d.1.5.6.0.n.n.n.n.n.n.n.n.}+}+L.b.a.", "%+%+%+%+%+%+%+%+%+%+%+%+{+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++++++++++++++++++.+(@(@(@/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ +`.`.Z.Y.Y.Y.Y.]+f+z+z+v+*@u@9@0@w@A@L&L&L&L&L&L&L&L&A@c@6@t@&@ @~@Q+K+q+m+i+f+b+8+-+~+$+++`.(+X.W.:+V.V.V.V.V.V.V.V.V.V.V.V.V.r&|&/././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@M&].].].].].].].].].].].].].].].].].].W$r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@N&~.~.~.~.~.~.~.~.~.~.~.~.'$r@r@r@r@r@r@r@r@r@r@O&% P&Q&R&S&T&U&V&W&r@r@r@r@r@r@r@X&Y&Y&Y&Y&<$r@K@Z&P$0&`& *.*+*@*#*].].].].].].].^.^.^.F /.F G ].H ~.R.` j.%.f.|.2.4.2+9.K.K.", "%+%+%+{+$+$+$+$+5+5+5+5+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++++++++++++++++++++.+.+.+.+^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ + + +Z.Y.Y.*+A+z+z+P+7@9@9@a@z@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&f@9@3@;@#@Y+}@O+r+o+l+g+c+0+'+-+~+%+5+++/+Y.W.V.<+G.G.<+V.V.V.V.V.V.V.V.J././././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@V#$*].].].].].].].].].].].].].].].].].].W$r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@%*~.~.~.~.~.~.~.~.~.~.~.~.&*r@r@r@r@r@r@r@r@r@r@O@o$**L$(&=*-*<%f%C%r@r@r@r@r@r@r@O&;%;%;%;%-%;*>*-%m&e$F#d%0&d%;*,*'*)*!*R.].].].].].].].].].G F F F F /./././.F ^.G k.k.'.>.", "5+5+5+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++++++++++++++++++++++++.+.+.+(@^+^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ + +Z.*+k+l+k+]@h@u@u@c@B@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&A@c@7@j@&@ @V+Q+K+q+m+i+f+b+8+>+!+&+#+]+.+ +Y.X.W.<+G.E.[+[+C.D.E.<+V.V.p.G /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@o$~*].].].].].].].].].].].].].].].].].].W$r@r@r@r@r@r@r@r@r@r@r@r@r@r@^&{*~.~.~.~.~.~.~.~.~.~.~.~.]*r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@r@O@;#^&;#r@r@r@r@r@r@r@. ;%;%;%;%;%;%;%;%;%;%;%;%n&^*/*(*_*K.n.|+a.0.7.3.e.#.j.Q.Z ,.k.].].].G G ^.F F F /././././.", "@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+@+]+]+]+++++++++++++++++++++++++++++++++++++++++++++++++++.+.+.+(@^+^+^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ + + +Z.Z.Z.Y.Y.I.-.p.A+~@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&f@9@2@;@#@X+S+O+r+o+A+g+c+E+'+)+~+{+@+.+/+Z.(+X.:+<+:*<*[*}*|*|*1*V.V.H+F /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@x%2*].].].].].].].].].].].].].].].].].].W$r@r@r@r@r@r@r@r@r@r@r@r@r@r@3*4*~.~.~.~.~.~.~.~.~.~.~.~.]*r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@V#v%5*5*%%6*6*6*7*8*;%9*0*a*b*c*}+H+H+H+H+H+H+H+H+H+H+H+J.}+|+0.8.4.M.d.O.+.*.*.>.R.k.].G F F ", "@+@+@+@+@+@+@+@+@+]+]+]+]+++++++++++++++++++++++++++++++++++++++++++++++++++.+.+.+.+^+^+^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ + + +`.Z.Z.Y.Y.Y.Y.Y.Y.Y.Y.t.E J J H J+p.k+~@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&z@b@6@t@'@)@~@]@K+q+m+B+e+b+G+;+!+&+#+]+d*e*f*g*h*h*B$r@r@r@r@r@i*G.E.L.D /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@`#j*].].].].].].].].].].].].].].].].].].W$r@r@r@r@r@r@r@r@r@r@r@r@r@r@=$k*~.~.~.~.~.~.~.~.~.~.~.~.]*r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@V#Y%8%`#:%Q$l*m*n*S@o*p*q*r*H$s*$.|.|.3+8.n.H+H+H+H+H+H+H+H+H+H+H+H+J.n.n.n.n.}+}+|+|+a.1+2+M.2.O.h.", "@+]+]+]+]+++++++++++++++++++++++++++++++++++++++++++++++++++++++.+.+.+(@^+^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ + + +Z.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.y.F J J J J J J H @.q.l+c@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&B@e@u@D@=@+@W+{@N+w+k@A+/@t*u*v*w*x*y*y*z*r@r@r@r@r@r@r@r@r@r@r@A*E.E.L.D /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@v%B*].].].].].].].].].].].].].].].].].].W$r@r@r@r@r@r@r@r@r@r@r@r@r@r@(%C*~.~.~.~.~.~.~.~.~.~.~.~.]*r@r@r@r@r@r@r@r@r@D**%<$<$<$,$r@r@r@r@r@6#:%j%E*F*G*G*H*I*J*~.{.{.k.k.k.].].].].].].k.~.,.R.=.#.l@|.2.5.a.H+J.H+H+H+H+J.n.n.n.n.n.n.n.n.n.n.n.}+K.", "++++++++++++++++++++++++++++++++++++++++++++++++++.+.+.+(@^+^+^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ + + +Z.Z.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.E.].J J J J J J J J J J j.#.a+z+b@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&C@0@4@,@#@Z+K*L*M*N*O*P*Q*r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@A*E.E.H+G /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@R*S*].].].].].].].].].].].].].].].].].].T*r@r@r@r@r@r@r@r@r@r@r@r@r@r@Z%U*V*W*X*J*H ~.~.~.~.~.~.Y*Z*r@r@r@r@r@r@r@r@r@>$;%;%;%;%@ `*`*`* =C%.=M$+=@=#=$=,&%=&=*===-=~.~.~.~.{.{.H k.k.].].].].].].].].].k.{.).R.;.Q.#.d.1.3.7.|+K.}+n.n.n.n.n.n.n.n.n.", "++++++++++++++++++++++++++++++++++++++.+.+.+^+^+^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ + +`.Z.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+~.J J J J J J J J J J J J J J j.#.a+m+b@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&;=>=,='=)=!=~=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@{=E.E.p.H /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@x$]=].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@M#`*^=-%/=(=_=:=<=[=5%}=E |=r@r@r@r@r@r@r@r@r@r@1=;%;%;%;%;%;%;%;%;%;%;%;%-%m&8*e$=%=%2=3=4=5=` >.'.~.~.~.~.~.~.{.{.H k.k.].].].].].].].].].].].].k.H ~.R.;.*.J+g.}.2.5.0.a.}+n.", "++++++++++++++++++++++++.+.+.+(@^+^+^+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+/+ + + +Z.Z.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+(+X.X.>.J J J J J J J J J J J J J J J J J J +.$.a+n+b@L&L&L&L&L&L&L&6=7=7=7=8=9=9=0=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@a=E.E.I.k./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@b=c=].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@J@L$8%x$=*d=e=f=g=O$h=i=2 j=r@r@r@r@r@r@r@r@r@r@k=;%;%;%;%;%;%;%;%;%;%;%;%;%;%9*l=m=n=o=I.q.I.o.K.8.3.e.&.j.j.-.R.!.~.~.~.{.{.{.k.k.k.].].].].].].].].].].].].].].k.{.~.).-.` j.", "++++++++++.+.+.+.+^+^+^+/+/+/+/+/+/+/+/+/+/+/+/+/+ +5+/+/+/+/+/+/+/+/+/+/+/+/+ + + +`.Z.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.J+J J J J J J J J J J J J J J J J J J J J J J +.q.k@p=q=r=s=s=t=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@a=E.E.}+F /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@X&C ].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@V#V#{%]&x%Y&u=G#r@r@r@r@r@r@r@r@r@V#c$R%/&. 8$8$O$;%;%;%;%;%# v=w=x=M.o.s.s.s.s.s.s.s.s.r.p.J.}+K.9.5.1.1.O.h.+.=.>.R.!.~.{.{.k.k.k.].].].].].].].].].].].].].].].].", ".+.+(@^+^+/+/+/+/+/+/+/+/+/+/+/+/+ +$+9+j+j+K+*@7@6@u@^@>+/+/+/+/+/+ + + +Z.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+(+X.X.X.X.X.X.X.X.X.X.X.P.J J J J J J J J J J J J J J J J J J J J J J J J J y=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@a=E.E.}+/./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@z=/.].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@O@J@;#r@r@r@r@r@r@O@Y%8%`#(%(%(%(%(%d=A=-$#$B=C=D=E=F=K.s.s.s.s.s.s.s.s.s.s.s.s.s.r.o.H+H+H+H+H+J.n.|+1+2+3.|.l@h...=.-.'.!.{.k.k.k.].].].].].].].].].].].", "/+/+/+/+/+/+/+/+/+ +5+=+a+h+r+W+,@6@9@w@B@L&L&L&L&L&L&L&g@Y+9+`.Z.Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.1.J J J J J J J J J J J J J J J J J J J J J J J J J y=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@G=E.E.n.F /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@H=].].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@_%I=d=r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@A#Z%J=K=K=K=L=[&M=N=O=P=Q=R=k.~.~.~.).;.Z +.l@M.2+|+p.s.s.s.s.s.s.s.s.r.p.H+H+H+H+H+H+H+H+H+J.H+J.n.|+0.2+3.}.l@h.J+*.-.R.!.H k.].].].].].].", "/+/+++%+-+G+f+q+R++@1@9@f@B@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&w@.@9+Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.6.J J J J J J J J J J J J J J J J J J J J J J J J J y=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@S=E.E.r.{./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@T=].].].].].].].].].].].].].].].].].].].7%r@r@r@r@r@r@r@r@r@r@r@r@r@r@6 ;%^=N$N$*%h%(&d=3*r@r@r@r@f#=*U=V=W=X=Y=,.,.,.,.,.'.).!.!.~.~.~.~.~.~.~.~.~.~.~.~.).>.Z .h.|.6.b.H+s.s.s.s.r.o.H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+J.n.}+b.a.2+4.c.e.P.%.i.Z >.!.~.", "j+p+L+Q+W++@=@t@4@9@c@z@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&w@%@D+Z.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.L.(.J J J J J J J J J J J J J J J J J J J J J J J J y=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@S=E.E.r.~./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Z=].].].].].].].].].].].].].].].].].].`=g#r@r@r@r@r@r@r@r@r@r@r@r@r@O@9 ;%;%;%;%;%;%;%^=;* = -6 .-<$G#y$+-C#U$@-#-$-%-~.,.,.,.,.,.'.).!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.!.R.=.j.$.d.2.0.K.}+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+n.}+b.|+2+4.1.}.", "M+P+}@!@`+#@-@j@i@9@d@B@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&y@|@i+`.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.Y.(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.J.C J J J J J J J J J J J J J J J J J J J J J J J J y=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@S=E.E.o.]./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@&-].].].].].].].].].].].].].].].].].].*-r@r@r@r@r@r@r@r@r@r@r@r@r@r@V#=-;%;%;%;%;%;%;%;%;%;%;%-%@ + --7*+=v$.-I=Z&Y&;->-,-'-{.,.,.,.,.,.,.'.).!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.!.,.-. .J+%.|.2.1+L.n.H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+J.}+", "M+]@}@X+)@#@-@j@5@v@w@B@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&5@k+/+Y.Y.Y.Y.Y.(+(+(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.H./.J J J J J J J J J J J J J J J J J J J J J J J J y=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@)-B.E.H+G /././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@!-~-{-]-^-^.].].].].].].].].].].].].].*-r@r@r@r@r@r@r@r@r@r@r@r@r@r@Y%/-;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%-%@ (-0&_-:-<-E%e&` >.,.,.,.,.,.,.,.,.,.,.'.).!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.!.).>.` i.O.l@1.2+a.|+n.H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+H+", "M+R+}@X+.@%@>@D@h@0@w@B@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&5@l+++(+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X._+_+:+w.^.J J J J J J J J J J J J J J J J J J J J J J J J [-}-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@U#y.E.o.]./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@h%9*|-1-2-3-4-5-6--=E ].].].].].].].].*-r@r@r@r@r@r@r@r@r@r@r@r@r@r@]&=%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%7-| 8-9-0-o.r.I.K.1+M.I+f.#.` -.;.,.,.,.,.,.,.,.,.'.).!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.!.).R.*.j.$.e.c.2+1+L.}+K.H+H+H+H+H+H+H+H+H+", "N+R+U+X+.@'@,@2@h@0@w@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&7@x+6+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X._+:+:+V.V.V.G.k.J J J J J J J J J J J J J J J J J J J J J J J J J a-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@U#x.C.s.)./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@(%b-e=c-g=+ ;%d-< e-f-g-h-i-j-(.G G ^.*-r@r@r@r@r@r@r@r@r@r@r@r@r@r@f#X&y$8$;$;*;%;%;%;%;%;%;%;%;%k-2 l-m-n-n.s.H.H.H.t.s.s.r.I.o.K.1+6.c.g.%... .>.R.R.,.,.,.,.,.'.).!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.!.'.'.` Q.J+P.}.2.7.0.b.K.n.H+H+", "O+R+~@Y+.@'@,@2@h@0@x@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&9@M+*+X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X._+W.:+V.V.V.V.V.V.V.V.).J J J J J J J J J J J J J J J J J J J J J J J J J a-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@U#u.B.s.'./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@;#V#L$A&(%I=o-j%d$p-b&7-q-: r-s-t-u-v-r@r@r@r@r@r@r@r@r@r@r@O@A#A&=$(%(%(%(%:%(&w-:$p-0&;%x-a y-z-A-L.q.H.H.H.H.H.H.H.s.s.s.s.s.s.r.s.I.H+|+0.5.3+d.%.J+*.-.>.R.,.,.,.,.'.!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.).,.>.=. .i.$.f.I+3.", "P+R+~@Z+.@'@,@2@h@0@C@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&B-C-D-E-X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X._+_+:+V.V.V.V.V.V.V.V.V.V.V.V. .J J J J J J J J J J J J J J J J J J J J J J J J J a-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@t$r.B.p.~./././././././././././././././././././././././././././.f&r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@D*/&G$O@r@r@V#K@b%x%**5*>$1=F-6*G-h=9*q-r@r@r@r@r@r@r@r@r@V#A&=$(%(%(%(%(%(%R%.-+-j%H-I-J-K-L-M-4.J.t.H.H.H.H.H.H.H.H.H.t.s.s.s.s.s.s.s.s.s.s.r.r.q.H+K.a.3.1.N.%.+.*.*.;.,.R.,.'.'.!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.!.).,.R.", "P+R+~@`+.@'@,@2@h@0@C@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&N-O-O-P-Q-Q-R-r@5*S-X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X._+:+:+V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.$.J J J J J J J J J J J J J J J J J J J J J J J J J a-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@T-I.B.H+k./././././././././././././././././././././././././././.U-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@f%;%E#p-9 d=u$^&r@r@J@K@K@f#{%/%V-5*+-V-r@r@r@r@r@r@V#Y%`#<$v$W-W-X-Y-Z-`- ;.;+;h#y&).,.,.,.,.,.Z +.g.M.L.I.s.H.H.H.H.H.H.t.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.q.I.I.K.a.4.1.N.g.h...*.-.;.R.'.'.!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.", "P+R+~@`+.@'@,@2@h@0@C@L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&N-@;@;#;Q-Q-$;r@r@r@r@r@r@r@J@%;X.X.X.X.X.X.X.X.X.X.X.X.X._+W.:+V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.f.J J J J J J J J J J J J J J J J J J J J J J J J J a-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@T-I.B.o.H /././././././././././././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@+=;%;%;%;%@ a& -6 *;=;o$K@r@r@r@O@K@f#O@r@r@r@-;;;>;,;';);!;~;>.R.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.-. .#.I+9.}+p.H.H.H.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.q.I.J.|+b.7.2.}.f.P.J+..-.>.R.,.!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.", "P+R+~@`+.@'@,@2@h@0@C@L&L&L&L&L&L&L&L&L&L&L&L&L&L&{;];];^;/;/;/;(;r@r@r@r@r@r@r@r@r@r@r@r@r@r@_;X.X.X.X.X.X.X.X.X._+_+:+:+V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.3+J J J J J J J J J J J J J J J J J J J J J J J J J a-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@T-I.B.t.,./././././././././././././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@g=;%;%;%;%;%;%;%@ + `*&%:;=*w${%^&K@r@r@M#<;[;};>.;.-.-.-.-.-.-.-.-.;.>.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.>.Z j.g.4.L.H+I.r.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.I.q.I.}+b.8.5.3+g.P.@. . .>.>.'.).!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.", "P+R+~@`+.@'@,@2@h@0@x@L&L&L&L&L&L&L&L&N-|;|;|;1;2;R-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@3;X.X.X.X.X.X._+W.:+V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.2+J J J J J J J J J J J J J J J J J J J J J J J J J a-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@4;}+B.H.R./././././././././././././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@<#9&;%;%;%;%;%;%;%;%;%;%@ 0&g%7*j%P$X&v%8%R*.-v$5;6;7;8;9;0;a;>.-.-.-.-.-.-.;.>.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.>.Z .h.N.8.}+H+p.r.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.r.q.o.n.n.0.0.M.I+d.N.%.J+` .>.!.!.~.~.~.~.~.~.~.~.~.~.~.~.~.~.", "P+R+~@Z+.@'@,@2@h@0@w@L&L&b;c;c;d;e;e;(;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@=&X.X._+W.:+V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.b.(.J J J J J J J J J J J J J J J J J J J J J J J J f;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@g;L.B.t.'./././././././././././././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Y%h;;%;%;%;%;%;%;%;%;%;%;%;%;%-%8*i;O$f$i%j;k;D*Z%V-b=j;O&8$l;m;n;o;'.-.-.-.-.-.-.;.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.-...i.N.2.1+K.o.q.r.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.s.r.r.o.}+|+b.1+M.|.c.g.&.i...=.,.,.,.'.~.~.~.~.~.~.~.~.", "O+R+~@X+.@'@p;q;r;s;t;u;u;v;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@w;G.:+V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.H+D J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@g;L.B.p.~./././././././././././././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@G$`*;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%-%-%m&h=N$;$j%-**;5*c$R*k&`*y;z;A;,.-.-.-.-.-.-.-.-.;.;.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.;. .@.O.c.4.b.H+I.r.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.s.q.H+}+|+0.8.5.2.|.O.f.h.Q.Z ;.R.,.!.~.~.~.", "B;C;D;E;F;G;H;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@I;J;V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.s./.J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@g;L.B.p.~./././././././././././././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@A&>*;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%-%@ + E#K;G-L;M;N;O;P;;.-.-.-.-.-.-.-.-.-.-.-.-.-.;.;.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.>.=.i.%.e.3.6.L.o.q.p.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.s.q.I.n.}+K.1+0.4.3.}.I+g.&.Q.j.Z -.", "Q;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@.-R;V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.y.G J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@.-S;B.t.,./././././././././././././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@L$b&;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%# 7-T;z;9-U;4.7.|.f.#.` Z -.-.-.-.-.-.-.-.-.-.-.-.-.-.;.>.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.>.Z ..+.P.c.3+a.L.J.q.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.r.r.o.H+n.}+L.0.2+7.3.c.l@f.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@^&V;V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.F.H J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Y&W;B.w.-./././././.E E /./././././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@3*;$^=;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%% c&X;Y;Z;`;K.s.H.s.q.L.b.6.1.d.$.j. .=.=.-.-.-.-.-.-.-.-.-.-.-.-.;.>.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.>.-.=.j.$.l@1.6.0.K.o.q.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.s.r.p.H+H+H+n.n.n.L.a.0.9.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@ >V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.<+G.G.,.J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Y&W;B.y.=./././././.C .>+>(.D /././././././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@Z%I=.-8$0 ;%;%;%;%;%;%;%;%;%;%;%$ 4 @>%-#>$>I.t.H.H.H.H.H.H.t.p.H+L.8.3.I+O.$.j.` =.=.=.-.-.-.-.-.-.-.-.-.;.;.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.;.` Q.@.O.1.3.8.b.}+p.r.q.s.s.s.s.s.s.s.s.s.s.s.s.s.s.p.o.H+H+H+H+J.J.n.J.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@%>V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.<+F.G.E.E.E.j.J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Y&W;B.B.o.}+&.=././.&>' q *>=>D (.E /./././././././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@<#3*=$(%(%(%(%->o-8$g%;%;%;%;%;%% 4 ;>>>A-2.H+s.H.H.H.H.H.H.H.H.H.H.H.H.t.r.q.n.b.5.1.e.P.i.j.Z Z =.-.-.-.-.-.-.-.-.-.;.;.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.-.=...+.h.f.3+6.7.L.I.I.r.r.s.s.s.s.s.s.s.s.s.s.r.o.H+H+H+H+H+H+H+", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@,>V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.F.G.E.E.E.E.E.E.#.J J J J J J J J J J J J J J J J J J J J J J J J '>Q#r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@*;)>B.B.B.B.B.w.L.N.!>1 x-< z ~>{>&>]>.>^>D /./././././././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@<#3*=$(%(%(%(%(%(%(%(%(%_%d=k&*%7-/>(>_>:>4.I.u.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.p.}+a.5.c.N.g.%.J+ .Z -.=.-.-.-.-.-.-.-.-.;.>.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.>.=. .+.h.O.}.3+6.b.K.J.p.s.r.s.s.s.s.s.s.r.p.H+H+H+H+H+H+", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@<>F.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.<+G.G.E.E.E.E.E.E.E.E.d.J J J J J J J J J J J J J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@R%}>}+|>1>2>3>4>5>6>7># 7*g$`*F#/>8>9>q 0>a>b>c>D E /./././././.&;r@r@r@r@r@r@r@r@r@r@r@r@r@O@<#3*=$(%(%(%(%(%(%_%R%<$d>Q$e>f>g>h>i>j>k>}.0.p.x.x.v.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.s.I.J.|+9.4.c.O.&.@.+.-.=.=.-.-.-.-.-.-.-.-.;.>.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.R.>.;.` +.@.P.g.I+3.L.0.|+I.I.s.s.s.s.s.p.o.H+H+H+H+", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@l>m>V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.<+G.G.E.E.E.E.E.E.E.E.E.E.E.1.J J J J J J J J J J J J J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@`#n>o>p>q>c&# ;%;%;%;%-%>*d$7 . A=h;0&r>s>t>u>v>w>x>y>z>D E /./.&;r@r@r@r@r@r@r@r@r@r@O@<#3*=$(%x$R%o-Q$A>B>C>D>E>F><-G>H>I>-.-.-.-.-.-.*.$.1.K.t.u.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.s.q.o.o.0.7.2.f.%.#... .=.-.-.-.-.-.-.-.-.;.;.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.>.;.;. .+.%.O.d.3+6.1+|+|+q.q.q.r.o.H+H+H+", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@%%R;V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.V.<+F.G.E.E.E.E.E.E.E.E.E.E.E.E.E.E.8.I J J J J J J J J J J J J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@M#;*;%;%;%;%;%;%;%;%;%;%-%(-G-c-J>>$7$<%C%c%--9*5 K>L>M>N>y>O>E P>r@r@r@r@r@r@r@<#X&Q>R>S>:&T>U>V>W>X>Y>Z>;.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.=.Q.P.3.L.r.t.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.s.I.}+0.2+3.c.N.P.J++.` .-.-.-.-.-.-.-.;.>.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.>.=...J+h.g.l@I+4.7.9.J.n.o.H+H+", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@A&`>V.V.V.V.V.V.V.V.V.V.V.V.V.V.<+F.G.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.a.(.J J J J J J J J J J J J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@]&G-;%;%;%;%;%;%;%;%;%;%;%;%-%a&c%e==*D*R*<$v$ ,.=E#-%d-| < .,+,@,r@r@r@r@0##,$,%,&,-........... .Z -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.*.+.O.4.}+q.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.q.I.H+b.7.M.c.d.g.h.J+ .=.*.=.-.-.-.-.-.;.>.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.-.Z ` ..@.&.O.N.I+5.2+b.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@*,V.V.V.V.V.V.V.V.V.V.V.V.<+G.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.o./.J J J J J J J J J J J J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@{%/-;%;%;%;%;%;%;%;%;%;%;%;%;%-%8*=%:$i%=,u$(%c$b$G#-,@=f$7*i;b J>r@0#;,>,,,........................` =.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.` #.}.4.|+p.s.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.r.q.H+b.9.6.4.d.P.g.J+i...Z =.=.-.-.-.;.;.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.R.>.;.....+.#.g.N.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@',V.V.V.V.V.V.V.V.V.<+G.G.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.r.F J J J J J J J J J J J J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@{%/-;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%m&e$N$f%h%X&R*Z%(%(%_$P$O&e=),>$!,~,` ...............................Z -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.Z ..$.I+6.J.q.s.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.t.p.I.n.1+0.M.3+c.O.$.@. . .Z Z -.-.-.;.;.R.{,],],],],],],],],],],],^,,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.>.Z Z *.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@/,V.V.V.V.V.V.<+F.G.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.A.].J J J J J J J J J J J J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@{%/-;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%-%m&g% =f%v$=*w$(%(%(%v%:%j;w-N$(,_,:,<,R.-...........................` =.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.Z j.O.|.2+K.p.t.t.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.t.s.r.I.L.b.1+6.1.I+l@%.#.Q... .=.[,},|,1,2,2,2,2,2,2,2,2,2,2,2,3,4,5,6,,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.R.R.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@7,<+V.V.V.F.G.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.~.J J J J J J J J J J J J J J J J J J J J J J J J 8,r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@<#h;;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%+ ;*K;8$k=k&j;X&=;/%**=$`#(%(%c$:%%%=-7-9,0,a,Y>b,........................` -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.=.` J+c,d,e,f,g,h,i,j,k,H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.r.r.I.J.K.1+7.6.3.d.l@@.l,m,n,r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@o,p,q,,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@8&[+<+G.G.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.-.J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@M$;%;%;%;%;%;%;%;%;%;%;%;%(-/-@==,u$x%<#r@r@r@r@r@r@r@r@J@f#^&]&**`#(%(%:%.-r,*%# s,t,,.Z ..u,v,w,x,x,x,x,x,x,y,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,z,A,B,C,-.D,E,F,G,r@r@r@r@r@H,I,J,K,H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.s.p.I.I.K.b.2+5.3.L,<@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@M,N,,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@k=O,E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.i.J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@M$;%;%;%;%;%;%;%;%;%-%0 P,->o$r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@V#6#=$Z%x$=*7 ^=Q,{-'...R,S,T,r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@U,V,W,V,J@r@r@r@r@r@r@r@r@r@X,Y,Z,`,H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.t.I.p.H+|+ '.'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@+'],,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@k;@'E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.&.J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@M$;%;%;%;%;%;%;%@ *%o-A&O@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@8% -#'$'%'&'....*'='U,r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@-';'>'t.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.t.s.,'U,r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@'',.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@)'E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.I+J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@),;%;%;%;%;%;%;*w-6#r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@=;!'~' .......{']'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@^'/'0.K.I.s.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.('r@r@r@r@r@_'R-R-R-R-R-R-R-R-R-:'r@r@r@r@r@<',.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@['E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.4.J J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@c%;%;%;%;%^=&%=;O@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@U,}'|'....E%1'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@2'3'1.M.a.n.q.s.s.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.4'r@r@r@r@v;5'6'6'6'6'6'6'6'6'6'^;r@r@r@r@r@7'>.-.R.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@8'E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.1+(.J J J J J J J J J J J J J J J J J J J J J J J x;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@c%;%;%;%a&u=V#r@r@r@r@r@r@r@r@r@r@9'0'a'b'c'd'd'd'd'e'f'g'h'(;r@r@r@r@r@r@r@r@r@i'j'k'l'm'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@n'o'p'q'r's'_'r@r@r@r@r@J@t'J+%.N.3+7.0.|+p.r.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.H.u'v'r@r@r@r@w'x'L&L&L&L&L&L&L&L&y'z'r@r@r@r@J@A'@.Q.` >.,.-.;.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@B'E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.K.D J J J J J J J J J J J J J J J J J J J J J J J C'A#r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@9&;%-%E#/&J@r@r@r@r@r@r@r@r@D'E'F'G'H'I'L&L&L&L&L&L&L&L&J'K'L'M'N'v;r@r@r@r@r@r@r@t%O'P'K@r@r@r@r@Q'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'R'S'r@r@r@r@r@r@Q'T'U'L&L&L&I'b;V'r@r@r@r@r@W'X'` ..#.&.f.1.6.0.}+o.s.t.H.H.H.H.H.H.H.H.H.H.H.H.H.H.Y'Z'r@r@r@r@`' )L&L&L&L&L&L&L&L&.)+)r@r@r@r@]'@)d.g.h.J+J+Q. .;.Z -.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@#)B.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.p./.J J J J J J J J J J J J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@R%r,=-R*r@r@r@r@r@r@r@(;V'P-$)%)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&&)*)=)-)v;r@r@r@r@r@r@;)>)r@r@r@r@r@z'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&b;r@r@r@r@r@,)')L&L&L&L&L&L&L&))h'r@r@r@r@U,!)-.-.` *.Q.$.O.d.3+7.9.n.p.q.H.H.H.H.H.H.H.H.H.H.H.H.~){)r@r@r@r@])^)L&L&L&L&L&L&L&L&/)()r@r@r@r@_):)6.2.|.d.}.g.h.@.+.j.*.>.Z >.,.,.,.,.,.,.,.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@<)[)E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.x.-.I J J J J J J J J J I J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@J@V#=$/%V#r@r@r@r@r@r@r@})S'|)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&y'1)2)`'r@r@r@r@r@r@r@r@r@r@r@r@3)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&F'r@r@r@r@v;P-L&L&L&L&L&L&L&L&&)4)r@r@r@r@r@5)-.-.-.-.-.` ` j.&.P.}.3+2+|+|+o.q.t.H.H.H.H.H.H.H.H.6)r@r@r@r@r@7)L&L&L&L&L&L&L&L&L&8)9)r@r@r@r@0)|+1+8.7.5.3.1.|.I+e.P.h.Q.i...*.R.;.-.R.,.R.,.,.,.,.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@X&a)E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.I.j.^.I J J J J J J J (.J J J J J J J J J J J J J [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@J@V#G$**(%`#A#r@r@r@r@r@r@$;b)c)y'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&d)e)R-r@r@r@r@r@r@r@r@r@r@9)c;L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&f)r@r@r@r@g)h)L&L&L&L&L&L&L&L&L&i)r@r@r@r@r@j)-.-.-.-.-.-.-.Z ..j.@.g.N.1.2.7.b.}+r.t.t.H.H.H.H.H.k)r@r@r@r@r@l)L&L&L&L&L&L&L&L&L&h)r@r@r@r@r@m)I.n.K.b.0.1+2+7.5.6.6.I+e.d.f.h.i.i.*.*.Z -.=.R.>.R.,.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@;#n)E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.v.d.j.'.D J J J J J J J J J J J J J J J J J J J 4+[>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@J@f#G$**(%(%(%=;b%r@r@r@r@r@r@o)p)q)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&y'G'r)r@r@r@r@r@r@r@r@r@s)t)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&/)u)r@r@r@r@,)|)L&L&L&L&L&L&L&L&L&v)r@r@r@r@r@w)x)x)x)x)x)x)x)x)x)y)9-z)A)B)C)D)E)F)G)H)I)J)K)L)L)L)M)r@r@r@r@r@N)L&L&L&L&L&L&L&L&L&O)r@r@r@r@r@P)p.I.p.I.n.J.K.L.0.0.8.2+5.3.c.c.N.}.&.%.$.+.j.Q.Z -.-.,.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Q)E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.x.9.$.j. .!.D J J J J J J J J J J J J J J 4+4+L M [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@J@f#G$**(%(%(%(%(%(%A&O@r@r@r@r@r@_'R)d)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&))r)r@r@r@r@r@r@r@r@S)T)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&U)s=r@r@r@r@D'V)L&L&L&L&L&L&L&L&L&V)r@r@r@r@r@0#w)w)w)w)w)w)w)w)w)w)w)W)W)X)X)Y)Y)Z)`)`) !.!+!@!@!#!0)r@r@r@r@$;$!L&L&L&L&L&L&L&L&L&4)r@r@r@r@O@%!r.q.p.I.p.p.H+H+}+K.0.b.a.a.6.5.M.4.3+|.f.f.&.h.i.J+i.=.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@&!E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.C.[+B.z.H.s.|+*!=!-!-.Q. .!.D J J J J J J J J J 4+4+L M M M M [>r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@J@f#G$**(%(%(%(%(%(%(%(%8%;#r@r@r@r@r@o)r'I'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&;!>!r@r@r@r@r@r@r@,!&)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&6'`'r@r@r@r@w''!L&L&L&L&L&L&L&L&L&)!r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@o)))L&L&L&L&L&L&L&L&I'!!r@r@r@r@*#~!{!]!]!K)]!K)^!/!I)/!H#H#H#H)(!0.8.2+7.6.M.1.3+f.f.g.O.&.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@_!E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.[+y.w.r.}+:!r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@J@f#G$**(%(%(%(%(%(%(%(%c$R%,$L$r@r@r@r@r@$;5!d)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&y'6!o)r@r@r@r@r@r@7!L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&8!r@r@r@r@r@r@b)^)L&L&L&L&L&L&L&q)9!r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@_'T)L&L&L&L&L&L&L&L&/)0!r@r@r@r@a!b!c!d!d!d!d!d!e!d!e!e!e!f!f!f!g!h!i!1+0.1+7.2+6.2.2.1.|.c.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@j![+E.E.E.E.E.E.E.E.E.E.E.E.E.C.z.u.I.k!*$l!m!n!o!p!q!r!4 i=>%% ;%;%;%% h=N$d%p>] s!t!Z Q.-.^.J 4+L M M M M M M M M M M u!r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@;#A#**(%(%(%_%b=k;J>=,@=v!w!x!y!z!A!r@r@r@r@r@u)J'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&d)B!r@r@r@r@r@r@C!L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&3)r@r@r@r@r@r@D!E!^)L&L&L&L&L&F!P-(;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@G!L&L&L&L&L&L&L&L&L&q)0=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@H!I!K.L.a.0.9.0.2+6.5.2.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@J!K!E.E.E.E.E.D.A.w.p.L!M!N!O!D,P!Q!W%R!S!x-x-# ;%;%;%;%;%;%;%;%;%;%;%-%i;M$f$C%l&a T!U!O%>.Q.>.E L M M M M M M M M M M V!r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@;#A#=$5**;o-W!X!Y!Z!`! ~.~+~@~b, .` #~$~r@r@r@r@r@N'%~L&L&L&L&L&L&L&L&L&L&L&L&L&L&y'8)&~N-7=*~=~-~^)L&L&L&L&L&L&L&L&L&L&L&y'B-;~r@r@r@r@r@v;6!U)U)U)U)U)U)U)U)d)L&L&L&L&L&L&L&L&L&L&F!U)U)U)U)U)U)U)U)B!r@r@r@r@r@r@r@D!>~,~'~F!8)))o'(;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@)~L&L&L&L&L&L&L&L&L&!~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@l$~~H+K.}+n.L.0.0.9.9.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@%%L!{~]~^~/~(~_~:~<~[~d->%$ ;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%@ d%;$j%*;d>f=F#8>; }~#*'...>.D L M M M M M M M M V!r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@_%|~1~8,2~3~4~5~:>6~=. ...................7~8~r@r@r@r@(;9~y'L&L&L&L&L&L&L&L&L&L&L&L&U'K'0~7)o)r@r@r@r@h'a~b~c~L&L&L&L&L&L&L&L&d)*~9=r@r@r@r@r@r@(;()d~d~d~d~d~d~d~Q';!L&L&L&L&L&L&L&L&L&L&C!d~d~d~d~d~d~d~d~n'r@r@r@r@r@r@r@r@r@`'Q-e~7)`'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@f~L&L&L&L&L&L&L&L&L&g~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@h~i~I.p.H+o.n.}+b.b.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@6#j~k~q-;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%-%-%@ 0&K;c-Y&R*/&-*.=;%& l~6%k.*...!.J M M M M M M M V!r@r@r@r@r@r@r@r@r@r@r@r@m~n~o~p~=.Q.j.j.j.j.j.j.Q.....................k'q~r@r@r@r@r@r~s~L&L&L&L&L&L&L&L&L&L&L&L&J't~s)r@r@r@r@r@r@r@r@r@w'u~6'L&L&L&L&L&y'6=z'9'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@])%~L&L&L&L&L&L&L&L&L&&)M'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@v;v~w~})})n'9)r@r@r@r@r@r@r@r@r@r@r@r@r@v;x~L&L&L&L&L&L&L&L&L&P-r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@X,y~p.q.p.r.o.p.J.J.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@ =;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%-%-%-%@ m&m&m&^=^=^=e$G-[$k&:%Z%D*G#A=6*# z~A~0;!.` ` {.J M M M M M V!r@r@r@r@r@r@r@r@r@B~C~D~E~j.j.j.j.j.j.j.j.j.j.j.j.....................F~G~r@r@r@r@v;3)L&L&L&L&L&L&L&L&L&L&L&L&H~I~v;r@r@r@r@r@r@r@r@r@r@r@r@/;V)L&L&L&.)T'J~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@-)6=L&L&L&L&L&L&L&L&L&K~a'r@r@r@r@r@r@r@r@r@r@r@r@r@v;n'h'h'h'h'h'h'h'h'h'`'r@r@r@r@r@r@r@r@r@r@r@r@r@v;w~e;f~L~M~!~V)V)N~O-9~E's)r@r@r@r@r@r@r@r@r@r@0=M~L&L&L&L&L&L&L&L&U'O~r@r@r@r@r@r@r@w'h'h'h'h'h'h'h'h'h'h'h'h'g)r@r@r@r@r@P~s.r.q.s.I.q.q.I.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@+=;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%;%-%-%-%-%m&m&m&^=^=^=^=^=^=^=^=^=^=0&l& -k=I=V-(%D*v%5*j%i;2 ] Q~R~,. .` {.J M M M V!r@r@r@r@r@r@B~C~S~E~j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j...................T~M,r@r@r@r@()|)L&L&L&L&L&L&L&L&L&L&L&U~)~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@+)U~L&s~d'V~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@J~.)L&L&L&L&L&L&L&L&L&6=W~r@r@r@r@r@r@r@r@r@r@r@r@r@v~6! ) ) ) ) ) ) ) ) )o'r@r@r@r@r@r@r@r@r@r@r@v;()=)$)I'L&L&L&L&L&L&L&L&L&&)X~p)s)r@r@r@r@r@r@r@r@V~{;L&L&L&L&L&L&L&L&^)Y~r@r@r@r@r@r@$;Z~ ) ) ) ) ) ) ) ) ) ) )))#;r@r@r@r@r@`~s.s.s.s.r.r.s.r.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@i%;%;%;%;%;%;%;%;%;%;%-%-%-%-%m&m&m&^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=8*0&i;.=&%w-R%D*(%(%(%_$-*f$0&2 {.{}=Z Q.` {.L M V!r@r@r@+{C~@{E~j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q.................#{r@r@r@r@r@${y'L&L&L&L&L&L&L&L&L&L&.)p)v;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@(;S'%{a'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@&{L&L&L&L&L&L&L&L&L&L&K'9)r@r@r@r@r@r@r@r@r@r@r@r@r@})6'L&L&L&L&L&L&L&L&^)*{r@r@r@r@r@r@r@r@r@r@n'={6=L&L&L&L&L&L&L&L&L&L&L&L&L&L&y'!~e;r@r@r@r@r@r@r@}).)L&L&L&L&L&L&L&L&-{g)r@r@r@r@r@v;7!d)L&L&L&L&L&L&L&L&L&L&K~&{r@r@r@r@r@O@;{s.s.s.s.s.s.s.s.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@j;-%;%;%-%-%-%-%m&m&m&^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=0&i;p-+=b-=*>{Z%(%(%(%R*=*A= -0&R!M>,{).Z Q.>.D Z!'{){!{~{j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j...............E%{{r@r@r@r@$;]{L&L&L&L&L&L&L&L&L&L&L&M~g)r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@o)_'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@^{L&L&L&L&L&L&L&L&L&L&*~r@r@r@r@r@r@r@r@r@r@r@r@r@r@0'F!L&L&L&L&L&L&L&L&'~g'r@r@r@r@r@r@r@r@r@V'|;&)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&y'/{r@r@r@r@r@r@r@,!L&L&L&L&L&L&L&L&L&*)r@r@r@r@r@v;({K~L&L&L&L&L&L&L&L&L&L&K~&{r@r@r@r@r@r@K#_{s.s.s.s.s.s.s.s.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@,$8*m&m&^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=0&b& =-$k=j;c$Z%(%(%(%(%D*:%/&u=e%@ :{u>c=,.=.Q.<{~{j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q.............[{}{r@r@r@r@V'6=L&L&L&L&L&L&L&L&L&L&%))~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@v;$!L&L&L&L&L&L&L&L&L&L&9~r@r@r@r@r@r@r@r@r@r@r@r@r@r@|{L&L&L&L&L&L&L&L&L&6=9'r@r@r@r@r@r@r@r@r)$)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&%)a~r@r@r@r@r@r@r@7!L&L&L&L&L&L&L&L&L&b~r@r@r@r@v;1{2{L&L&L&L&L&L&L&L&L&L&K~o'r@r@r@r@r@r@X,3{s.s.s.s.s.s.s.s.s.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@=;h=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=8*+ h=`*),9 1=/&R*Z%(%(%(%(%(%D*:%I=+-),p>< 4{<,{.Z j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.............5{K@r@r@r@r@s'I'L&L&L&L&L&L&L&L&L&L&,~])r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@9'=~L&L&L&L&L&L&L&L&L&y'6{r@r@r@r@r@r@r@r@r@r@r@r@r@r@e'L&L&L&L&L&L&L&L&L&c)r@r@r@r@r@r@r@r@7{$)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&8{s=r@r@r@r@r@r@r@F'L&L&L&L&L&L&L&L&L&9{r@r@r@r@d~v)L&L&L&L&L&L&L&L&L&L&K~o'r@r@r@r@r@r@X,0{{!s.s.s.s.s.s.s.s.s.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@;#F#^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=(-a&`*),9 v$/&b=v%(%(%(%(%(%(%(%D*,$J>[$F#x-^ a{b{;...j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q...........c{r@r@r@r@r@d'L&L&L&L&L&L&L&L&L&L&L&d{r@r@r@r@r@r@r@r@r@9'w~w~w~w~w~w~w~w~w~w~w~w~w~w~w~w~w~w~w~])9)r@r@r@r@r@r@r@r@r@r@r@t=e{L&L&L&L&L&L&L&L&L&f{|{r@r@r@r@r@r@r@r@r@r@r@r@r@r@3)L&L&L&L&L&L&L&L&L&6!r@r@r@r@r@r@r@g)g{L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&U)v~r@r@r@r@r@r@9)h{L&L&L&L&L&L&L&L&U'i{r@r@r@R- )L&L&L&L&L&L&L&L&L&L&K~o'r@r@r@r@r@r@X,j{k{q.r.s.s.s.s.s.s.s.s.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@G-^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=0&=%`* =e%e=w-b=D*(%(%(%(%(%(%(%(%(%u$I=Q$f%G-b , N>J*R. .j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j...........q~r@r@r@r@r@e)L&L&L&L&L&L&L&L&L&L&y')~r@r@r@r@r@r@r@r@r@l{t)t)t)t)t)t)t)t)t)t)t)t)t)t)t)t)t)t)t)m{n{r@r@r@r@r@r@r@r@r@r@r@n{f{L&L&L&L&L&L&L&L&L&o{0'r@r@r@r@r@r@r@r@r@r@r@r@r@0=c;L&L&L&L&L&L&L&L&L&c'r@r@r@r@r@r@v;7!&)L&L&L&L&L&L&L&L&L&L&L&L&L&U'L&L&L&L&L&L&%~r@r@r@r@r@r@r@9'&~L&L&L&L&L&L&L&L&d)1{r@r@w~))L&L&L&L&L&L&L&L&L&L&K~u~r@r@r@r@r@r@X,p{q{n.H+q.r.s.r.s.s.s.s.s.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@-$^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=8*(-h=>*/--$6 +-I=:%Z%(%(%(%(%(%(%(%(%(%(%D*X&%% -F#s>r{s{^-*...j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q.........t{r@r@r@r@r@i)L&L&L&L&L&L&L&L&L&L&K~Y~r@r@r@r@r@r@r@r@9'N~L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&o{9=r@r@r@r@r@r@r@r@r@r@r@u{L&L&L&L&L&L&L&L&L&L&1)`'r@r@r@r@r@r@r@r@r@r@r@r@r@w~X~L&L&L&L&L&L&L&L&.)&{r@r@r@r@r@r@>!1)L&L&L&L&L&L&L&L&L&L&L&q)O-${M'v{w{x{I'L&L&e)r@r@r@r@r@r@r@])8{L&L&L&L&L&L&L&L&c~])r@V~*~L&L&L&L&L&L&L&L&L&L&K~u~r@r@r@r@r@r@J@y{z{7.9.0.|+K.J.r.p.p.s.s.s.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@A{^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=+ d%;*N$.=d$e=.-R*Z%_%(%(%(%(%(%(%(%(%(%(%(%w$Z&A{7*;%| o B{y&,.Q.Q.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.........C{r@r@r@r@9)N~L&L&L&L&L&L&L&L&L&L&|)7{r@r@r@r@r@r@r@r@D{{;L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&6=7{r@r@r@r@r@r@r@r@r@r@r@={L&L&L&L&L&L&L&L&L&L&E{r@r@r@r@r@r@r@r@r@r@r@r@r@r@D{8)L&L&L&L&L&L&L&L&K~/;r@r@r@r@r@r@7!L&L&L&L&L&L&L&L&L&L&y'))d;r@r@r@r@r@w~4)8)L&^;r@r@r@r@r@r@r@F{L&L&L&L&L&L&L&L&L&v)r@v~G{L&L&L&L&L&L&L&L&L&L&-{M'r@r@r@r@r@r@J@H{!r@r@r@r@r@v~8!L&L&L&L&L&L&L&L&L&y'=~>!r@r@r@r@r@r@r@v;d;&~M'r@r@r@r@r@r@r@u~L&L&L&L&L&L&L&L&L&b;D!5'L&L&L&L&L&L&L&L&L&L&-{M'r@r@r@r@r@r@J@L{M{h.&.g.d.I+3+6.4.9.9.b.K.n.q.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@N{0&^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=8*+ i;0 .=+=6 7$I=w$D*(%(%(%(%(%(%(%(%(%(%(%Z%k;A=9&a&O{P{Q{'.Q.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.......I{r@r@r@r@])&~L&L&L&L&L&L&L&L&L&L&v)()r@r@r@r@r@r@r@r@R{L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&c)r@r@r@r@r@r@r@r@r@r@r@D!E{L&L&L&L&L&L&L&L&L&L&S{r@r@r@r@r@r@r@r@r@r@r@r@r@r@T{L&L&L&L&L&L&L&L&L&K'r@r@r@r@r@r@G!F!L&L&L&L&L&L&L&L&L&U)g'r@r@r@r@r@r@r@r@r@r@S)()r@r@r@r@r@r@r@5'L&L&L&L&L&L&L&L&L&w{U{U'L&L&L&L&L&L&L&L&L&-{M'r@r@r@r@r@r@J@V{W{j.+.J+#.&.$.f.|.|.3+5.6.8.9.L.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@V-d%^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=(-0&i;`*M$8$8 7$%%:%_$v%(%(%(%(%(%(%(%v%V-h%F-=-| 9>X{Y{Z ..j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q.....#,r@r@r@r@0=Z{L&L&L&L&L&L&L&L&L&L&U~Q'r@r@r@r@r@r@r@r@c'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&e)r@r@r@r@r@r@r@r@r@r@r@})&~L&L&L&L&L&L&L&L&L&d)u{r@r@r@r@r@r@r@r@r@r@r@r@r@r@`{L&L&L&L&L&L&L&L&L& ]r@r@r@r@r@r@O~L&L&L&L&L&L&L&L&L&y'd{r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@$;g~L&L&L&L&L&L&L&L&y'E{^)L&L&L&L&L&L&L&L&L&-{O~r@r@r@r@r@r@J@.]+]` *.Z Q.j.i.@.#.#.O.l@I+I+1.M.6.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@]&b&^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=h==%G-.=7*+=k=d>5*x$R*_%(%(%(%(%w$j;G#-$r>@]#]$]%]Z j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.....&]r@r@r@r@r@%{L&L&L&L&L&L&L&L&L&L&U'u)r@r@r@r@r@r@r@r@*]L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&5!r@r@r@r@r@r@r@r@r@r@r@S)U~L&L&L&L&L&L&L&L&L&T)Q'r@r@r@r@r@r@r@r@r@r@r@r@r@(;=]L&L&L&L&L&L&L&L&L&9~r@r@r@r@r@r@`{L&L&L&L&L&L&L&L&L&c~d;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@o)m{L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&-{O~r@r@r@r@r@r@U,-];]-.=.*.Z ....*.i.i.+.#.h.$.g.g.d.c.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@;*^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=e$h=>**%c%g=8 <%d>=*b=D*Z%_%d=A=l&a z >]u-,]..j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q...']r@r@r@r@r@)]L&L&L&L&L&L&L&L&L&L&L&9{r@r@r@r@r@r@r@D!G'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&f{8=r@r@r@r@r@r@r@r@r@r@r@,!L&L&L&L&L&L&L&L&L&L&B-w~r@r@r@r@r@r@r@r@r@r@r@r@r@_'c)L&L&L&L&L&L&L&L&&)T{r@r@r@r@r@v;!]L&L&L&L&L&L&L&L&L&~]0=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@n'2{L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&%)b'r@r@r@r@r@r@U,{]!*-.-.-.-.-.=.Z *... .+.i.j.J+#.%.%.P.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@ -^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=e$-->*/-M$=-9 7$j;I=d=->-,8$$ ]]^]R~/] ...j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j...]#r@r@r@r@r@4)L&L&L&L&L&L&L&L&L&L&L&X~s)r@r@r@r@r@r@`'`{L'L'L'L'L'L'L'$!~]L&L&L&L&L&L&L&L&L&L&x{})r@r@r@r@r@r@r@r@r@r@r@7!L&L&L&L&L&L&L&L&L&L&h)r@r@r@r@r@r@r@r@r@r@r@r@r@r@t=~]L&L&L&L&L&L&L&L&8{,!r@r@r@r@r@0=|;L&L&L&L&L&L&L&L&L&Z{r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@-)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&8{J~r@r@r@r@r@O@-]!*-.-.-.-.-.-.-.-.=.Z *.` Z . .Q.+.J+$.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@6 ^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=e$i;*%c%=-f$. i%&%:$% O{(]_]:]` *.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q.<]a!r@r@r@r@+)%)L&L&L&L&L&L&L&L&L&L&U'U{v;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r)H~L&L&L&L&L&L&L&L&L&L&$!r@r@r@r@r@r@r@r@r@r@r@r@r'L&L&L&L&L&L&L&L&L&L&6!r@r@r@r@r@r@r@r@r@r@r@r@r@r@0!&)L&L&L&L&L&L&L&L&U)()r@r@r@r@r@o)b;L&L&L&L&L&L&L&L&L&[]r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@*{L&L&L&L&L&L&L&L&L&K{K~L&L&L&L&L&L&L&L&L&%{w'r@r@r@r@r@ %y#-.-.-.-.-.-.-.-.-.-.-.=.=.*.Z ...j.+.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@%%^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=(-0&+ >*`* =M$.=F#3 }]2-|]1]Z ` Q.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.2]3]r@r@r@r@R-6'L&L&L&L&L&L&L&L&L&L&L&|)J~r@r@r@r@r@r@r@r@r@r@r@r@r@D!J{L&L&L&L&L&L&L&L&L&L&%)!!r@r@r@r@r@r@r@r@r@r@r@$;O-L&L&L&L&L&L&L&L&L&L&4]r@r@r@r@r@r@r@r@r@r@r@r@r@r@&{L&L&L&L&L&L&L&L&L&{;w'r@r@r@r@r@0=c;L&L&L&L&L&L&L&L&L&v)$;r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@={L&L&L&L&L&L&L&L&L&q=5]L&L&L&L&L&L&L&L&L&U'${r@r@r@r@r@J@6]-.-.-.-.-.-.-.-.-.-.-.-.-.=.-.=.......", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Z&8*^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=8*0&8*0&+ 7]8]_=4-9]=.Q. .i.i.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.0]X)r@r@r@r@r@e)L&L&L&L&L&L&L&L&L&L&L&L&c)d~v;r@r@r@r@r@r@r@r@r@r@o)f~d)L&L&L&L&L&L&L&L&L&L&K'])r@r@r@r@r@r@r@r@r@r@r@w~$)L&L&L&L&L&L&L&L&L&I'({r@r@r@r@r@r@r@r@r@r@r@r@r@r@^;L&L&L&L&L&L&L&L&L&N-r@r@r@r@r@r@v;6!L&L&L&L&L&L&L&L&L&-{Y~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@v;R'L&L&L&L&L&L&L&L&L&t~,)s~L&L&L&L&L&L&L&L&L&U~0'r@r@r@r@r@a]b]-.-.-.-.-.-.-.-.-.-.-.-.-.=.-.*.*.*.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@b=+ ^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=@ x-d-c]d]e]<,%.2.2.|.O.#.J+J+j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.f]r@r@r@r@r@g]/)L&L&L&L&L&L&L&L&L&L&L&L&B-b'`'r@r@r@r@r@r@r@9)s=)!.)L&L&L&L&L&L&L&L&L&L&&)f~r@r@r@r@r@r@r@r@r@r@r@r@()~]L&L&L&L&L&L&L&L&L&J'2;r@r@r@r@r@r@r@r@r@r@r@r@r@v;)]L&L&L&L&L&L&L&L&L&h]r@r@r@r@r@r@r@5]L&L&L&L&L&L&L&L&L&y'i](;r@r@r@r@r@r@r@r@v;])r@r@r@r@r@r@r@0=E{L&L&L&L&L&L&L&L&U'T{v;5!L&L&L&L&L&L&L&L&L&L&*~$;r@r@r@r@r@j]!*-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@3*b&^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=$ b k]l]m]n]%.2.2+9.2+6.1.I+P.J+J++.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.o]p]r@r@r@r@`'M~L&L&L&L&L&L&L&L&L&L&L&L&L&U'h)Z~u;h'])s)V'q]L'q)L&L&L&L&L&L&L&L&L&L&L&L&t),)r@r@r@r@r@r@r@r@r@r@r@r@J~I'L&L&L&L&L&L&L&L&L&H~t=r@r@r@r@r@r@r@r@r@r@r@r@r@9'i)L&L&L&L&L&L&L&L&L&f)r@r@r@r@r@r@r@({L&L&L&L&L&L&L&L&L&L&f{q]$;r@r@r@r@r@r@V~i{e)r@r@r@r@r@r@r@g)e{L&L&L&L&L&L&L&L&^)e;r@:'1)L&L&L&L&L&L&L&L&L&I'O~r@r@r@r@r@K@r]-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@;*^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=m&-%-%S!s]t]u]` N.5.H+H.r.}+9.2+M.1.d.%.h.+.j.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.v]w]r@r@r@r@r@E'K~L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&f{o{q)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&/)q]r@r@r@r@r@r@r@r@r@r@r@r@r@;~L&L&L&L&L&L&L&L&L&L&K'(;r@r@r@r@r@r@r@r@r@r@r@r@r@})e{L&L&L&L&L&L&L&L&^)s'r@r@r@r@r@r@r@W~T)L&L&L&L&L&L&L&L&L&L&F!F'9=_'9'n'D{B![]L&3)r@r@r@r@r@r@r@h'%)L&L&L&L&L&L&L&L&8{D'r@r@x]y'L&L&L&L&L&L&L&L&L&|)s)r@r@r@r@r@y]z]-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@M$^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=-%# S!]]~>{-P;e.0.q.x.x.x.H.p.J.}+1+6.3.c.e.h.$.J++.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.A]U,r@r@r@r@9)h]&)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&y'L~D!r@r@r@r@r@r@r@r@r@r@r@r@r@N)L&L&L&L&L&L&L&L&L&L& ]r@r@r@r@r@r@r@r@r@r@r@r@r@r@V'/)L&L&L&L&L&L&L&L&U~s=r@r@r@r@r@r@r@D!'!L&L&L&L&L&L&L&L&L&L&L&L&U'1)Z{6'^)L&L&L&U{r@r@r@r@r@r@r@1{L&L&L&L&L&L&L&L&L&{;r@r@r@9'Z{L&L&L&L&L&L&L&L&L&y'B]v;r@r@r@r@O@C][,-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@K@Y%/-^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=@ ;%7]D]E]F]H ..L.p.y.A.A.z.z.y.u.s.I.L.9.4.M.|.d.O.h.J+i.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.G]F,r@r@r@r@r@s)i)y'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&c)N'r@r@r@r@r@r@r@r@r@r@r@r@r@v;q=L&L&L&L&L&L&L&L&L&L&E!r@r@r@r@r@r@r@r@r@r@r@r@r@r@b)L&L&L&L&L&L&L&L&L&|)`'r@r@r@r@r@r@r@r@u{U'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&d)u{r@r@r@r@r@r@r@>~L&L&L&L&L&L&L&L&L&c;r@r@r@r@M'&)L&L&L&L&L&L&L&L&L&^)E'r@r@r@r@r@j#H]-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@J@]&:%/-^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=^=m&-%c&[ X I]J]j.1.I.v.z.B.B.B.B.A.z.y.u.r.J.H+0.2+5.3+c.e.P.$.+.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.K]L]r@r@r@r@r@0'K'y'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&M]r~r@r@r@r@r@r@r@r@r@r@r@r@r@r@V~m{L&L&L&L&L&L&L&L&L&y'N]r@r@r@r@r@r@r@r@r@r@r@r@r@r@O]L&L&L&L&L&L&L&L&L&))r@r@r@r@r@r@r@r@r@o)P]L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&K~r)r@r@r@r@r@r@r@R)L&L&L&L&L&L&L&L&L&p'r@r@r@r@D!Q]L&L&L&L&L&L&L&L&L&L&V)`'r@r@r@r@r@R]S]-.-.-.-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@J@]&L$(%(%y$O$^=^=^=^=^=^=^=^=^=^=^=^=^=^=m&@ $ 5 ~ T]1];.O.b.t.v.B.B.B.B.B.B.z.y.A.y.v.s.o.J.n.0.2+2.I+c.O.#.@.J++.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.U]V]O@r@r@r@r@r@r)h)&)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&y't)r~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@R--~L&L&L&L&L&L&L&L&L&c~8=r@r@r@r@r@r@r@r@r@r@r@r@r@r@G{L&L&L&L&L&L&L&L&L&*]r@r@r@r@r@r@r@r@r@r@9=|)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&s~D!r@r@r@r@r@r@9)=]L&L&L&L&L&L&L&L&&)B!r@r@r@r@r@E'U'L&L&L&L&L&L&L&L&L&y'9~v;r@r@r@r@O@W][,-.-.-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@J@]&L$(%(%(%(%(%k&/-^=^=^=^=^=^=^=^=^=^=^=^=m&r>a ( X]H&Y]N.5.p.A.B.B.B.B.B.B.B.B.B.B.A.z.x.u.u.p.J.K.0.M.M.1.|.l@#.#.#.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Z]`]r@r@r@r@r@r@h'6!^)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&I'P]W~r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Q'/)L&L&L&L&L&L&L&L&L&~]7{r@r@r@r@r@r@r@r@r@r@r@r@r@0=N-L&L&L&L&L&L&L&L&L&4)r@r@r@r@r@r@r@r@r@r@r@s'q)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&G'r@r@r@r@r@r@r@9'!~L&L&L&L&L&L&L&L&d)|{r@r@r@r@r@9)*~L&L&L&L&L&L&L&L&L&L&c~7)r@r@r@r@r@u& ^-.-.-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@J@]&L$(%(%(%(%(%(%(%R*7$;*8*^=^=^=^=^=^=^=^=m&% q>|-.^}~s*&.0.t.B.B.B.B.B.B.B.B.B.B.B.B.B.z.A.z.y.w.s.o.o.|+a.6.4.3+|.e.P.#.+.i.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q.+^a]r@r@r@r@r@r@9)O~ )I'L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&y'|)e'o)r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@*{L&L&L&L&L&L&L&L&L&L&M]v~r@r@r@r@r@r@r@r@r@r@r@r@r@w~@^L&L&L&L&L&L&L&L&.)!!r@r@r@r@r@r@r@r@r@r@r@v;)~~]L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&*]r@r@r@r@r@r@r@])K~L&L&L&L&L&L&L&L&F!()r@r@r@r@r@r@7)d)L&L&L&L&L&L&L&L&L&L&G'9)r@r@r@r@r@#^-.-.-.-.-.-.-.-.-.-.-.=.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@J@]&L$(%(%(%(%(%(%(%(%(%(%>{7 =%^=^=^=^=^=^=@ $ />1 V 3-J*#.c.L.t.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.y.z.w.u.p.q.}+1+0.4.3.|.e.O.%.i.@.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q.$^%^r@r@r@r@r@r@r@9'B!X~d)L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&L&.)H~5]t=r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@4)L&L&L&L&L&L&L&L&L&L&T'r@r@r@r@r@r@r@r@r@r@r@r@r@r@()K~L&L&L&L&L&L&L&L&J'/;r@r@r@r@r@r@r@r@r@r@r@r@r@s=|;d)L&L&L&L&L&L&L&L&L&L&L&L&y'5!r@r@r@r@r@r@r@d~L&L&L&L&L&L&L&L&L&o{r@r@r@r@r@r@r@$;!]L&L&L&L&L&L&L&L&L&L&&)O]r@r@r@r@r@&^[,-.-.-.-.-.-.-.-.-.-.Z -.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@J@]&L$(%(%(%(%(%(%(%(%(%(%(%(%(%/&8 i;8*^=m&@ @ % [ *^=^-^;^|.L.A.w.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.B.y.y.w.v.q.p.n.L.9.2+4.1.I+f.%.J+J+#.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q...$^%^r@r@r@r@r@r@r@r@w'8=>^!~c~d)&)L&L&L&L&L&L&y'I'f{H',^&{n'r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@&{'^'^'^'^'^'^'^'^'^'^u~r@r@r@r@r@r@r@r@r@r@r@r@r@r@})'^'^'^'^'^'^'^'^'^`{:'r@r@r@r@r@r@r@r@r@r@r@r@r@r@$;+)*~K~.)L&L&L&L&L&y'%)8{')t~D{r@r@r@r@r@r@r@0!'^'^'^'^'^'^'^'^'^5!r@r@r@r@r@r@r@r@R-'^'^'^'^'^'^'^'^'^'^'^5'r@r@r@r@r@)^[,[,-.-.-.-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@J@]&L$(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%D*b-&%i;^=@ >%2 , !^u-=!c.K.q.A.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.A.x.t.s.H+J.b.1+2+M.3+c.e.P.J+i.J++.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.Q...~^B~O@r@r@r@r@r@r@r@r@r@r@h'{^v{4]w{3)3)3)C!O]]^0!9)r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@s)R{5!h]3)3)R)z'u{,)r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@^^/^[,[,-.-.-.-.-.-.Z -.Z Z ", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@]&L$(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%v%j;f=F#5 ^ (^_^y&` 0.J.x.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.A.A.x.H.s.H+p.a.1+7.4.3+c.I+f.&.$.J+i.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.:^k'<^[^}^a!r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@|^1^/^[,[,-.-.-.-.=.=.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@^&]&=;(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%Z%Z%_%b=8$# 2^3^H Q.7.u.H.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.z.z.x.u.t.p.p.b.a.8.6.2.|.}.N.l@$.J++.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^5^6^7^J$8^9^0^J@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@a^b^c^1^/^[,-.-.-.-.-.-.-.Z =.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@^&]&=;(%(%(%(%(%(%(%(%(%(%(%(%(%(%(%Z%_%v%_%d=j;:;:$$ s>d^..7.}+v.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.x.y.H.q.n.H+|+9.8.5.|.}.e.O.&.i.@.i.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^5^e^f^g^h^i^j^k^l^W'J@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@Q#m^n^o^c^1^/^[,-.-.-.-.-.-.-.-.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@^&]&(%(%(%(%(%(%(%(%(%(%(%(%(%(%Z%_%_%J>=*G#d$;$G-e$r>K>p^q^r^&.L.v.z.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.A.A.x.y.t.t.I.n.0.0.5.1.|.I+d.e.f.P.$.+.+.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^:^5^e^f^s^h^j^9-t^u^v^w^x^w)L]J@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,X,r@r@r@r@r@r@r@r@r@r@r@r@r@r@J@X,X,X,X,X,J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@J@K@M,U,J@J@J@J@J@J@J@J@J@J@J@J@J@J@]'y^z^A^B^n^C^D^/^[,-.-.-.-.-.-.Z =.", "r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@r@O@^&]&(%(%(%(%(%(%(%(%(%(%v%(%Z%_%D*b$=*e%=%g%/>R!E^F^G^H^N>-=G R.g.6.}+v.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.y.x.w.u.s.p.I.a.0.6.5.2.I+}.e.g.%.#.%.i.j.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.:^5^e^f^I^J^K^L^M^v^N^O^p&P^Q^:~9#R^S^j#]'K@J@r@r@r@r@r@J@K@M,o,T^U^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^V^W^W,W,X^X^Y^Z^`^ /./+/@/#/#/$/%/%/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/&/%/%/*/=/-/;/a!O@r@r@r@r@X,U,>/,/'/)/+/+/+/!/+/././~/`^Z^ /`^Y^{/Y^X^{/W,^#~$]/]/W,^///(/_/_/]/_/_/_/_/_/_/_/_/_/://&<%e=:$+ a 4/(^{>A~u-5/6/;.=.Q. . .j.j.@.N.5.|+u.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.y.w.u.s.q.q.p.K.|+6.6.3.1.}.e.f.%.h.#.J+i.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^5^e^7/I^8/K^9/u^0/a/b/P^c/d/e/f/g/h/h/i/z^j/k/l/l/l/l/m/n/o/p/q/W>h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/h/r/r/r/r/s/t/u/v,v/w/w/x/y/z/A/B/B/C/D/E/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/F/G/H/I/J/K/L/L/M/t#N/O/P/Q/R/S/R/S/A/T/U/T/z/z/V/x/W/w/X/v/Y/Z/`/t/s/Y/s/h/ (.(h/h/+(@(@(#(+(.(+(+(#(#($(^$P!%(/*&(*(=(B^-(c^1^/^[,-.-.-.-.Z *.*.", "r@r@r@r@r@r@r@r@r@r@r@r@O@^&]&(%(%(%(%(%Z%Z%_%D*(&Q$:$F#+ v=}] {;(>(,('(R.;.;...j.j.j.j.j.j.j.j.j.j.J+d.2+|+v.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.A.A.x.w.H.q.o.J.n.L.8.6.2.3.|.d.N.O.P.J+#.@.+.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^5^e^f^I^8/K^)(!(~(O^{(Q^](e/g/h/h/W>^(^(^(^(^(^(/(/(/(/(/(/(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(^(((((((((((((((_(:(:(<([(}(|(1(1(2(2(3(4(5(6(6(6(7(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(6(7(6(7(7(8(8(9(8(0(a(b(3(3(c(d(2(2(2(e(2(f(g(h(h(1(i(j(|(k(l(k(<(m(m(n(:(o(_(p(p(q(^(q(r(q(s(r(s(r(t(t(#($(P!u(v(w(x(y(n^c^1^/^[,Z =.-.-.=.Z -.", "r@r@r@r@r@r@r@r@r@O@^&]&(%(%Z%v%Z%->:;e=f$z(A(s]B(C(D(E(y&'.=...j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.+.#.c.9.o.x.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.z.A.A.x.w.v.s.s.s.n.a.1+8.7.3+c.}.N.&.$.@.J+@.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^5^5^f^I^J^K^)(!(F(G(B#H(e/f/I(h/W>^(^(^(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(J(K(K(L(L(M(M(N(O(P(Q(R(S(T(U(V(W(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(X(W(W(W(W(W(V(V(V(V(U(U(Y(T(Y(T(Z(T(`(`( _R( _ _ _._Q(Q(P(P(+_O(N(M(@_M(#_L(L(#_/($_4~4~$_%_%_&_&_*_*_*_*_r(O=+(=_%(-_;_1/y(n^C^1^/^[,-.-.*.-.-.-.Z ", "r@r@r@r@r@r@O@<#G$Z%v%R%.-h%9 e$>_,_>]'_)_>.>.;.*.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.i.$.1.8.q.z.A.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.z.B.A.u.t.r.r.|+L.b.1+2+4.1.I+d.f.P.h.#.@.+.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^:^5^f^7/J^K^)(!(!_G(~_{_e/I(h/W>^(^(/(/(/(/(/(/(/(/(]_]_]_]_]_/(/(/(]_]_/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(/(J(^_/_/_L(M(@_N(+_P(._R(S(`(Y(V(V(V(8(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W(W((_(_W(W(W(W(____8(U(:_:_<_<_T(Z(Z(T(S(`([_S(`(R(._._._+_+_+_+_+_}_N(}_M(M(@_#_/_/_K(/(4~J(&_4~/(/(/(*_|_r(t(#(^$%(1_|/1/y(n^c^1^/^[,-.-.Z -.Z -.Z ", "r@r@r@J@{%=*(&h%N$2_9,3_4_w#J]P%@.+...J+j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.J+f.3.1+}+v.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.A.y.z.v.v.H.I.p.|+K.1+1+7.7.3.|.d.l@P.g.$.i.@.i.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^5^e^7/5_*'9/!(6_G(7_{_8_r/W>^(^(/(/(/(]_/(]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_q/9_q/0_a_a_b_c_d_d_e_f_f_g_h_i_<_<_j_______(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(___(___j_j_<_<_<_k_l_k_l_i_h_g_m_L@g_g_n_f_o_o_f_o_e_e_p_d_d_c__~q_q_r_0_s_t_u_u_9_/(/($_&_q(O=@(v_u(w_w(x(B^x_c^y_[,-.-.-.=.-.*.Z Z ", "J@;#g$z_A_B_C_D_R.+.@.@.@.@.@.@.@.@.@.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.+.@.l@3+2+H+z.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.A.A.A.x.x.u.q.I.J.n.L.0.8.4.2.3+}.d.f.g.%.J+i.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^:^5^f^5_8/8^E_6_G(~_{_8_r/W>^(^(/(/(]_/(]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_u_u_s_0_a_r_c_d_d_p_o_F_n_L@i_<_k_<_(_____(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(___(___(___j_<_G_k_<_k_i_i_h_h_i_m_L@n_m_n_n_f_f_o_o_o_p_p_H_d_c_q_q__~r__~r_r_9_a_9_]_%_J(q(I_$(X=J_K_*(L_M_N_O_/^P_=.Z *.Z -.*.*.` ", "Q_P%*.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.J+j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.+.h.I+3.a.J.w.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.B.y.A.z.u.u.r.p.n.H+|+0.8.M.3+I+1.e.f.O.&.h.$.i.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^5^e^7/J^R_S_T_U_~_V_8_r/I_((/(/(/(/(]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_q/u_9_0_a__~_~b_c_c_p_f_F_f_h_i_i_l_k___j_____(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(___(_____G_k_i_<_k_l_h_m_h_h_n_g_m_f_f_n_F_e_F_o_p_p_d_d_r_c_b_q_b_q/t_^_^_/__(p(h/f/b]W_X_Y_t^S]Z_`_/^[,Z Z Z -.-.*.=.-.", "@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.i.@.}.M.0.q.u.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.A.y.y.z.x.H.r.q.p.L.|+b.8.M.M.1.1.}.d.g.P.%.#.+.+.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.:^5^f^5_*'9/!(!_ :.:+:g/I_(($_/(/(/(]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_q/]_q/u_9_0_a__~b_c_d_d_o_f_f_n_L@i_L@l_k___(___(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(___(_(_______G_G___k_j_<_i_L@L@h_L@L@L@L@m_h_h_f_f_F_o_p_p_e_p_e_c_c_q_q__~t_r_@:#_:( (#:$:%:b/N^M^x)&:*:7^<^b,=.Z Z *.-.*.Z *.", "@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.J+j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.+.O.c.2+|+o.x.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.z.y.z.w.H.H.u.o.n.b.a.9.2+M.M.|.}.d.%.O.g.#.@.j.i.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.4^5^e^7/J^R_S_6_G(7_4>=:I_(($_$_$_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_q/u_9_0_s_a__~_~c_c_b_H_F_g_g_i_L@k_k_k_j_j_(___(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(___(_(___(_j_G_G_k_<_k_l_l_L@m_h_i_m_g_g_g_n_n_n_o_e_e_o_H_H_p_H_d_H_H_-:M(<(;:v,>:,:':F():!:W{~:`_{::^]:..Z Z -.` j. .` ", "@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.@.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.i.J+g.3+2+L.t.v.A.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.B.A.z.z.z.x.y.x.t.s.r.J.}+L.9.7.6.2.I+3+d.l@O.h.$.#.#.@.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.j.:^5^f^I^*'9/!(^:W_V_8_r/I_(($_$_q/]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_]_q/q/u_u_s_s__~_~q_b_H_H_o_e_o_g_h_L@k_k_<_j_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_(_________(_<_j_G_j_j_G_k_k_l_L@i_m_h_h_m_g_f_f_F_f_F_F_p_e_H_H_d_b_}_N(-:[(w//:(:_:::<:[:}:|:1:2:3:5=` i. .i. . .j.j..."}; gtick-0.5.2/src/gtkutil.c0000644000175000017500000000550111005112704012146 00000000000000/* * GTK utility functions * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include /* GTK headers*/ #include #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "metro.h" #include "gtkutil.h" /* * return a dialog window with a (big) label and an ok button to close * (good for displaying a note) * * justification: justification of label (e.g. GTK_JUSTIFY_LEFT) * * NOTE: caller has to show the window itself with gtk_widget_show() * and maybe want to make it modal with * gtk_window_set_modal(GTK_WINDOW(window), TRUE); */ GtkWidget *get_ok_dialog(const char *title, const char *contents, GtkJustification justification) { GtkWidget *window; GtkWidget *button; GtkWidget *label; window = gtk_dialog_new(); gtk_window_set_title(GTK_WINDOW(window), title); /* vbox area */ gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(window)->vbox), 0); label = gtk_label_new(contents); gtk_label_set_justify(GTK_LABEL(label), justification); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox), label, TRUE, FALSE, 0); gtk_misc_set_padding(GTK_MISC(label), 10, 10); gtk_widget_show(label); /* OK button */ button = gtk_button_new_from_stock(GTK_STOCK_OK); gtk_box_pack_start_defaults( GTK_BOX(GTK_CONTAINER(GTK_DIALOG(window)->action_area)), button); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), window); gtk_widget_show(button); /* caller has to show the window itself */ return window; } /* * Make the specified label bold */ void gtk_label_attr_bold(GtkLabel* label) { PangoAttribute *bold_attr; PangoAttrList *bold_attr_list; bold_attr = pango_attr_weight_new(PANGO_WEIGHT_BOLD); bold_attr->start_index = 0; bold_attr->end_index = strlen(gtk_label_get_text(label)); bold_attr_list = pango_attr_list_new(); pango_attr_list_insert(bold_attr_list, bold_attr); gtk_label_set_attributes(label, bold_attr_list); } gtick-0.5.2/src/options.h0000644000175000017500000000233711617227610012203 00000000000000/* * Metronome options object interface * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef OPTIONS_H #define OPTIONS_H #include "option.h" /* * actually a part of a metro(nome) */ typedef struct options_t { option_list_t* option_list; /* list of available rc options */ char* sample_name; char* soundsystem; char* sound_device_name; char* command_on_start; char* command_on_stop; } options_t; options_t* options_new(void); void options_delete(options_t* options); #endif /* OPTIONS_H */ gtick-0.5.2/src/dsp.c0000644000175000017500000006513412116333513011270 00000000000000/* * dsp.c: sound device access code * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include #include #include #include #include #include #include #include /* libsndfile */ #ifdef WITH_SNDFILE #include #endif /* OSS headers */ #include /* GTK+ headers */ #include #ifdef USE_DMALLOC #include #endif #include #include #include /* own headers */ #include "g711.h" #include "globals.h" #include "metro.h" #include "dsp.h" #include "option.h" #include "threadtalk.h" /* default sampled sound effect */ #include "tickdata.c" /* time to write ahead at least in milliseconds */ #define WRITE_AHEAD_INTERVAL 100 /* default DSP settings */ #define DEFAULT_RATE 44100 #define DEFAULT_FORMAT AFMT_S16_LE #define DEFAULT_CHANNELS 1 /* sine generator settings */ #define SIN_FREQ 880.0 #define SIN_DUR 0.01 #define FADE_DUR 0.002 /* OSS sample format type */ typedef struct format_t { int format; char* name; int samplesize; char* description; } format_t; static format_t formats[] = { { AFMT_MU_LAW, "AFMT_MU_LAW", 8, "8 bit mu-law" }, { AFMT_A_LAW, "AFMT_A_LAW", 8, "8 bit A-law" }, { AFMT_IMA_ADPCM, "AFMT_IMA_ADPCM", 4, "4 bit IMA ADPCM" }, { AFMT_U8, "AFMT_U8", 8, "unsigned, 8 bit" }, { AFMT_S16_LE, "AFMT_S16_LE", 16, "signed, 16 bit (little endian)" }, { AFMT_S16_BE, "AFMT_S16_BE", 16, "signed, 16 bit (big endian)" }, /* equals AFMT_S16_LE or AFMT_S16_BE, shouldn't be reported: */ { AFMT_S16_NE, "AFMT_S16_NE", 16, "signed, 16 bit (local CPU endian)"}, /* not supported by default soundcard.h { AFMT_S32_LE, "AFMT_S32_LE", 32, "signed, 32 bit (little endian)" }, { AFMT_S32_BE, "AFMT_S32_BE", 32, "signed, 32 bit (big endian)" }, */ { AFMT_U16_LE, "AFMT_U16_LE", 16, "unsigned, 16 bit (little endian)" }, { AFMT_U16_BE, "AFMT_U16_BE", 16, "unsigned, 16 bit (big endian)" }, { 0, "unknown", 0, "???" } }; /* * returns new dsp object */ dsp_t* dsp_new(comm_t* comm) { dsp_t* result; result = (dsp_t*) g_malloc0(sizeof(dsp_t)); result->dspfd = -1; comm_server_register(comm); result->inter_thread_comm = comm; return result; } /* * destroys dsp object */ void dsp_delete(dsp_t* dsp) { comm_server_unregister(dsp->inter_thread_comm); if (dsp->devicename) free(dsp->devicename); if (dsp->soundname) free(dsp->soundname); free(dsp); } /* * Writes the specified (16 bit signed) to raw buffer with * specified (see formats, above) */ static void encode_sample(short sample, int format, unsigned char* dest) { static int error = 0; switch (format) { case AFMT_MU_LAW: *dest = linear2ulaw(sample); break; case AFMT_A_LAW: *dest = linear2alaw(sample); break; case AFMT_IMA_ADPCM: if (!error) { fprintf(stderr, "NOTE: Can't generate samples due to still unsupported " "format (AFMT_IMA_ADPCM).\n"); error = 1; } *dest = 0; break; case AFMT_U8: *dest = (unsigned char) (sample / 256 + 128); break; case AFMT_S16_LE: *dest = (unsigned char) (sample & 0xff); *(dest + 1) = (unsigned char) (sample >> 8 & 0xff); break; case AFMT_S16_BE: *dest = (unsigned char) (sample >> 8 & 0xff); *(dest + 1) = (unsigned char) (sample & 0xff); break; case AFMT_U16_LE: *dest = (unsigned char) ((sample ^ 0x8000) & 0xff); *(dest + 1) = (unsigned char) ((sample ^ 0x8000) >> 8 & 0xff); break; case AFMT_U16_BE: *dest = (unsigned char) ((sample ^ 0x8000) >> 8 & 0xff); *(dest + 1) = (unsigned char) ((sample ^ 0x8000) & 0xff); break; default: if (!error) { fprintf(stderr, "NOTE: Can't generate samples due to unsupported format.\n"); error = 1; } } } /* * returns x if x < limit, else (limit - 1); thus it returns an exclusively * limited value */ static int limit_int(int x, int limit) { if (x < limit) return x; else return limit - 1; } /* * Generates Audio data fit for playback on initialized DSP, parameters of * which are stored in dsp * * input: * from: the sample data source in signed 16 bit format * from_size: number of frames in * from_rate: the rate of * from_channels: number of channels in * dsp: the dsp_t structure holding rate, channels, samplesize * and format of the initialized dsp * * output: * to: the pointer to the allocated data, ready for playback * return value: number of bytes generated, -1 on error * * NOTES: * - If fromchannels equals the number of channels of playback device, * no mixing is performed. * Else (fromchannels != channels), the input is mixed down to 1 channel * which is equally directed to all output channels * - will be allocated by generate_data, but has to be free()d by caller */ static int generate_data(short* from, int from_size, int from_rate, int from_channels, dsp_t* dsp, unsigned char** to) { double speed_factor = (double) from_rate / dsp->rate; /* output to input */ int result_size = (long long)from_size * dsp->rate / from_rate; /* number of frames */ unsigned char* result; int i, j; result = (unsigned char*) g_malloc(result_size * dsp->samplesize / 8 * dsp->channels); for (i = 0; i < result_size; i++) { /* for each output frame */ double mixdown = 0.0; /* only needed if dsp->channels != from_channels */ if (dsp->channels != from_channels) { /* mixdown */ double leftbound = i * speed_factor; double rightbound = (i + 1) * speed_factor; while (leftbound < rightbound) { int index = (int)leftbound; double dummy; double frac = modf(leftbound, &dummy); double weight; if (rightbound - leftbound < 1) weight = rightbound - leftbound; else weight = 1.0; for (j = 0; j < from_channels; j++) { mixdown += weight * ( (1.0 - frac) * from[from_channels * index + j] + frac * from[from_channels * limit_int(index + 1, from_size) + j]); } leftbound += 1.0; } mixdown /= (speed_factor * from_channels); } for (j = 0; j < dsp->channels; j++) { /* for each channel */ double sample; if (dsp->channels != from_channels) { sample = mixdown; } else { double leftbound = i * speed_factor; double rightbound = (i + 1) * speed_factor; sample = 0.0; while (leftbound < rightbound) { int index = (int)leftbound; double dummy; double frac = modf(leftbound, &dummy); double weight; if (rightbound - leftbound < 1) weight = rightbound - leftbound; else weight = 1.0; sample += weight * ( (1.0 - frac) * from[from_channels * index + j] + frac * from[from_channels * limit_int(index + 1, from_size) + j]); leftbound += 1.0; } sample /= speed_factor; } encode_sample((short) (sample * dsp->volume), dsp->format, &result[(i * dsp->channels + j) * dsp->samplesize / 8]); } } *to = result; return result_size * dsp->channels * dsp->samplesize / 8; } /* * generates sine signal * * input: samplefreq: sampling frequency, (e.g. 44100) in Hz * sinfreq: frequency of sine (e.g. 440.0) in Hz * sigdur: duration of signal in seconds * fadedur: duration of fadein / fadeout in seconds * output: samples: buffer containing the (signed short) samples * * returns: number of samples returned in , * -1 on error * * NOTE: caller has to free *samples himself */ int generate_sine(int samplefreq, double sinfreq, double sigdur, double fadedur, short** samples) { int size = samplefreq * sigdur; short* s = (short*) g_malloc(size * sizeof(short)); int scale = -SHRT_MIN < SHRT_MAX ? -SHRT_MIN : SHRT_MAX; int i; double sample; for (i = 0; i < size; i++) { sample = sin((double)i / samplefreq * sinfreq * 2 * M_PI); if (i < samplefreq * fadedur) sample *= (-cos((double)i / (samplefreq * sigdur) * 2 * M_PI) + 1) * 0.5; if (i > samplefreq * (sigdur - fadedur)) sample *= (-cos((double)(size - i) / (samplefreq * sigdur) * 2 * M_PI) + 1) * 0.5; s[i] = sample * scale; } *samples = s; return size; } /* * returns (unsigned short) samples from specified file * * input: filename: file to read samples from, must be in a format * recognized by libsndfile * output: samples: the allocated and initialized buffer * rate: sampling rate (e.g. 44100) in Hz * channels: number of channels in file (usually 1 or 2) * * returns: number of frames returned in samples, * -1 on error * * NOTE: caller has to free *samples himself */ #ifdef WITH_SNDFILE int sndfile_get_samples(const char* filename, short** samples, int* rate, int* channels) { SF_INFO sfinfo; SNDFILE* sf; int frames; sfinfo.format = 0; if (!(sf = sf_open(filename, SFM_READ, &sfinfo))) { if (debug) fprintf(stderr, "Error opening file \"%s\".\n", filename); return -1; } if (!sfinfo.seekable) return -1; frames = sfinfo.frames; *rate = sfinfo.samplerate; *channels = sfinfo.channels ; *samples = (short*) g_malloc(frames * sizeof(short) * sfinfo.channels); sf_readf_short(sf, *samples, frames); sf_close(sf); return frames; } #endif /* WITH_SNDFILE */ /* * allocates and initializes dsp->frames * and initializes dsp->number_of_frames * according to dsp->soundname * * returns 0 on success, -1 otherwise */ static int init_sample(dsp_t* dsp) { if (!strcmp(dsp->soundname, "")) { dsp->frames = (short*) g_malloc(sizeof(tickdata)); memcpy(dsp->frames, tickdata, sizeof(tickdata)); dsp->number_of_frames = (signed int) sizeof(tickdata) / sizeof(short); dsp->rate_in = 44100; dsp->channels_in = 1; } else if (!strcmp(dsp->soundname, "")) { dsp->number_of_frames = generate_sine(44100, SIN_FREQ, SIN_DUR, FADE_DUR, &dsp->frames); dsp->rate_in = 44100; dsp->channels_in = 1; } else { #ifdef WITH_SNDFILE dsp->number_of_frames = sndfile_get_samples(dsp->soundname, &dsp->frames, &dsp->rate_in, &dsp->channels_in); #else fprintf(stderr, "Warning: Unhandled sample name case: \"%s\".\n", dsp->soundname); #endif /* WITH_SNDFILE */ } if (dsp->number_of_frames == -1) return -1; return 0; } /* * allocates and initializes dsp->tickdata{0,1,2} * and initializes dsp->td{0,1,2}_size * according to dsp->frames and dsp->number_of_frames * * returns 0 on success, -1 otherwise */ static int prepare_buffers(dsp_t* dsp) { short *tmp_buf; /* temporary buffer for generation of different sounds */ int i; int attack = 0; /* generate single ticks */ if ((dsp->td0_size = generate_data(dsp->frames, dsp->number_of_frames, dsp->rate_in, dsp->channels_in, dsp, &dsp->tickdata0)) == -1) { return -1; } /* generate first tick */ if ((dsp->td1_size = generate_data(dsp->frames, dsp->number_of_frames, dsp->rate_in * 2, dsp->channels_in, dsp, &dsp->tickdata1)) == -1) { return -1; } /* attack padding for accents */ while (attack < dsp->number_of_frames && abs(dsp->frames[attack]) < SHRT_MAX / 20) { attack++; } if (attack < dsp->number_of_frames / 3) { unsigned char* newdata; int offset; offset = attack / 2 * dsp->channels * dsp->samplesize / 8; if ((newdata = realloc(dsp->tickdata1, dsp->td1_size + offset))) { int modul = dsp->channels * dsp->samplesize / 8; int i; dsp->tickdata1 = newdata; for (i = dsp->td1_size - 1; i >= 0; i--) dsp->tickdata1[i + offset] = dsp->tickdata1[i]; for (i = 0; i < offset; i++) dsp->tickdata1[i] = dsp->silence[i % modul]; dsp->td1_size += offset; if (debug) fprintf(stderr, "Attack padding for accents: %d frames.\n", attack / 2); } } /* generate secondary ticks */ tmp_buf = (short*) g_malloc(dsp->number_of_frames * sizeof(short)); for (i = 0; i < dsp->number_of_frames; i++) { tmp_buf[i] = dsp->frames[i] / 2; } if ((dsp->td2_size = generate_data(tmp_buf, dsp->number_of_frames, dsp->rate_in, dsp->channels_in, dsp, &dsp->tickdata2)) == -1) { return -1; } free(tmp_buf); return 0; } /* * Opens pulseaudio connection * * returns 0 on success, -1 otherwise */ static int pulse_open(dsp_t *dsp) { static int debug_todo = 1; /* The Sample format to use */ static const pa_sample_spec pulse_format = { .format = PA_SAMPLE_S16LE, /* DEFAULT_FORMAT */ .rate = DEFAULT_RATE, .channels = DEFAULT_CHANNELS }; int error; unsigned int format_index; dsp->pas = NULL; /* Create a new playback stream */ if (!(dsp->pas = pa_simple_new(NULL, "GTick metronome", PA_STREAM_PLAYBACK, NULL, "gtick", &pulse_format, NULL, NULL, &error))) { fprintf(stderr, __FILE__": pa_simple_new() failed: %s\n", pa_strerror(error)); return -1; } dsp->format = DEFAULT_FORMAT; for (format_index = 0; formats[format_index].format != 0 && formats[format_index].format != dsp->format; format_index++); if (debug && debug_todo) { g_print("pulse_open: Used sample format: %s (%s)\n", formats[format_index].name, formats[format_index].description); } dsp->rate = DEFAULT_RATE; /* requested default */ if (debug && debug_todo) { g_print("pulse_open: Sampling rate = %d\n", dsp->rate); } dsp->channels = DEFAULT_CHANNELS; if (debug && debug_todo) { g_print("pulse_open: Number of channels = %d\n", dsp->channels); } dsp->samplesize = formats[format_index].samplesize; dsp->fragmentsize = dsp->rate / 10 /*0.1s fragment time*/ * dsp->channels * dsp->samplesize / 8; if (debug && debug_todo) g_print ("pulse_open: fragment size = %d\n", dsp->fragmentsize); dsp->fragment = g_malloc(dsp->fragmentsize); return 0; } /* * Opens sound device specified in dsp * * returns 0 on success, -1 otherwise */ int dsp_open(dsp_t* dsp) { static int debug_todo = 1; unsigned int format_index; int requested_format = DEFAULT_FORMAT; audio_buf_info info; dsp->fragmentsize = 0x7fff0008; /* at least request fragment size 2^8=256 */ /* = minimum recommended size */ if (debug && debug_todo) g_print ("dsp_open: Initialising %s ...\n", dsp->devicename); /* Initialise sound device */ if(!strcmp(dsp->soundsystem, "")) return pulse_open(dsp); else if ((dsp->dspfd = open(dsp->devicename, O_WRONLY)) == -1) { perror(dsp->devicename); return -1; } if (ioctl(dsp->dspfd, SNDCTL_DSP_SETFRAGMENT, &dsp->fragmentsize) == -1) { perror("SNDCTL_DSP_SETFRAGMENT"); return -1; } /* Query driver for supported formats for debugging convenience */ if (debug && debug_todo) { unsigned int i; int mask; if (ioctl(dsp->dspfd, SNDCTL_DSP_GETFMTS, &mask) == -1) { perror("SNDCTL_DSP_GETFMTS"); } g_print("Supported formats:\n"); for (i = 0; i < sizeof(formats) / sizeof(format_t); i++) { if (mask & formats[i].format) g_print(" %s (%s)\n", formats[i].name, formats[i].description); } } /* set up output format */ dsp->format = requested_format; if (ioctl (dsp->dspfd, SNDCTL_DSP_SETFMT, &dsp->format) == -1) { /* Fatal error */ perror ("SNDCTL_DSP_SETFMT"); return -1; } for (format_index = 0; formats[format_index].format != 0 && formats[format_index].format != dsp->format; format_index++); if (debug && debug_todo) { g_print("dsp_open: Used sample format: %s (%s)\n", formats[format_index].name, formats[format_index].description); } dsp->samplesize = formats[format_index].samplesize; /* Set dsp to default: mono */ dsp->channels = DEFAULT_CHANNELS; if (ioctl (dsp->dspfd, SNDCTL_DSP_CHANNELS, &dsp->channels) == -1) { perror("SNDCTL_DSP_CHANNELS"); return -1; } if (debug && debug_todo) { g_print("dsp_open: Number of channels = %d\n", dsp->channels); } /* Set the DSP rate (in Hz) */ dsp->rate = DEFAULT_RATE; /* requested default */ if (ioctl (dsp->dspfd, SNDCTL_DSP_SPEED, &dsp->rate) == -1) { perror("SNDCTL_DSP_SPEED"); return -1; } if (debug && debug_todo) { g_print("dsp_open: Sampling rate = %d\n", dsp->rate); } /* "verify" fragment size: * let the driver actually calculate the fragment size */ if (ioctl(dsp->dspfd, SNDCTL_DSP_GETBLKSIZE, &dsp->fragmentsize)) { perror("SNDCTL_DSP_GETBLKSIZE"); } if (debug && debug_todo) g_print ("dsp_open: fragment size = %d\n", dsp->fragmentsize); dsp->fragment = g_malloc(dsp->fragmentsize); /* get total number of fragments in dsp buffer */ if (ioctl(dsp->dspfd, SNDCTL_DSP_GETOSPACE, &info) == -1) { perror("SNDCTL_DSP_GETOSPACE"); } dsp->fragstotal = info.fragstotal; if (debug && debug_todo) g_print("dsp_open: Total number of fragments in DSP buffer = %d.\n", dsp->fragstotal); debug_todo = 0; return 0; } /* * close sound device */ void dsp_close(dsp_t* dsp) { static int debug_todo = 1; if (debug && debug_todo) g_print ("dsp_close: Closing sound device ...\n"); if (dsp->dspfd != -1) { if (ioctl(dsp->dspfd, SNDCTL_DSP_RESET, 0) == -1) { perror("SNDCTL_DSP_RESET"); } close (dsp->dspfd); dsp->dspfd = -1; if (dsp->fragment) { g_free(dsp->fragment); dsp->fragment = NULL; } } if (dsp->pas) { pa_simple_free(dsp->pas); dsp->pas = NULL; } debug_todo = 0; } /* * Opens DSP and prepare metronome to play * * returns 0 on success, -1 otherwise */ int dsp_init(dsp_t* dsp) { short silencelevel = 0; if (dsp_open(dsp) == -1) return -1; dsp->frames = NULL; dsp->silence = NULL; dsp->tickdata0 = NULL; dsp->tickdata1 = NULL; dsp->tickdata2 = NULL; /* silence */ generate_data(&silencelevel, 1, dsp->rate, 1, dsp, &dsp->silence); /* allocate and initialize dsp->frames */ if (init_sample(dsp) == -1) { return -1; } /* allocate and initialize dsp->tickdata{0,1,2} */ if (prepare_buffers(dsp) == -1) { return -1; } dsp->cyclepos = 0; /* init */ dsp->tickpos = 0; dsp->running = 1; return 0; } /* * close device and clean up */ void dsp_deinit(dsp_t* dsp) { dsp->running = 0; dsp_close(dsp); if (dsp->tickdata0) { g_free(dsp->tickdata0); dsp->tickdata0 = NULL; } if (dsp->tickdata1) { g_free(dsp->tickdata1); dsp->tickdata1 = NULL; } if (dsp->tickdata2) { g_free(dsp->tickdata2); dsp->tickdata2 = NULL; } if (dsp->silence) { g_free(dsp->silence); dsp->silence = NULL; } if (dsp->frames) { g_free(dsp->frames); dsp->frames = NULL; } } /* * starts counting tickpos / cyclepos limits are exceeded */ static void wrap_position(dsp_t* dsp, int ticklen) { unsigned int* reply; if (dsp->tickpos >= ticklen) { dsp->tickpos = 0; dsp->cyclepos++; if (dsp->cyclepos >= dsp->meter) dsp->cyclepos = 0; reply = (unsigned int*) g_malloc(sizeof(unsigned int)); *reply = dsp->cyclepos; comm_server_send_response(dsp->inter_thread_comm, MESSAGE_TYPE_RESPONSE_SYNC, reply); } } /* * Feed pulseaudio stream with next samples */ gboolean pulse_feed(dsp_t* dsp) { int ticklen = rint(dsp->rate / dsp->frequency) * dsp->channels * dsp->samplesize / 8; unsigned char *the_data; /* pointer to actual buffer */ int data_size; /* size of actual buffer */ int fragments; /* number of fragments yet to write */ int error; fragments = 1; wrap_position(dsp, ticklen); /* write as many fragments as possible */ while (fragments > 0) { int i; /* generate fragment */ for (i = 0; i < dsp->fragmentsize; i++) { int index; if (dsp->meter == 1) { /* single ticks */ the_data = dsp->tickdata0; data_size = dsp->td0_size; } else if (dsp->accents[dsp->cyclepos]) { /* accentuate 1st tick */ the_data = dsp->tickdata1; data_size = dsp->td1_size; } else { /* sound of 2nd tick */ the_data = dsp->tickdata2; data_size = dsp->td2_size; } if ((index = dsp->tickpos) < data_size) { /* tick! */ dsp->fragment[i] = the_data[index]; } else { /* silence (between ticks) */ dsp->fragment[i] = dsp->silence[i % (dsp->samplesize / 8 * dsp->channels)]; } dsp->tickpos++; wrap_position(dsp, ticklen); } if (pa_simple_write(dsp->pas, dsp->fragment, (size_t) dsp->fragmentsize, &error) < 0) { g_print("pulse_feed: pa_simple_write ERROR: %s\n", pa_strerror(error)); } fragments--; } #if 0 if (pa_simple_drain(dsp->pas, &error) < 0) { g_print("pulse_feed: pa_simple_drain ERROR: %s\n", pa_strerror(error)); } #endif return 1; } /* * Feed dsp device with next samples * * used as output start and callback */ gboolean dsp_feed(dsp_t* dsp) { audio_buf_info info; /* OSS structure to obtain buffering parameters */ int ticklen = rint(dsp->rate / dsp->frequency) * dsp->channels * dsp->samplesize / 8; unsigned char *the_data; /* pointer to actual buffer */ int data_size; /* size of actual buffer */ int fragments; /* number of fragments yet to write */ int limit; /* number of fragments we want to have filled */ /* get number of fragments to write to dsp */ if (ioctl(dsp->dspfd, SNDCTL_DSP_GETOSPACE, &info) == -1) { perror("SNDCTL_DSP_GETOSPACE"); } limit = dsp->rate * dsp->channels * dsp->samplesize / 8 * WRITE_AHEAD_INTERVAL / (1000 * dsp->fragmentsize); if (limit < 2) /* we want to have filled at least 2 fragments */ limit = 2; fragments = limit - (info.fragstotal - info.fragments); wrap_position(dsp, ticklen); /* write as many fragments as possible */ while (fragments > 0) { int i; /* generate fragment */ for (i = 0; i < dsp->fragmentsize; i++) { int index; if (dsp->meter == 1) { /* single ticks */ the_data = dsp->tickdata0; data_size = dsp->td0_size; } else if (dsp->accents[dsp->cyclepos]) { /* accentuate 1st tick */ the_data = dsp->tickdata1; data_size = dsp->td1_size; } else { /* sound of 2nd tick */ the_data = dsp->tickdata2; data_size = dsp->td2_size; } if ((index = dsp->tickpos) < data_size) { /* tick! */ dsp->fragment[i] = the_data[index]; } else { /* silence (between ticks) */ dsp->fragment[i] = dsp->silence[i % (dsp->samplesize / 8 * dsp->channels)]; } dsp->tickpos++; wrap_position(dsp, ticklen); } write(dsp->dspfd, dsp->fragment, dsp->fragmentsize); fragments--; } return 1; } /* * Gets mixer setting * * returns value from 0.0 to 1.0 on success */ double dsp_get_volume(dsp_t* dsp) { assert(dsp->volume >= 0.0 && dsp->volume <= 1.0); return dsp->volume; } /* * Sets mixer setting * * accepts a value from 0.0 to 1.0 */ void dsp_set_volume(dsp_t* dsp, double volume) { assert(volume >= 0.0 && volume <= 1.0); dsp->volume = volume; if (dsp->running) { free(dsp->tickdata0); free(dsp->tickdata1); free(dsp->tickdata2); prepare_buffers(dsp); } } /* * the main loop of the metronome */ void dsp_main_loop(dsp_t* dsp) { struct timespec requested = { (WRITE_AHEAD_INTERVAL / 2) / 1000, ((WRITE_AHEAD_INTERVAL / 2) % 1000) * 1000}; struct timespec remaining; /* dummy */ int repeat_flag = 1; while (repeat_flag) { message_type_t message_type; void* message; int get_volume = 0; /* flag */ void* reply = NULL; while ((message_type = comm_server_try_get_query(dsp->inter_thread_comm, &message)) != MESSAGE_TYPE_NO_MESSAGE) { switch (message_type) { case MESSAGE_TYPE_STOP_SERVER: repeat_flag = 0; break; case MESSAGE_TYPE_SET_DEVICE: if (dsp->devicename) free(dsp->devicename); dsp->devicename = (char*) message; break; case MESSAGE_TYPE_SET_SOUND: if (dsp->soundname) free(dsp->soundname); dsp->soundname = (char*) message; break; case MESSAGE_TYPE_SET_SOUNDSYSTEM: if (dsp->soundsystem) free(dsp->soundsystem); dsp->soundsystem = (char*) message; break; case MESSAGE_TYPE_SET_METER: dsp->meter = *((int*) message); free(message); break; case MESSAGE_TYPE_SET_ACCENTS: if (dsp->accents) free(dsp->accents); dsp->accents = (int*) message; break; case MESSAGE_TYPE_SET_FREQUENCY: dsp->frequency = *((double*) message); free(message); break; case MESSAGE_TYPE_START_METRONOME: if (dsp_init(dsp) == -1) { comm_server_send_response(dsp->inter_thread_comm, MESSAGE_TYPE_RESPONSE_START_ERROR, NULL); dsp_deinit(dsp); } break; case MESSAGE_TYPE_STOP_METRONOME: dsp_deinit(dsp); break; case MESSAGE_TYPE_START_SYNC: dsp->sync_flag = 1; break; case MESSAGE_TYPE_STOP_SYNC: dsp->sync_flag = 0; break; case MESSAGE_TYPE_SET_VOLUME: dsp_set_volume(dsp, *((double*) message)); free(message); break; case MESSAGE_TYPE_GET_VOLUME: get_volume = 1; break; default: fprintf(stderr, "Warning: Unhandled message type in audio thread.\n"); } } if (get_volume) { double volume = dsp_get_volume(dsp); reply = (double*) g_malloc0 (sizeof(double)); *((double*)reply) = volume; if (*((double*)reply) != -1) { comm_server_send_response(dsp->inter_thread_comm, MESSAGE_TYPE_RESPONSE_VOLUME, reply); } else { free(reply); } } if (dsp->running) { /* metronome running */ if (dsp->dspfd != -1) { /* metronome running */ dsp_feed(dsp); } else { pulse_feed(dsp); } } nanosleep(&requested, &remaining); } } gtick-0.5.2/src/visualtick.c0000644000175000017500000002665011005112606012652 00000000000000/* * Visual Tick * * This file is part of GTick * * * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "metro.h" #include "visualtick.h" #include "util.h" /* * Draws a (filled) rectangle in a pixmap (convenience function) */ static void draw_rectangle(GdkPixmap* pixmap, int x, int y, int width, int height, const char* c) { GdkGC* gc = gdk_gc_new(pixmap); GdkColor color; if (!gdk_color_parse(c, &color)) printf("color parse error.\n"); gdk_gc_set_rgb_fg_color(gc, &color); gdk_draw_rectangle(pixmap, gc, TRUE, x, y, width, height); g_object_unref(G_OBJECT(gc)); } /* * Draws a rectangle outline in a pixmap (convenience function) */ static void draw_rectangle_outline(GdkPixmap* pixmap, int x, int y, int width, int height, const char* c) { GdkGC* gc = gdk_gc_new(pixmap); GdkColor color; if (!gdk_color_parse(c, &color)) printf("color parse error.\n"); gdk_gc_set_rgb_fg_color(gc, &color); gdk_draw_rectangle(pixmap, gc, FALSE, x, y, width, height); g_object_unref(G_OBJECT(gc)); } /* * updates the count display */ static void count_update(metro_t* metro, unsigned int old, unsigned int new) { int maxcount = gui_get_meter(metro); char color[] = "#000000"; int redflag; int width; int height; GdkRectangle inval; gdk_drawable_get_size(metro->visualtick_count->window, &width, &height); draw_rectangle(metro->visualtick_count_pixmap, inval.x = (width - 1) * old / maxcount + 1, inval.y = 1, inval.width = (width - 1) * (old + 1) / maxcount - (width - 1) * old / maxcount - 1, inval.height = height - 2, color); gdk_window_invalidate_rect(metro->visualtick_count->window, &inval, TRUE); redflag = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(metro->accentbuttons[new])); snprintf(color, 8, "#%02X%02X00", redflag * 255, (1 - redflag) * 255); draw_rectangle(metro->visualtick_count_pixmap, inval.x = (width - 1) * new / maxcount + 1, inval.y = 1, inval.width = (width - 1) * (new + 1) / maxcount - (width - 1) * new / maxcount - 1, inval.height = height - 2, color); gdk_window_invalidate_rect(metro->visualtick_count->window, &inval, TRUE); } /* * Called when the count widget is instanciated */ static gboolean count_realize_cb(metro_t* metro _U_) { if (debug) fprintf(stderr, "Virtual Tick / count: realize signal\n"); return TRUE; } /* * To be called when a new meter is set up */ void visualtick_new_meter(metro_t* metro, int meter) { if (GTK_WIDGET_VISIBLE(metro->visualtick)) { int width; int height; int i; GdkRectangle inval; gdk_drawable_get_size(metro->visualtick_count->window, &width, &height); draw_rectangle(metro->visualtick_count_pixmap, inval.x = 0, inval.y = 0, inval.width = width, inval.height = height, "#000000"); for (i = 0; i < meter; i++) { draw_rectangle_outline(metro->visualtick_count_pixmap, (width - 1) * i / meter, 0, (width - 1) * (i + 1) / meter - (width - 1) * i / meter, height - 1, "#0000FF"); } gdk_window_invalidate_rect(metro->visualtick_count->window, &inval, TRUE); count_update(metro, metro->visualtick_sync_pos, metro->visualtick_sync_pos); } } /* * Called upon creation and resize of count widget */ static gboolean count_configure_cb(metro_t* metro, GdkEventConfigure *event) { int width; int height; if (debug) fprintf(stderr, "Virtual Tick / count: configure event: (%d, %d), %d x %d\n", event->x, event->y, event->width, event->height); if (metro->visualtick_count_pixmap) g_object_unref(G_OBJECT(metro->visualtick_count_pixmap)); gdk_drawable_get_size(metro->visualtick_count->window, &width, &height); metro->visualtick_count_pixmap = gdk_pixmap_new(metro->visualtick_count->window, width, height, -1); visualtick_new_meter(metro, gui_get_meter(metro)); return TRUE; } /* * Called when something in the count window has been changed */ static gboolean count_expose_cb(metro_t* metro, GdkEventExpose *event) { if (debug) fprintf(stderr, "Virtual Tick / count: expose event: (%d, %d), %d x %d\n", event->area.x, event->area.y, event->area.width, event->area.height); gdk_draw_drawable(metro->visualtick_count->window, metro->visualtick_count->style->fg_gc[GTK_STATE_NORMAL], metro->visualtick_count_pixmap, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return TRUE; } /* * Called when the slider widget is instanciated */ static gboolean slider_realize_cb(metro_t* metro _U_) { if (debug >= 2) fprintf(stderr, "Virtual Tick / slider: realize signal\n"); return TRUE; } /* * Called upon creation and resize of slider widget */ static gboolean slider_configure_cb(metro_t* metro, GdkEventConfigure *event) { int width; int height; if (debug >= 2) fprintf(stderr, "Virtual Tick / slider: configure event: (%d, %d), %d x %d\n", event->x, event->y, event->width, event->height); if (metro->visualtick_slider_pixmap) g_object_unref(G_OBJECT(metro->visualtick_slider_pixmap)); gdk_drawable_get_size(metro->visualtick_slider->window, &width, &height); metro->visualtick_slider_pixmap = gdk_pixmap_new(metro->visualtick_slider->window, width, height, -1); /* black background for sliding tick */ draw_rectangle(metro->visualtick_slider_pixmap, 0, 0, width, height, "#000000"); return TRUE; } /* * Called when something in the slider window has been changed */ static gboolean slider_expose_cb(metro_t* metro, GdkEventExpose *event) { if (debug >= 2) fprintf(stderr, "Virtual Tick / slider: expose event: (%d, %d), %d x %d\n", event->area.x, event->area.y, event->area.width, event->area.height); gdk_draw_drawable(metro->visualtick_slider->window, metro->visualtick_slider->style->fg_gc[GTK_STATE_NORMAL], metro->visualtick_slider_pixmap, event->area.x, event->area.y, event->area.x, event->area.y, event->area.width, event->area.height); return TRUE; } /* * Returns the Visual Tick widget and initializes the corresponding * parts in metro */ GtkWidget* visualtick_init(metro_t* metro) { GtkWidget* result; result = gtk_vbox_new(FALSE, 16); metro->visualtick_count = gtk_drawing_area_new(); gtk_widget_set_size_request(metro->visualtick_count, -1, 18); gtk_box_pack_start_defaults(GTK_BOX(result), metro->visualtick_count); gtk_widget_show(metro->visualtick_count); g_signal_connect_swapped(G_OBJECT(metro->visualtick_count), "realize", G_CALLBACK(count_realize_cb), metro); g_signal_connect_swapped(G_OBJECT(metro->visualtick_count), "configure_event", G_CALLBACK(count_configure_cb), metro); g_signal_connect_swapped(G_OBJECT(metro->visualtick_count), "expose_event", G_CALLBACK(count_expose_cb), metro); metro->visualtick_slider = gtk_drawing_area_new(); gtk_widget_set_size_request(metro->visualtick_slider, -1, 16); gtk_box_pack_start_defaults(GTK_BOX(result), metro->visualtick_slider); gtk_widget_show(metro->visualtick_slider); g_signal_connect_swapped(G_OBJECT(metro->visualtick_slider), "realize", G_CALLBACK(slider_realize_cb), metro); g_signal_connect_swapped(G_OBJECT(metro->visualtick_slider), "configure_event", G_CALLBACK(slider_configure_cb), metro); g_signal_connect_swapped(G_OBJECT(metro->visualtick_slider), "expose_event", G_CALLBACK(slider_expose_cb), metro); return result; } /* * Shows the Visual Tick widget and starts the regular update */ void visualtick_enable(metro_t* metro) { gtk_widget_show(metro->visualtick); metro->visualtick_timeout_handler_id = gtk_timeout_add(1000.0 * VISUAL_DELAY, (GtkFunction) visualtick_update, metro); } /* * Stops the regular update of the widget and hides it */ void visualtick_disable(metro_t* metro) { gtk_timeout_remove(metro->visualtick_timeout_handler_id); gtk_widget_hide(metro->visualtick); gtk_window_resize(GTK_WINDOW(metro->window), 1, 1); } /* * Called with the tick number when the server signals a new tick */ void visualtick_sync(metro_t* metro, unsigned int pos) { if (GTK_WIDGET_VISIBLE(metro->visualtick)) { count_update(metro, metro->visualtick_sync_pos, pos); gettimeofday(&metro->visualtick_sync_time, NULL); metro->visualtick_sync_pos = pos; metro->visualtick_ticks ++; visualtick_update(metro); } } /* * Called to update the widget */ gboolean visualtick_update(metro_t* metro) { double pos; struct timeval current_time; struct timeval timediff; int meter; double integer; int width; int height; double red; double green; double red0; double red1; char color[] = "#000000"; GdkRectangle inval; int x0; int x1; if (metro->state == STATE_RUNNING) { gettimeofday(¤t_time, NULL); timeval_subtract(&timediff, ¤t_time, &metro->visualtick_sync_time); pos = (double) metro->visualtick_sync_pos + (timediff.tv_usec * 0.000001 + timediff.tv_sec) * GTK_ADJUSTMENT(metro->speed_adjustment)->value / 60.0; meter = gui_get_meter(metro); pos = modf(pos / meter, &integer) * meter; pos = modf(pos, &integer); red0 = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(metro->accentbuttons[(int) integer])) ? 1 : 0; red1 = gtk_toggle_button_get_active( GTK_TOGGLE_BUTTON(metro->accentbuttons[((int) integer + 1) % meter])) ? 1 : 0; red = red0 * (1.0 - pos) + red1 * pos; green = 1.0 - red; red *= 2; green *= 2; if (red > 1) red = 1; if (green > 1) green = 1; snprintf(color, 8, "#%02X%02X00", (int)(red * 255), (int)(green * 255)); if (metro->visualtick_ticks % 2) pos = 1 - pos; gdk_drawable_get_size(metro->visualtick_slider->window, &width, &height); draw_rectangle(metro->visualtick_slider_pixmap, x0 = 0.9 * width * metro->visualtick_old_pos, 0, width / 10, height, "#000000"); draw_rectangle(metro->visualtick_slider_pixmap, x1 = 0.9 * width * pos, 0, width / 10, height, color); inval.x = x0 < x1 ? x0 : x1; inval.y = 0; inval.width = width / 10 + abs(x0 - x1); inval.height = height; gdk_window_invalidate_rect(metro->visualtick_slider->window, &inval, TRUE); metro->visualtick_old_pos = pos; } return 1; /* call it again */ } gtick-0.5.2/src/gtkoptions.h0000644000175000017500000000176610660406274012720 00000000000000/* * gtkoptions.c: Options dialog functions * * This file is part of GTick * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef GTKOPTIONS_H #define GTKOPTIONS_H #include #include "options.h" GtkWidget* gtk_options_dialog_new(GtkWidget* parent, options_t* options); #endif /* GTKOPTIONS_H */ gtick-0.5.2/src/util.c0000644000175000017500000000670311005112765011454 00000000000000/* * Miscellaneous utility functions * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* regular GNU system includes */ #include #include #ifdef HAVE_STDLIB_H #include #endif #ifdef HAVE_SYS_TIME_H #include #endif #include #include #include #include #include #include /* GTK+ headers */ #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "util.h" /* global debug flag */ int debug; /* * Subtract the `struct timeval' values X and Y, * storing the result in RESULT. * Return 1 if the difference is negative, otherwise 0. * * This function comes from the GNU C Library documentation. */ int timeval_subtract(struct timeval* result, struct timeval* x, struct timeval* y) { /* Perform the carry for the later subtraction by updating y. */ if (x->tv_usec < y->tv_usec) { int nsec = (y->tv_usec - x->tv_usec) / 1000000 + 1; y->tv_usec -= 1000000 * nsec; y->tv_sec += nsec; } if (x->tv_usec - y->tv_usec > 1000000) { int nsec = (x->tv_usec - y->tv_usec) / 1000000; y->tv_usec += 1000000 * nsec; y->tv_sec -= nsec; } /* Compute the time remaining to wait. tv_usec is certainly positive. */ result->tv_sec = x->tv_sec - y->tv_sec; result->tv_usec = x->tv_usec - y->tv_usec; /* Return 1 if result is negative. */ return x->tv_sec < y->tv_sec; } /* * returns a string where all occurences of the character c are removed * from the input string s * NOTE: caller has to free() the result */ char* stripchr(char* s, char c) { int count = 1; /* trailing space */ char* temp; char* result; for (temp = s; *temp; temp++) { if (*temp != c) count++; } result = (char*) g_malloc (count); temp = result; while (*s) { if (*s != c) { *temp = *s; temp ++; } s++; } *temp = '\0'; return result; } /* * returns name of rc file for this program, NULL on error * * NOTE: caller has to free the returned buffer himself */ char* get_rc_filename(void) { const char* homedir = g_get_home_dir(); if (homedir == NULL) { return NULL; } else { return g_strdup_printf("%s/.%src", homedir, PACKAGE); } } /* * forks and executes given command (with arguments) via sh */ void execute(char *command) { pid_t result = fork(); char *argv[] = {"sh", "-c", command, NULL}; if (result == -1) { /* error */ fprintf(stderr, "Fork error.\n"); } else if (result == 0) { /* we are the child */ if (execvp("sh", argv)) { fprintf(stderr, "Exec error.\n"); exit(1); } } else { /* we are the parent */ waitpid(result, NULL, 0); } } gtick-0.5.2/src/gtkutil.h0000644000175000017500000000177510660406274012202 00000000000000/* * GTK utility functions * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef GTKUTIL_H #define GTKUTIL_H GtkWidget* get_ok_dialog(const char* title, const char* contents, GtkJustification justification); void gtk_label_attr_bold(GtkLabel* label); #endif /* GTKUTIL_H */ gtick-0.5.2/src/metro.h0000644000175000017500000000745311617227610011642 00000000000000/* * Metronome session interface * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2005 Marco Tulio Gontijo e Silva * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef METRO_H #define METRO_H /* GNU headers */ #ifdef HAVE_SYS_TIME_H #include #endif #include /* GTK+ headers */ #include #include /* own headers */ #include "options.h" #include "threadtalk.h" typedef enum state_t { STATE_IDLE, /* Metronome off */ STATE_RUNNING, /* Metronome on */ STATE_NUMBER } state_t; typedef struct state_data_t { char* state; char* toggle_label; } state_data_t; /* * the main metro object */ typedef struct metro_t { GtkWidget* window; GtkWidget* menu; GtkAccelGroup* accel_group; GtkWidget* visualtick; GtkWidget* visualtick_count; /* subwidget */ GdkPixmap* visualtick_count_pixmap; /* double buffering cache */ GtkWidget* visualtick_slider; /* subwidget */ GdkPixmap* visualtick_slider_pixmap; /* double buffering cache */ GtkToggleAction* visualtick_action; guint visualtick_timeout_handler_id; struct timeval visualtick_sync_time; /* time of last sync */ unsigned int visualtick_sync_pos; /* position of last sync */ unsigned int visualtick_sync_pos_old; double visualtick_old_pos; /* last drawed position */ unsigned int visualtick_ticks; /* number of ticks for this vt session */ GtkWidget* meter_button_1; GtkWidget* meter_button_2; GtkWidget* meter_button_3; GtkWidget* meter_button_4; GtkWidget* meter_button_more; GtkWidget* meter_spin_button; GtkWidget* togglebutton_label; GtkWidget* speed_name; /* ComboBox */ struct timeval lasttap; /* Last activation of Tap button */ GtkObject* speed_adjustment; GtkObject* volume_adjustment; int volume_initialized; /* do we have an initial volume from server yet? */ GtkWidget* accentframe; /* show / hide */ GtkWidget** accentbuttons; /* to switch on / off */ GtkToggleAction* accenttable_action; GtkWidget* profileframe; /* show / hide */ GtkToggleAction* profiles_action; GtkTreeView* profiles_tree; GtkWidget* statusbar; guint status_context; GtkWidget* start_error; /* message to be shown on metronome start error */ GtkAction* start_action; options_t* options; /* structure with all the handled rc options */ int state; /* metronome active flag */ GThread* audio_thread; comm_t* inter_thread_comm; } metro_t; metro_t* metro_new(void); void metro_delete(metro_t* metro); int gui_get_meter(metro_t* metro); int set_meter(metro_t* metro, const char* option_name _U_, const char* meter); const char* get_meter(metro_t* metro, int n _U_, char** option_name _U_); int set_speed(metro_t* metro, const char* option_name _U_, const char* speed); const char* get_speed(metro_t* metro, int n _U_, char** option_name _U_); int set_accents(metro_t* metro, const char* option_name _U_, const char* accents); const char* get_accents(metro_t* metro, int n _U_, char** option_name _U_); #endif /* METRO_H */ gtick-0.5.2/src/visualtick.h0000644000175000017500000000244410660406274012667 00000000000000/* * Interface for Visual Tick * * This file is part of GTick * * * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef VISUALTICK_H #define VISUALTICK_H /* GNU headers */ #ifdef HAVE_SYS_TIME_H #include #endif #include /* GTK+ headers */ #include #include /* own headers */ #include "metro.h" GtkWidget* visualtick_init(metro_t* metro); void visualtick_enable(metro_t* metro); void visualtick_disable(metro_t* metro); void visualtick_sync(metro_t* metro, unsigned int pos); void visualtick_new_meter(metro_t* metro, int meter); gboolean visualtick_update(metro_t* metro); #endif /* VISUALTICK_H */ gtick-0.5.2/src/options.c0000644000175000017500000000264111005112732012161 00000000000000/* * Metronome options object functions * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include #include /* GTK+ headers */ #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "options.h" #include "option.h" /* * returns a new options_t object */ options_t* options_new(void) { options_t* result; result = g_malloc0(sizeof(options_t)); result->option_list = option_list_new(); return result; } /* * destroys an options_t object */ void options_delete(options_t* options) { option_list_delete(options->option_list); free(options); } gtick-0.5.2/src/optionparser.c0000644000175000017500000014043112116334650013224 00000000000000/* A Bison parser, made by GNU Bison 2.5. */ /* Bison implementation for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. 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 3 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, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* C LALR(1) parser skeleton written by Richard Stallman, by simplifying the original so-called "semantic" parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Bison version. */ #define YYBISON_VERSION "2.5" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Push parsers. */ #define YYPUSH 0 /* Pull parsers. */ #define YYPULL 1 /* Using locations. */ #define YYLSP_NEEDED 1 /* Substitute the variable and function names. */ #define yyparse option_parse #define yylex option_lex #define yyerror option_error #define yylval option_lval #define yychar option_char #define yydebug option_debug #define yynerrs option_nerrs #define yylloc option_lloc /* Copy the first part of user declarations. */ /* Line 268 of yacc.c */ #line 2 "optionparser.y" /* * options file format parser * * This file is part of GTick * * Copyright 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ /* regular GNU system includes */ #include #include /* own header files */ #include "globals.h" #include "option.h" /* type for semantic values of symbols: malloc'ed strings */ #define YYSTYPE char* /* let yyparse() accept one argument of type void* */ /* #define YYPARSE_PARAM option_list */ int option_lex(void); void option_error(void *option_list, const char *message); /* Line 268 of yacc.c */ #line 121 "optionparser.c" /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif /* Enabling the token table. */ #ifndef YYTOKEN_TABLE # define YYTOKEN_TABLE 0 #endif /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { TOKEN_NAME = 258, TOKEN_VALUE = 259 }; #endif /* Tokens. */ #define TOKEN_NAME 258 #define TOKEN_VALUE 259 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 #endif #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED typedef struct YYLTYPE { int first_line; int first_column; int last_line; int last_column; } YYLTYPE; # define yyltype YYLTYPE /* obsolescent; will be withdrawn */ # define YYLTYPE_IS_DECLARED 1 # define YYLTYPE_IS_TRIVIAL 1 #endif /* Copy the second part of user declarations. */ /* Line 343 of yacc.c */ #line 184 "optionparser.c" #ifdef short # undef short #endif #ifdef YYTYPE_UINT8 typedef YYTYPE_UINT8 yytype_uint8; #else typedef unsigned char yytype_uint8; #endif #ifdef YYTYPE_INT8 typedef YYTYPE_INT8 yytype_int8; #elif (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) typedef signed char yytype_int8; #else typedef short int yytype_int8; #endif #ifdef YYTYPE_UINT16 typedef YYTYPE_UINT16 yytype_uint16; #else typedef unsigned short int yytype_uint16; #endif #ifdef YYTYPE_INT16 typedef YYTYPE_INT16 yytype_int16; #else typedef short int yytype_int16; #endif #ifndef YYSIZE_T # ifdef __SIZE_TYPE__ # define YYSIZE_T __SIZE_TYPE__ # elif defined size_t # define YYSIZE_T size_t # elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # else # define YYSIZE_T unsigned int # endif #endif #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) # endif # endif # ifndef YY_ # define YY_(msgid) msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ # define YYUSE(e) ((void) (e)) #else # define YYUSE(e) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint # define YYID(n) (n) #else #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static int YYID (int yyi) #else static int YYID (yyi) int yyi; #endif { return yyi; } #endif #if ! defined yyoverflow || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # ifdef YYSTACK_USE_ALLOCA # if YYSTACK_USE_ALLOCA # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # elif defined __BUILTIN_VA_ARG_INCR # include /* INFRINGES ON USER NAME SPACE */ # elif defined _AIX # define YYSTACK_ALLOC __alloca # elif defined _MSC_VER # include /* INFRINGES ON USER NAME SPACE */ # define alloca _alloca # else # define YYSTACK_ALLOC alloca # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) # ifndef YYSTACK_ALLOC_MAXIMUM /* The OS might guarantee only one guard page at the bottom of the stack, and a page size can be as small as 4096 bytes. So we cannot safely invoke alloca (N) if N exceeds 4096. Use a slightly smaller number to allow for a few compiler-allocated temporary stack slots. */ # define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */ # endif # else # define YYSTACK_ALLOC YYMALLOC # define YYSTACK_FREE YYFREE # ifndef YYSTACK_ALLOC_MAXIMUM # define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM # endif # if (defined __cplusplus && ! defined EXIT_SUCCESS \ && ! ((defined YYMALLOC || defined malloc) \ && (defined YYFREE || defined free))) # include /* INFRINGES ON USER NAME SPACE */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif # endif # ifndef YYMALLOC # define YYMALLOC malloc # if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ # endif # endif # ifndef YYFREE # define YYFREE free # if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) void free (void *); /* INFRINGES ON USER NAME SPACE */ # endif # endif # endif #endif /* ! defined yyoverflow || YYERROR_VERBOSE */ #if (! defined yyoverflow \ && (! defined __cplusplus \ || (defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL \ && defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { yytype_int16 yyss_alloc; YYSTYPE yyvs_alloc; YYLTYPE yyls_alloc; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE) + sizeof (YYLTYPE)) \ + 2 * YYSTACK_GAP_MAXIMUM) # define YYCOPY_NEEDED 1 /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack_alloc, Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ Stack = &yyptr->Stack_alloc; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (YYID (0)) #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (YYID (0)) # endif # endif #endif /* !YYCOPY_NEEDED */ /* YYFINAL -- State number of the termination state. */ #define YYFINAL 2 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 5 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 6 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 3 /* YYNRULES -- Number of rules. */ #define YYNRULES 6 /* YYNRULES -- Number of states. */ #define YYNSTATES 8 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 259 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const yytype_uint8 yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const yytype_uint8 yyprhs[] = { 0, 0, 3, 4, 7, 11, 14 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yytype_int8 yyrhs[] = { 7, 0, -1, -1, 7, 8, -1, 3, 5, 4, -1, 3, 5, -1, 1, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const yytype_uint8 yyrline[] = { 0, 52, 52, 53, 56, 62, 67 }; #endif #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "TOKEN_NAME", "TOKEN_VALUE", "'='", "$accept", "lines", "line", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const yytype_uint16 yytoknum[] = { 0, 256, 257, 258, 259, 61 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const yytype_uint8 yyr1[] = { 0, 6, 7, 7, 8, 8, 8 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const yytype_uint8 yyr2[] = { 0, 2, 0, 2, 3, 2, 1 }; /* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. Performed when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const yytype_uint8 yydefact[] = { 2, 0, 1, 6, 0, 3, 5, 4 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yytype_int8 yydefgoto[] = { -1, 1, 5 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -4 static const yytype_int8 yypact[] = { -4, 0, -4, -4, -3, -4, 1, -4 }; /* YYPGOTO[NTERM-NUM]. */ static const yytype_int8 yypgoto[] = { -4, -4, -4 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 static const yytype_uint8 yytable[] = { 2, 3, 6, 4, 0, 7 }; #define yypact_value_is_default(yystate) \ ((yystate) == (-4)) #define yytable_value_is_error(yytable_value) \ YYID (0) static const yytype_int8 yycheck[] = { 0, 1, 5, 3, -1, 4 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const yytype_uint8 yystos[] = { 0, 7, 0, 1, 3, 8, 5, 4 }; #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrorlab /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. However, YYFAIL appears to be in use. Nevertheless, it is formally deprecated in Bison 2.4.2's NEWS entry, where a plan to phase it out is discussed. */ #define YYFAIL goto yyerrlab #if defined YYFAIL /* This is here to suppress warnings from the GCC cpp's -Wunused-macros. Normally we don't worry about that warning, but some users do, and we want to make it easy for users to remove YYFAIL uses, which will produce warnings from Bison 2.5. */ #endif #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ YYPOPSTACK (1); \ goto yybackup; \ } \ else \ { \ yyerror (option_list, YY_("syntax error: cannot back up")); \ YYERROR; \ } \ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ #define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ do \ if (YYID (N)) \ { \ (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ } \ else \ { \ (Current).first_line = (Current).last_line = \ YYRHSLOC (Rhs, 0).last_line; \ (Current).first_column = (Current).last_column = \ YYRHSLOC (Rhs, 0).last_column; \ } \ while (YYID (0)) #endif /* YY_LOCATION_PRINT -- Print the location on the stream. This macro was not mandated originally: define only if we know we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ (Loc).last_line, (Loc).last_column) # else # define YY_LOCATION_PRINT(File, Loc) ((void) 0) # endif #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (YYID (0)) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yy_symbol_print (stderr, \ Type, Value, Location, option_list); \ YYFPRINTF (stderr, "\n"); \ } \ } while (YYID (0)) /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, void *option_list) #else static void yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, option_list) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; YYLTYPE const * const yylocationp; void *option_list; #endif { if (!yyvaluep) return; YYUSE (yylocationp); YYUSE (option_list); # ifdef YYPRINT if (yytype < YYNTOKENS) YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # else YYUSE (yyoutput); # endif switch (yytype) { default: break; } } /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep, YYLTYPE const * const yylocationp, void *option_list) #else static void yy_symbol_print (yyoutput, yytype, yyvaluep, yylocationp, option_list) FILE *yyoutput; int yytype; YYSTYPE const * const yyvaluep; YYLTYPE const * const yylocationp; void *option_list; #endif { if (yytype < YYNTOKENS) YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); YY_LOCATION_PRINT (yyoutput, *yylocationp); YYFPRINTF (yyoutput, ": "); yy_symbol_value_print (yyoutput, yytype, yyvaluep, yylocationp, option_list); YYFPRINTF (yyoutput, ")"); } /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (included). | `------------------------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) #else static void yy_stack_print (yybottom, yytop) yytype_int16 *yybottom; yytype_int16 *yytop; #endif { YYFPRINTF (stderr, "Stack now"); for (; yybottom <= yytop; yybottom++) { int yybot = *yybottom; YYFPRINTF (stderr, " %d", yybot); } YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (YYID (0)) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yy_reduce_print (YYSTYPE *yyvsp, YYLTYPE *yylsp, int yyrule, void *option_list) #else static void yy_reduce_print (yyvsp, yylsp, yyrule, option_list) YYSTYPE *yyvsp; YYLTYPE *yylsp; int yyrule; void *option_list; #endif { int yynrhs = yyr2[yyrule]; int yyi; unsigned long int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", yyrule - 1, yylno); /* The symbols being reduced. */ for (yyi = 0; yyi < yynrhs; yyi++) { YYFPRINTF (stderr, " $%d = ", yyi + 1); yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], &(yyvsp[(yyi + 1) - (yynrhs)]) , &(yylsp[(yyi + 1) - (yynrhs)]) , option_list); YYFPRINTF (stderr, "\n"); } } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (yyvsp, yylsp, Rule, option_list); \ } while (YYID (0)) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YY_SYMBOL_PRINT(Title, Type, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined __GLIBC__ && defined _STRING_H # define yystrlen strlen # else /* Return the length of YYSTR. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static YYSIZE_T yystrlen (const char *yystr) #else static YYSIZE_T yystrlen (yystr) const char *yystr; #endif { YYSIZE_T yylen; for (yylen = 0; yystr[yylen]; yylen++) continue; return yylen; } # endif # endif # ifndef yystpcpy # if defined __GLIBC__ && defined _STRING_H && defined _GNU_SOURCE # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static char * yystpcpy (char *yydest, const char *yysrc) #else static char * yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; #endif { char *yyd = yydest; const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif # ifndef yytnamerr /* Copy to YYRES the contents of YYSTR after stripping away unnecessary quotes and backslashes, so that it's suitable for yyerror. The heuristic is that double-quoting is unnecessary unless the string contains an apostrophe, a comma, or backslash (other than backslash-backslash). YYSTR is taken from yytname. If YYRES is null, do not copy; instead, return the length of what the result would have been. */ static YYSIZE_T yytnamerr (char *yyres, const char *yystr) { if (*yystr == '"') { YYSIZE_T yyn = 0; char const *yyp = yystr; for (;;) switch (*++yyp) { case '\'': case ',': goto do_not_strip_quotes; case '\\': if (*++yyp != '\\') goto do_not_strip_quotes; /* Fall through. */ default: if (yyres) yyres[yyn] = *yyp; yyn++; break; case '"': if (yyres) yyres[yyn] = '\0'; return yyn; } do_not_strip_quotes: ; } if (! yyres) return yystrlen (yystr); return yystpcpy (yyres, yystr) - yyres; } # endif /* Copy into *YYMSG, which is of size *YYMSG_ALLOC, an error message about the unexpected token YYTOKEN for the state stack whose top is YYSSP. Return 0 if *YYMSG was successfully written. Return 1 if *YYMSG is not large enough to hold the message. In that case, also set *YYMSG_ALLOC to the required number of bytes. Return 2 if the required number of bytes is too large to store. */ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ const char *yyformat = 0; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per "expected"). */ int yycount = 0; /* There are many possibilities here to consider: - Assume YYFAIL is not used. It's too flawed to consider. See for details. YYERROR is fine as it does not invoke this function. - If this state is a consistent state with a default action, then the only way this function was invoked is if the default action is an error action. In that case, don't check for expected tokens because there are none. - The only way there can be no lookahead present (in yychar) is if this state is a consistent state with a default action. Thus, detecting the absence of a lookahead is sufficient to determine that there is no unexpected or expected token to report. In that case, just report a simple "syntax error". - Don't assume there isn't a lookahead just because this state is a consistent state with a default action. There might have been a previous inconsistent state, consistent state with a non-default action, or user semantic action that manipulated yychar. - Of course, the expected token list depends on states to have correct lookahead information, and it depends on the parser not to perform extra reductions after fetching a lookahead from the scanner and before detecting a syntax error. Thus, state merging (from LALR or IELR) and default reductions corrupt the expected token list. However, the list is correct for canonical LR with one exception: it will still contain any token that will not be accepted due to an error action in a later state. */ if (yytoken != YYEMPTY) { int yyn = yypact[*yyssp]; yyarg[yycount++] = yytname[yytoken]; if (!yypact_value_is_default (yyn)) { /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. In other words, skip the first -YYN actions for this state because they are default actions. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn + 1; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yyx; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR && !yytable_value_is_error (yytable[yyx + yyn])) { if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) { yycount = 1; yysize = yysize0; break; } yyarg[yycount++] = yytname[yyx]; yysize1 = yysize + yytnamerr (0, yytname[yyx]); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; } } } switch (yycount) { # define YYCASE_(N, S) \ case N: \ yyformat = S; \ break YYCASE_(0, YY_("syntax error")); YYCASE_(1, YY_("syntax error, unexpected %s")); YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s")); YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s")); YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or %s")); YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s")); # undef YYCASE_ } yysize1 = yysize + yystrlen (yyformat); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; yysize = yysize1; if (*yymsg_alloc < yysize) { *yymsg_alloc = 2 * yysize; if (! (yysize <= *yymsg_alloc && *yymsg_alloc <= YYSTACK_ALLOC_MAXIMUM)) *yymsg_alloc = YYSTACK_ALLOC_MAXIMUM; return 1; } /* Avoid sprintf, as that infringes on the user's name space. Don't have undefined behavior even if the translation produced a string with the wrong number of "%s"s. */ { char *yyp = *yymsg; int yyi = 0; while ((*yyp = *yyformat) != '\0') if (*yyp == '%' && yyformat[1] == 's' && yyi < yycount) { yyp += yytnamerr (yyp, yyarg[yyi++]); yyformat += 2; } else { yyp++; yyformat++; } } return 0; } #endif /* YYERROR_VERBOSE */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ /*ARGSUSED*/ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) static void yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, YYLTYPE *yylocationp, void *option_list) #else static void yydestruct (yymsg, yytype, yyvaluep, yylocationp, option_list) const char *yymsg; int yytype; YYSTYPE *yyvaluep; YYLTYPE *yylocationp; void *option_list; #endif { YYUSE (yyvaluep); YYUSE (yylocationp); YYUSE (option_list); if (!yymsg) yymsg = "Deleting"; YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM #if defined __STDC__ || defined __cplusplus int yyparse (void *YYPARSE_PARAM); #else int yyparse (); #endif #else /* ! YYPARSE_PARAM */ #if defined __STDC__ || defined __cplusplus int yyparse (void *option_list); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Location data for the lookahead symbol. */ YYLTYPE yylloc; /* Number of syntax errors so far. */ int yynerrs; /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *YYPARSE_PARAM) #else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; #endif #else /* ! YYPARSE_PARAM */ #if (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) int yyparse (void *option_list) #else int yyparse (option_list) void *option_list; #endif #endif { int yystate; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* The stacks and their tools: `yyss': related to states. `yyvs': related to semantic values. `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ yytype_int16 yyssa[YYINITDEPTH]; yytype_int16 *yyss; yytype_int16 *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs; YYSTYPE *yyvsp; /* The location stack. */ YYLTYPE yylsa[YYINITDEPTH]; YYLTYPE *yyls; YYLTYPE *yylsp; /* The locations where the error started and ended. */ YYLTYPE yyerror_range[3]; YYSIZE_T yystacksize; int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ int yytoken; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; YYLTYPE yyloc; #if YYERROR_VERBOSE /* Buffer for error messages, and its allocated size. */ char yymsgbuf[128]; char *yymsg = yymsgbuf; YYSIZE_T yymsg_alloc = sizeof yymsgbuf; #endif #define YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N), yylsp -= (N)) /* The number of symbols on the RHS of the reduced rule. Keep to zero when no symbol should be popped. */ int yylen = 0; yytoken = 0; yyss = yyssa; yyvs = yyvsa; yyls = yylsa; yystacksize = YYINITDEPTH; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; yylsp = yyls; #if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL /* Initialize the default location before parsing starts. */ yylloc.first_line = yylloc.last_line = 1; yylloc.first_column = yylloc.last_column = 1; #endif goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. So pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; yytype_int16 *yyss1 = yyss; YYLTYPE *yyls1 = yyls; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow (YY_("memory exhausted"), &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yyls1, yysize * sizeof (*yylsp), &yystacksize); yyls = yyls1; yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyexhaustedlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyexhaustedlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { yytype_int16 *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyexhaustedlab; YYSTACK_RELOCATE (yyss_alloc, yyss); YYSTACK_RELOCATE (yyvs_alloc, yyvs); YYSTACK_RELOCATE (yyls_alloc, yyls); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; yylsp = yyls + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); if (yystate == YYFINAL) YYACCEPT; goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. Read a lookahead token if we need one and don't already have one. */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yypact_value_is_default (yyn)) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yytable_value_is_error (yyn)) goto yyerrlab; yyn = -yyn; goto yyreduce; } /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; /* Shift the lookahead token. */ YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc); /* Discard the shifted token. */ yychar = YYEMPTY; yystate = yyn; *++yyvsp = yylval; *++yylsp = yylloc; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; /* Default location. */ YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen); YY_REDUCE_PRINT (yyn); switch (yyn) { case 4: /* Line 1806 of yacc.c */ #line 57 "optionparser.y" { option_set(option_list, (yyvsp[(1) - (3)]), (yyvsp[(3) - (3)])); free((yyvsp[(1) - (3)])); free((yyvsp[(3) - (3)])); } break; case 5: /* Line 1806 of yacc.c */ #line 63 "optionparser.y" { option_set(option_list, (yyvsp[(1) - (2)]), ""); free((yyvsp[(1) - (2)])); } break; case 6: /* Line 1806 of yacc.c */ #line 68 "optionparser.y" { fprintf(stderr, "Found error region from %d:%d up to %d:%d.\n", (yylsp[(1) - (1)]).first_line, (yylsp[(1) - (1)]).first_column, (yylsp[(1) - (1)]).last_line, (yylsp[(1) - (1)]).last_column); (yyval) = (yyvsp[(1) - (1)]); } break; /* Line 1806 of yacc.c */ #line 1479 "optionparser.c" default: break; } /* User semantic actions sometimes alter yychar, and that requires that yytoken be updated with the new translation. We take the approach of translating immediately before every use of yytoken. One alternative is translating here after every semantic action, but that translation would be missed if the semantic action invokes YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or if it invokes YYBACKUP. In the case of YYABORT or YYACCEPT, an incorrect destructor might then be invoked immediately. In the case of YYERROR or YYBACKUP, subsequent parser actions might lead to an incorrect destructor call or verbose syntax error message before the lookahead is translated. */ YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; *++yylsp = yyloc; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = yychar == YYEMPTY ? YYEMPTY : YYTRANSLATE (yychar); /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if ! YYERROR_VERBOSE yyerror (option_list, YY_("syntax error")); #else # define YYSYNTAX_ERROR yysyntax_error (&yymsg_alloc, &yymsg, \ yyssp, yytoken) { char const *yymsgp = YY_("syntax error"); int yysyntax_error_status; yysyntax_error_status = YYSYNTAX_ERROR; if (yysyntax_error_status == 0) yymsgp = yymsg; else if (yysyntax_error_status == 1) { if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); yymsg = (char *) YYSTACK_ALLOC (yymsg_alloc); if (!yymsg) { yymsg = yymsgbuf; yymsg_alloc = sizeof yymsgbuf; yysyntax_error_status = 2; } else { yysyntax_error_status = YYSYNTAX_ERROR; yymsgp = yymsg; } } yyerror (option_list, yymsgp); if (yysyntax_error_status == 2) goto yyexhaustedlab; } # undef YYSYNTAX_ERROR #endif } yyerror_range[1] = yylloc; if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ if (yychar <= YYEOF) { /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } else { yydestruct ("Error: discarding", yytoken, &yylval, &yylloc, option_list); yychar = YYEMPTY; } } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*---------------------------------------------------. | yyerrorlab -- error raised explicitly by YYERROR. | `---------------------------------------------------*/ yyerrorlab: /* Pacify compilers like GCC when the user code never invokes YYERROR and the label yyerrorlab therefore never appears in user code. */ if (/*CONSTCOND*/ 0) goto yyerrorlab; yyerror_range[1] = yylsp[1-yylen]; /* Do not reclaim the symbols of the rule which action triggered this YYERROR. */ YYPOPSTACK (yylen); yylen = 0; YY_STACK_PRINT (yyss, yyssp); yystate = *yyssp; goto yyerrlab1; /*-------------------------------------------------------------. | yyerrlab1 -- common code for both syntax error and YYERROR. | `-------------------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (!yypact_value_is_default (yyn)) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; yyerror_range[1] = *yylsp; yydestruct ("Error: popping", yystos[yystate], yyvsp, yylsp, option_list); YYPOPSTACK (1); yystate = *yyssp; YY_STACK_PRINT (yyss, yyssp); } *++yyvsp = yylval; yyerror_range[2] = yylloc; /* Using YYLLOC is tempting, but would change the location of the lookahead. YYLOC is available though. */ YYLLOC_DEFAULT (yyloc, yyerror_range, 2); *++yylsp = yyloc; /* Shift the error token. */ YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp); yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #if !defined(yyoverflow) || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ yyexhaustedlab: yyerror (option_list, YY_("memory exhausted")); yyresult = 2; /* Fall through. */ #endif yyreturn: if (yychar != YYEMPTY) { /* Make sure we have latest lookahead translation. See comments at user semantic actions for why this is necessary. */ yytoken = YYTRANSLATE (yychar); yydestruct ("Cleanup: discarding lookahead", yytoken, &yylval, &yylloc, option_list); } /* Do not reclaim the symbols of the rule which action triggered this YYABORT or YYACCEPT. */ YYPOPSTACK (yylen); YY_STACK_PRINT (yyss, yyssp); while (yyssp != yyss) { yydestruct ("Cleanup: popping", yystos[*yyssp], yyvsp, yylsp, option_list); YYPOPSTACK (1); } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif #if YYERROR_VERBOSE if (yymsg != yymsgbuf) YYSTACK_FREE (yymsg); #endif /* Make sure YYID is used. */ return YYID (yyresult); } /* Line 2067 of yacc.c */ #line 76 "optionparser.y" /* * callback for yyparse(), (also) called on errors (hopefully) handled * by error token actions in grammar, but not if errors occur to * often (bison needs 3 "correct" tokens to recover) */ void option_error(void *option_list, const char *message) { if (debug && option_nerrs == 1) fprintf(stderr, "Warning: Parsing options file: first error at %d:%d: %s.\n", option_lloc.first_line, option_lloc.first_column, message); } gtick-0.5.2/src/dsp.h0000644000175000017500000000521111617227610011270 00000000000000/* * DSP interface * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #ifndef DSP_H #define DSP_H /* GTK headers */ #include #include /* own headers */ #include "threadtalk.h" typedef struct dsp_t { char* devicename; char* soundname; char* soundsystem; pa_simple *pas; /* pa simple playback stream */ int dspfd; /* file descriptor */ int fragmentsize; /* fragment size */ int fragstotal; /* number of fragments in DSP buffer */ int channels; /* number of channels */ int rate; /* number of frames per second in Hz */ int samplesize; /* number of bits per item (usually 8 or 16) */ int format; int rate_in; /* rate of input data in Hz */ int channels_in; /* number of channels of input data in Hz */ unsigned char* fragment; unsigned char* tickdata0; /* raw dsp sample bytes for single tick */ int td0_size; /* length in bytes */ unsigned char* tickdata1; /* raw dsp sample bytes for first tick */ int td1_size; unsigned char* tickdata2; /* dsp sample bytes for other ticks */ int td2_size; unsigned char* silence; /* size = channels * samplesize / 8 */ short* frames; /* the original frames yet to be scaled by volume */ int number_of_frames; int meter; /* meter mode */ double frequency; /* ticking frequency in Hz */ int cyclepos; /* current number of tick (0, 1, 2 for 3/4) */ int tickpos; /* number of frame in tick */ int* accents; int running; /* on/off flag */ double volume; /* 0.0 ... 1.0 */ int sync_flag; comm_t* inter_thread_comm; } dsp_t; dsp_t* dsp_new(comm_t* comm); void dsp_delete(dsp_t* dsp); int dsp_open(dsp_t* dsp); void dsp_close(dsp_t* dsp); int dsp_init(dsp_t* dsp); void dsp_deinit(dsp_t* dsp); gboolean dsp_feed(dsp_t* dsp); double dsp_get_volume(dsp_t* dsp); void dsp_set_volume(dsp_t* dsp, double volume); void dsp_main_loop(dsp_t* dsp); #endif /* DSP_H */ gtick-0.5.2/src/optionparser.y0000644000175000017500000000424412116333473013255 00000000000000%name-prefix="option_" %{ /* * options file format parser * * This file is part of GTick * * Copyright 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ /* regular GNU system includes */ #include #include /* own header files */ #include "globals.h" #include "option.h" /* type for semantic values of symbols: malloc'ed strings */ #define YYSTYPE char* /* let yyparse() accept one argument of type void* */ /* #define YYPARSE_PARAM option_list */ int option_lex(void); void option_error(void *option_list, const char *message); %} /* parse parameter */ %parse-param {void *option_list} /* terminal symbols */ %token TOKEN_NAME %token TOKEN_VALUE %% lines : | lines line ; line : TOKEN_NAME '=' TOKEN_VALUE { option_set(option_list, $1, $3); free($1); free($3); } | TOKEN_NAME '=' { option_set(option_list, $1, ""); free($1); } | error { fprintf(stderr, "Found error region from %d:%d up to %d:%d.\n", @1.first_line, @1.first_column, @1.last_line, @1.last_column); $$ = $1; } ; %% /* * callback for yyparse(), (also) called on errors (hopefully) handled * by error token actions in grammar, but not if errors occur to * often (bison needs 3 "correct" tokens to recover) */ void option_error(void *option_list, const char *message) { if (debug && option_nerrs == 1) fprintf(stderr, "Warning: Parsing options file: first error at %d:%d: %s.\n", option_lloc.first_line, option_lloc.first_column, message); } gtick-0.5.2/src/Makefile.am0000644000175000017500000000204111617232671012366 00000000000000## Process this file with automake to produce Makefile.in bin_PROGRAMS = gtick gtick_SOURCES = gtick.c \ metro.c \ dsp.c \ help.c \ g711.c \ gtkutil.c \ util.c \ option.c \ options.c \ gtkoptions.c \ optionlexer.l \ optionparser.y \ profiles.c \ threadtalk.c \ visualtick.c gtick_LDADD = @DEPS_LIBS@ @SNDFILE_LIBS@ noinst_HEADERS = metro.h \ dsp.h \ help.h \ tickdata.c \ globals.h \ gettext.h \ g711.h \ gtkutil.h \ util.h \ option.h \ options.h \ gtkoptions.h \ optionlexer.h \ profiles.h \ threadtalk.h \ visualtick.h EXTRA_DIST = aboutlogo.xpm \ icon32x32.xpm \ icon48x48.xpm \ icon64x64.xpm \ converter.c top_srcdir = @top_srcdir@ datadir = @datadir@ localedir = $(datadir)/locale DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ LIBS = @LIBINTL@ @LIBS@ INCLUDES = -I../intl -I$(top_srcdir)/intl @DEPS_CFLAGS@ @SNDFILE_CFLAGS@ AM_CFLAGS = -DVERSION='"@VERSION@"' -DPACKAGE='"@PACKAGE@"' AM_YFLAGS = -d AM_LFLAGS=-olex.yy.c BUILT_SOURCES = optionparser.h gtick-0.5.2/src/icon64x64.xpm0000644000175000017500000002673710660406274012545 00000000000000/* XPM */ static char *icon64x64[] = { /* columns rows colors chars-per-pixel */ "64 64 199 2", " c #000000", ". c #0B0000", "X c #0B0B0B", "o c #130101", "O c #1B0101", "+ c #1A0A0A", "@ c #121212", "# c #1A1A1A", "$ c #230000", "% c #230A0A", "& c #2E0000", "* c #2D1010", "= c #330303", "- c #330909", "; c #3D0000", ": c #3C0A0A", "> c #3C1616", ", c #252525", "< c #2B2B2B", "1 c #333333", "2 c #3C3C3C", "3 c #430000", "4 c #430909", "5 c #4B0101", "6 c #4E0A0A", "7 c #421414", "8 c #431818", "9 c #4E1515", "0 c #510202", "q c #5B0000", "w c #5B0A0A", "e c #541414", "r c #581B1B", "t c #630101", "y c #630909", "u c #690101", "i c #6C0B0B", "p c #651414", "a c #6C1111", "s c #710000", "d c #760A0A", "f c #790101", "g c #7D0D0D", "h c #711010", "j c #721A1A", "k c #7D1313", "l c #7E1A1A", "z c #662525", "x c #6F2929", "c c #712525", "v c #7D2222", "b c #434343", "n c #4B4B4B", "m c #535353", "M c #5B5B5B", "N c #626262", "B c #6C6C6C", "V c #737373", "C c #7B7B7B", "Z c #820000", "A c #820A0A", "S c #8A0101", "D c #8E0A0A", "F c #861010", "G c #8B1010", "H c #930000", "J c #940C0C", "K c #9C0000", "L c #9B0D0D", "P c #921414", "I c #911B1B", "U c #9C1010", "Y c #822E2E", "T c #8E2525", "R c #863232", "E c #8F3131", "W c #972525", "Q c #943434", "! c #9C3A3A", "~ c #A00000", "^ c #A40D0D", "/ c #AC0202", "( c #AC0D0D", ") c #A31414", "_ c #A41A1A", "` c #AB1414", "' c #AF1818", "] c #B30303", "[ c #B30909", "{ c #BA0303", "} c #BD0D0D", "| c #B31313", " . c #B21C1C", ".. c #B81212", "X. c #B91C1C", "o. c #A62525", "O. c #A02929", "+. c #AD2A2A", "@. c #A43838", "#. c #B72929", "$. c #B83F3F", "%. c #C50000", "&. c #C20C0C", "*. c #C80000", "=. c #CA0E0E", "-. c #C11616", ";. c #C61919", ":. c #CD1414", ">. c #C91B1B", ",. c #D10000", "<. c #D30D0D", "1. c #DB0303", "2. c #DF0D0D", "3. c #D01414", "4. c #D61919", "5. c #D91515", "6. c #D91919", "7. c #C82121", "8. c #C82929", "9. c #C63E3E", "0. c #C93333", "q. c #C93D3D", "w. c #D62121", "e. c #D72B2B", "r. c #D92222", "t. c #D92B2B", "y. c #D73333", "u. c #D63838", "i. c #D93333", "p. c #D83939", "a. c #E20000", "s. c #E70F0F", "d. c #EB0101", "f. c #E90D0D", "g. c #E01111", "h. c #E21E1E", "j. c #EB1313", "k. c #EB1A1A", "l. c #F40202", "z. c #F70B0B", "x. c #FA0606", "c. c #FC0B0B", "v. c #F01212", "b. c #F31C1C", "n. c #FE1414", "m. c #FE1D1D", "M. c #E42020", "N. c #E72E2E", "B. c #EB2121", "V. c #E03737", "C. c #E43F3F", "Z. c #E93131", "A. c #EC3838", "S. c #F32424", "D. c #F02D2D", "F. c #FE2323", "G. c #FE2B2B", "H. c #F33535", "J. c #F23A3A", "K. c #FE3434", "L. c #FE3A3A", "P. c #CB4444", "I. c #CA4A4A", "U. c #CC5555", "Y. c #DB5656", "T. c #E84E4E", "R. c #E25656", "E. c #E95757", "W. c #F54242", "Q. c #F44A4A", "!. c #FE4343", "~. c #FF4A4A", "^. c #F05454", "/. c #F25A5A", "(. c #FE5353", "). c #FE5C5C", "_. c #FF6363", "`. c #FE6C6C", "'. c #FF7373", "]. c #FF7B7B", "[. c #838383", "{. c #8B8B8B", "}. c #939393", "|. c #9B9B9B", " X c #A4A4A4", ".X c #AAAAAA", "XX c #B5B5B5", "oX c #BBBBBB", "OX c #FF8383", "+X c #FF8B8B", "@X c #FF9090", "#X c #C2C2C2", "$X c #CBCBCB", "%X c #D3D3D3", "&X c #DDDDDD", "*X c #E4E4E4", "=X c #ECECEC", "-X c #F3F3F3", ";X c #FEFEFE", /* pixels */ "*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.%.", "*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.%.*.*.%.*.*.*.*.", "*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.%.*.*.*.", "*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.", "*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.", ",.*.,.,.,.,.,.*.,.,.*.*.*.*.,.*.*.*.*.,.*.,.*.*.*.*.*.*.,.*.*.*.,.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.%.*.*.*.%.%.*.*.%.*.*.*.{ *.%.%.", "c.c.c.c.c.c.c.c.c.c.c.c.c.c.c.x.x.c.x.c.x.c.c.l.x.x.l.l.x.l.l.l.l.l.l.d.l.d.d.d.d.d.d.d.d.d.f.d.a.d.d.d.a.a.d.a.a.a.a.a.a.a.1.1.", "~.~.~.~.~.!.~.!.L.!.L.L.L.L.L.K.K.K.K.G.K.G.G.G.G.F.G.F.F.F.F.F.F.m.m.m.m.n.m.m.n.m.n.n.n.c.c.c.c.c.c.c.c.c.c.c.x.c.x.x.x.x.x.x.", "].].'.'.'.'.'.`.`._._._.).).).).).(.(.(.(.(.~.~.~.!.~.!.!.!.!.!.L.L.L.L.L.K.K.K.K.K.K.G.G.G.G.G.G.G.F.F.F.F.F.F.F.m.F.m.F.F.G.K.", "+X+X+X+XOXOX].].].].].'.'.'.`.`.`._._._._._._.).).).).(.(.(.(.~.(.~.~.~.~.!.~.!.!.!.!.!.!.L.!.L.L.L.L.L.L.K.K.K.K.L.!.!.!.Q.q.C.", "+X+X+X+XOXOXOX].].].].].'.'.'.'.'.`.`.`.`.`._._._._.)._.).).).).).(.).(.(.(.(.(.~.(.~.~.~.~.~.~.K.K.L.L.L.K.L.L.J.W l Z.L.I O.", "+X+XOXOXOX].].].].].].'.'.'.'.'.'.'.`.`._.`.`._._._._._._._.).).).).).).).(.(.(.).G.G.G.K.L.K.K.L.L.p.T p g F.F.| D.L.p 0.", "].].].].].].].].].'.'.'.'.'.'.`.`.`.'.`.`.`.`._.`._.`._._._._.).K.L.K.L.!.!.~.~.~.~.Q.p.+.k | F.F.F.A w F.F.P O K.K.: J.", "].].].].'.'.'.'.'.'.'.'.'.'.'.`.'.`.`._._._.).).).(.).(.(.).).).K.G.G.F.b.m.n.m.m.m.4 i m.m.m.y A F.F.h : K.K.+ O Z.", "].'.'.'.'.'.'.'.'.'.'.`.`.`.`.`.`.`.`.!.m.m.F.G.G.K.K.!.!.~.Q.$.E x 8 + & m.m.m.m.m.= J F.F.m.6 ) F.F.4 w K.Z. . 5 ", "'.'.'.`.`._._.).).).).).).)._._._._._.L.m.n.n.n.m.n.n.n.n.m.U : m.n.m.m.m.. ` m.m.m.% ;.F.F.O O 5 5 $ 5 ", "'.L.F.K.!.!.(.).).).).).).).).).).^.I.@.c e A n.m.n.n.n.m.n.A 0 m.n.m.m.m. :.m.m.b.. ( 5.5.. o O o = s ", "`.L.n.c.c.n.c.n.m.F.K.K.W.! x > + . q m.n.n.m.n.n.n.A u m.m.m.m.5. k.m.F.k. . u Z f H H &.", "'.K.c.n.n.c.n.n.n.n.n.n.5. i n.n.m.n.n.m.m.w A m.n.m.m.:. . <.g.v... . O O . & 5 f ^ } j.b.G.", "`.K.n.n.n.n.n.n.n.n.c.n.s. d m.n.m.n.m.n.n.0 J m.m.m.m.L . O O $ S K ~ K / X.i.!.L.K.G.", "E.K.n.n.n.n.c.n.n.n.c.n.g. A n.m.n.n.n.m.n.0 [ m.m.m.m.U o $ O O u d L ` =.f.F.K.L.!.~.(.(.", "R.L.n.n.n.n.n.n.n.n.n.n.g. J n.n.n.m.n.n.m.O u / &.2.z.q ; ~ K ~ H H Z ~ w.G.G.m.m.m.n.n.n.n.m.", "Y.K.n.n.n.n.n.n.c.n.n.n.g. L n.n.m.n.n.n.m.O . . $ o . O ; q H ] 3.H.).).).).).~.~.!.L.K.G.m.", "U.L.c.n.n.n.c.n.n.n.n.c.g. ^ n.n.n.m.m.n.n.o f t 5 = $ . 0 J 3.5.m.m.m.m.m.m.G.K.L.!.~.).).(.(.(.).(.", "U.L.c.n.c.n.n.n.c.n.n.n.g. [ c.m.n.n.m.n.k. . H K ~ ~ K K Z s A ;.m.m.m.m.m.m.m.m.m.m.m.m.F.G.K.!.!.(.", "I.L.n.n.n.n.n.n.n.n.c.n.g. = t H { 1.f.z.j. . . q u S K ~ ] 4.W.).).).(.!.L.K.F.m.m.m.m.m.m.m.m.m.n.m.m.", "I.L.n.n.n.n.n.n.c.n.n.n.=. q 3 $ . o & 5 u . $ 0 w g J ( 3.b.K.~.).).).).).).).).).(.!.L.K.G.F.m.m.n.m.m.m.", "P.!.n.c.n.n.c.n.n.n.n.n.( Z ~ K H u ; O . = ^ b.F.F.F.m.F.m.m.m.m.m.F.G.K.!.(.).).).).).).).).(.(.~.!.K.G.F.m.", "q.L.n.n.n.n.n.n.n.n.n.c.` S ~ ~ ~ ~ ~ H Z q ; ; S f.F.F.F.F.F.m.m.F.m.m.F.m.F.F.K.L.~.(.).).).).).).).).).(.~.", "P.L.c.n.n.n.n.c.n.n.n.n.[ H K ~ ~ ~ ~ ~ ~ / 4.A.!.K.G.F.F.F.F.F.F.m.F.m.m.m.m.F.m.m.F.F.G.K.!.~.).).).).).).).", "9.(.K.n.d.c.c.m.n.c.n.n.( . $ 3 s H ~ / 3.H.(._.)._.).(.~.L.G.G.F.F.F.F.F.F.m.F.m.m.m.F.m.F.m.F.F.F.K.L.~.(.).).", "o.i.w.;.~ f K ,.f.c.c.n.( . O = 0 u g L ..k.L.).).).).).).)._._.).(.(.!.K.G.F.F.F.F.F.m.F.m.m.m.F.m.m.m.F.m.m.F.F.G.K.", "u ~ ~ ~ ~ H t 3 q Z / *.~ + a ` ;.M.B.m.F.F.F.F.F.F.F.G.L.~.)._.).).)._._.).).).).(.~.L.K.G.F.F.F.F.m.m.F.m.m.F.m.m.m.F.m.F.m.", "u ~ ~ ~ ~ ~ ~ S q = $ ; 0 D b.F.G.G.G.G.G.F.F.F.F.F.F.F.F.F.F.G.L.(.)._.).).)._._.).).).).(.~.!.K.G.F.F.6.) ) ) ) ) 4.m.m.m.F.m.", "t ~ ~ ~ ~ H q 3 $ o . . . O 3 f =.m.B._ P I P P P P P P P P P P >.X.e * > R /.).).).)._.).).).).).(.~.#.. . _ m.F.m.m.", "q ~ ~ Z = . D S.S.: * T.)._.).).)._._.).).).).8 X @ X @ X = m.m.m.F.", "t K 0 . X 2 N V B m # k . # # # # # # # # # # # X < C M e K.~.(.).).)._.).).).).+ {.;X-X-XV - G.F.F.m.", "$ = # }.-X;X;X;X;X;X;X.X, O # ;X;X;X;X;X;X;X;X;X;X;XB , -X;X;X[. . B.F.G.L.~.(.).)._.).E. XX;X;X;Xn r ~.!.K.K.", ". m =X;X;X;X;X;X;X;X;X;X-Xn b ;X;X;X;X;X;X;X;X;X;X;Xb B ;X;X;X%X _ >.>.>.7.8.0.9.P.I.! &X;X;X;X, Y (.(.(.~.", " n ;X;X;X;X;X;X;X;X;X;X;X;X;Xb B ;X;X;X;X;X;X;X;X;X;X;X# 2 ;X;X;X X @ -X;X;X-X z Q Q Q Q ", " , =X;X;X;X;X;XXX{. X*X;X;X;X;XC B XXXXoX;X;X;X;X%XoXXX.X N oX|.@ < ;X;X;X$X ", " X;X;X;X;X$X, X X;X&Xb # ;X;X;X;Xn @ # # # < N C V 2 M ;X;X;X X # # # # ", "# ;X;X;X;X*X# C @ b ;X;X;X;X< %X;X;X;X1 < oX;X;X;X;X;X%X# C ;X;X;XC [.;X;X;X;X", "M ;X;X;X;XV V ;X;X;X-X X -X;X;X;XX 1 -X;X;X;X;X;X;X;XX .X;X;X;Xm B ;X;X;X;XV ", "{.;X;X;X;X< XXXXXXXXXXXXXXXb }.;X;X;X%X , ;X;X;X&X X &X;X;X;X;X%X$X;X&X %X;X;X;X< m ;X;X;X;XV ", " X;X;X;X;X@ @ -X;X;X;X;X;X;X;Xn #X;X;X;X.X n ;X;X;XoX N ;X;X;X;Xm 1 {. X =X;X;X-Xn -X;X;X;XC ", "|.;X;X;X;X# < ;X;X;X;X;X;X;X;X, *X;X;X;XC C ;X;X;X{. .X;X;X;X X , ;X;X;X-X=X;X;X;XC 4 ", "C ;X;X;X;XN 1 X.X.X*X;X;X;X*X @ ;X;X;X;XM |.;X;X;XB $X;X;X;XM b ;X;X;X;X;X;X;X#X - S.", "2 ;X;X;X;X&X# 1 -X;X;X;X}. 2 ;X;X;X;X< $X;X;X;X2 $X;X;X;XB V ;X;X;X.X-X;X;X;Xn o M.", " %X;X;X;X;X*XV 2 n {.-X;X;X;X;X< N ;X;X;X;XX *X;X;X;X# .X;X;X;X%X# m X |.;X;X;XN C ;X;X;X&XX 6 ", " 2 ;X;X;X;X;X;X;X;X;X;X;X;X;XC {.;X;X;X&X # ;X;X;X*X m ;X;X;X;X-X$X*X*X #X;X;X;X2 @ *X;X;X;X{. ", " M -X;X;X;X;X;X;X;X;X;X;X{. XX;X;X;XXX b ;X;X;X#X #X;X;X;X;X;X;X#X *X;X;X;X# V ;X;X;X;X2 ", "p < XX;X;X;X;X;X;X;X%Xm &X;X;X;X{. B ;X;X;X|. @ XX;X;X;X;X;X|. # ;X;X;X*X X &X;X;X;X%X ", "G.a . # M C {.[.B 1 , , , , @ @ , < , @ 2 V {.C m X X , , , # # , , , , X ", "G.S. .- ", "S.S.B.h.| i : % + O & w k g k F k g g g g k k k k l l v v v v v v v v v v v v v v v 9 % O % 7 j T l l k k k k k k D g g g g g A ", "S.M.h.6.6.5.4.4.5.6.4.4.6.6.6.6.4.4.6.4.6.4.4.4.r.w.e.e.i.u.u.u.p.p.p.p.p.p.p.p.p.p.p.p.u.u.i.e.i.e.e.t.t.r.r.w.w.6.4.4.5.5.5.6.", "B.M.6.6.4.4.4.4.5.4.4.4.4.4.4.5.4.4.5.4.4.5.4.4.4.4.r.e.t.y.i.u.u.p.u.u.u.u.u.p.u.u.u.u.u.u.u.y.y.y.e.e.e.e.t.e.w.r.r.r.4.4.6.5.", "M.6.4.4.4.4.4.4.4.4.4.4.4.4.4.4.4.4.5.4.4.4.4.4.4.4.4.r.w.e.y.y.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.u.y.y.y.e.e.e.e.e.r.w.w.w.6.r.", "r.w.4.r.r.4.w.r.r.4.r.4.4.w.r.4.w.4.r.r.4.r.r.4.w.w.r.r.e.w.e.e.e.y.u.y.y.y.y.y.y.y.y.y.i.y.y.y.y.y.y.y.y.e.e.y.e.e.e.w.r.r.w.N.", "e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.", "e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.", "e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.y.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.", "e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e.e." }; gtick-0.5.2/src/help.c0000644000175000017500000003077411617267516011452 00000000000000/* * help.c: Help menu contents code * * This file is part of GTick * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include /* GNU headers */ #include #include /* GTK headers*/ #include #include #ifdef USE_DMALLOC #include #endif /* own headers */ #include "globals.h" #include "metro.h" #include "help.h" #include "gtkutil.h" /* logo */ #include "aboutlogo.xpm" #define RESPONSE_LICENSE 1 /* * callback invoked by response signal in dialog */ static void response_cb(GtkDialog *dialog, gint response, options_t* options _U_) { switch (response) { case RESPONSE_LICENSE: license_box(); break; case GTK_RESPONSE_DELETE_EVENT: case GTK_RESPONSE_OK: case GTK_RESPONSE_CLOSE: gtk_widget_destroy(GTK_WIDGET(dialog)); break; default: fprintf(stderr, "Warning: Unhandled response to dialog: %d\n", response); } } void about_box(GtkAction *action _U_, metro_t* metro) { GtkWidget* window; GtkWidget* vbox; GtkWidget* label; GdkPixmap* pixmap; GdkBitmap* mask; GtkWidget* pixmapwidget; window = gtk_dialog_new_with_buttons(_("About GTick"), GTK_WINDOW(metro->window), GTK_DIALOG_DESTROY_WITH_PARENT, _("License"), RESPONSE_LICENSE, GTK_STOCK_OK, GTK_RESPONSE_OK, NULL); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_widget_destroy), window); vbox = gtk_vbox_new(FALSE, 10); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox), vbox, TRUE, TRUE, 0); gtk_widget_show(vbox); gtk_widget_realize(window); pixmap = gdk_pixmap_create_from_xpm_d(window->window, &mask, NULL, (gchar**) aboutlogo_xpm); pixmapwidget = gtk_pixmap_new(pixmap, mask); gtk_box_pack_start(GTK_BOX(vbox), pixmapwidget, TRUE, TRUE, 0); gtk_widget_show(pixmapwidget); label = gtk_label_new (_( "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006, 2007 Roland Stigge \n" /* TRANSLATORS: actually, "Andrés" with acute accent (/) */ "Logo by Mario Andres Pagella \n" "\n" "Homepage:\n" "http://www.antcom.de/gtick/\n" "\n" "Email bug reports, comments, etc. to\n" "Developer's mailing list:\n" "gtick-devel@gnu.org" )); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER); gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0); gtk_widget_show(label); g_signal_connect(G_OBJECT(window), "response", G_CALLBACK(response_cb), G_OBJECT(window)); gtk_widget_show(window); } /* the help menu entry callback */ void license_box(void) { GtkWidget* window = get_ok_dialog(_("GTick License"), _("GTick - The Metronome\n" "Copyright (c) 1999, Alex Roberts \n" "Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge \n" "\n" "This program is free software; you can redistribute it and/or\n" "modify it under the terms of the GNU General Public License\n" "as published by the Free Software Foundation; either version 3\n" "of the License, or (at your option) any later version.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" "GNU General Public License for more details.\n" "\n" "You should have received a copy of the GNU General Public License\n" "along with this program; if not, see ."), GTK_JUSTIFY_CENTER); gtk_widget_show(window); } void help_shortcuts(GtkAction *action _U_, metro_t *metro _U_) { GtkWidget* window = gtk_dialog_new(); GtkWidget* button; GtkWidget* table; GtkWidget* label; gtk_window_set_title(GTK_WINDOW(window), _("Shortcuts")); /* vbox area */ gtk_container_set_border_width(GTK_CONTAINER(GTK_DIALOG(window)->vbox), 0); table = gtk_table_new(15, 2, FALSE); gtk_container_set_border_width(GTK_CONTAINER(table), 15); label = gtk_label_new(_("Ctrl-S")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Ctrl-+")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Ctrl--")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Ctrl-1 ... Ctrl-9")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 3, 4, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Alt-w")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 4, 5, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Alt-q")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 5, 6, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Alt-a")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 6, 7, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Alt-s")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 7, 8, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Alt-z")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 8, 9, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Alt-x")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 9, 10, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Shift-w")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 10, 11, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Shift-q")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 11, 12, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Shift-a")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 12, 13, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Shift-s")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 13, 14, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Shift-z")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 14, 15, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Shift-x")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 15, 16, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Start/Stop")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Speed: Faster")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Speed: Slower")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 2, 3, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Meter")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 3, 4, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Double Speed")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 4, 5, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Half Speed")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 5, 6, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Speed: -10")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 6, 7, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Speed: +10")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 7, 8, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Speed: -2")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 8, 9, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Speed: +2")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 9, 10, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Double Volume")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 10, 11, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Half Volume")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 11, 12, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Volume: -10")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 12, 13, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Volume: +10")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 13, 14, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Volume: -2")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 14, 15, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); label = gtk_label_new(_("Volume: +2")); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 15, 16, GTK_EXPAND | GTK_FILL, 0, 10, 5); gtk_widget_show(label); gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox), table, TRUE, FALSE, 0); gtk_widget_show(table); /* OK button */ button = gtk_button_new_from_stock(GTK_STOCK_OK); gtk_box_pack_start_defaults( GTK_BOX(GTK_CONTAINER(GTK_DIALOG(window)->action_area)), button); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), window); gtk_widget_show(button); gtk_widget_show(window); } gtick-0.5.2/src/Makefile.in0000644000175000017500000005042012116334337012400 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = gtick$(EXEEXT) subdir = src DIST_COMMON = $(noinst_HEADERS) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in optionlexer.c optionparser.c \ optionparser.h ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/fcntl-o.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glibc2.m4 $(top_srcdir)/m4/glibc21.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intdiv0.m4 \ $(top_srcdir)/m4/intl.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/intmax.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/lock.m4 \ $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/size_max.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/threadlib.m4 \ $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_gtick_OBJECTS = gtick.$(OBJEXT) metro.$(OBJEXT) dsp.$(OBJEXT) \ help.$(OBJEXT) g711.$(OBJEXT) gtkutil.$(OBJEXT) util.$(OBJEXT) \ option.$(OBJEXT) options.$(OBJEXT) gtkoptions.$(OBJEXT) \ optionlexer.$(OBJEXT) optionparser.$(OBJEXT) \ profiles.$(OBJEXT) threadtalk.$(OBJEXT) visualtick.$(OBJEXT) gtick_OBJECTS = $(am_gtick_OBJECTS) gtick_DEPENDENCIES = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ LEXCOMPILE = $(LEX) $(AM_LFLAGS) $(LFLAGS) YLWRAP = $(top_srcdir)/ylwrap YACCCOMPILE = $(YACC) $(AM_YFLAGS) $(YFLAGS) SOURCES = $(gtick_SOURCES) DIST_SOURCES = $(gtick_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac HEADERS = $(noinst_HEADERS) ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CHECK_CFLAGS = @CHECK_CFLAGS@ CHECK_LIBS = @CHECK_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ DEPDIR = @DEPDIR@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DMALLOC_CFLAGS = @DMALLOC_CFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBINTL@ @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = $(datadir)/locale localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ gtick_SOURCES = gtick.c \ metro.c \ dsp.c \ help.c \ g711.c \ gtkutil.c \ util.c \ option.c \ options.c \ gtkoptions.c \ optionlexer.l \ optionparser.y \ profiles.c \ threadtalk.c \ visualtick.c gtick_LDADD = @DEPS_LIBS@ @SNDFILE_LIBS@ noinst_HEADERS = metro.h \ dsp.h \ help.h \ tickdata.c \ globals.h \ gettext.h \ g711.h \ gtkutil.h \ util.h \ option.h \ options.h \ gtkoptions.h \ optionlexer.h \ profiles.h \ threadtalk.h \ visualtick.h EXTRA_DIST = aboutlogo.xpm \ icon32x32.xpm \ icon48x48.xpm \ icon64x64.xpm \ converter.c INCLUDES = -I../intl -I$(top_srcdir)/intl @DEPS_CFLAGS@ @SNDFILE_CFLAGS@ AM_CFLAGS = -DVERSION='"@VERSION@"' -DPACKAGE='"@PACKAGE@"' AM_YFLAGS = -d AM_LFLAGS = -olex.yy.c BUILT_SOURCES = optionparser.h all: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) all-am .SUFFIXES: .SUFFIXES: .c .l .o .obj .y $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p; \ then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) optionparser.h: optionparser.c @if test ! -f $@; then rm -f optionparser.c; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) optionparser.c; else :; fi gtick$(EXEEXT): $(gtick_OBJECTS) $(gtick_DEPENDENCIES) $(EXTRA_gtick_DEPENDENCIES) @rm -f gtick$(EXEEXT) $(LINK) $(gtick_OBJECTS) $(gtick_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dsp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/g711.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtick.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtkoptions.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gtkutil.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/help.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/metro.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/option.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optionlexer.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optionparser.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/options.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/profiles.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threadtalk.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/visualtick.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .l.c: $(am__skiplex) $(SHELL) $(YLWRAP) $< $(LEX_OUTPUT_ROOT).c $@ -- $(LEXCOMPILE) .y.c: $(am__skipyacc) $(SHELL) $(YLWRAP) $< y.tab.c $@ y.tab.h $*.h y.output $*.output -- $(YACCCOMPILE) ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) check-am all-am: Makefile $(PROGRAMS) $(HEADERS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -rm -f optionlexer.c -rm -f optionparser.c -rm -f optionparser.h -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: all check install install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic ctags distclean distclean-compile \ distclean-generic distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-binPROGRAMS \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ uninstall-am uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtick-0.5.2/src/gettext.h0000644000175000017500000000575210660406274012202 00000000000000/* Convenience header for conditional use of GNU . Copyright (C) 1995-1998, 2000-2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2, 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef _LIBGETTEXT_H #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option. */ #if ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include #else /* Solaris /usr/include/locale.h includes /usr/include/libintl.h, which chokes if dcgettext is defined as a macro. So include it now, to make later inclusions of a NOP. We don't include as well because people using "gettext.h" will not include , and also including would fail on SunOS 4, whereas is OK. */ #if defined(__sun) # include #endif /* Disabled NLS. The casts to 'const char *' serve the purpose of producing warnings for invalid uses of the value returned from these functions. On pre-ANSI systems without 'const', the config.h file is supposed to contain "#define const". */ # define gettext(Msgid) ((const char *) (Msgid)) # define dgettext(Domainname, Msgid) ((const char *) (Msgid)) # define dcgettext(Domainname, Msgid, Category) ((const char *) (Msgid)) # define ngettext(Msgid1, Msgid2, N) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define dngettext(Domainname, Msgid1, Msgid2, N) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define dcngettext(Domainname, Msgid1, Msgid2, N, Category) \ ((N) == 1 ? (const char *) (Msgid1) : (const char *) (Msgid2)) # define textdomain(Domainname) ((const char *) (Domainname)) # define bindtextdomain(Domainname, Dirname) ((const char *) (Dirname)) # define bind_textdomain_codeset(Domainname, Codeset) ((const char *) (Codeset)) #endif /* A pseudo function call that serves as a marker for the automated extraction of messages, but does not call gettext(). The run-time translation is done at a different place in the code. The argument, String, should be a literal string. Concatenated strings and other string expressions won't work. The macro's expansion is not parenthesized, so that it is suitable as initializer for static 'char[]' or 'const char[]' variables. */ #define gettext_noop(String) String #endif /* _LIBGETTEXT_H */ gtick-0.5.2/src/converter.c0000644000175000017500000000410311005112444012470 00000000000000/* * converter.c: generates raw audio data to C code and writes it to stdout * * This file is part of GTick * * * Copyright (c) 1999, Alex Roberts * Copyright (c) 2003, 2004, 2005, 2006 Roland Stigge * * GTick 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 3 of the License, or * (at your option) any later version. * * GTick 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 GTick; if not, see . * */ #include #include #include #include #ifdef USE_DMALLOC #include #endif #define SAMPLESIZE sizeof(short) int main(int argc, char* argv[]) { short x; int fd; int i = 0; int size; if (argc != 2) { fprintf(stderr, "usage: converter [raw 16 bit signed sample file]\n"); return 0; } else { printf("/* */\n"); printf("/* This file was automatically generated by converter. */\n"); printf("/* It contains samples in signed 16 bit format. */\n"); printf("/* */\n"); printf("\n"); printf("static short tickdata[] = {"); fd = open(argv[1], O_RDONLY); if (fd == -1) { fprintf(stderr, "Error: Couldn't open file.\n"); return -1; } else { size = lseek(fd, 0, SEEK_END) / SAMPLESIZE; lseek(fd, 0, SEEK_SET); while (read(fd, &x, SAMPLESIZE) == SAMPLESIZE) { if (i % 8) printf(" "); else printf("\n"); printf("%6d", x); if (i < size - 1) printf(","); i++; } close(fd); printf("\n};\n"); } } return 0; } gtick-0.5.2/src/icon48x48.xpm0000644000175000017500000001707310660406274012542 00000000000000/* XPM */ static char *icon48x48[] = { /* columns rows colors chars-per-pixel */ "48 48 177 2", " c #000000", ". c #0B0000", "X c #0B0B0B", "o c #130101", "O c #1A0202", "+ c #180909", "@ c #131313", "# c #1B1B1B", "$ c #230202", "% c #220B0B", "& c #2B0000", "* c #290909", "= c #340101", "- c #320909", "; c #3B0303", ": c #3C0808", "> c gray14", ", c #2A2A2A", "< c #333333", "1 c #393939", "2 c #430101", "3 c #430909", "4 c #4B0000", "5 c #4E1414", "6 c #4B1C1C", "7 c #560000", "8 c #510A0A", "9 c #5A0202", "0 c #5D0B0B", "q c #531C1C", "w c #5E1212", "e c #5E1919", "r c #620000", "t c #620B0B", "y c #6C0202", "u c #6A0A0A", "i c #6A1111", "p c #740000", "a c #730B0B", "s c #7B0000", "d c #7D0C0C", "f c #7A1111", "g c #781C1C", "h c #7D2A2A", "j c #444444", "k c #4B4B4B", "l c #535353", "z c #5D5D5D", "x c #636363", "c c #6B6B6B", "v c gray45", "b c #7B7B7B", "n c #820000", "m c #820A0A", "M c #8B0101", "N c #8B0909", "B c #841515", "V c #861919", "C c #8B1515", "Z c #950202", "A c #920E0E", "S c #9B0000", "D c #9A0D0D", "F c #9E1313", "G c #981E1E", "H c #862525", "J c #802B2B", "K c #932525", "L c #9C2929", "P c #A10000", "I c #A50C0C", "U c #AD0303", "Y c #A80D0D", "T c #A31212", "R c #AD1111", "E c #A81D1D", "W c #B00303", "Q c #B30F0F", "! c #B80707", "~ c #BB0808", "^ c #B31010", "/ c #BC1313", "( c #BA1D1D", ") c #A22E2E", "_ c #A53C3C", "` c #AD3C3C", "' c #B02121", "] c #B42828", "[ c #BD2C2C", "{ c #BD3131", "} c #B44343", "| c #C30E0E", " . c #C80000", ".. c #CA0F0F", "X. c #C31313", "o. c #C11B1B", "O. c #CE1515", "+. c #CA1919", "@. c #D30000", "#. c #D00E0E", "$. c #DB0000", "%. c #D61212", "&. c #D61B1B", "*. c #DA1616", "=. c #D91919", "-. c #C23131", ";. c #D62323", ":. c #D62B2B", ">. c #D92323", ",. c #D92C2C", "<. c #D73333", "1. c #D73838", "2. c #D83333", "3. c #D93939", "4. c #E30101", "5. c #E90303", "6. c #EA0E0E", "7. c #E21414", "8. c #E41C1C", "9. c #E91616", "0. c #EA1E1E", "q. c #F20B0B", "w. c #F90505", "e. c #FC0B0B", "r. c #F51515", "t. c #F31F1F", "y. c #FE1414", "u. c #FE1C1C", "i. c #E22020", "p. c #E12A2A", "a. c #ED2121", "s. c #EF2B2B", "d. c #E13A3A", "f. c #E93232", "g. c #F22222", "h. c #FE2323", "j. c #FE2A2A", "k. c #F73131", "l. c #F13C3C", "z. c #FE3333", "x. c #FE3B3B", "c. c #D44A4A", "v. c #D94B4B", "b. c #D95252", "n. c #DA5A5A", "m. c #E64141", "M. c #E55B5B", "N. c #EF5C5C", "B. c #F24242", "V. c #FF4343", "C. c #FE4B4B", "Z. c #F45A5A", "A. c #FE5454", "S. c #FE5C5C", "D. c #FF6363", "F. c #FE6C6C", "G. c #FF7373", "H. c #FF7B7B", "J. c #838383", "K. c #8A8A8A", "L. c #929292", "P. c #9B9B9B", "I. c #A3A3A3", "U. c gray67", "Y. c #B3B3B3", "T. c #BBBBBB", "R. c #FF8383", "E. c #FF8A8A", "W. c #FF9090", "Q. c gray77", "!. c #CACACA", "~. c #D6D6D6", "^. c #DBDBDB", "/. c #E3E3E3", "(. c #EAEAEA", "). c #F4F4F4", "_. c #FEFEFE", /* pixels */ " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .", "5.5.5.5.5.5.4.5.5.4.4.4.5.4.4.4.4.4.4.4.$.4.4.$.$.$.$.$.@.@.$.$.@.@.@.@.@.@.@.@.@.@.@.@. . . . .", "V.x.x.x.x.x.z.z.z.z.z.j.j.j.j.j.j.j.h.h.u.u.h.y.y.u.y.y.y.y.y.y.y.e.e.e.e.e.e.e.e.w.w.w.w.w.w.w.", "R.H.H.G.G.G.F.F.D.D.D.S.S.A.A.A.C.C.C.C.C.C.V.V.C.x.x.x.x.z.z.z.j.z.j.j.j.j.j.j.j.h.h.j.j.j.j.x.", "W.E.E.R.R.H.H.H.H.G.G.F.G.F.F.F.D.D.D.D.S.S.A.A.A.A.A.C.C.C.C.C.V.C.C.C.x.x.x.x.x.x.x.d.l.x.H L ", "E.E.R.R.H.H.H.H.H.G.G.G.G.F.F.F.F.D.F.D.D.D.D.S.S.S.S.A.A.A.C.z.z.x.x.x.x.z.] V =.h.C ' x.. K ", "H.H.H.H.H.G.G.G.G.G.G.G.F.G.F.F.F.F.D.D.S.D.D.S.z.z.z.x.x.V.V.B.) g t h.h.8. +.j.u :.f. [ ", "H.G.G.G.G.G.G.G.G.G.F.F.F.F.S.V.V.V.C.C.A.A.S.A.m.-.G R u.y.y.T O u.u.( 0.h.3 k.[ B ", "G.G.G.F.F.D.D.S.D.D.D.D.D.D.C.y.y.y.y.u.y.y.t.+ u u.u.u.A 3 u.u.F o h.h.O . d 4 . 4 ", "G.u.j.z.x.C.A.S.S.S.S.N.c._ h q : r.y.y.y.y.8. d u.u.u.d 0 h.h.d o D Y . . $ O = n ", "F.y.y.y.y.y.e.y.y.( % . . y.u.y.u.y.%. D u.y.y.0 d y.u.t . & N P ~ &.", "F.y.y.y.y.y.y.y.y.Y o u.y.y.y.y./ R u.u.u.: o = 4 O ; n s Z ~ p.z.j.j.", "N.y.y.y.e.y.y.y.y.Y & y.y.u.y.y.Q X.y.u.y.* = ; $ & 9 m Q %.r.j.j.x.V.C.", "M.u.y.y.y.e.y.y.y.Y = y.y.y.y.y.F & 4 y Z . 9 n Z U X.2.C.C.x.k.j.h.y.y.", "n.y.e.y.y.y.y.y.y.Y : y.y.u.u.y.C 7 2 & o O t I / =.9.r.j.z.x.C.A.A.A.A.A.A.", "n.y.y.y.y.y.e.y.y.I 2 6.r.y.y.y.u . S P P P Z M E s.j.h.h.u.u.u.y.u.u.j.z.x.C.", "b.u.y.e.y.y.y.y.y.I o & ; r M ~ r . o ; y P ..f.S.S.S.S.A.C.V.z.j.h.u.u.u.y.y.y.", "b.u.y.y.y.e.y.y.y.m ; S M 9 = o . u X.0.t.u.h.u.u.h.j.x.C.A.S.S.S.S.S.S.C.C.z.j.j.u.", "v.y.y.y.y.y.y.y.e.m 2 P P P P S s 7 y ..u.h.h.h.h.u.u.h.y.h.h.z.V.C.S.S.S.S.S.S.A.A.", "c.j.y.e.y.y.y.y.y.m & p S P P U &.l.S.A.V.z.j.h.h.h.u.u.u.u.u.u.h.u.u.j.z.C.A.A.S.S.", "[ 3.;.U U @.q.e.y.m . o & 4 t N | a.S.S.S.S.S.S.S.A.C.x.j.j.h.h.h.u.h.u.u.u.h.h.u.h.j.z.x.", "s S P P M 7 4 s U y - B o.8.a.h.h.h.h.h.h.j.x.A.S.D.S.D.S.D.S.S.C.V.z.j.h.h.h.u.u.u.u.h.u.h.u.h.", "p P S P S n 7 O O = N O.t.j.j.a.a.0.a.0.0.a.0.a.j.3._ } Z.S.S.S.S.D.S.A.C.x.s.t : : : 3 +.u.u.u.", "p S Z 2 . . 9 8.( . % % c.S.S.D.S.S.D.S.S.h X X @ - u.u.u.", "y y . # c K.L.J.j f 3 l l l l l l l l < > L.v - z.C.A.S.S.S.S.S.6 (.).).@ * j.j.h.", "o X P._._._._._._.!., > _._._._._._._._.J. T._._.k i.j.j.z.C.A.S.S.% # _._.(. q A.C.x.", " @ !._._._._._._._._.(.> k _._._._._._._._.l Y._._.j o O + O + o + + 1 _._.T. q } ` ` ", " I._._._./.J.c U._._.(.j 1 K.K./._._.Q.K.K.> # K.z c _._.P. ", "> _._._.Q.X x Y.# /._._.c X L.L.J. > L.!.^.Y.k L._._.c > K.L.L.", "b _._._., @ _._._.1 1 _._.!. j )._._._._.!. T._._.j @ ~._._.Y.", "U._._.~. > !.!.!.!.!.Q.X 1 _._._.# x _._.I. @ (._._.^.P.!.I. X ^._._.> !._._.Y.X ", "T._._.!. l _._._._._.(. z _._.(.X K._._.b c _._.^.@ , X _._.).T._._.Y.X . ", "I._._.).X l T.T.)._._.T. K._._.Q. Y._._.l L._._.K. , _._._._._.^.X / ", "x _._._.P. j _._._.x Y._._.I. ~._._., L._._.P. z _._.Y.(._._.k T ", "X ^._._._./.U.!._._._.~.X ~._._.v @ _._.).X x _._._.b z I.X J._._.b c _._.^.@ o ", " < (._._._._._._._./., X )._._.k , _._.~. X ~._._._._.~. U._._.l X ^._._.L. ", "i # L.(._._._.(.L.@ > ^.^.^.> j ~.^.P. > T._._._.P. Y.^.^.> l ^.^.~., ", "j.V . X # , # @ , @ ", "j.a.&.d : O o o : 0 0 0 0 0 0 0 0 0 w w e e e e e e e e e e e 5 + o * 5 w w w t 0 0 t t 0 0 0 t ", "a.8.=.=.*.=.=.=.=.=.*.=.=.=.=.=.=.=.&.:.:.2.3.3.3.3.3.3.3.3.3.3.3.3.2.2.2.2.:.:.:.>.&.=.=.=.*.*.", "8.=.=.=.=.=.=.=.=.=.=.=.=.=.%.=.=.=.&.&.;.:.:.<.1.1.1.1.1.1.1.1.3.3.1.1.<.<.2.:.:.:.:.>.>.&.=.=.", ">.>.&.&.;.&.&.&.&.&.;.&.&.&.;.&.&.&.;.&.;.;.:.:.<.1.<.<.1.1.<.<.<.1.<.<.<.<.2.2.:.:.:.:.;.;.;.,.", ":.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.", ":.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.", ":.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:." }; gtick-0.5.2/doc/0000755000175000017500000000000012116334674010374 500000000000000gtick-0.5.2/doc/gtick.10000644000175000017500000000136110660406274011476 00000000000000.TH gtick 1 "4 January 2004" "Version 0.2.13" "GTick Manual" .SH NAME gtick \- A GTK+ metronome .SH SYNOPSIS gtick .SH DESCRIPTION .B GTick is a metronome application written using the GTK+ widget set. Output is sent to the soundcard (using direct calls to /dev/dsp) providing a reliable timing guide. .B GTick has a BPM (Beats Per Minute) scale of 30bpm to 250bpm, catering for almost any need; and it is known to work on Linux and FreeBSD with OSS interface. It includes a Volume control and different meters. .SH AUTHOR Alex Roberts . DSP core rewrite, improvements and bugfixes by Roland Stigge (current maintainer). This Manpage was initially written by Cord Beermann for Debian. gtick-0.5.2/doc/Makefile.am0000644000175000017500000000007310660406274012346 00000000000000man_MANS = gtick.1 EXTRA_DIST = NOTES \ $(man_MANS) gtick-0.5.2/doc/NOTES0000644000175000017500000000347310660406274011134 00000000000000NOTE: The following lines from Alex are left here for historical reasons. To no extent should it reflect the programmer's competence. ;) -- Roland Stigge USEFUL INFO ----------- 1000ms = 60 bpm well 1000ms = 1s of which 60 occur in one minute dsp: write (dsp,data,4000): real 0m43.922s write (dsp,data,8000): real 1m27.853s a rate of 8000 (8Hz) seems to give 60BPM 16000 (16Hz?) appaers to give 30BPM i can only guess 4000(4Hz?) is 120BPM.. 2000 must be 240BPM NOOO!!! All that is wrong... 8000 is 60BPM.. yes 16000 is in fact 120BPM! 4000 is 30BPM (4000 is half that of 8000.. 30 is half that of 60!) I've been so stupid ;] so.. the linking number between all of this is __133__ 60 multiplied by 133 is approxomatily 8000.. so Rate (in Hz) = BPM * 133 NO! THis is all crap too.. gtk_timeout info: The timeout function requires the Interval for the timeout to be called, so this can be used for the BPM setting.. as the first argument in the gtk_timeout_add is the interval in ms, we can use 1000 as 60bpm.. and so on... The next problem is working out the best settings for the DSP rates.. ok, thanks to Kain (#LinuxOS/DALnet), we have a nice formular: 1000/(BPM/60.0) (BPM is a float).. this can be easily used as the Interval arg required for the gtk_timeout_set.. speaker: ok you write to /dev/console you have to turn it on, usleep() then turn it off is usleep() blocking? If this is the case for speaker output, I need to find a better way.. Timing: from what i know... 2/4: Tik Tok Tik Tok 3/4: Tik Tok Tok Tik Tok Tok 4/4: Tik Tok Tok Tok Tik Tok Tok Tok gint count; time = 1 (if time = 0) if (time = 1) write(output, to, DSP); time ++; if (time = count) time = 1; That code (when written in corect C) should allow for any timing.. Which can allow for future upgrades. gtick-0.5.2/doc/Makefile.in0000644000175000017500000003761112116334337012365 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = doc DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/fcntl-o.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glibc2.m4 $(top_srcdir)/m4/glibc21.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intdiv0.m4 \ $(top_srcdir)/m4/intl.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/intmax.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/lock.m4 \ $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/size_max.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/threadlib.m4 \ $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" NROFF = nroff MANS = $(man_MANS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CHECK_CFLAGS = @CHECK_CFLAGS@ CHECK_LIBS = @CHECK_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DMALLOC_CFLAGS = @DMALLOC_CFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ man_MANS = gtick.1 EXTRA_DIST = NOTES \ $(man_MANS) all: all-am .SUFFIXES: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu doc/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) tags: TAGS TAGS: ctags: CTAGS CTAGS: distdir: $(DISTFILES) @list='$(MANS)'; if test -n "$$list"; then \ list=`for p in $$list; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \ if test -n "$$list" && \ grep 'ab help2man is required to generate this page' $$list >/dev/null; then \ echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \ grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \ echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \ echo " typically \`make maintainer-clean' will remove them" >&2; \ exit 1; \ else :; fi; \ else :; fi @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(MANS) installdirs: for dir in "$(DESTDIR)$(man1dir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-generic mostlyclean-am distclean: distclean-am -rm -f Makefile distclean-am: clean-am distclean-generic dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-man install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-man1 install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-man uninstall-man: uninstall-man1 .MAKE: install-am install-strip .PHONY: all all-am check check-am clean clean-generic distclean \ distclean-generic distdir dvi dvi-am html html-am info info-am \ install install-am install-data install-data-am install-dvi \ install-dvi-am install-exec install-exec-am install-html \ install-html-am install-info install-info-am install-man \ install-man1 install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ uninstall-am uninstall-man uninstall-man1 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: gtick-0.5.2/NEWS0000644000175000017500000000042210660406274010242 000000000000002003-05-13 New maintainer: Roland Stigge I rewrote the DSP core, especially sound generation and did most changes since 2003. Please contact me if you have contact to (or actually are) Alex Roberts. I just "hijacked" the package to get it into a usable state for Debian. gtick-0.5.2/m4/0000755000175000017500000000000012116334674010147 500000000000000gtick-0.5.2/m4/longlong.m40000644000175000017500000001057511617270155012156 00000000000000# longlong.m4 serial 14 dnl Copyright (C) 1999-2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_LONG_LONG_INT if 'long long int' works. # This fixes a bug in Autoconf 2.61, but can be removed once we # assume 2.62 everywhere. # Note: If the type 'long long int' exists but is only 32 bits large # (as on some very old compilers), HAVE_LONG_LONG_INT will not be # defined. In this case you can treat 'long long int' like 'long int'. AC_DEFUN([AC_TYPE_LONG_LONG_INT], [ AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], [AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [dnl This catches a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. dnl If cross compiling, assume the bug isn't important, since dnl nobody cross compiles for this platform as far as we know. AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[@%:@include @%:@ifndef LLONG_MAX @%:@ define HALF \ (1LL << (sizeof (long long int) * CHAR_BIT - 2)) @%:@ define LLONG_MAX (HALF - 1 + HALF) @%:@endif]], [[long long int n = 1; int i; for (i = 0; ; i++) { long long int m = n << i; if (m >> i != n) return 1; if (LLONG_MAX / 2 < m) break; } return 0;]])], [ac_cv_type_long_long_int=yes], [ac_cv_type_long_long_int=no], [ac_cv_type_long_long_int=yes])], [ac_cv_type_long_long_int=no])]) if test $ac_cv_type_long_long_int = yes; then AC_DEFINE([HAVE_LONG_LONG_INT], [1], [Define to 1 if the system has the type `long long int'.]) fi ]) # Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. # This fixes a bug in Autoconf 2.61, but can be removed once we # assume 2.62 everywhere. # Note: If the type 'unsigned long long int' exists but is only 32 bits # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT # will not be defined. In this case you can treat 'unsigned long long int' # like 'unsigned long int'. AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], [ AC_CACHE_CHECK([for unsigned long long int], [ac_cv_type_unsigned_long_long_int], [AC_LINK_IFELSE( [_AC_TYPE_LONG_LONG_SNIPPET], [ac_cv_type_unsigned_long_long_int=yes], [ac_cv_type_unsigned_long_long_int=no])]) if test $ac_cv_type_unsigned_long_long_int = yes; then AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1], [Define to 1 if the system has the type `unsigned long long int'.]) fi ]) # Expands to a C program that can be used to test for simultaneous support # of 'long long' and 'unsigned long long'. We don't want to say that # 'long long' is available if 'unsigned long long' is not, or vice versa, # because too many programs rely on the symmetry between signed and unsigned # integer types (excluding 'bool'). AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], [ AC_LANG_PROGRAM( [[/* For now, do not test the preprocessor; as of 2007 there are too many implementations with broken preprocessors. Perhaps this can be revisited in 2012. In the meantime, code should not expect #if to work with literals wider than 32 bits. */ /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63;]], [[/* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull));]]) ]) gtick-0.5.2/m4/fcntl-o.m40000644000175000017500000000563411617270154011700 00000000000000# fcntl-o.m4 serial 1 dnl Copyright (C) 2006, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Written by Paul Eggert. # Test whether the flags O_NOATIME and O_NOFOLLOW actually work. # Define HAVE_WORKING_O_NOATIME to 1 if O_NOATIME works, or to 0 otherwise. # Define HAVE_WORKING_O_NOFOLLOW to 1 if O_NOFOLLOW works, or to 0 otherwise. AC_DEFUN([gl_FCNTL_O_FLAGS], [ dnl Persuade glibc to define O_NOATIME and O_NOFOLLOW. AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_CACHE_CHECK([for working fcntl.h], [gl_cv_header_working_fcntl_h], [AC_RUN_IFELSE( [AC_LANG_PROGRAM( [[#include #include #include #include #ifndef O_NOATIME #define O_NOATIME 0 #endif #ifndef O_NOFOLLOW #define O_NOFOLLOW 0 #endif static int const constants[] = { O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY }; ]], [[ int status = !constants; { static char const sym[] = "conftest.sym"; if (symlink (".", sym) != 0 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) status |= 32; unlink (sym); } { static char const file[] = "confdefs.h"; int fd = open (file, O_RDONLY | O_NOATIME); char c; struct stat st0, st1; if (fd < 0 || fstat (fd, &st0) != 0 || sleep (1) != 0 || read (fd, &c, 1) != 1 || close (fd) != 0 || stat (file, &st1) != 0 || st0.st_atime != st1.st_atime) status |= 64; } return status;]])], [gl_cv_header_working_fcntl_h=yes], [case $? in #( 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( *) gl_cv_header_working_fcntl_h='no';; esac], [gl_cv_header_working_fcntl_h=cross-compiling])]) case $gl_cv_header_working_fcntl_h in #( *O_NOATIME* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOATIME], [$ac_val], [Define to 1 if O_NOATIME works.]) case $gl_cv_header_working_fcntl_h in #( *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac AC_DEFINE_UNQUOTED([HAVE_WORKING_O_NOFOLLOW], [$ac_val], [Define to 1 if O_NOFOLLOW works.]) ]) gtick-0.5.2/m4/progtest.m40000644000175000017500000000557311617270156012211 00000000000000# progtest.m4 serial 6 (gettext-0.18) dnl Copyright (C) 1996-2003, 2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) gtick-0.5.2/m4/intl.m40000644000175000017500000002705711617270154011307 00000000000000# intl.m4 serial 17 (gettext-0.18) dnl Copyright (C) 1995-2009 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2009. AC_PREREQ([2.52]) dnl Checks for all prerequisites of the intl subdirectory, dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. AC_DEFUN([AM_INTL_SUBDIR], [ AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_REQUIRE([gt_GLIBC2])dnl AC_REQUIRE([AC_PROG_RANLIB])dnl AC_REQUIRE([gl_VISIBILITY])dnl AC_REQUIRE([gt_INTL_SUBDIR_CORE])dnl AC_REQUIRE([AC_TYPE_LONG_LONG_INT])dnl AC_REQUIRE([gt_TYPE_WCHAR_T])dnl AC_REQUIRE([gt_TYPE_WINT_T])dnl AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gt_TYPE_INTMAX_T]) AC_REQUIRE([gt_PRINTF_POSIX]) AC_REQUIRE([gl_GLIBC21])dnl AC_REQUIRE([gl_XSIZE])dnl AC_REQUIRE([gl_FCNTL_O_FLAGS])dnl AC_REQUIRE([gt_INTL_MACOSX])dnl dnl Support for automake's --enable-silent-rules. case "$enable_silent_rules" in yes) INTL_DEFAULT_VERBOSITY=0;; no) INTL_DEFAULT_VERBOSITY=1;; *) INTL_DEFAULT_VERBOSITY=1;; esac AC_SUBST([INTL_DEFAULT_VERBOSITY]) AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], [Define as the type of the result of subtracting two pointers, if the system doesn't define it.]) ]) AC_CHECK_HEADERS([stddef.h stdlib.h string.h]) AC_CHECK_FUNCS([asprintf fwprintf newlocale putenv setenv setlocale \ snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb]) dnl Use the _snprintf function only if it is declared (because on NetBSD it dnl is defined as a weak alias of snprintf; we prefer to use the latter). gt_CHECK_DECL(_snprintf, [#include ]) gt_CHECK_DECL(_snwprintf, [#include ]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL(getc_unlocked, [#include ]) case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac AC_SUBST([HAVE_POSIX_PRINTF]) if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi AC_SUBST([HAVE_ASPRINTF]) if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi AC_SUBST([HAVE_SNPRINTF]) if test "$ac_cv_func_newlocale" = yes; then HAVE_NEWLOCALE=1 else HAVE_NEWLOCALE=0 fi AC_SUBST([HAVE_NEWLOCALE]) if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi AC_SUBST([HAVE_WPRINTF]) AM_LANGINFO_CODESET gt_LC_MESSAGES dnl Compilation on mingw and Cygwin needs special Makefile rules, because dnl 1. when we install a shared library, we must arrange to export dnl auxiliary pointer variables for every exported variable, dnl 2. when we install a shared library and a static library simultaneously, dnl the include file specifies __declspec(dllimport) and therefore we dnl must arrange to define the auxiliary pointer variables for the dnl exported variables _also_ in the static library. if test "$enable_shared" = yes; then case "$host_os" in mingw* | cygwin*) is_woe32dll=yes ;; *) is_woe32dll=no ;; esac else is_woe32dll=no fi WOE32DLL=$is_woe32dll AC_SUBST([WOE32DLL]) dnl On mingw and Cygwin, we can activate special Makefile rules which add dnl version information to the shared libraries and executables. case "$host_os" in mingw* | cygwin*) is_woe32=yes ;; *) is_woe32=no ;; esac WOE32=$is_woe32 AC_SUBST([WOE32]) if test $WOE32 = yes; then dnl Check for a program that compiles Windows resource files. AC_CHECK_TOOL([WINDRES], [windres]) fi dnl Determine whether when creating a library, "-lc" should be passed to dnl libtool or not. On many platforms, it is required for the libtool option dnl -no-undefined to work. On HP-UX, however, the -lc - stored by libtool dnl in the *.la files - makes it impossible to create multithreaded programs, dnl because libtool also reorders the -lc to come before the -pthread, and dnl this disables pthread_create() . case "$host_os" in hpux*) LTLIBC="" ;; *) LTLIBC="-lc" ;; esac AC_SUBST([LTLIBC]) dnl Rename some macros and functions used for locking. AH_BOTTOM([ #define __libc_lock_t gl_lock_t #define __libc_lock_define gl_lock_define #define __libc_lock_define_initialized gl_lock_define_initialized #define __libc_lock_init gl_lock_init #define __libc_lock_lock gl_lock_lock #define __libc_lock_unlock gl_lock_unlock #define __libc_lock_recursive_t gl_recursive_lock_t #define __libc_lock_define_recursive gl_recursive_lock_define #define __libc_lock_define_initialized_recursive gl_recursive_lock_define_initialized #define __libc_lock_init_recursive gl_recursive_lock_init #define __libc_lock_lock_recursive gl_recursive_lock_lock #define __libc_lock_unlock_recursive gl_recursive_lock_unlock #define glthread_in_use libintl_thread_in_use #define glthread_lock_init_func libintl_lock_init_func #define glthread_lock_lock_func libintl_lock_lock_func #define glthread_lock_unlock_func libintl_lock_unlock_func #define glthread_lock_destroy_func libintl_lock_destroy_func #define glthread_rwlock_init_multithreaded libintl_rwlock_init_multithreaded #define glthread_rwlock_init_func libintl_rwlock_init_func #define glthread_rwlock_rdlock_multithreaded libintl_rwlock_rdlock_multithreaded #define glthread_rwlock_rdlock_func libintl_rwlock_rdlock_func #define glthread_rwlock_wrlock_multithreaded libintl_rwlock_wrlock_multithreaded #define glthread_rwlock_wrlock_func libintl_rwlock_wrlock_func #define glthread_rwlock_unlock_multithreaded libintl_rwlock_unlock_multithreaded #define glthread_rwlock_unlock_func libintl_rwlock_unlock_func #define glthread_rwlock_destroy_multithreaded libintl_rwlock_destroy_multithreaded #define glthread_rwlock_destroy_func libintl_rwlock_destroy_func #define glthread_recursive_lock_init_multithreaded libintl_recursive_lock_init_multithreaded #define glthread_recursive_lock_init_func libintl_recursive_lock_init_func #define glthread_recursive_lock_lock_multithreaded libintl_recursive_lock_lock_multithreaded #define glthread_recursive_lock_lock_func libintl_recursive_lock_lock_func #define glthread_recursive_lock_unlock_multithreaded libintl_recursive_lock_unlock_multithreaded #define glthread_recursive_lock_unlock_func libintl_recursive_lock_unlock_func #define glthread_recursive_lock_destroy_multithreaded libintl_recursive_lock_destroy_multithreaded #define glthread_recursive_lock_destroy_func libintl_recursive_lock_destroy_func #define glthread_once_func libintl_once_func #define glthread_once_singlethreaded libintl_once_singlethreaded #define glthread_once_multithreaded libintl_once_multithreaded ]) ]) dnl Checks for the core files of the intl subdirectory: dnl dcigettext.c dnl eval-plural.h dnl explodename.c dnl finddomain.c dnl gettextP.h dnl gmo.h dnl hash-string.h hash-string.c dnl l10nflist.c dnl libgnuintl.h.in (except the *printf stuff) dnl loadinfo.h dnl loadmsgcat.c dnl localealias.c dnl log.c dnl plural-exp.h plural-exp.c dnl plural.y dnl Used by libglocale. AC_DEFUN([gt_INTL_SUBDIR_CORE], [ AC_REQUIRE([AC_C_INLINE])dnl AC_REQUIRE([AC_TYPE_SIZE_T])dnl AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_REQUIRE([AC_FUNC_ALLOCA])dnl AC_REQUIRE([AC_FUNC_MMAP])dnl AC_REQUIRE([gt_INTDIV0])dnl AC_REQUIRE([gl_AC_TYPE_UINTMAX_T])dnl AC_REQUIRE([gt_INTTYPES_PRI])dnl AC_REQUIRE([gl_LOCK])dnl AC_TRY_LINK( [int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }], [], [AC_DEFINE([HAVE_BUILTIN_EXPECT], [1], [Define to 1 if the compiler understands __builtin_expect.])]) AC_CHECK_HEADERS([argz.h inttypes.h limits.h unistd.h sys/param.h]) AC_CHECK_FUNCS([getcwd getegid geteuid getgid getuid mempcpy munmap \ stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ argz_stringify argz_next __fsetlocking]) dnl Use the *_unlocked functions only if they are declared. dnl (because some of them were defined without being declared in Solaris dnl 2.5.1 but were removed in Solaris 2.6, whereas we want binaries built dnl on Solaris 2.5.1 to run on Solaris 2.6). dnl Don't use AC_CHECK_DECLS because it isn't supported in autoconf-2.13. gt_CHECK_DECL([feof_unlocked], [#include ]) gt_CHECK_DECL([fgets_unlocked], [#include ]) AM_ICONV dnl intl/plural.c is generated from intl/plural.y. It requires bison, dnl because plural.y uses bison specific features. It requires at least dnl bison-1.26 because earlier versions generate a plural.c that doesn't dnl compile. dnl bison is only needed for the maintainer (who touches plural.y). But in dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put dnl the rule in general Makefile. Now, some people carelessly touch the dnl files or have a broken "make" program, hence the plural.c rule will dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not dnl present or too old. AC_CHECK_PROGS([INTLBISON], [bison]) if test -z "$INTLBISON"; then ac_verc_fail=yes else dnl Found it, now check the version. AC_MSG_CHECKING([version of bison]) changequote(<<,>>)dnl ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) changequote([,])dnl ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac AC_MSG_RESULT([$ac_prog_version]) fi if test $ac_verc_fail = yes; then INTLBISON=: fi ]) dnl gt_CHECK_DECL(FUNC, INCLUDES) dnl Check whether a function is declared. AC_DEFUN([gt_CHECK_DECL], [ AC_CACHE_CHECK([whether $1 is declared], [ac_cv_have_decl_$1], [AC_TRY_COMPILE([$2], [ #ifndef $1 char *p = (char *) $1; #endif ], ac_cv_have_decl_$1=yes, ac_cv_have_decl_$1=no)]) if test $ac_cv_have_decl_$1 = yes; then gt_value=1 else gt_value=0 fi AC_DEFINE_UNQUOTED([HAVE_DECL_]translit($1, [a-z], [A-Z]), [$gt_value], [Define to 1 if you have the declaration of `$1', and to 0 if you don't.]) ]) gtick-0.5.2/m4/lib-ld.m40000644000175000017500000000660311617270155011477 00000000000000# lib-ld.m4 serial 4 (gettext-0.18) dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT([$LD]) else AC_MSG_RESULT([no]) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) gtick-0.5.2/m4/visibility.m40000644000175000017500000000624611617270156012527 00000000000000# visibility.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Tests whether the compiler supports the command-line option dnl -fvisibility=hidden and the function and variable attributes dnl __attribute__((__visibility__("hidden"))) and dnl __attribute__((__visibility__("default"))). dnl Does *not* test for __visibility__("protected") - which has tricky dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on dnl MacOS X. dnl Does *not* test for __visibility__("internal") - which has processor dnl dependent semantics. dnl Does *not* test for #pragma GCC visibility push(hidden) - which is dnl "really only recommended for legacy code". dnl Set the variable CFLAG_VISIBILITY. dnl Defines and sets the variable HAVE_VISIBILITY. AC_DEFUN([gl_VISIBILITY], [ AC_REQUIRE([AC_PROG_CC]) CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then dnl First, check whether -Werror can be added to the command line, or dnl whether it leads to an error because of some other option that the dnl user has put into $CC $CFLAGS $CPPFLAGS. AC_MSG_CHECKING([whether the -Werror option is usable]) AC_CACHE_VAL([gl_cv_cc_vis_werror], [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror" AC_TRY_COMPILE([], [], [gl_cv_cc_vis_werror=yes], [gl_cv_cc_vis_werror=no]) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_vis_werror]) dnl Now check whether visibility declarations are supported. AC_MSG_CHECKING([for simple visibility declarations]) AC_CACHE_VAL([gl_cv_cc_visibility], [ gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" dnl We use the option -Werror and a function dummyfunc, because on some dnl platforms (Cygwin 1.7) the use of -fvisibility triggers a warning dnl "visibility attribute not supported in this configuration; ignored" dnl at the first function definition in every compilation unit, and we dnl don't want to use the option in this case. if test $gl_cv_cc_vis_werror = yes; then CFLAGS="$CFLAGS -Werror" fi AC_TRY_COMPILE( [extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void); void dummyfunc (void) {}], [], [gl_cv_cc_visibility=yes], [gl_cv_cc_visibility=no]) CFLAGS="$gl_save_CFLAGS"]) AC_MSG_RESULT([$gl_cv_cc_visibility]) if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi AC_SUBST([CFLAG_VISIBILITY]) AC_SUBST([HAVE_VISIBILITY]) AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY], [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.]) ]) gtick-0.5.2/m4/glibc2.m40000644000175000017500000000143511617270154011473 00000000000000# glibc2.m4 serial 2 dnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.0 or newer. # From Bruno Haible. AC_DEFUN([gt_GLIBC2], [ AC_CACHE_CHECK([whether we are using the GNU C Library 2 or newer], [ac_cv_gnu_library_2], [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif ], [ac_cv_gnu_library_2=yes], [ac_cv_gnu_library_2=no]) ] ) AC_SUBST([GLIBC2]) GLIBC2="$ac_cv_gnu_library_2" ] ) gtick-0.5.2/m4/threadlib.m40000644000175000017500000003237711617270156012302 00000000000000# threadlib.m4 serial 5 (gettext-0.18) dnl Copyright (C) 2005-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl gl_THREADLIB dnl ------------ dnl Tests for a multithreading library to be used. dnl Defines at most one of the macros USE_POSIX_THREADS, USE_SOLARIS_THREADS, dnl USE_PTH_THREADS, USE_WIN32_THREADS dnl Sets the variables LIBTHREAD and LTLIBTHREAD to the linker options for use dnl in a Makefile (LIBTHREAD for use without libtool, LTLIBTHREAD for use with dnl libtool). dnl Sets the variables LIBMULTITHREAD and LTLIBMULTITHREAD similarly, for dnl programs that really need multithread functionality. The difference dnl between LIBTHREAD and LIBMULTITHREAD is that on platforms supporting weak dnl symbols, typically LIBTHREAD="" whereas LIBMULTITHREAD="-lpthread". dnl Adds to CPPFLAGS the flag -D_REENTRANT or -D_THREAD_SAFE if needed for dnl multithread-safe programs. AC_DEFUN([gl_THREADLIB_EARLY], [ AC_REQUIRE([gl_THREADLIB_EARLY_BODY]) ]) dnl The guts of gl_THREADLIB_EARLY. Needs to be expanded only once. AC_DEFUN([gl_THREADLIB_EARLY_BODY], [ dnl Ordering constraints: This macro modifies CPPFLAGS in a way that dnl influences the result of the autoconf tests that test for *_unlocked dnl declarations, on AIX 5 at least. Therefore it must come early. AC_BEFORE([$0], [gl_FUNC_GLIBC_UNLOCKED_IO])dnl AC_BEFORE([$0], [gl_ARGP])dnl AC_REQUIRE([AC_CANONICAL_HOST]) dnl _GNU_SOURCE is needed for pthread_rwlock_t on glibc systems. dnl AC_USE_SYSTEM_EXTENSIONS was introduced in autoconf 2.60 and obsoletes dnl AC_GNU_SOURCE. m4_ifdef([AC_USE_SYSTEM_EXTENSIONS], [AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])], [AC_REQUIRE([AC_GNU_SOURCE])]) dnl Check for multithreading. m4_divert_text([DEFAULTS], [gl_use_threads_default=]) AC_ARG_ENABLE([threads], AC_HELP_STRING([--enable-threads={posix|solaris|pth|win32}], [specify multithreading API]) AC_HELP_STRING([--disable-threads], [build without multithread safety]), [gl_use_threads=$enableval], [if test -n "$gl_use_threads_default"; then gl_use_threads="$gl_use_threads_default" else changequote(,)dnl case "$host_os" in dnl Disable multithreading by default on OSF/1, because it interferes dnl with fork()/exec(): When msgexec is linked with -lpthread, its dnl child process gets an endless segmentation fault inside execvp(). dnl Disable multithreading by default on Cygwin 1.5.x, because it has dnl bugs that lead to endless loops or crashes. See dnl . osf*) gl_use_threads=no ;; cygwin*) case `uname -r` in 1.[0-5].*) gl_use_threads=no ;; *) gl_use_threads=yes ;; esac ;; *) gl_use_threads=yes ;; esac changequote([,])dnl fi ]) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # For using : case "$host_os" in osf*) # On OSF/1, the compiler needs the flag -D_REENTRANT so that it # groks . cc also understands the flag -pthread, but # we don't use it because 1. gcc-2.95 doesn't understand -pthread, # 2. putting a flag into CPPFLAGS that has an effect on the linker # causes the AC_TRY_LINK test below to succeed unexpectedly, # leading to wrong values of LIBTHREAD and LTLIBTHREAD. CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac # Some systems optimize for single-threaded programs by default, and # need special flags to disable these optimizations. For example, the # definition of 'errno' in . case "$host_os" in aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac fi ]) dnl The guts of gl_THREADLIB. Needs to be expanded only once. AC_DEFUN([gl_THREADLIB_BODY], [ AC_REQUIRE([gl_THREADLIB_EARLY_BODY]) gl_threads_api=none LIBTHREAD= LTLIBTHREAD= LIBMULTITHREAD= LTLIBMULTITHREAD= if test "$gl_use_threads" != no; then dnl Check whether the compiler and linker support weak declarations. AC_CACHE_CHECK([whether imported symbols can be declared weak], [gl_cv_have_weak], [gl_cv_have_weak=no dnl First, test whether the compiler accepts it syntactically. AC_TRY_LINK([extern void xyzzy (); #pragma weak xyzzy], [xyzzy();], [gl_cv_have_weak=maybe]) if test $gl_cv_have_weak = maybe; then dnl Second, test whether it actually works. On Cygwin 1.7.2, with dnl gcc 4.3, symbols declared weak always evaluate to the address 0. AC_TRY_RUN([ #include #pragma weak fputs int main () { return (fputs == NULL); }], [gl_cv_have_weak=yes], [gl_cv_have_weak=no], [dnl When cross-compiling, assume that only ELF platforms support dnl weak symbols. AC_EGREP_CPP([Extensible Linking Format], [#ifdef __ELF__ Extensible Linking Format #endif ], [gl_cv_have_weak="guessing yes"], [gl_cv_have_weak="guessing no"]) ]) fi ]) if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . It's added above, in gl_THREADLIB_EARLY_BODY. AC_CHECK_HEADER([pthread.h], [gl_have_pthread_h=yes], [gl_have_pthread_h=no]) if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) # -lgthreads gl_have_pthread= # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist # in libc. IRIX 6.5 has the first one in both libc and libpthread, but # the second one only in libpthread, and lock.c needs it. AC_TRY_LINK([#include ], [pthread_mutex_lock((pthread_mutex_t*)0); pthread_mutexattr_init((pthread_mutexattr_t*)0);], [gl_have_pthread=yes]) # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test -n "$gl_have_pthread"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. AC_CHECK_LIB([pthread], [pthread_kill], [LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread # On Solaris and HP-UX, most pthread functions exist also in libc. # Therefore pthread_in_use() needs to actually try to create a # thread: pthread_create from libc will fail, whereas # pthread_create will actually create a thread. case "$host_os" in solaris* | hpux*) AC_DEFINE([PTHREAD_IN_USE_DETECTION_HARD], [1], [Define if the pthread_in_use() detection is hard.]) esac ]) else # Some library is needed. Try libpthread and libc_r. AC_CHECK_LIB([pthread], [pthread_kill], [gl_have_pthread=yes LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread]) if test -z "$gl_have_pthread"; then # For FreeBSD 4. AC_CHECK_LIB([c_r], [pthread_kill], [gl_have_pthread=yes LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r]) fi fi if test -n "$gl_have_pthread"; then gl_threads_api=posix AC_DEFINE([USE_POSIX_THREADS], [1], [Define if the POSIX multithreading library can be used.]) if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then AC_DEFINE([USE_POSIX_THREADS_WEAK], [1], [Define if references to the POSIX multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi fi fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then gl_have_solaristhread= gl_save_LIBS="$LIBS" LIBS="$LIBS -lthread" AC_TRY_LINK([#include #include ], [thr_self();], [gl_have_solaristhread=yes]) LIBS="$gl_save_LIBS" if test -n "$gl_have_solaristhread"; then gl_threads_api=solaris LIBTHREAD=-lthread LTLIBTHREAD=-lthread LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" AC_DEFINE([USE_SOLARIS_THREADS], [1], [Define if the old Solaris multithreading library can be used.]) if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then AC_DEFINE([USE_SOLARIS_THREADS_WEAK], [1], [Define if references to the old Solaris multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi fi fi if test "$gl_use_threads" = pth; then gl_save_CPPFLAGS="$CPPFLAGS" AC_LIB_LINKFLAGS([pth]) gl_have_pth= gl_save_LIBS="$LIBS" LIBS="$LIBS -lpth" AC_TRY_LINK([#include ], [pth_self();], [gl_have_pth=yes]) LIBS="$gl_save_LIBS" if test -n "$gl_have_pth"; then gl_threads_api=pth LIBTHREAD="$LIBPTH" LTLIBTHREAD="$LTLIBPTH" LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" AC_DEFINE([USE_PTH_THREADS], [1], [Define if the GNU Pth multithreading library can be used.]) if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then AC_DEFINE([USE_PTH_THREADS_WEAK], [1], [Define if references to the GNU Pth multithreading library should be made weak.]) LIBTHREAD= LTLIBTHREAD= fi fi else CPPFLAGS="$gl_save_CPPFLAGS" fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then if { case "$host_os" in mingw*) true;; *) false;; esac }; then gl_threads_api=win32 AC_DEFINE([USE_WIN32_THREADS], [1], [Define if the Win32 multithreading API can be used.]) fi fi fi fi AC_MSG_CHECKING([for multithread API to use]) AC_MSG_RESULT([$gl_threads_api]) AC_SUBST([LIBTHREAD]) AC_SUBST([LTLIBTHREAD]) AC_SUBST([LIBMULTITHREAD]) AC_SUBST([LTLIBMULTITHREAD]) ]) AC_DEFUN([gl_THREADLIB], [ AC_REQUIRE([gl_THREADLIB_EARLY]) AC_REQUIRE([gl_THREADLIB_BODY]) ]) dnl gl_DISABLE_THREADS dnl ------------------ dnl Sets the gl_THREADLIB default so that threads are not used by default. dnl The user can still override it at installation time, by using the dnl configure option '--enable-threads'. AC_DEFUN([gl_DISABLE_THREADS], [ m4_divert_text([INIT_PREPARE], [gl_use_threads_default=no]) ]) dnl Survey of platforms: dnl dnl Platform Available Compiler Supports test-lock dnl flavours option weak result dnl --------------- --------- --------- -------- --------- dnl Linux 2.4/glibc posix -lpthread Y OK dnl dnl GNU Hurd/glibc posix dnl dnl FreeBSD 5.3 posix -lc_r Y dnl posix -lkse ? Y dnl posix -lpthread ? Y dnl posix -lthr Y dnl dnl FreeBSD 5.2 posix -lc_r Y dnl posix -lkse Y dnl posix -lthr Y dnl dnl FreeBSD 4.0,4.10 posix -lc_r Y OK dnl dnl NetBSD 1.6 -- dnl dnl OpenBSD 3.4 posix -lpthread Y OK dnl dnl MacOS X 10.[123] posix -lpthread Y OK dnl dnl Solaris 7,8,9 posix -lpthread Y Sol 7,8: 0.0; Sol 9: OK dnl solaris -lthread Y Sol 7,8: 0.0; Sol 9: OK dnl dnl HP-UX 11 posix -lpthread N (cc) OK dnl Y (gcc) dnl dnl IRIX 6.5 posix -lpthread Y 0.5 dnl dnl AIX 4.3,5.1 posix -lpthread N AIX 4: 0.5; AIX 5: OK dnl dnl OSF/1 4.0,5.1 posix -pthread (cc) N OK dnl -lpthread (gcc) Y dnl dnl Cygwin posix -lpthread Y OK dnl dnl Any of the above pth -lpth 0.0 dnl dnl Mingw win32 N OK dnl dnl BeOS 5 -- dnl dnl The test-lock result shows what happens if in test-lock.c EXPLICIT_YIELD is dnl turned off: dnl OK if all three tests terminate OK, dnl 0.5 if the first test terminates OK but the second one loops endlessly, dnl 0.0 if the first test already loops endlessly. gtick-0.5.2/m4/wchar_t.m40000644000175000017500000000135311617270156011761 00000000000000# wchar_t.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2002-2003, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wchar_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WCHAR_T], [ AC_CACHE_CHECK([for wchar_t], [gt_cv_c_wchar_t], [AC_TRY_COMPILE([#include wchar_t foo = (wchar_t)'\0';], , [gt_cv_c_wchar_t=yes], [gt_cv_c_wchar_t=no])]) if test $gt_cv_c_wchar_t = yes; then AC_DEFINE([HAVE_WCHAR_T], [1], [Define if you have the 'wchar_t' type.]) fi ]) gtick-0.5.2/m4/codeset.m40000644000175000017500000000141311617270154011753 00000000000000# codeset.m4 serial 4 (gettext-0.18) dnl Copyright (C) 2000-2002, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_LANGINFO_CODESET], [ AC_CACHE_CHECK([for nl_langinfo and CODESET], [am_cv_langinfo_codeset], [AC_TRY_LINK([#include ], [char* cs = nl_langinfo(CODESET); return !cs;], [am_cv_langinfo_codeset=yes], [am_cv_langinfo_codeset=no]) ]) if test $am_cv_langinfo_codeset = yes; then AC_DEFINE([HAVE_LANGINFO_CODESET], [1], [Define if you have and nl_langinfo(CODESET).]) fi ]) gtick-0.5.2/m4/po.m40000644000175000017500000004461611617270155010760 00000000000000# po.m4 serial 17 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) gtick-0.5.2/m4/intmax.m40000644000175000017500000000204011617270155011623 00000000000000# intmax.m4 serial 5 (gettext-0.18) dnl Copyright (C) 2002-2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the system has the 'intmax_t' type, but don't attempt to dnl find a replacement if it is lacking. AC_DEFUN([gt_TYPE_INTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) AC_CACHE_CHECK([for intmax_t], [gt_cv_c_intmax_t], [AC_TRY_COMPILE([ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif ], [intmax_t x = -1; return !x;], [gt_cv_c_intmax_t=yes], [gt_cv_c_intmax_t=no])]) if test $gt_cv_c_intmax_t = yes; then AC_DEFINE([HAVE_INTMAX_T], [1], [Define if you have the 'intmax_t' type in or .]) fi ]) gtick-0.5.2/m4/lib-prefix.m40000644000175000017500000002042211617270155012370 00000000000000# lib-prefix.m4 serial 7 (gettext-0.18) dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a variable acl_libdirstem, containing the basename of the libdir, either dnl "lib" or "lib64" or "lib/64", dnl - a variable acl_libdirstem2, as a secondary possible value for dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or dnl "lib/amd64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. dnl On glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine dnl the compiler's default mode by looking at the compiler's library search dnl path. If at least one of its elements ends in /lib64 or points to a dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. dnl Otherwise we use the default, namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], [AC_EGREP_CPP([sixtyfour bits], [ #ifdef _LP64 sixtyfour bits #endif ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) ]) if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" ]) gtick-0.5.2/m4/intlmacosx.m40000644000175000017500000000457511617270154012522 00000000000000# intlmacosx.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) gtick-0.5.2/m4/iconv.m40000644000175000017500000001653711617270154011460 00000000000000# iconv.m4 serial 11 (gettext-0.18.1) dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi AC_TRY_RUN([ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) fi ]) gtick-0.5.2/m4/inttypes-pri.m40000644000175000017500000000220111617270155012771 00000000000000# inttypes-pri.m4 serial 6 (gettext-0.18) dnl Copyright (C) 1997-2002, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.52]) # Define PRI_MACROS_BROKEN if exists and defines the PRI* # macros to non-string values. This is the case on AIX 4.3.3. AC_DEFUN([gt_INTTYPES_PRI], [ AC_CHECK_HEADERS([inttypes.h]) if test $ac_cv_header_inttypes_h = yes; then AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], [gt_cv_inttypes_pri_broken], [ AC_TRY_COMPILE([#include #ifdef PRId32 char *p = PRId32; #endif ], [], [gt_cv_inttypes_pri_broken=no], [gt_cv_inttypes_pri_broken=yes]) ]) fi if test "$gt_cv_inttypes_pri_broken" = yes; then AC_DEFINE_UNQUOTED([PRI_MACROS_BROKEN], [1], [Define if exists and defines unusable PRI* macros.]) PRI_MACROS_BROKEN=1 else PRI_MACROS_BROKEN=0 fi AC_SUBST([PRI_MACROS_BROKEN]) ]) gtick-0.5.2/m4/stdint_h.m40000644000175000017500000000164111617270156012146 00000000000000# stdint_h.m4 serial 8 dnl Copyright (C) 1997-2004, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_STDINT_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_STDINT_H], [ AC_CACHE_CHECK([for stdint.h], [gl_cv_header_stdint_h], [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1; return !i;], [gl_cv_header_stdint_h=yes], [gl_cv_header_stdint_h=no])]) if test $gl_cv_header_stdint_h = yes; then AC_DEFINE_UNQUOTED([HAVE_STDINT_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) gtick-0.5.2/m4/intdiv0.m40000644000175000017500000000444611617270154011713 00000000000000# intdiv0.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gt_INTDIV0], [ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_CANONICAL_HOST])dnl AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], gt_cv_int_divbyzero_sigfpe, [ gt_cv_int_divbyzero_sigfpe= changequote(,)dnl case "$host_os" in macos* | darwin[6-9]* | darwin[1-9][0-9]*) # On MacOS X 10.2 or newer, just assume the same as when cross- # compiling. If we were to perform the real test, 1 Crash Report # dialog window would pop up. case "$host_cpu" in i[34567]86 | x86_64) gt_cv_int_divbyzero_sigfpe="guessing yes" ;; esac ;; esac changequote([,])dnl if test -z "$gt_cv_int_divbyzero_sigfpe"; then AC_TRY_RUN([ #include #include static void sigfpe_handler (int sig) { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } ], [gt_cv_int_divbyzero_sigfpe=yes], [gt_cv_int_divbyzero_sigfpe=no], [ # Guess based on the CPU. changequote(,)dnl case "$host_cpu" in alpha* | i[34567]86 | x86_64 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac changequote([,])dnl ]) fi ]) case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac AC_DEFINE_UNQUOTED([INTDIV0_RAISES_SIGFPE], [$value], [Define if integer division by zero raises signal SIGFPE.]) ]) gtick-0.5.2/m4/printf-posix.m40000644000175000017500000000275111617270155012776 00000000000000# printf-posix.m4 serial 5 (gettext-0.18) dnl Copyright (C) 2003, 2007, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether the printf() function supports POSIX/XSI format strings with dnl positions. AC_DEFUN([gt_PRINTF_POSIX], [ AC_REQUIRE([AC_PROG_CC]) AC_CACHE_CHECK([whether printf() supports POSIX/XSI format strings], gt_cv_func_printf_posix, [ AC_TRY_RUN([ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); }], gt_cv_func_printf_posix=yes, gt_cv_func_printf_posix=no, [ AC_EGREP_CPP([notposix], [ #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif ], [gt_cv_func_printf_posix="guessing no"], [gt_cv_func_printf_posix="guessing yes"]) ]) ]) case $gt_cv_func_printf_posix in *yes) AC_DEFINE([HAVE_POSIX_PRINTF], [1], [Define if your printf() function supports format strings with positions.]) ;; esac ]) gtick-0.5.2/m4/xsize.m40000644000175000017500000000066211617270156011476 00000000000000# xsize.m4 serial 4 dnl Copyright (C) 2003-2004, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_XSIZE], [ dnl Prerequisites of lib/xsize.h. AC_REQUIRE([gl_SIZE_MAX]) AC_REQUIRE([AC_C_INLINE]) AC_CHECK_HEADERS([stdint.h]) ]) gtick-0.5.2/m4/wint_t.m40000644000175000017500000000172611617270156011642 00000000000000# wint_t.m4 serial 4 (gettext-0.18) dnl Copyright (C) 2003, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl Test whether has the 'wint_t' type. dnl Prerequisite: AC_PROG_CC AC_DEFUN([gt_TYPE_WINT_T], [ AC_CACHE_CHECK([for wint_t], [gt_cv_c_wint_t], [AC_TRY_COMPILE([ /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include wint_t foo = (wchar_t)'\0';], , [gt_cv_c_wint_t=yes], [gt_cv_c_wint_t=no])]) if test $gt_cv_c_wint_t = yes; then AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.]) fi ]) gtick-0.5.2/m4/lib-link.m40000644000175000017500000010020211617270155012023 00000000000000# lib-link.m4 serial 21 (gettext-0.18) dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.54]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl Autoconf >= 2.61 supports dots in --with options. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH(P_A_C_K[-prefix], [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) gtick-0.5.2/m4/lock.m40000644000175000017500000000231411617270155011257 00000000000000# lock.m4 serial 10 (gettext-0.18) dnl Copyright (C) 2005-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gl_LOCK], [ AC_REQUIRE([gl_THREADLIB]) if test "$gl_threads_api" = posix; then # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the # pthread_rwlock_* functions. AC_CHECK_TYPE([pthread_rwlock_t], [AC_DEFINE([HAVE_PTHREAD_RWLOCK], [1], [Define if the POSIX multithreading library has read/write locks.])], [], [#include ]) # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. AC_TRY_COMPILE([#include ], [#if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; return !x; #endif], [AC_DEFINE([HAVE_PTHREAD_MUTEX_RECURSIVE], [1], [Define if the defines PTHREAD_MUTEX_RECURSIVE.])]) fi gl_PREREQ_LOCK ]) # Prerequisites of lib/lock.c. AC_DEFUN([gl_PREREQ_LOCK], [ AC_REQUIRE([AC_C_INLINE]) ]) gtick-0.5.2/m4/glibc21.m40000644000175000017500000000152611617270154011555 00000000000000# glibc21.m4 serial 4 dnl Copyright (C) 2000-2002, 2004, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. # Test for the GNU C Library, version 2.1 or newer. # From Bruno Haible. AC_DEFUN([gl_GLIBC21], [ AC_CACHE_CHECK([whether we are using the GNU C Library 2.1 or newer], [ac_cv_gnu_library_2_1], [AC_EGREP_CPP([Lucky GNU user], [ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif ], [ac_cv_gnu_library_2_1=yes], [ac_cv_gnu_library_2_1=no]) ] ) AC_SUBST([GLIBC21]) GLIBC21="$ac_cv_gnu_library_2_1" ] ) gtick-0.5.2/m4/inttypes_h.m40000644000175000017500000000167111617270155012522 00000000000000# inttypes_h.m4 serial 9 dnl Copyright (C) 1997-2004, 2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, # doesn't clash with , and declares uintmax_t. AC_DEFUN([gl_AC_HEADER_INTTYPES_H], [ AC_CACHE_CHECK([for inttypes.h], [gl_cv_header_inttypes_h], [AC_TRY_COMPILE( [#include #include ], [uintmax_t i = (uintmax_t) -1; return !i;], [gl_cv_header_inttypes_h=yes], [gl_cv_header_inttypes_h=no])]) if test $gl_cv_header_inttypes_h = yes; then AC_DEFINE_UNQUOTED([HAVE_INTTYPES_H_WITH_UINTMAX], [1], [Define if exists, doesn't clash with , and declares uintmax_t. ]) fi ]) gtick-0.5.2/m4/size_max.m40000644000175000017500000000563011617270156012153 00000000000000# size_max.m4 serial 9 dnl Copyright (C) 2003, 2005-2006, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([gl_SIZE_MAX], [ AC_CHECK_HEADERS([stdint.h]) dnl First test whether the system already has SIZE_MAX. AC_CACHE_CHECK([for SIZE_MAX], [gl_cv_size_max], [ gl_cv_size_max= AC_EGREP_CPP([Found it], [ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif ], [gl_cv_size_max=yes]) if test -z "$gl_cv_size_max"; then dnl Define it ourselves. Here we assume that the type 'size_t' is not wider dnl than the type 'unsigned long'. Try hard to find a definition that can dnl be used in a preprocessor #if, i.e. doesn't contain a cast. AC_COMPUTE_INT([size_t_bits_minus_1], [sizeof (size_t) * CHAR_BIT - 1], [#include #include ], [size_t_bits_minus_1=]) AC_COMPUTE_INT([fits_in_uint], [sizeof (size_t) <= sizeof (unsigned int)], [#include ], [fits_in_uint=]) if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then dnl Even though SIZE_MAX fits in an unsigned int, it must be of type dnl 'unsigned long' if the type 'size_t' is the same as 'unsigned long'. AC_TRY_COMPILE([#include extern size_t foo; extern unsigned long foo; ], [], [fits_in_uint=0]) fi dnl We cannot use 'expr' to simplify this expression, because 'expr' dnl works only with 'long' integers in the host environment, while we dnl might be cross-compiling from a 32-bit platform to a 64-bit platform. if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else dnl Shouldn't happen, but who knows... gl_cv_size_max='((size_t)~(size_t)0)' fi fi ]) if test "$gl_cv_size_max" != yes; then AC_DEFINE_UNQUOTED([SIZE_MAX], [$gl_cv_size_max], [Define as the maximum value of type 'size_t', if the system doesn't define it.]) fi dnl Don't redefine SIZE_MAX in config.h if config.h is re-included after dnl . Remember that the #undef in AH_VERBATIM gets replaced with dnl #define by AC_DEFINE_UNQUOTED. AH_VERBATIM([SIZE_MAX], [/* Define as the maximum value of type 'size_t', if the system doesn't define it. */ #ifndef SIZE_MAX # undef SIZE_MAX #endif]) ]) dnl Autoconf >= 2.61 has AC_COMPUTE_INT built-in. dnl Remove this when we can assume autoconf >= 2.61. m4_ifdef([AC_COMPUTE_INT], [], [ AC_DEFUN([AC_COMPUTE_INT], [_AC_COMPUTE_INT([$2],[$1],[$3],[$4])]) ]) gtick-0.5.2/m4/gettext.m40000644000175000017500000003513211617270154012016 00000000000000# gettext.m4 serial 63 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) gtick-0.5.2/m4/lcmessage.m40000644000175000017500000000243311617270155012274 00000000000000# lcmessage.m4 serial 6 (gettext-0.18) dnl Copyright (C) 1995-2002, 2004-2005, 2008-2010 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995. # Check whether LC_MESSAGES is available in . AC_DEFUN([gt_LC_MESSAGES], [ AC_CACHE_CHECK([for LC_MESSAGES], [gt_cv_val_LC_MESSAGES], [AC_TRY_LINK([#include ], [return LC_MESSAGES], [gt_cv_val_LC_MESSAGES=yes], [gt_cv_val_LC_MESSAGES=no])]) if test $gt_cv_val_LC_MESSAGES = yes; then AC_DEFINE([HAVE_LC_MESSAGES], [1], [Define if your file defines LC_MESSAGES.]) fi ]) gtick-0.5.2/m4/ulonglong.m40000644000175000017500000000353210661555202012333 00000000000000# ulonglong.m4 serial 6 dnl Copyright (C) 1999-2006 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. # Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. # This fixes a bug in Autoconf 2.60, but can be removed once we # assume 2.61 everywhere. # Note: If the type 'unsigned long long int' exists but is only 32 bits # large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT # will not be defined. In this case you can treat 'unsigned long long int' # like 'unsigned long int'. AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], [ AC_CACHE_CHECK([for unsigned long long int], [ac_cv_type_unsigned_long_long_int], [AC_LINK_IFELSE( [AC_LANG_PROGRAM( [[unsigned long long int ull = 18446744073709551615ULL; typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63;]], [[unsigned long long int ullmax = 18446744073709551615ull; return (ull << 63 | ull >> 63 | ull << i | ull >> i | ullmax / ull | ullmax % ull);]])], [ac_cv_type_unsigned_long_long_int=yes], [ac_cv_type_unsigned_long_long_int=no])]) if test $ac_cv_type_unsigned_long_long_int = yes; then AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], 1, [Define to 1 if the system has the type `unsigned long long int'.]) fi ]) # This macro is obsolescent and should go away soon. AC_DEFUN([gl_AC_TYPE_UNSIGNED_LONG_LONG], [ AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) ac_cv_type_unsigned_long_long=$ac_cv_type_unsigned_long_long_int if test $ac_cv_type_unsigned_long_long = yes; then AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, [Define if you have the 'unsigned long long' type.]) fi ]) gtick-0.5.2/m4/uintmax_t.m40000644000175000017500000000213111617270156012335 00000000000000# uintmax_t.m4 serial 12 dnl Copyright (C) 1997-2004, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Paul Eggert. AC_PREREQ([2.13]) # Define uintmax_t to 'unsigned long' or 'unsigned long long' # if it is not already defined in or . AC_DEFUN([gl_AC_TYPE_UINTMAX_T], [ AC_REQUIRE([gl_AC_HEADER_INTTYPES_H]) AC_REQUIRE([gl_AC_HEADER_STDINT_H]) if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) test $ac_cv_type_unsigned_long_long_int = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' AC_DEFINE_UNQUOTED([uintmax_t], [$ac_type], [Define to unsigned long or unsigned long long if and don't define.]) else AC_DEFINE([HAVE_UINTMAX_T], [1], [Define if you have the 'uintmax_t' type in or .]) fi ]) gtick-0.5.2/aclocal.m40000644000175000017500000012300412116334335011401 00000000000000# generated automatically by aclocal 1.11.6 -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, # Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically `autoreconf'.])]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008, 2011 Free Software # Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.11' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.11.6], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.11.6])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to # `$srcdir', `$srcdir/..', or `$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is `.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 9 # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ(2.52)dnl ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009, # 2010, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 12 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "GCJ", or "OBJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl ifelse([$1], CC, [depcc="$CC" am_compiler_list=], [$1], CXX, [depcc="$CXX" am_compiler_list=], [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], UPC, [depcc="$UPC" am_compiler_list=], [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE(dependency-tracking, [ --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. #serial 5 # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each `.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 8 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 16 # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.62])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) AM_MISSING_PROG(AUTOCONF, autoconf) AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) AM_MISSING_PROG(AUTOHEADER, autoheader) AM_MISSING_PROG(MAKEINFO, makeinfo) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES(CC)], [define([AC_PROG_CC], defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES(CXX)], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES(OBJC)], [define([AC_PROG_OBJC], defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl ]) _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl dnl The `parallel-tests' driver may need to know about EXEEXT, so add the dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001, 2003, 2005, 2008, 2011 Free Software Foundation, # Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST(install_sh)]) # Copyright (C) 2003, 2005 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_PROG_LEX # ----------- # Autoconf leaves LEX=: if lex or flex can't be found. Change that to a # "missing" invocation, for better error output. AC_DEFUN([AM_PROG_LEX], [AC_PREREQ(2.50)dnl AC_REQUIRE([AM_MISSING_HAS_RUN])dnl AC_REQUIRE([AC_PROG_LEX])dnl if test "$LEX" = :; then LEX=${am_missing_run}flex fi]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 4 # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 6 # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it supports --run. # If it does, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= AC_MSG_WARN([`missing' script is too old or missing]) fi ]) # Copyright (C) 2003, 2004, 2005, 2006, 2011 Free Software Foundation, # Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_MKDIR_P # --------------- # Check for `mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001, 2002, 2003, 2005, 2008, 2010 Free Software # Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 # Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 5 # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT(yes)]) # Copyright (C) 2001, 2003, 2005, 2011 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 1 # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor `install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in `make install-strip', and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be `maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006, 2008, 2010 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 3 # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004, 2005, 2012 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # serial 2 # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of `v7', `ustar', or `pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar],, [pax],, [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' _am_tools=${am_cv_prog_tar_$1-$_am_tools} # Do not fold the above two line into one, because Tru64 sh and # Solaris sh will not grok spaces in the rhs of `-'. for _am_tool in $_am_tools do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR m4_include([m4/codeset.m4]) m4_include([m4/fcntl-o.m4]) m4_include([m4/gettext.m4]) m4_include([m4/glibc2.m4]) m4_include([m4/glibc21.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intdiv0.m4]) m4_include([m4/intl.m4]) m4_include([m4/intlmacosx.m4]) m4_include([m4/intmax.m4]) m4_include([m4/inttypes-pri.m4]) m4_include([m4/inttypes_h.m4]) m4_include([m4/lcmessage.m4]) m4_include([m4/lib-ld.m4]) m4_include([m4/lib-link.m4]) m4_include([m4/lib-prefix.m4]) m4_include([m4/lock.m4]) m4_include([m4/longlong.m4]) m4_include([m4/nls.m4]) m4_include([m4/po.m4]) m4_include([m4/printf-posix.m4]) m4_include([m4/progtest.m4]) m4_include([m4/size_max.m4]) m4_include([m4/stdint_h.m4]) m4_include([m4/threadlib.m4]) m4_include([m4/uintmax_t.m4]) m4_include([m4/ulonglong.m4]) m4_include([m4/visibility.m4]) m4_include([m4/wchar_t.m4]) m4_include([m4/wint_t.m4]) m4_include([m4/xsize.m4]) gtick-0.5.2/THANKS0000644000175000017500000000031710660406274010461 00000000000000Ivan Schepens * new logo (2003-06-21) Kyrian * Initial RedHat packages Tomas Znamenacek * Initial version of manual tapping code gtick-0.5.2/missing0000755000175000017500000002415212116334337011146 00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2012-01-06.13; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # 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, 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, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG=\${$#} case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: gtick-0.5.2/config.sub0000755000175000017500000010532712116334337011536 00000000000000#! /bin/sh # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, # 2011, 2012 Free Software Foundation, Inc. timestamp='2012-04-18' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software # can handle that machine. It does not imply ALL GNU software can. # # This file 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, see . # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Please send patches to . Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; android-linux) os=-linux-android basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*178) os=-lynxos178 ;; -lynx*5) os=-lynxos5 ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | be32 | be64 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nds32 | nds32le | nds32be \ | nios | nios2 \ | ns16k | ns32k \ | open8 \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu \ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ | ubicom32 \ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ | we32k \ | x86 | xc16x | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; c54x) basic_machine=tic54x-unknown ;; c55x) basic_machine=tic55x-unknown ;; c6x) basic_machine=tic6x-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip) basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; strongarm | thumb | xscale) basic_machine=arm-unknown ;; xgate) basic_machine=$basic_machine-unknown os=-none ;; xscaleeb) basic_machine=armeb-unknown ;; xscaleel) basic_machine=armel-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | aarch64-* | aarch64_be-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | be32-* | be64-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hexagon-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | le32-* | le64-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nds32-* | nds32le-* | nds32be-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | open8-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ | pyramid-* \ | rl78-* | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ | tahoe-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile*-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c54x-*) basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c55x-*) basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c6x-*) basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16 | cr16-*) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze) basic_machine=microblaze-xilinx ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; msys) basic_machine=i386-pc os=-msys ;; mvs) basic_machine=i370-ibm os=-mvs ;; nacl) basic_machine=le32-unknown os=-nacl ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; neo-tandem) basic_machine=neo-tandem ;; nse-tandem) basic_machine=nse-tandem ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc | ppcbe) basic_machine=powerpc-unknown ;; ppc-* | ppcbe-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; strongarm-* | thumb-*) basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'` ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tile*) basic_machine=$basic_machine-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; xscale-* | xscalee[bl]-*) basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'` ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-android* \ | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; hexagon-*) os=-elf ;; tic54x-*) os=-coff ;; tic55x-*) os=-coff ;; tic6x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: gtick-0.5.2/install-sh0000755000175000017500000003325612116334337011560 00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2011-01-19.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg # Protect names problematic for `test' and other utilities. case $dst_arg in -* | [=\(\)!]) dst_arg=./$dst_arg;; esac done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then do_exit='(exit $ret); exit $ret' trap "ret=129; $do_exit" 1 trap "ret=130; $do_exit" 2 trap "ret=141; $do_exit" 13 trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names problematic for `test' and other utilities. case $src in -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; [-=\(\)!]*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: gtick-0.5.2/Makefile.am0000644000175000017500000000022711005077214011572 00000000000000SUBDIRS = doc intl po src testsuite EXTRA_DIST = config.rpath \ autogen.sh \ gtick.spec \ ABOUT-NLS #AUTOMAKE_OPTIONS = dist-bzip2 gtick-0.5.2/INSTALL0000644000175000017500000003660012116334337010601 00000000000000Installation Instructions ************************* Copyright (C) 1994-1996, 1999-2002, 2004-2011 Free Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without warranty of any kind. Basic Installation ================== Briefly, the shell commands `./configure; make; make install' should configure, build, and install this package. The following more-detailed instructions are generic; see the `README' file for instructions specific to this package. Some packages provide this `INSTALL' file but do not implement all of the features documented below. The lack of an optional feature in a given package is not necessarily a bug. More recommendations for GNU packages can be found in *note Makefile Conventions: (standards)Makefile Conventions. The `configure' shell script attempts to guess correct values for various system-dependent variables used during compilation. It uses those values to create a `Makefile' in each directory of the package. It may also create one or more `.h' files containing system-dependent definitions. Finally, it creates a shell script `config.status' that you can run in the future to recreate the current configuration, and a file `config.log' containing compiler output (useful mainly for debugging `configure'). It can also use an optional file (typically called `config.cache' and enabled with `--cache-file=config.cache' or simply `-C') that saves the results of its tests to speed up reconfiguring. Caching is disabled by default to prevent problems with accidental use of stale cache files. If you need to do unusual things to compile the package, please try to figure out how `configure' could check whether to do them, and mail diffs or instructions to the address given in the `README' so they can be considered for the next release. If you are using the cache, and at some point `config.cache' contains results you don't want to keep, you may remove or edit it. The file `configure.ac' (or `configure.in') is used to create `configure' by a program called `autoconf'. You need `configure.ac' if you want to change it or regenerate `configure' using a newer version of `autoconf'. The simplest way to compile this package is: 1. `cd' to the directory containing the package's source code and type `./configure' to configure the package for your system. Running `configure' might take a while. While running, it prints some messages telling which features it is checking for. 2. Type `make' to compile the package. 3. Optionally, type `make check' to run any self-tests that come with the package, generally using the just-built uninstalled binaries. 4. Type `make install' to install the programs and any data files and documentation. When installing into a prefix owned by root, it is recommended that the package be configured and built as a regular user, and only the `make install' phase executed with root privileges. 5. Optionally, type `make installcheck' to repeat any self-tests, but this time using the binaries in their final installed location. This target does not install anything. Running this target as a regular user, particularly if the prior `make install' required root privileges, verifies that the installation completed correctly. 6. You can remove the program binaries and object files from the source code directory by typing `make clean'. To also remove the files that `configure' created (so you can compile the package for a different kind of computer), type `make distclean'. There is also a `make maintainer-clean' target, but that is intended mainly for the package's developers. If you use it, you may have to get all sorts of other programs in order to regenerate files that came with the distribution. 7. Often, you can also type `make uninstall' to remove the installed files again. In practice, not all packages have tested that uninstallation works correctly, even though it is required by the GNU Coding Standards. 8. Some packages, particularly those that use Automake, provide `make distcheck', which can by used by developers to test that all other targets like `make install' and `make uninstall' work correctly. This target is generally not run by end users. Compilers and Options ===================== Some systems require unusual options for compilation or linking that the `configure' script does not know about. Run `./configure --help' for details on some of the pertinent environment variables. You can give `configure' initial values for configuration parameters by setting variables in the command line or in the environment. Here is an example: ./configure CC=c99 CFLAGS=-g LIBS=-lposix *Note Defining Variables::, for more details. Compiling For Multiple Architectures ==================================== You can compile the package for more than one kind of computer at the same time, by placing the object files for each architecture in their own directory. To do this, you can use GNU `make'. `cd' to the directory where you want the object files and executables to go and run the `configure' script. `configure' automatically checks for the source code in the directory that `configure' is in and in `..'. This is known as a "VPATH" build. With a non-GNU `make', it is safer to compile the package for one architecture at a time in the source code directory. After you have installed the package for one architecture, use `make distclean' before reconfiguring for another architecture. On MacOS X 10.5 and later systems, you can create libraries and executables that work on multiple system types--known as "fat" or "universal" binaries--by specifying multiple `-arch' options to the compiler but only a single `-arch' option to the preprocessor. Like this: ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \ CPP="gcc -E" CXXCPP="g++ -E" This is not guaranteed to produce working output in all cases, you may have to build one architecture at a time and combine the results using the `lipo' tool if you have problems. Installation Names ================== By default, `make install' installs the package's commands under `/usr/local/bin', include files under `/usr/local/include', etc. You can specify an installation prefix other than `/usr/local' by giving `configure' the option `--prefix=PREFIX', where PREFIX must be an absolute file name. You can specify separate installation prefixes for architecture-specific files and architecture-independent files. If you pass the option `--exec-prefix=PREFIX' to `configure', the package uses PREFIX as the prefix for installing programs and libraries. Documentation and other data files still use the regular prefix. In addition, if you use an unusual directory layout you can give options like `--bindir=DIR' to specify different values for particular kinds of files. Run `configure --help' for a list of the directories you can set and what kinds of files go in them. In general, the default for these options is expressed in terms of `${prefix}', so that specifying just `--prefix' will affect all of the other directory specifications that were not explicitly provided. The most portable way to affect installation locations is to pass the correct locations to `configure'; however, many packages provide one or both of the following shortcuts of passing variable assignments to the `make install' command line to change installation locations without having to reconfigure or recompile. The first method involves providing an override variable for each affected directory. For example, `make install prefix=/alternate/directory' will choose an alternate location for all directory configuration variables that were expressed in terms of `${prefix}'. Any directories that were specified during `configure', but not in terms of `${prefix}', must each be overridden at install time for the entire installation to be relocated. The approach of makefile variable overrides for each directory variable is required by the GNU Coding Standards, and ideally causes no recompilation. However, some platforms have known limitations with the semantics of shared libraries that end up requiring recompilation when using this method, particularly noticeable in packages that use GNU Libtool. The second method involves providing the `DESTDIR' variable. For example, `make install DESTDIR=/alternate/directory' will prepend `/alternate/directory' before all installation names. The approach of `DESTDIR' overrides is not required by the GNU Coding Standards, and does not work on platforms that have drive letters. On the other hand, it does better at avoiding recompilation issues, and works well even when some directory options were not specified in terms of `${prefix}' at `configure' time. Optional Features ================= If the package supports it, you can cause programs to be installed with an extra prefix or suffix on their names by giving `configure' the option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. Some packages pay attention to `--enable-FEATURE' options to `configure', where FEATURE indicates an optional part of the package. They may also pay attention to `--with-PACKAGE' options, where PACKAGE is something like `gnu-as' or `x' (for the X Window System). The `README' should mention any `--enable-' and `--with-' options that the package recognizes. For packages that use the X Window System, `configure' can usually find the X include and library files automatically, but if it doesn't, you can use the `configure' options `--x-includes=DIR' and `--x-libraries=DIR' to specify their locations. Some packages offer the ability to configure how verbose the execution of `make' will be. For these packages, running `./configure --enable-silent-rules' sets the default to minimal output, which can be overridden with `make V=1'; while running `./configure --disable-silent-rules' sets the default to verbose, which can be overridden with `make V=0'. Particular systems ================== On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC is not installed, it is recommended to use the following options in order to use an ANSI C compiler: ./configure CC="cc -Ae -D_XOPEN_SOURCE=500" and if that doesn't work, install pre-built binaries of GCC for HP-UX. HP-UX `make' updates targets which have the same time stamps as their prerequisites, which makes it generally unusable when shipped generated files such as `configure' are involved. Use GNU `make' instead. On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot parse its `' header file. The option `-nodtk' can be used as a workaround. If GNU CC is not installed, it is therefore recommended to try ./configure CC="cc" and if that doesn't work, try ./configure CC="cc -nodtk" On Solaris, don't put `/usr/ucb' early in your `PATH'. This directory contains several dysfunctional programs; working variants of these programs are available in `/usr/bin'. So, if you need `/usr/ucb' in your `PATH', put it _after_ `/usr/bin'. On Haiku, software installed for all users goes in `/boot/common', not `/usr/local'. It is recommended to use the following options: ./configure --prefix=/boot/common Specifying the System Type ========================== There may be some features `configure' cannot figure out automatically, but needs to determine by the type of machine the package will run on. Usually, assuming the package is built to be run on the _same_ architectures, `configure' can figure that out, but if it prints a message saying it cannot guess the machine type, give it the `--build=TYPE' option. TYPE can either be a short name for the system type, such as `sun4', or a canonical name which has the form: CPU-COMPANY-SYSTEM where SYSTEM can have one of these forms: OS KERNEL-OS See the file `config.sub' for the possible values of each field. If `config.sub' isn't included in this package, then this package doesn't need to know the machine type. If you are _building_ compiler tools for cross-compiling, you should use the option `--target=TYPE' to select the type of system they will produce code for. If you want to _use_ a cross compiler, that generates code for a platform different from the build platform, you should specify the "host" platform (i.e., that on which the generated programs will eventually be run) with `--host=TYPE'. Sharing Defaults ================ If you want to set default values for `configure' scripts to share, you can create a site shell script called `config.site' that gives default values for variables like `CC', `cache_file', and `prefix'. `configure' looks for `PREFIX/share/config.site' if it exists, then `PREFIX/etc/config.site' if it exists. Or, you can set the `CONFIG_SITE' environment variable to the location of the site script. A warning: not all `configure' scripts look for a site script. Defining Variables ================== Variables not defined in a site shell script can be set in the environment passed to `configure'. However, some packages may run configure again during the build, and the customized values of these variables may be lost. In order to avoid this problem, you should set them in the `configure' command line, using `VAR=value'. For example: ./configure CC=/usr/local2/bin/gcc causes the specified `gcc' to be used as the C compiler (unless it is overridden in the site shell script). Unfortunately, this technique does not work for `CONFIG_SHELL' due to an Autoconf bug. Until the bug is fixed you can use this workaround: CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash `configure' Invocation ====================== `configure' recognizes the following options to control how it operates. `--help' `-h' Print a summary of all of the options to `configure', and exit. `--help=short' `--help=recursive' Print a summary of the options unique to this package's `configure', and exit. The `short' variant lists options used only in the top level, while the `recursive' variant lists options also present in any nested packages. `--version' `-V' Print the version of Autoconf used to generate the `configure' script, and exit. `--cache-file=FILE' Enable the cache: use and save the results of the tests in FILE, traditionally `config.cache'. FILE defaults to `/dev/null' to disable caching. `--config-cache' `-C' Alias for `--cache-file=config.cache'. `--quiet' `--silent' `-q' Do not print messages saying which checks are being made. To suppress all normal output, redirect it to `/dev/null' (any error messages will still be shown). `--srcdir=DIR' Look for the package's source code in directory DIR. Usually `configure' can determine that directory automatically. `--prefix=DIR' Use DIR as the installation prefix. *note Installation Names:: for more details, including other options available for fine-tuning the installation locations. `--no-create' `-n' Run the configure checks, but stop before creating any output files. `configure' also accepts some other, not widely useful, options. Run `configure --help' for more details. gtick-0.5.2/TODO0000644000175000017500000000177411617266571010255 00000000000000GTick TODO List =============== * Bugs in Pulseaudio support: - Visual tick unsynchronized / bad display - Re-initialization of dsp/pulseaudio device upon prefs change - Config entry of Sound System on Start * sub beats * start actual beat at time of setting speed (?) * save settings periodically, also on every profile saved * set to defaults * extend test suite, add resource check for FDs Further ideas: * Accent ticks: lower pitch instead of higher * Bugs: - Sounds correct (all platforms)? * start gtick in running state * not only normal and accentuated tick, but one of the following: - third state for each tick: off - list of sounds (built-in, sound files) for each tick to choose from * GLADE integration * Implement PC Speaker output * Feedback: Playing statistics (std. deviation, ...) * Info: Sample rate, device, ... * generalize gtick (library?) for: - GTK standalone mode (currently) - console mode (interactive, record to file, ...) - XMMS plugin * ALSA support * JACK support gtick-0.5.2/configure0000755000175000017500000135421612116334340011460 00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME= PACKAGE_TARNAME= PACKAGE_VERSION= PACKAGE_STRING= PACKAGE_BUGREPORT= PACKAGE_URL= ac_unique_file="gtick" ac_unique_file="config.h.in" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" gt_needs= ac_header_list= gl_use_threads_default= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS DMALLOC_LIBS DMALLOC_CFLAGS CHECK_LIBS CHECK_CFLAGS POSUB LTLIBINTL LIBINTL INTLLIBS INTL_LIBTOOL_SUFFIX_PREFIX INTLOBJS GENCAT INSTOBJEXT DATADIRNAME CATOBJEXT USE_INCLUDED_LIBINTL BUILD_INCLUDED_LIBINTL LTLIBC WINDRES WOE32 WOE32DLL HAVE_WPRINTF HAVE_NEWLOCALE HAVE_SNPRINTF HAVE_ASPRINTF HAVE_POSIX_PRINTF INTL_DEFAULT_VERBOSITY INTL_MACOSX_LIBS GLIBC21 INTLBISON LTLIBICONV LIBICONV LTLIBMULTITHREAD LIBMULTITHREAD LTLIBTHREAD LIBTHREAD LIBPTH_PREFIX LTLIBPTH LIBPTH PRI_MACROS_BROKEN ALLOCA HAVE_VISIBILITY CFLAG_VISIBILITY RANLIB GLIBC2 host_os host_vendor host_cpu host build_os build_vendor build_cpu build XGETTEXT_EXTRA_OPTIONS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS SNDFILE_LIBS SNDFILE_CFLAGS DEPS_LIBS DEPS_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH PKG_CONFIG LIBOBJS YFLAGS YACC LEXLIB LEX_OUTPUT_ROOT LEX EGREP GREP CPP am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_dependency_tracking with_sndfile enable_nls enable_threads with_gnu_ld enable_rpath with_libpth_prefix with_libiconv_prefix with_included_gettext with_libintl_prefix ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CPP YACC YFLAGS PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR DEPS_CFLAGS DEPS_LIBS SNDFILE_CFLAGS SNDFILE_LIBS CHECK_CFLAGS CHECK_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures this package to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --disable-dependency-tracking speeds up one-time build --enable-dependency-tracking do not reject slow dependency extractors --disable-nls do not use Native Language Support --enable-threads={posix|solaris|pth|win32} specify multithreading API --disable-threads build without multithread safety --disable-rpath do not hardcode runtime library paths Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-sndfile Use libsndfile --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib --without-libpth-prefix don't search for libpth in includedir and libdir --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-included-gettext use the GNU gettext library included here --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CPP C preprocessor YACC The `Yet Another Compiler Compiler' implementation to use. Defaults to the first program found out of: `bison -y', `byacc', `yacc'. YFLAGS The list of arguments that will be passed by default to $YACC. This script will default YFLAGS to the empty string to avoid a default value of `-d' given by some make applications. PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config DEPS_LIBS linker flags for DEPS, overriding pkg-config SNDFILE_CFLAGS C compiler flags for SNDFILE, overriding pkg-config SNDFILE_LIBS linker flags for SNDFILE, overriding pkg-config CHECK_CFLAGS C compiler flags for CHECK, overriding pkg-config CHECK_LIBS linker flags for CHECK, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to the package provider. _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF configure generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES # -------------------------------------------- # Tries to find the compile-time value of EXPR in a program that includes # INCLUDES, setting VAR accordingly. Returns whether the value could be # computed ac_fn_c_compute_int () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if test "$cross_compiling" = yes; then # Depending upon the size, compute the lo and hi bounds. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid; break else as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_lo=$ac_mid; break else as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= break fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done else ac_lo= ac_hi= fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; return test_array [0]; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_hi=$ac_mid else as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; '') ac_retval=1 ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 static long int longval () { return $2; } static unsigned long int ulongval () { return $2; } #include #include int main () { FILE *f = fopen ("conftest.val", "w"); if (! f) return 1; if (($2) < 0) { long int i = longval (); if (i != ($2)) return 1; fprintf (f, "%ld", i); } else { unsigned long int i = ulongval (); if (i != ($2)) return 1; fprintf (f, "%lu", i); } /* Do not output a trailing newline, as this causes \r\n confusion on some platforms. */ return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : echo >>conftest.val; read $3 config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi gt_needs="$gt_needs " as_fn_append ac_header_list " stdlib.h" as_fn_append ac_header_list " unistd.h" as_fn_append ac_header_list " sys/param.h" # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.11' ac_aux_dir= for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Just in case sleep 1 echo timestamp > conftest.file # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; esac # Do `set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi rm -f conftest.file if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --run true"; then am_missing_run="$MISSING --run " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using `strip' when the user # run `make install-strip'. However `strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the `STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE=gtick VERSION="0.5.2" # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' ac_config_headers="$ac_config_headers config.h" DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from `make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" if test "x$ac_cv_header_minix_config_h" = xyes; then : MINIX=yes else MINIX= fi if test "$MINIX" = yes; then $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h $as_echo "#define _MINIX 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } if ${ac_cv_safe_to_define___extensions__+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ # define __EXTENSIONS__ 1 $ac_includes_default int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_safe_to_define___extensions__=yes else ac_cv_safe_to_define___extensions__=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } test $ac_cv_safe_to_define___extensions__ = yes && $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h $as_echo "#define _ALL_SOURCE 1" >>confdefs.h $as_echo "#define _GNU_SOURCE 1" >>confdefs.h $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h # Checks for programs. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. set dummy ${ac_tool_prefix}gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_CC"; then ac_ct_CC=$CC # Extract the first word of "gcc", so it can be a program name with args. set dummy gcc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="gcc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi else CC="$ac_cv_prog_CC" fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. set dummy ${ac_tool_prefix}cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="${ac_tool_prefix}cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi fi if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args. set dummy cc; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else ac_prog_rejected=no as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then ac_prog_rejected=yes continue fi ac_cv_prog_CC="cc" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS if test $ac_prog_rejected = yes; then # We found a bogon in the path, so make sure we never use it. set dummy $ac_cv_prog_CC shift if test $# != 0; then # We chose a different compiler from the bogus one. # However, it has the same basename, so the bogon will be chosen # first if we set CC to just the basename; use the full file name. shift ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" fi fi fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$CC"; then if test -n "$ac_tool_prefix"; then for ac_prog in cl.exe do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in cl.exe do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named `D' -- because `-MD' means `put the output # in D'. rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with # Solaris 8's {/usr,}/bin/sh. touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with `-c' and `-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle `-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # after this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok `-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi for ac_prog in flex lex do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_LEX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$LEX"; then ac_cv_prog_LEX="$LEX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_LEX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi LEX=$ac_cv_prog_LEX if test -n "$LEX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 $as_echo "$LEX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$LEX" && break done test -n "$LEX" || LEX=":" if test "x$LEX" != "x:"; then cat >conftest.l <<_ACEOF %% a { ECHO; } b { REJECT; } c { yymore (); } d { yyless (1); } e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ yyless ((input () != 0)); } f { unput (yytext[0]); } . { BEGIN INITIAL; } %% #ifdef YYTEXT_POINTER extern char *yytext; #endif int main (void) { return ! yylex () + ! yywrap (); } _ACEOF { { ac_try="$LEX conftest.l" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$LEX conftest.l") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 $as_echo_n "checking lex output file root... " >&6; } if ${ac_cv_prog_lex_root+:} false; then : $as_echo_n "(cached) " >&6 else if test -f lex.yy.c; then ac_cv_prog_lex_root=lex.yy elif test -f lexyy.c; then ac_cv_prog_lex_root=lexyy else as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 $as_echo "$ac_cv_prog_lex_root" >&6; } LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root if test -z "${LEXLIB+set}"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 $as_echo_n "checking lex library... " >&6; } if ${ac_cv_lib_lex+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_LIBS=$LIBS ac_cv_lib_lex='none needed' for ac_lib in '' -lfl -ll; do LIBS="$ac_lib $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_lex=$ac_lib fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext test "$ac_cv_lib_lex" != 'none needed' && break done LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 $as_echo "$ac_cv_lib_lex" >&6; } test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 $as_echo_n "checking whether yytext is a pointer... " >&6; } if ${ac_cv_prog_lex_yytext_pointer+:} false; then : $as_echo_n "(cached) " >&6 else # POSIX says lex can declare yytext either as a pointer or an array; the # default is implementation-dependent. Figure out which it is, since # not all implementations provide the %pointer and %array declarations. ac_cv_prog_lex_yytext_pointer=no ac_save_LIBS=$LIBS LIBS="$LEXLIB $ac_save_LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define YYTEXT_POINTER 1 `cat $LEX_OUTPUT_ROOT.c` _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_prog_lex_yytext_pointer=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } if test $ac_cv_prog_lex_yytext_pointer = yes; then $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h fi rm -f conftest.l $LEX_OUTPUT_ROOT.c fi if test "$LEX" = :; then LEX=${am_missing_run}flex fi if test "$LEX" != flex; then LEX="$SHELL $missing_dir/missing flex" LEX_OUTPUT_ROOT=lex.yy LEXLIB='' fi for ac_prog in 'bison -y' byacc do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_YACC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$YACC"; then ac_cv_prog_YACC="$YACC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_YACC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi YACC=$ac_cv_prog_YACC if test -n "$YACC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 $as_echo "$YACC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$YACC" && break done test -n "$YACC" || YACC="yacc" # Checks for libraries. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 $as_echo_n "checking for floor in -lm... " >&6; } if ${ac_cv_lib_m_floor+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lm $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char floor (); int main () { return floor (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_m_floor=yes else ac_cv_lib_m_floor=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 $as_echo "$ac_cv_lib_m_floor" >&6; } if test "x$ac_cv_lib_m_floor" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBM 1 _ACEOF LIBS="-lm $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sf_open in -lsndfile" >&5 $as_echo_n "checking for sf_open in -lsndfile... " >&6; } if ${ac_cv_lib_sndfile_sf_open+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lsndfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char sf_open (); int main () { return sf_open (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_sndfile_sf_open=yes else ac_cv_lib_sndfile_sf_open=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sndfile_sf_open" >&5 $as_echo "$ac_cv_lib_sndfile_sf_open" >&6; } if test "x$ac_cv_lib_sndfile_sf_open" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBSNDFILE 1 _ACEOF LIBS="-lsndfile $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fail_if in -lcheck" >&5 $as_echo_n "checking for fail_if in -lcheck... " >&6; } if ${ac_cv_lib_check_fail_if+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lcheck $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char fail_if (); int main () { return fail_if (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_check_fail_if=yes else ac_cv_lib_check_fail_if=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_check_fail_if" >&5 $as_echo "$ac_cv_lib_check_fail_if" >&6; } if test "x$ac_cv_lib_check_fail_if" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBCHECK 1 _ACEOF LIBS="-lcheck $LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_debug in -ldmalloc" >&5 $as_echo_n "checking for dmalloc_debug in -ldmalloc... " >&6; } if ${ac_cv_lib_dmalloc_dmalloc_debug+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-ldmalloc $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char dmalloc_debug (); int main () { return dmalloc_debug (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_dmalloc_dmalloc_debug=yes else ac_cv_lib_dmalloc_dmalloc_debug=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5 $as_echo "$ac_cv_lib_dmalloc_dmalloc_debug" >&6; } if test "x$ac_cv_lib_dmalloc_dmalloc_debug" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBDMALLOC 1 _ACEOF LIBS="-ldmalloc $LIBS" fi # Checks for header files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi for ac_header in fcntl.h libintl.h stdlib.h sys/ioctl.h unistd.h sys/time.h math.h sys/types.h stdarg.h assert.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. # Checks for library functions. if test $ac_cv_c_compiler_gnu = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5 $as_echo_n "checking whether $CC needs -traditional... " >&6; } if ${ac_cv_prog_gcc_traditional+:} false; then : $as_echo_n "(cached) " >&6 else ac_pattern="Autoconf.*'x'" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TIOCGETP _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes else ac_cv_prog_gcc_traditional=no fi rm -f conftest* if test $ac_cv_prog_gcc_traditional = no; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include Autoconf TCGETA _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "$ac_pattern" >/dev/null 2>&1; then : ac_cv_prog_gcc_traditional=yes fi rm -f conftest* fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5 $as_echo "$ac_cv_prog_gcc_traditional" >&6; } if test $ac_cv_prog_gcc_traditional = yes; then CC="$CC -traditional" fi fi for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } if ${ac_cv_func_malloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_malloc_0_nonnull=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes else ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then : $as_echo "#define HAVE_MALLOC 1" >>confdefs.h else $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac $as_echo "#define malloc rpl_malloc" >>confdefs.h fi for ac_func in floor strdup setlocale strtol do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEPS" >&5 $as_echo_n "checking for DEPS... " >&6; } if test -n "$DEPS_CFLAGS"; then pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gthread-2.0 libpulse-simple\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gthread-2.0 libpulse-simple") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 gthread-2.0 libpulse-simple" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$DEPS_LIBS"; then pkg_cv_DEPS_LIBS="$DEPS_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 gthread-2.0 libpulse-simple\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 gthread-2.0 libpulse-simple") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 gthread-2.0 libpulse-simple" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 gthread-2.0 libpulse-simple" 2>&1` else DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 gthread-2.0 libpulse-simple" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$DEPS_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (gtk+-2.0 gthread-2.0 libpulse-simple) were not met: $DEPS_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables DEPS_CFLAGS and DEPS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables DEPS_CFLAGS and DEPS_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS DEPS_LIBS=$pkg_cv_DEPS_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi # samplerate #AC_ARG_WITH([alsa], # AS_HELP_STRING([--with-alsa], # [Use ALSA (in addition to OSS)]), # [if test "$withval" = "yes" ; then # PKG_CHECK_MODULES(ALSA, alsa, # AC_DEFINE(WITH_ALSA, 1, # [Alsa library selection])) # fi]) # Check whether --with-sndfile was given. if test "${with_sndfile+set}" = set; then : withval=$with_sndfile; if test "$withval" = "yes" ; then pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SNDFILE" >&5 $as_echo_n "checking for SNDFILE... " >&6; } if test -n "$SNDFILE_CFLAGS"; then pkg_cv_SNDFILE_CFLAGS="$SNDFILE_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1\""; } >&5 ($PKG_CONFIG --exists --print-errors "sndfile >= 1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SNDFILE_CFLAGS=`$PKG_CONFIG --cflags "sndfile >= 1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$SNDFILE_LIBS"; then pkg_cv_SNDFILE_LIBS="$SNDFILE_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sndfile >= 1\""; } >&5 ($PKG_CONFIG --exists --print-errors "sndfile >= 1") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_SNDFILE_LIBS=`$PKG_CONFIG --libs "sndfile >= 1" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then SNDFILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sndfile >= 1" 2>&1` else SNDFILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sndfile >= 1" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$SNDFILE_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (sndfile >= 1) were not met: $SNDFILE_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables SNDFILE_CFLAGS and SNDFILE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables SNDFILE_CFLAGS and SNDFILE_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else SNDFILE_CFLAGS=$pkg_cv_SNDFILE_CFLAGS SNDFILE_LIBS=$pkg_cv_SNDFILE_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define WITH_SNDFILE 1" >>confdefs.h fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if we can add '-Wall -W' to CFLAGS" >&5 $as_echo_n "checking to see if we can add '-Wall -W' to CFLAGS... " >&6; } if test x$GCC != x ; then CFLAGS="$CFLAGS -D_U_=\"__attribute__((unused))\" -Wall -W -D_GNU_SOURCE" { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else CFLAGS="-D_U_=\"\" $CFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # GNU gettext { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } GETTEXT_MACRO_VERSION=0.18 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$localedir" || localedir='${datadir}/locale' test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= ac_config_commands="$ac_config_commands po-directories" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } if ${ac_cv_gnu_library_2+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ >= 2) Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : ac_cv_gnu_library_2=yes else ac_cv_gnu_library_2=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 $as_echo "$ac_cv_gnu_library_2" >&6; } GLIBC2="$ac_cv_gnu_library_2" if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$RANLIB"; then ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi RANLIB=$ac_cv_prog_RANLIB if test -n "$RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 $as_echo "$RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_RANLIB"; then ac_ct_RANLIB=$RANLIB # Extract the first word of "ranlib", so it can be a program name with args. set dummy ranlib; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_RANLIB"; then ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_RANLIB="ranlib" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB if test -n "$ac_ct_RANLIB"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 $as_echo "$ac_ct_RANLIB" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_RANLIB" = x; then RANLIB=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac RANLIB=$ac_ct_RANLIB fi else RANLIB="$ac_cv_prog_RANLIB" fi CFLAG_VISIBILITY= HAVE_VISIBILITY=0 if test -n "$GCC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 $as_echo_n "checking whether the -Werror option is usable... " >&6; } if ${gl_cv_cc_vis_werror+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Werror" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_vis_werror=yes else gl_cv_cc_vis_werror=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 $as_echo "$gl_cv_cc_vis_werror" >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 $as_echo_n "checking for simple visibility declarations... " >&6; } if ${gl_cv_cc_visibility+:} false; then : $as_echo_n "(cached) " >&6 else gl_save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -fvisibility=hidden" if test $gl_cv_cc_vis_werror = yes; then CFLAGS="$CFLAGS -Werror" fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern __attribute__((__visibility__("hidden"))) int hiddenvar; extern __attribute__((__visibility__("default"))) int exportedvar; extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); extern __attribute__((__visibility__("default"))) int exportedfunc (void); void dummyfunc (void) {} int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_cc_visibility=yes else gl_cv_cc_visibility=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext CFLAGS="$gl_save_CFLAGS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 $as_echo "$gl_cv_cc_visibility" >&6; } if test $gl_cv_cc_visibility = yes; then CFLAG_VISIBILITY="-fvisibility=hidden" HAVE_VISIBILITY=1 fi fi cat >>confdefs.h <<_ACEOF #define HAVE_VISIBILITY $HAVE_VISIBILITY _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 $as_echo_n "checking for inline... " >&6; } if ${ac_cv_c_inline+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_c_inline=no for ac_kw in inline __inline__ __inline; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifndef __cplusplus typedef int foo_t; static $ac_kw foo_t static_foo () {return 0; } $ac_kw foo_t foo () {return 0; } #endif _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_c_inline=$ac_kw fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext test "$ac_cv_c_inline" != no && break done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 $as_echo "$ac_cv_c_inline" >&6; } case $ac_cv_c_inline in inline | yes) ;; *) case $ac_cv_c_inline in no) ac_val=;; *) ac_val=$ac_cv_c_inline;; esac cat >>confdefs.h <<_ACEOF #ifndef __cplusplus #define inline $ac_val #endif _ACEOF ;; esac ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 $as_echo_n "checking for stdint.h... " >&6; } if ${gl_cv_header_stdint_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_header_stdint_h=yes else gl_cv_header_stdint_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 $as_echo "$gl_cv_header_stdint_h" >&6; } if test $gl_cv_header_stdint_h = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_STDINT_H_WITH_UINTMAX 1 _ACEOF fi # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works # for constant arguments. Useless! { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 $as_echo_n "checking for working alloca.h... " >&6; } if ${ac_cv_working_alloca_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char *p = (char *) alloca (2 * sizeof (int)); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_working_alloca_h=yes else ac_cv_working_alloca_h=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 $as_echo "$ac_cv_working_alloca_h" >&6; } if test $ac_cv_working_alloca_h = yes; then $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 $as_echo_n "checking for alloca... " >&6; } if ${ac_cv_func_alloca_works+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __GNUC__ # define alloca __builtin_alloca #else # ifdef _MSC_VER # include # define alloca _alloca # else # ifdef HAVE_ALLOCA_H # include # else # ifdef _AIX #pragma alloca # else # ifndef alloca /* predefined by HP cc +Olibcalls */ void *alloca (size_t); # endif # endif # endif # endif #endif int main () { char *p = (char *) alloca (1); if (p) return 0; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_func_alloca_works=yes else ac_cv_func_alloca_works=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 $as_echo "$ac_cv_func_alloca_works" >&6; } if test $ac_cv_func_alloca_works = yes; then $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h else # The SVR3 libPW and SVR4 libucb both contain incompatible functions # that cause trouble. Some versions do not even contain alloca or # contain a buggy version. If you still want to use their alloca, # use ar to extract alloca.o from them instead of compiling alloca.c. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext $as_echo "#define C_ALLOCA 1" >>confdefs.h { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } if ${ac_cv_os_cray+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined CRAY && ! defined CRAY2 webecray #else wenotbecray #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "webecray" >/dev/null 2>&1; then : ac_cv_os_cray=yes else ac_cv_os_cray=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 $as_echo "$ac_cv_os_cray" >&6; } if test $ac_cv_os_cray = yes; then for ac_func in _getb67 GETB67 getb67; do as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define CRAY_STACKSEG_END $ac_func _ACEOF break fi done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 $as_echo_n "checking stack direction for C alloca... " >&6; } if ${ac_cv_c_stack_direction+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_c_stack_direction=0 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int find_stack_direction (int *addr, int depth) { int dir, dummy = 0; if (! addr) addr = &dummy; *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; dir = depth ? find_stack_direction (addr, depth - 1) : 0; return dir + dummy; } int main (int argc, char **argv) { return find_stack_direction (0, argc + !argv + 20) < 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_c_stack_direction=1 else ac_cv_c_stack_direction=-1 fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 $as_echo "$ac_cv_c_stack_direction" >&6; } cat >>confdefs.h <<_ACEOF #define STACK_DIRECTION $ac_cv_c_stack_direction _ACEOF fi for ac_header in $ac_header_list do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getpagesize do : ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" if test "x$ac_cv_func_getpagesize" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_GETPAGESIZE 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 $as_echo_n "checking for working mmap... " >&6; } if ${ac_cv_func_mmap_fixed_mapped+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_mmap_fixed_mapped=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default /* malloc might have been renamed as rpl_malloc. */ #undef malloc /* Thanks to Mike Haertel and Jim Avera for this test. Here is a matrix of mmap possibilities: mmap private not fixed mmap private fixed at somewhere currently unmapped mmap private fixed at somewhere already mapped mmap shared not fixed mmap shared fixed at somewhere currently unmapped mmap shared fixed at somewhere already mapped For private mappings, we should verify that changes cannot be read() back from the file, nor mmap's back from the file at a different address. (There have been systems where private was not correctly implemented like the infamous i386 svr4.0, and systems where the VM page cache was not coherent with the file system buffer cache like early versions of FreeBSD and possibly contemporary NetBSD.) For shared mappings, we should conversely verify that changes get propagated back to all the places they're supposed to be. Grep wants private fixed already mapped. The main things grep needs to know about mmap are: * does it exist and is it safe to write into the mmap'd area * how to use it (BSD variants) */ #include #include #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H char *malloc (); #endif /* This mess was copied from the GNU getpagesize.h. */ #ifndef HAVE_GETPAGESIZE # ifdef _SC_PAGESIZE # define getpagesize() sysconf(_SC_PAGESIZE) # else /* no _SC_PAGESIZE */ # ifdef HAVE_SYS_PARAM_H # include # ifdef EXEC_PAGESIZE # define getpagesize() EXEC_PAGESIZE # else /* no EXEC_PAGESIZE */ # ifdef NBPG # define getpagesize() NBPG * CLSIZE # ifndef CLSIZE # define CLSIZE 1 # endif /* no CLSIZE */ # else /* no NBPG */ # ifdef NBPC # define getpagesize() NBPC # else /* no NBPC */ # ifdef PAGESIZE # define getpagesize() PAGESIZE # endif /* PAGESIZE */ # endif /* no NBPC */ # endif /* no NBPG */ # endif /* no EXEC_PAGESIZE */ # else /* no HAVE_SYS_PARAM_H */ # define getpagesize() 8192 /* punt totally */ # endif /* no HAVE_SYS_PARAM_H */ # endif /* no _SC_PAGESIZE */ #endif /* no HAVE_GETPAGESIZE */ int main () { char *data, *data2, *data3; const char *cdata2; int i, pagesize; int fd, fd2; pagesize = getpagesize (); /* First, make a file with some known garbage in it. */ data = (char *) malloc (pagesize); if (!data) return 1; for (i = 0; i < pagesize; ++i) *(data + i) = rand (); umask (0); fd = creat ("conftest.mmap", 0600); if (fd < 0) return 2; if (write (fd, data, pagesize) != pagesize) return 3; close (fd); /* Next, check that the tail of a page is zero-filled. File must have non-zero length, otherwise we risk SIGBUS for entire page. */ fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); if (fd2 < 0) return 4; cdata2 = ""; if (write (fd2, cdata2, 1) != 1) return 5; data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); if (data2 == MAP_FAILED) return 6; for (i = 0; i < pagesize; ++i) if (*(data2 + i)) return 7; close (fd2); if (munmap (data2, pagesize)) return 8; /* Next, try to mmap the file at a fixed address which already has something else allocated at it. If we can, also make sure that we see the same garbage. */ fd = open ("conftest.mmap", O_RDWR); if (fd < 0) return 9; if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_FIXED, fd, 0L)) return 10; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data2 + i)) return 11; /* Finally, make sure that changes to the mapped area do not percolate back to the file as seen by read(). (This is a bug on some variants of i386 svr4.0.) */ for (i = 0; i < pagesize; ++i) *(data2 + i) = *(data2 + i) + 1; data3 = (char *) malloc (pagesize); if (!data3) return 12; if (read (fd, data3, pagesize) != pagesize) return 13; for (i = 0; i < pagesize; ++i) if (*(data + i) != *(data3 + i)) return 14; close (fd); return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_mmap_fixed_mapped=yes else ac_cv_func_mmap_fixed_mapped=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } if test $ac_cv_func_mmap_fixed_mapped = yes; then $as_echo "#define HAVE_MMAP 1" >>confdefs.h fi rm -f conftest.mmap conftest.txt { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } if ${gt_cv_int_divbyzero_sigfpe+:} false; then : $as_echo_n "(cached) " >&6 else gt_cv_int_divbyzero_sigfpe= case "$host_os" in macos* | darwin[6-9]* | darwin[1-9][0-9]*) # On MacOS X 10.2 or newer, just assume the same as when cross- # compiling. If we were to perform the real test, 1 Crash Report # dialog window would pop up. case "$host_cpu" in i[34567]86 | x86_64) gt_cv_int_divbyzero_sigfpe="guessing yes" ;; esac ;; esac if test -z "$gt_cv_int_divbyzero_sigfpe"; then if test "$cross_compiling" = yes; then : # Guess based on the CPU. case "$host_cpu" in alpha* | i[34567]86 | x86_64 | m68k | s390*) gt_cv_int_divbyzero_sigfpe="guessing yes";; *) gt_cv_int_divbyzero_sigfpe="guessing no";; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include static void sigfpe_handler (int sig) { /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ exit (sig != SIGFPE); } int x = 1; int y = 0; int z; int nan; int main () { signal (SIGFPE, sigfpe_handler); /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) signal (SIGTRAP, sigfpe_handler); #endif /* Linux/SPARC yields signal SIGILL. */ #if defined (__sparc__) && defined (__linux__) signal (SIGILL, sigfpe_handler); #endif z = x / y; nan = y / y; exit (1); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gt_cv_int_divbyzero_sigfpe=yes else gt_cv_int_divbyzero_sigfpe=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } case "$gt_cv_int_divbyzero_sigfpe" in *yes) value=1;; *) value=0;; esac cat >>confdefs.h <<_ACEOF #define INTDIV0_RAISES_SIGFPE $value _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 $as_echo_n "checking for inttypes.h... " >&6; } if ${gl_cv_header_inttypes_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { uintmax_t i = (uintmax_t) -1; return !i; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gl_cv_header_inttypes_h=yes else gl_cv_header_inttypes_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 $as_echo "$gl_cv_header_inttypes_h" >&6; } if test $gl_cv_header_inttypes_h = yes; then cat >>confdefs.h <<_ACEOF #define HAVE_INTTYPES_H_WITH_UINTMAX 1 _ACEOF fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 $as_echo_n "checking for unsigned long long int... " >&6; } if ${ac_cv_type_unsigned_long_long_int+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ unsigned long long int ull = 18446744073709551615ULL; typedef int a[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63; int main () { unsigned long long int ullmax = 18446744073709551615ull; return (ull << 63 | ull >> 63 | ull << i | ull >> i | ullmax / ull | ullmax % ull); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_type_unsigned_long_long_int=yes else ac_cv_type_unsigned_long_long_int=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } if test $ac_cv_type_unsigned_long_long_int = yes; then $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h fi if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then test $ac_cv_type_unsigned_long_long_int = yes \ && ac_type='unsigned long long' \ || ac_type='unsigned long' cat >>confdefs.h <<_ACEOF #define uintmax_t $ac_type _ACEOF else $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h fi for ac_header in inttypes.h do : ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" if test "x$ac_cv_header_inttypes_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_INTTYPES_H 1 _ACEOF fi done if test $ac_cv_header_inttypes_h = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } if ${gt_cv_inttypes_pri_broken+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef PRId32 char *p = PRId32; #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_inttypes_pri_broken=no else gt_cv_inttypes_pri_broken=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 $as_echo "$gt_cv_inttypes_pri_broken" >&6; } fi if test "$gt_cv_inttypes_pri_broken" = yes; then cat >>confdefs.h <<_ACEOF #define PRI_MACROS_BROKEN 1 _ACEOF PRI_MACROS_BROKEN=1 else PRI_MACROS_BROKEN=0 fi # Check whether --enable-threads was given. if test "${enable_threads+set}" = set; then : enableval=$enable_threads; gl_use_threads=$enableval else if test -n "$gl_use_threads_default"; then gl_use_threads="$gl_use_threads_default" else case "$host_os" in osf*) gl_use_threads=no ;; cygwin*) case `uname -r` in 1.[0-5].*) gl_use_threads=no ;; *) gl_use_threads=yes ;; esac ;; *) gl_use_threads=yes ;; esac fi fi if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # For using : case "$host_os" in osf*) # On OSF/1, the compiler needs the flag -D_REENTRANT so that it # groks . cc also understands the flag -pthread, but # we don't use it because 1. gcc-2.95 doesn't understand -pthread, # 2. putting a flag into CPPFLAGS that has an effect on the linker # causes the AC_TRY_LINK test below to succeed unexpectedly, # leading to wrong values of LIBTHREAD and LTLIBTHREAD. CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac # Some systems optimize for single-threaded programs by default, and # need special flags to disable these optimizations. For example, the # definition of 'errno' in . case "$host_os" in aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; esac fi if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 $as_echo_n "checking for ld used by GCC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${acl_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${acl_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 $as_echo "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 $as_echo_n "checking for shared library run path origin... " >&6; } if ${acl_cv_rpath+:} false; then : $as_echo_n "(cached) " >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 $as_echo "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; : else enable_rpath=yes fi acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 $as_echo_n "checking for 64-bit host... " >&6; } if ${gl_cv_solaris_64bit+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _LP64 sixtyfour bits #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : gl_cv_solaris_64bit=yes else gl_cv_solaris_64bit=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 $as_echo "$gl_cv_solaris_64bit" >&6; } if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" gl_threads_api=none LIBTHREAD= LTLIBTHREAD= LIBMULTITHREAD= LTLIBMULTITHREAD= if test "$gl_use_threads" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } if ${gl_cv_have_weak+:} false; then : $as_echo_n "(cached) " >&6 else gl_cv_have_weak=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ extern void xyzzy (); #pragma weak xyzzy int main () { xyzzy(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_cv_have_weak=maybe fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test $gl_cv_have_weak = maybe; then if test "$cross_compiling" = yes; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __ELF__ Extensible Linking Format #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : gl_cv_have_weak="guessing yes" else gl_cv_have_weak="guessing no" fi rm -f conftest* else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #pragma weak fputs int main () { return (fputs == NULL); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gl_cv_have_weak=yes else gl_cv_have_weak=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 $as_echo "$gl_cv_have_weak" >&6; } if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that # it groks . It's added above, in gl_THREADLIB_EARLY_BODY. ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" if test "x$ac_cv_header_pthread_h" = xyes; then : gl_have_pthread_h=yes else gl_have_pthread_h=no fi if test "$gl_have_pthread_h" = yes; then # Other possible tests: # -lpthreads (FSU threads, PCthreads) # -lgthreads gl_have_pthread= # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist # in libc. IRIX 6.5 has the first one in both libc and libpthread, but # the second one only in libpthread, and lock.c needs it. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pthread_mutex_lock((pthread_mutex_t*)0); pthread_mutexattr_init((pthread_mutexattr_t*)0); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_have_pthread=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) if test -n "$gl_have_pthread"; then # The program links fine without libpthread. But it may actually # need to link with libpthread in order to create multiple threads. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_kill+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_kill (); int main () { return pthread_kill (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_kill=yes else ac_cv_lib_pthread_pthread_kill=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread # On Solaris and HP-UX, most pthread functions exist also in libc. # Therefore pthread_in_use() needs to actually try to create a # thread: pthread_create from libc will fail, whereas # pthread_create will actually create a thread. case "$host_os" in solaris* | hpux*) $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h esac fi else # Some library is needed. Try libpthread and libc_r. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } if ${ac_cv_lib_pthread_pthread_kill+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lpthread $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_kill (); int main () { return pthread_kill (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_pthread_pthread_kill=yes else ac_cv_lib_pthread_pthread_kill=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : gl_have_pthread=yes LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread fi if test -z "$gl_have_pthread"; then # For FreeBSD 4. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } if ${ac_cv_lib_c_r_pthread_kill+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lc_r $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char pthread_kill (); int main () { return pthread_kill (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_c_r_pthread_kill=yes else ac_cv_lib_c_r_pthread_kill=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : gl_have_pthread=yes LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r fi fi fi if test -n "$gl_have_pthread"; then gl_threads_api=posix $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= fi fi fi fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then gl_have_solaristhread= gl_save_LIBS="$LIBS" LIBS="$LIBS -lthread" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { thr_self(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_have_solaristhread=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" if test -n "$gl_have_solaristhread"; then gl_threads_api=solaris LIBTHREAD=-lthread LTLIBTHREAD=-lthread LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= fi fi fi fi if test "$gl_use_threads" = pth; then gl_save_CPPFLAGS="$CPPFLAGS" { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 $as_echo_n "checking how to link with libpth... " >&6; } if ${ac_cv_libpth_libs+:} false; then : $as_echo_n "(cached) " >&6 else use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libpth-prefix was given. if test "${with_libpth_prefix+set}" = set; then : withval=$with_libpth_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBPTH= LTLIBPTH= INCPTH= LIBPTH_PREFIX= HAVE_LIBPTH= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='pth ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" else LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" else LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'pth'; then LIBPTH_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'pth'; then LIBPTH_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBPTH; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" ;; esac done fi else LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" done fi ac_cv_libpth_libs="$LIBPTH" ac_cv_libpth_ltlibs="$LTLIBPTH" ac_cv_libpth_cppflags="$INCPTH" ac_cv_libpth_prefix="$LIBPTH_PREFIX" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 $as_echo "$ac_cv_libpth_libs" >&6; } LIBPTH="$ac_cv_libpth_libs" LTLIBPTH="$ac_cv_libpth_ltlibs" INCPTH="$ac_cv_libpth_cppflags" LIBPTH_PREFIX="$ac_cv_libpth_prefix" for element in $INCPTH; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done HAVE_LIBPTH=yes gl_have_pth= gl_save_LIBS="$LIBS" LIBS="$LIBS -lpth" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { pth_self(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gl_have_pth=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gl_save_LIBS" if test -n "$gl_have_pth"; then gl_threads_api=pth LIBTHREAD="$LIBPTH" LTLIBTHREAD="$LTLIBPTH" LIBMULTITHREAD="$LIBTHREAD" LTLIBMULTITHREAD="$LTLIBTHREAD" $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h LIBTHREAD= LTLIBTHREAD= fi fi else CPPFLAGS="$gl_save_CPPFLAGS" fi fi if test -z "$gl_have_pthread"; then if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then if { case "$host_os" in mingw*) true;; *) false;; esac }; then gl_threads_api=win32 $as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h fi fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 $as_echo_n "checking for multithread API to use... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 $as_echo "$gl_threads_api" >&6; } if test "$gl_threads_api" = posix; then # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the # pthread_rwlock_* functions. ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include " if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h fi # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #if __FreeBSD__ == 4 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." #else int x = (int)PTHREAD_MUTEX_RECURSIVE; return !x; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } if ${am_cv_func_iconv+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 $as_echo "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 $as_echo_n "checking for working iconv... " >&6; } if ${am_cv_func_iconv_works+:} false; then : $as_echo_n "(cached) " >&6 else am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi if test "$cross_compiling" = yes; then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : am_cv_func_iconv_works=yes else am_cv_func_iconv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi LIBS="$am_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 $as_echo "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then $as_echo "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 $as_echo_n "checking how to link with libiconv... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 $as_echo "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 $as_echo_n "checking for iconv declaration... " >&6; } if ${am_cv_proto_iconv+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : am_cv_proto_iconv_arg1="" else am_cv_proto_iconv_arg1="const" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" fi am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_proto_iconv" >&5 $as_echo " $am_cv_proto_iconv" >&6; } cat >>confdefs.h <<_ACEOF #define ICONV_CONST $am_cv_proto_iconv_arg1 _ACEOF fi cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } int main () { ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ argz_stringify argz_next __fsetlocking do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 $as_echo_n "checking whether feof_unlocked is declared... " >&6; } if ${ac_cv_have_decl_feof_unlocked+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef feof_unlocked char *p = (char *) feof_unlocked; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl_feof_unlocked=yes else ac_cv_have_decl_feof_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } if test $ac_cv_have_decl_feof_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_FEOF_UNLOCKED $gt_value _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } if ${ac_cv_have_decl_fgets_unlocked+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef fgets_unlocked char *p = (char *) fgets_unlocked; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl_fgets_unlocked=yes else ac_cv_have_decl_fgets_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } if test $ac_cv_have_decl_fgets_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_FGETS_UNLOCKED $gt_value _ACEOF for ac_prog in bison do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_INTLBISON+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$INTLBISON"; then ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_INTLBISON="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi INTLBISON=$ac_cv_prog_INTLBISON if test -n "$INTLBISON"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 $as_echo "$INTLBISON" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$INTLBISON" && break done if test -z "$INTLBISON"; then ac_verc_fail=yes else { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 $as_echo_n "checking version of bison... " >&6; } ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` case $ac_prog_version in '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 $as_echo "$ac_prog_version" >&6; } fi if test $ac_verc_fail = yes; then INTLBISON=: fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 $as_echo_n "checking for long long int... " >&6; } if ${ac_cv_type_long_long_int+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* For now, do not test the preprocessor; as of 2007 there are too many implementations with broken preprocessors. Perhaps this can be revisited in 2012. In the meantime, code should not expect #if to work with literals wider than 32 bits. */ /* Test literals. */ long long int ll = 9223372036854775807ll; long long int nll = -9223372036854775807LL; unsigned long long int ull = 18446744073709551615ULL; /* Test constant expressions. */ typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) ? 1 : -1)]; typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 ? 1 : -1)]; int i = 63; int main () { /* Test availability of runtime routines for shift and division. */ long long int llmax = 9223372036854775807ll; unsigned long long int ullmax = 18446744073709551615ull; return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) | (llmax / ll) | (llmax % ll) | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) | (ullmax / ull) | (ullmax % ull)); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : if test "$cross_compiling" = yes; then : ac_cv_type_long_long_int=yes else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifndef LLONG_MAX # define HALF \ (1LL << (sizeof (long long int) * CHAR_BIT - 2)) # define LLONG_MAX (HALF - 1 + HALF) #endif int main () { long long int n = 1; int i; for (i = 0; ; i++) { long long int m = n << i; if (m >> i != n) return 1; if (LLONG_MAX / 2 < m) break; } return 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_type_long_long_int=yes else ac_cv_type_long_long_int=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi else ac_cv_type_long_long_int=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 $as_echo "$ac_cv_type_long_long_int" >&6; } if test $ac_cv_type_long_long_int = yes; then $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 $as_echo_n "checking for wchar_t... " >&6; } if ${gt_cv_c_wchar_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include wchar_t foo = (wchar_t)'\0'; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_c_wchar_t=yes else gt_cv_c_wchar_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 $as_echo "$gt_cv_c_wchar_t" >&6; } if test $gt_cv_c_wchar_t = yes; then $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 $as_echo_n "checking for wint_t... " >&6; } if ${gt_cv_c_wint_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Tru64 with Desktop Toolkit C has a bug: must be included before . BSD/OS 4.0.1 has a bug: , and must be included before . */ #include #include #include #include wint_t foo = (wchar_t)'\0'; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_c_wint_t=yes else gt_cv_c_wint_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 $as_echo "$gt_cv_c_wint_t" >&6; } if test $gt_cv_c_wint_t = yes; then $as_echo "#define HAVE_WINT_T 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 $as_echo_n "checking for intmax_t... " >&6; } if ${gt_cv_c_intmax_t+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if HAVE_STDINT_H_WITH_UINTMAX #include #endif #if HAVE_INTTYPES_H_WITH_UINTMAX #include #endif int main () { intmax_t x = -1; return !x; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : gt_cv_c_intmax_t=yes else gt_cv_c_intmax_t=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 $as_echo "$gt_cv_c_intmax_t" >&6; } if test $gt_cv_c_intmax_t = yes; then $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } if ${gt_cv_func_printf_posix+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ notposix #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "notposix" >/dev/null 2>&1; then : gt_cv_func_printf_posix="guessing no" else gt_cv_func_printf_posix="guessing yes" fi rm -f conftest* else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include /* The string "%2$d %1$d", with dollar characters protected from the shell's dollar expansion (possibly an autoconf bug). */ static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; static char buf[100]; int main () { sprintf (buf, format, 33, 55); return (strcmp (buf, "55 33") != 0); } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gt_cv_func_printf_posix=yes else gt_cv_func_printf_posix=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 $as_echo "$gt_cv_func_printf_posix" >&6; } case $gt_cv_func_printf_posix in *yes) $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } if ${ac_cv_gnu_library_2_1+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #ifdef __GNU_LIBRARY__ #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) Lucky GNU user #endif #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : ac_cv_gnu_library_2_1=yes else ac_cv_gnu_library_2_1=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 $as_echo "$ac_cv_gnu_library_2_1" >&6; } GLIBC21="$ac_cv_gnu_library_2_1" for ac_header in stdint.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDINT_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 $as_echo_n "checking for SIZE_MAX... " >&6; } if ${gl_cv_size_max+:} false; then : $as_echo_n "(cached) " >&6 else gl_cv_size_max= cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #if HAVE_STDINT_H #include #endif #ifdef SIZE_MAX Found it #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "Found it" >/dev/null 2>&1; then : gl_cv_size_max=yes fi rm -f conftest* if test -z "$gl_cv_size_max"; then if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include #include "; then : else size_t_bits_minus_1= fi if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include "; then : else fits_in_uint= fi if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then if test $fits_in_uint = 1; then cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include extern size_t foo; extern unsigned long foo; int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : fits_in_uint=0 fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi if test $fits_in_uint = 1; then gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" else gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" fi else gl_cv_size_max='((size_t)~(size_t)0)' fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 $as_echo "$gl_cv_size_max" >&6; } if test "$gl_cv_size_max" != yes; then cat >>confdefs.h <<_ACEOF #define SIZE_MAX $gl_cv_size_max _ACEOF fi for ac_header in stdint.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" if test "x$ac_cv_header_stdint_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDINT_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 $as_echo_n "checking for working fcntl.h... " >&6; } if ${gl_cv_header_working_fcntl_h+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : gl_cv_header_working_fcntl_h=cross-compiling else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include #ifndef O_NOATIME #define O_NOATIME 0 #endif #ifndef O_NOFOLLOW #define O_NOFOLLOW 0 #endif static int const constants[] = { O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY }; int main () { int status = !constants; { static char const sym[] = "conftest.sym"; if (symlink (".", sym) != 0 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) status |= 32; unlink (sym); } { static char const file[] = "confdefs.h"; int fd = open (file, O_RDONLY | O_NOATIME); char c; struct stat st0, st1; if (fd < 0 || fstat (fd, &st0) != 0 || sleep (1) != 0 || read (fd, &c, 1) != 1 || close (fd) != 0 || stat (file, &st1) != 0 || st0.st_atime != st1.st_atime) status |= 64; } return status; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : gl_cv_header_working_fcntl_h=yes else case $? in #( 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( *) gl_cv_header_working_fcntl_h='no';; esac fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 $as_echo "$gl_cv_header_working_fcntl_h" >&6; } case $gl_cv_header_working_fcntl_h in #( *O_NOATIME* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac cat >>confdefs.h <<_ACEOF #define HAVE_WORKING_O_NOATIME $ac_val _ACEOF case $gl_cv_header_working_fcntl_h in #( *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( *) ac_val=1;; esac cat >>confdefs.h <<_ACEOF #define HAVE_WORKING_O_NOFOLLOW $ac_val _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi case "$enable_silent_rules" in yes) INTL_DEFAULT_VERBOSITY=0;; no) INTL_DEFAULT_VERBOSITY=1;; *) INTL_DEFAULT_VERBOSITY=1;; esac ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" if test "x$ac_cv_type_ptrdiff_t" = xyes; then : else $as_echo "#define ptrdiff_t long" >>confdefs.h fi for ac_header in stddef.h stdlib.h string.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 $as_echo_n "checking whether _snprintf is declared... " >&6; } if ${ac_cv_have_decl__snprintf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _snprintf char *p = (char *) _snprintf; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl__snprintf=yes else ac_cv_have_decl__snprintf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 $as_echo "$ac_cv_have_decl__snprintf" >&6; } if test $ac_cv_have_decl__snprintf = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SNPRINTF $gt_value _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 $as_echo_n "checking whether _snwprintf is declared... " >&6; } if ${ac_cv_have_decl__snwprintf+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef _snwprintf char *p = (char *) _snwprintf; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl__snwprintf=yes else ac_cv_have_decl__snwprintf=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 $as_echo "$ac_cv_have_decl__snwprintf" >&6; } if test $ac_cv_have_decl__snwprintf = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL__SNWPRINTF $gt_value _ACEOF { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 $as_echo_n "checking whether getc_unlocked is declared... " >&6; } if ${ac_cv_have_decl_getc_unlocked+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { #ifndef getc_unlocked char *p = (char *) getc_unlocked; #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_have_decl_getc_unlocked=yes else ac_cv_have_decl_getc_unlocked=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } if test $ac_cv_have_decl_getc_unlocked = yes; then gt_value=1 else gt_value=0 fi cat >>confdefs.h <<_ACEOF #define HAVE_DECL_GETC_UNLOCKED $gt_value _ACEOF case $gt_cv_func_printf_posix in *yes) HAVE_POSIX_PRINTF=1 ;; *) HAVE_POSIX_PRINTF=0 ;; esac if test "$ac_cv_func_asprintf" = yes; then HAVE_ASPRINTF=1 else HAVE_ASPRINTF=0 fi if test "$ac_cv_func_snprintf" = yes; then HAVE_SNPRINTF=1 else HAVE_SNPRINTF=0 fi if test "$ac_cv_func_newlocale" = yes; then HAVE_NEWLOCALE=1 else HAVE_NEWLOCALE=0 fi if test "$ac_cv_func_wprintf" = yes; then HAVE_WPRINTF=1 else HAVE_WPRINTF=0 fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } if ${am_cv_langinfo_codeset+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { char* cs = nl_langinfo(CODESET); return !cs; ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_langinfo_codeset=yes else am_cv_langinfo_codeset=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 $as_echo "$am_cv_langinfo_codeset" >&6; } if test $am_cv_langinfo_codeset = yes; then $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 $as_echo_n "checking for LC_MESSAGES... " >&6; } if ${gt_cv_val_LC_MESSAGES+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { return LC_MESSAGES ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_val_LC_MESSAGES=yes else gt_cv_val_LC_MESSAGES=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } if test $gt_cv_val_LC_MESSAGES = yes; then $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h fi if test "$enable_shared" = yes; then case "$host_os" in mingw* | cygwin*) is_woe32dll=yes ;; *) is_woe32dll=no ;; esac else is_woe32dll=no fi WOE32DLL=$is_woe32dll case "$host_os" in mingw* | cygwin*) is_woe32=yes ;; *) is_woe32=no ;; esac WOE32=$is_woe32 if test $WOE32 = yes; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. set dummy ${ac_tool_prefix}windres; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_WINDRES+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$WINDRES"; then ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_WINDRES="${ac_tool_prefix}windres" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi WINDRES=$ac_cv_prog_WINDRES if test -n "$WINDRES"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 $as_echo "$WINDRES" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_WINDRES"; then ac_ct_WINDRES=$WINDRES # Extract the first word of "windres", so it can be a program name with args. set dummy windres; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_WINDRES"; then ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_WINDRES="windres" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES if test -n "$ac_ct_WINDRES"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 $as_echo "$ac_ct_WINDRES" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_WINDRES" = x; then WINDRES="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac WINDRES=$ac_ct_WINDRES fi else WINDRES="$ac_cv_prog_WINDRES" fi fi case "$host_os" in hpux*) LTLIBC="" ;; *) LTLIBC="-lc" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no LIBINTL= LTLIBINTL= POSUB= case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 $as_echo_n "checking whether included gettext is requested... " >&6; } # Check whether --with-included-gettext was given. if test "${with_included_gettext+set}" = set; then : withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval else nls_cv_force_use_gnu_gettext=no fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 $as_echo_n "checking for GNU gettext in libc... " >&6; } if eval \${$gt_func_gnugettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libc=yes" else eval "$gt_func_gnugettext_libc=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= HAVE_LIBINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 $as_echo_n "checking for GNU gettext in libintl... " >&6; } if eval \${$gt_func_gnugettext_libintl+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libintl=yes" else eval "$gt_func_gnugettext_libintl=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test "$gt_use_preinstalled_gnugettext" != "yes"; then nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then CATOBJEXT=.gmo fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 $as_echo_n "checking whether to use NLS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 $as_echo_n "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 $as_echo "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 $as_echo_n "checking how to link with libintl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 $as_echo "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi nls_cv_header_intl= nls_cv_header_libgt= DATADIRNAME=share INSTOBJEXT=.mo GENCAT=gencat INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi INTL_LIBTOOL_SUFFIX_PREFIX= INTLLIBS="$LIBINTL" # directory containing configuration support files # defaults to package root #AC_CONFIG_AUX_DIR pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 $as_echo_n "checking for CHECK... " >&6; } if test -n "$CHECK_CFLAGS"; then pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$CHECK_LIBS"; then pkg_cv_CHECK_LIBS="$CHECK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1` else CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$CHECK_PKG_ERRORS" >&5 $as_echo "#define WITH_CHECK 0" >>confdefs.h elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "#define WITH_CHECK 0" >>confdefs.h else CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS CHECK_LIBS=$pkg_cv_CHECK_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } $as_echo "#define WITH_CHECK 1" >>confdefs.h fi for ac_header in dmalloc.h do : ac_fn_c_check_header_compile "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" " #ifdef HAVE_STDARG_H #include #endif #ifdef HAVE_SYS_TYPES_H #include #endif " if test "x$ac_cv_header_dmalloc_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_DMALLOC_H 1 _ACEOF $as_echo "#define DMALLOC_LIBS \"-ldmalloc\"" >>confdefs.h fi done ac_config_files="$ac_config_files Makefile doc/Makefile intl/Makefile po/Makefile.in src/Makefile testsuite/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by $as_me, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to the package provider." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ config.status configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Autoconf 2.62 quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named `Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running `make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it U=`sed -n 's/^U = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "po-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi gtick-0.5.2/autogen.sh0000755000175000017500000000024410660406274011546 00000000000000#!/bin/sh #gettextize --force --copy --intl --no-changelog autopoint --force aclocal -I m4 autoheader automake --add-missing --force-missing --gnu --copy autoconf gtick-0.5.2/README0000644000175000017500000000335010660406274010426 00000000000000GNU GTick - The Metronome Copyright (c) 1999 Alex Roberts Copyright (c) 2003, 2004 Roland Stigge This software is part of the GNU Project. Welcome to GTick, a metronome application written using the GTK+ widget set. This application was written because of a need for a Linux (or UN*X) based metronome program. Having seen similar programs for Win95 (not really seen but at least noticed links to on various search engines), and not seen any for Linux/Un*x, Alex decided to go for it and wrote his own. Since then, many changes have been made to GTick, most importantly a more robust timing engine was added in 2003. GTick has a BPM (Beats Per Minute) scale of 30bpm to 250bpm, catering for almost any need; and it is known to work on Linux (Kernel 2.2.x to 2.6.x) and FreeBSD. It was initially developed using GTK+ 1.1.14, but moved to GTK+ 2.x. This is still in development, so there are likely to be bugs; So use it at your own risk, I can't be held responsible for anything bad happening to your computer or your life. To use external ticking sounds you need libsndfile, at least version 1. If you find a bug, have any comments or ideas, then email me, stigge@antcom.de or preferably the GTick development mailing list at gtick-devel@gnu.org. I "hijacked" this package because Alex doesn't respond to any mail and the package needed urgent work to be useable at all. Later, I got an email from him. He is fine and is still tracking GTick's progress. Visit the GTick homepage at http://www.antcom.de/gtick/ for the latest release of GTick. And don't forget, the most important thing, HAVE FUN!!! Thanks -- Roland Stigge (current maintainer) Alex Roberts (initial maintainer) gtick-0.5.2/gtick.spec0000644000175000017500000000262410660406274011526 00000000000000Summary: A metronome application Name: gtick Version: 0.3.9 Release: 1 License: GPL Group: Applications/Sound URL: http://www.antcom.de/gtick/ Source: http://www.antcom.de/download/gtick/gtick-%{version}.tar.gz Packager: Kev Green Buildroot: %{_tmppath}/%{name}-%{version}-buildroot %description gtick is a small metronome application written for Linux and UN*X supporting different meters (2/4, 3/4, 4/4) and speeds ranging from 30 to 250 bpm. It utilizes GTK+ and OSS (ALSA compatible). This program has been originally written Alex Roberts, but since his email address doesn't seem to be working any more and the package needed help, I [ Roland Stigge, stigge@antcom.de ] took it over (initially to package it for Debian, but there were too many "upstream" issues, so I decided to maintain the whole package). %prep %setup -q %configure %build %make %install %makeinstall %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README COPYING TODO ChangeLog %doc doc/NOTES %doc NEWS THANKS INSTALL AUTHORS ABOUT-NLS %doc %{_mandir}/man1/gtick.1.bz2 %{_bindir}/gtick %{_datadir}/locale/* %changelog * Wed May 31 2006 Lamarque Eric 0.3.9-1 - Build on Mandrake 9.2/Mandriva 2006 - Added all locales * Tue Jun 24 2003 Kev Green - 0.2.1 - Added .de locale. * Thu Apr 17 2003 Kev Green - Initial version, 0.2.0, built against RedHat 9. gtick-0.5.2/Makefile.in0000644000175000017500000006326712116334337011626 00000000000000# Makefile.in generated by automake 1.11.6 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software # Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__make_dryrun = \ { \ am__dry=no; \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \ | grep '^AM OK$$' >/dev/null || am__dry=yes;; \ *) \ for am__flg in $$MAKEFLAGS; do \ case $$am__flg in \ *=*|--*) ;; \ *n*) am__dry=yes; break;; \ esac; \ done;; \ esac; \ test $$am__dry = yes; \ } pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(top_srcdir)/configure $(top_srcdir)/intl/Makefile.in \ ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS THANKS TODO \ config.guess config.rpath config.sub depcomp install-sh \ missing ylwrap ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/codeset.m4 \ $(top_srcdir)/m4/fcntl-o.m4 $(top_srcdir)/m4/gettext.m4 \ $(top_srcdir)/m4/glibc2.m4 $(top_srcdir)/m4/glibc21.m4 \ $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intdiv0.m4 \ $(top_srcdir)/m4/intl.m4 $(top_srcdir)/m4/intlmacosx.m4 \ $(top_srcdir)/m4/intmax.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ $(top_srcdir)/m4/inttypes_h.m4 $(top_srcdir)/m4/lcmessage.m4 \ $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/lock.m4 \ $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/nls.m4 \ $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/printf-posix.m4 \ $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/size_max.m4 \ $(top_srcdir)/m4/stdint_h.m4 $(top_srcdir)/m4/threadlib.m4 \ $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ $(top_srcdir)/m4/visibility.m4 $(top_srcdir)/m4/wchar_t.m4 \ $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xsize.m4 \ $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = intl/Makefile CONFIG_CLEAN_VPATH_FILES = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ html-recursive info-recursive install-data-recursive \ install-dvi-recursive install-exec-recursive \ install-html-recursive install-info-recursive \ install-pdf-recursive install-ps-recursive install-recursive \ installcheck-recursive installdirs-recursive pdf-recursive \ ps-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ distdir dist dist-all distcheck ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMTAR = @AMTAR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@ CATOBJEXT = @CATOBJEXT@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CFLAG_VISIBILITY = @CFLAG_VISIBILITY@ CHECK_CFLAGS = @CHECK_CFLAGS@ CHECK_LIBS = @CHECK_LIBS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CYGPATH_W = @CYGPATH_W@ DATADIRNAME = @DATADIRNAME@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ DEPS_CFLAGS = @DEPS_CFLAGS@ DEPS_LIBS = @DEPS_LIBS@ DMALLOC_CFLAGS = @DMALLOC_CFLAGS@ DMALLOC_LIBS = @DMALLOC_LIBS@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GENCAT = @GENCAT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIBC2 = @GLIBC2@ GLIBC21 = @GLIBC21@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ HAVE_ASPRINTF = @HAVE_ASPRINTF@ HAVE_NEWLOCALE = @HAVE_NEWLOCALE@ HAVE_POSIX_PRINTF = @HAVE_POSIX_PRINTF@ HAVE_SNPRINTF = @HAVE_SNPRINTF@ HAVE_VISIBILITY = @HAVE_VISIBILITY@ HAVE_WPRINTF = @HAVE_WPRINTF@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INSTOBJEXT = @INSTOBJEXT@ INTLBISON = @INTLBISON@ INTLLIBS = @INTLLIBS@ INTLOBJS = @INTLOBJS@ INTL_DEFAULT_VERBOSITY = @INTL_DEFAULT_VERBOSITY@ INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXLIB = @LEXLIB@ LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBMULTITHREAD = @LIBMULTITHREAD@ LIBOBJS = @LIBOBJS@ LIBPTH = @LIBPTH@ LIBPTH_PREFIX = @LIBPTH_PREFIX@ LIBS = @LIBS@ LIBTHREAD = @LIBTHREAD@ LTLIBC = @LTLIBC@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBMULTITHREAD = @LTLIBMULTITHREAD@ LTLIBOBJS = @LTLIBOBJS@ LTLIBPTH = @LTLIBPTH@ LTLIBTHREAD = @LTLIBTHREAD@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@ RANLIB = @RANLIB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ SNDFILE_CFLAGS = @SNDFILE_CFLAGS@ SNDFILE_LIBS = @SNDFILE_LIBS@ STRIP = @STRIP@ USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ WINDRES = @WINDRES@ WOE32 = @WOE32@ WOE32DLL = @WOE32DLL@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ YACC = @YACC@ YFLAGS = @YFLAGS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ SUBDIRS = doc intl po src testsuite EXTRA_DIST = config.rpath \ autogen.sh \ gtick.spec \ ABOUT-NLS all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --gnu Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then rm -f stamp-h1; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 intl/Makefile: $(top_builddir)/config.status $(top_srcdir)/intl/Makefile.in cd $(top_builddir) && $(SHELL) ./config.status $@ # This directory's subdirectories are mostly independent; you can cd # into them and run `make' without going through this Makefile. # To change the values of `make' variables: instead of editing Makefiles, # (1) if the variable is set in `config.status', edit `config.status' # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" $(RECURSIVE_CLEAN_TARGETS): @fail= failcom='exit 1'; \ for f in x $$MAKEFLAGS; do \ case $$f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ rev=''; for subdir in $$list; do \ if test "$$subdir" = "."; then :; else \ rev="$$subdir $$rev"; \ fi; \ done; \ rev="$$rev ."; \ target=`echo $@ | sed s/-recursive//`; \ for subdir in $$rev; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ done ctags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ mkid -fID $$unique tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | \ $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in files) print i; }; }'`; \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__remove_distdir) dist-lzma: distdir tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma $(am__remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lzma*) \ lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir); chmod u+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ --with-included-gettext \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile config.h installdirs: installdirs-recursive installdirs-am: install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \ ctags-recursive install-am install-strip tags-recursive .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ all all-am am--refresh check check-am clean clean-generic \ ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ dist-lzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-pdf \ install-pdf-am install-ps install-ps-am install-strip \ installcheck installcheck-am installdirs installdirs-am \ maintainer-clean maintainer-clean-generic mostlyclean \ mostlyclean-generic pdf pdf-am ps ps-am tags tags-recursive \ uninstall uninstall-am #AUTOMAKE_OPTIONS = dist-bzip2 # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: