summaryrefslogtreecommitdiffstats
path: root/bstr.h
Commit message (Collapse)AuthorAgeFilesLines
* bstr.h: change BSTR() from macro to inline functionUoti Urpala2011-04-241-2/+6
| | | | | | | | Change BSTR() from a macro producing a compound literal to an inline function returning the same value. This works for all existing uses, and avoids a warning from BSTR(NULL) (the macro expansion contained strlen(NULL); this was valid code because the strlen call was never evaluated, but still triggered a GCC warning).
* cleanup: find_subfiles.c: simplify (mainly using bstr)Uoti Urpala2011-04-201-1/+11
|
* subs: move vobsub loading logic down to find_subfiles.cUoti Urpala2011-04-201-0/+1
| | | | | | | Analogously to the previous commit, move path handling logic for loading external vobsub files from mplayer.c to find_subfiles.c. Based on a commit from Clément Bœsch but fixed and simplified.
* bstr.[ch], path.[ch]: add string and path handling functionsUoti Urpala2011-02-261-2/+34
| | | | | | | Add some new string and path handling functions to be used in following commits. Use new path handling functions to simplify find_files().
* bstr.[ch]: add new files for struct bstr related functionalityUoti Urpala2010-05-201-0/+39
Move "struct bstr" definition from ebml.h to its own header and add some utility functions/macros. Change length field type from int to size_t and adjust using code accordingly. Partially based on a patch from Anton Khirnov.