aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ncmpc-mini: disable scrollingMax Kellermann2008-11-251-0/+4
| | | | | The scrolling code broke in the ncmpc-mini build. Disable it when --enable-mini was specified.
* code style, indent with tabs XIMax Kellermann2008-10-031-3/+1
| | | | Follow the same code style als MPD itself.
* support: removed unused function remove_trailing_slash()Max Kellermann2008-10-031-17/+0
|
* use g_basename() instead of basename()Max Kellermann2008-10-031-22/+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_strdown() instead of the custom lowerstr()Max Kellermann2008-10-031-20/+10
| | | | Don't duplicate code which is already provided by glib.
* charset: renamed my_strlen() to utf8_width()Max Kellermann2008-10-021-1/+1
| | | | | | my_strlen() is a bad name for the function, since the return value is not a length, but a visible width on the screen. Rename it to utf8_width() and change its return type to "unsigned".
* moved code to charset.cMax Kellermann2008-10-021-95/+1
| | | | | Move everything which deals with UTF-8 strings and character set conversion to charset.c, header charset.h.
* moved i18n macros to i18n.hMax Kellermann2008-10-021-1/+2
| | | | | Don't make everybody include ncmpc.h just to have generic features. Move generic i18n macros to a separate header.
* removed the debugging function D()Max Kellermann2008-10-021-2/+0
| | | | gdb is for debugging. We don't need D() calls littered all over.
* support: added assertionsMax Kellermann2008-09-211-0/+16
| | | | Check the function parameters.
* added support for wide charactersMax Kellermann2008-09-181-3/+13
| | | | | | | | 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.
* code style, indent with tabs VMax Kellermann2008-09-181-87/+81
| | | | Follow the same code style als MPD itself.
* use size_t and unsigned integersMax Kellermann2008-09-151-1/+1
|
* include cleanupMax Kellermann2008-09-151-5/+3
| | | | | | 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-4/+4
| | | | | Convert pointers to const whenever it is possible. Fixes all those -Wconst warnings.
* code style, indent with tabsMax Kellermann2008-09-151-44/+38
| | | | | | | 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.
* unicode fixes from Dmitry Baryshkov/René van BevernKalle Wallin2006-03-281-6/+17
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3960 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* support wide-char ncurses library (ncursesw)Kalle Wallin2005-06-111-1/+9
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@3325 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Use glib's str functions (g_strlcat, g_strlcpy, g_snprintf, g_strdup_vprintf)Kalle Wallin2004-07-131-10/+12
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1868 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Removed the trim() function, using glib's g_strstrip() insteadKalle Wallin2004-07-011-20/+0
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1751 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Major cleanup of the mpd client code (mpc->mpdclient)Kalle Wallin2004-06-141-3/+4
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1481 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added the strscroll functionKalle Wallin2004-06-091-0/+38
| | | | 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-33/+8
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1350 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Added initial i18n supportKalle Wallin2004-06-051-8/+3
| | | | git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1346 09075e82-0dd4-0310-85a5-a0d7c8717e4f
* Changed directory layout (for future use of gettext)Kalle Wallin2004-06-051-0/+216
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1342 09075e82-0dd4-0310-85a5-a0d7c8717e4f