aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not include libgen.h, it is unneeded after commit 44ecb.Emanuele Giaquinta2008-10-041-4/+0
|
* code style, indent with tabs XIMax Kellermann2008-10-031-1/+1
| | | | Follow the same code style als MPD itself.
* support: removed unused function remove_trailing_slash()Max Kellermann2008-10-031-1/+0
|
* use g_basename() instead of basename()Max Kellermann2008-10-031-4/+0
| | | | | g_basename() is always available, no need to implement a fallback. Also use g_path_get_dirname(), g_path_get_basename().
* use g_ascii_isspace() instead of IS_WHITESPACE()Max Kellermann2008-10-031-2/+0
| | | | Don't duplicate code which is already provided by glib.
* use g_ascii_strdown() instead of the custom lowerstr()Max Kellermann2008-10-031-2/+1
| | | | Don't duplicate code which is already provided by glib.
* moved code to charset.cMax Kellermann2008-10-021-13/+0
| | | | | Move everything which deals with UTF-8 strings and character set conversion to charset.c, header charset.h.
* added support for wide charactersMax Kellermann2008-09-181-1/+4
| | | | | | | | This patch was taken from bug 476, author unknown (http://www.musicpd.org/mantis/view.php?id=476). It changes the definition of my_strlen(): instead of returning the number of UTF-8 characters, it counts the number of terminal cells occupied by a string.
* use size_t and unsigned integersMax Kellermann2008-09-151-1/+1
|
* include cleanupMax Kellermann2008-09-151-0/+2
| | | | | | 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.
* const pointersMax Kellermann2008-09-151-3/+3
| | | | | Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
* code style, indent with tabsMax Kellermann2008-09-151-5/+3
| | | | | | | 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.
* support wide-char ncurses library (ncursesw)Kalle Wallin2005-06-111-0/+6
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3325 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Replaced the time_t type with glibs GTimeKalle Wallin2004-07-031-1/+1
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1785 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Removed the trim() function, using glib's g_strstrip() insteadKalle Wallin2004-07-011-1/+0
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1751 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added the strscroll functionKalle Wallin2004-06-091-0/+9
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1424 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Moved charset initialization code to main.c, added bind_textdomain_codeset()Kalle Wallin2004-06-061-2/+1
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1350 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Changed directory layout (for future use of gettext)Kalle Wallin2004-06-051-0/+24
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f