aboutsummaryrefslogtreecommitdiffstats
path: root/src/conf.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-12-25added comments for translatorsMax Kellermann1-0/+11
Give translators hints about the meaning of some difficult messages.
2008-12-25conf: improved error messagesMax Kellermann1-10/+8
2008-12-25conf: simplified parse_key_value()Max Kellermann1-68/+14
Removed the state machine stuff, and use strtol() if the first character is not a single quote. strtol() will do the error checking.
2008-12-25conf: don't pass length to parse_key_value()Max Kellermann1-10/+7
We have a null-terminated string, no need to pass the length around.
2008-12-25conf: optimized parse_color() with strchr()Max Kellermann1-56/+62
The same for parse_color_definition(). Use strtol() directly there.
2008-12-25conf: use GLib's string stripping functionsMax Kellermann1-23/+3
2008-12-25conf: use buffered I/O for reading the config fileMax Kellermann1-16/+7
Don't read byte by byte until a newline is found. Use fgets() instead.
2008-12-25conf: don't free filename in read_rc_file()Max Kellermann1-6/+0
The code was unused, because free_filename was always 0.
2008-12-25conf: moved code to parse_line()Max Kellermann1-134/+141
2008-12-25conf: simplified translation stringsMax Kellermann1-21/+23
Removed the "Error: " prefix and the newline. Separated the format string.
2008-11-07options: don't store disabled optionsMax Kellermann1-0/+8
Options which are disabled at compile time shouldn't reserve space for their values in the options struct.
2008-10-03options: don't pass the "options" pointer aroundMax Kellermann1-42/+41
Just make everybody use the global "options" variable. This eliminates namespace confusion and the NO_GLOBAL_OPTIONS hack.
2008-10-03colors: make color support optional at compile timeMax Kellermann1-0/+14
Default is colors disabled. Those who love colorful terminals have the option to enable it with --enable-colors.
2008-10-03code style, indent with tabs XIMax Kellermann1-359/+284
Follow the same code style als MPD itself.
2008-10-03use g_ascii_isspace() instead of IS_WHITESPACE()Max Kellermann1-11/+11
Don't duplicate code which is already provided by glib.
2008-10-03use g_ascii_strdown() instead of the custom lowerstr()Max Kellermann1-5/+6
Don't duplicate code which is already provided by glib.
2008-10-02moved i18n macros to i18n.hMax Kellermann1-1/+1
Don't make everybody include ncmpc.h just to have generic features. Move generic i18n macros to a separate header.
2008-10-02options: use stdboolMax Kellermann1-5/+3
Use the standard "bool" type instead of glib's "gboolean". This way, options.h doesn't have to include the fat glib.h.
2008-10-02moved default value macros to defaults.hMax Kellermann1-0/+1
These macros are only used by options.c and conf.c. Move them to a common internal header.
2008-10-02removed the debugging function D()Max Kellermann1-7/+0
gdb is for debugging. We don't need D() calls littered all over.
2008-09-25screen: pass screen_functions pointer to switch_screen_mode()Max Kellermann1-5/+2
Trying to get rid of the screen ids. A pointer to screen_functions is better for identifying a screen.
2008-09-22added option "welcome-screen-list"David Shakaryan1-0/+5
"welcome-screen-list" shows the screen list in the top row shortly after startup, and is enabled by default.
2008-09-21added optional bitrate display to status barJ. Alexander Treuman1-0/+5
If visible-bitrate is enabled, then the current bitrate will be drawn next to the song time in the status bar. By default it will not be displayed.
2008-09-15don't declare local variable "options"Max Kellermann1-0/+1
In main.c, the global variable "options" is used all over, except in main(), which contains a shadowing declaration of it. Remove this local variable, and use the global "options" instead. Also don't pollute conf.c's namespace with the global variable with a CPP hack (to be removed when we have fixed more of ncmpc's namespace pollution).
2008-09-15use size_t and unsigned integersMax Kellermann1-5/+6
2008-09-15fix shadow warningsMax Kellermann1-5/+5
Rename local variables and function parameters, so they don't shadow global variables.
2008-09-15include cleanupMax Kellermann1-10/+7
A header should include all headers which he needs. Move local includes on top, and let foo.c include foo.h in the first line, to automatically test its dependencies.
2008-09-15const pointersMax Kellermann1-4/+4
Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
2008-09-15code style, indent with tabsMax Kellermann1-243/+228
Follow the same code style als MPD itself. This patch only fixes parts of the code which are going to be touched in the following bunch of patches, i.e. there will be more "code style" patches in the future.
2008-09-15splash: removed the useless splash screenMax Kellermann1-9/+1
The code looks strange and spews lots of warnings. Since it does nothing useful, and wastes the user's precious time, simply remove it.
2007-02-16way too much stuff to describe hereAndreas Obergrusberger1-0/+11
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-09-09http://musicpd.org/mantis/view.php?id=1324Andreas Obergrusberger1-1/+6
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4757 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-09-07due to bensonk's demand i added a splash screen.Andreas Obergrusberger1-1/+6
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4741 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-08-12spelling fixes by avutonAndreas Obergrusberger1-1/+1
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4615 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-08-04the updated sourcesAndreas Obergrusberger1-3/+15
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@4543 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2006-01-16included patch from Jonathan ForsKalle Wallin1-1/+20
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3832 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-15New configuraton option: find-show-lastKalle Wallin1-0/+5
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3359 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-15New configuraton option: screen-listKalle Wallin1-1/+48
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3358 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-03seek-time can now be defined in the conf fileKalle Wallin1-0/+5
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3308 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2005-06-03Added a "hide cursor" feature #0000417Kalle Wallin1-0/+5
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3307 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-11-15Added a search screenKalle Wallin1-0/+5
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@2668 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-13Crossfade time can now be definied in the rc file (crossfade-time)Kalle Wallin1-0/+5
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1865 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-13Use my_wgetch() instead of wgetch(), added --[no-]mouse optionKalle Wallin1-3/+3
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1864 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-12Mouse support is now optional (enable-mouse)Kalle Wallin1-0/+5
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1861 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-12Removed support for the old configuration syntaxKalle Wallin1-83/+2
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1853 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-07-03Cleaned up the conf debug codeKalle Wallin1-7/+2
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1781 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-24Made the xterm title dynamic, added configuration option xterm-title-formatKalle Wallin1-0/+8
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1647 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-24Added configuration option - set-xterm-titleKalle Wallin1-1/+1
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1644 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-22Added options: audible-bell, visible-bell, wrap-around, find-wrapKalle Wallin1-7/+30
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1611 09075e82-0dd4-0310-85a5-a0d7c8717e4f
2004-06-15Added list-format and status-format conf optionsKalle Wallin1-12/+63
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1496 09075e82-0dd4-0310-85a5-a0d7c8717e4f