summaryrefslogtreecommitdiff
path: root/flower/file-name.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove cygwin_conv_to_posix_pathMasamichi Hosoda2015-04-241-25/+0
| | | | | | | | | | | | Issue 4346 Remove cygwin_conv_to_posix_path cygwin_conv_to_posix_path is deprecated on cygwin (32bit) and not available on cygwin64. It is not needed in a pure cygwin environment.
* Run grand replace for 2015.Werner Lemberg2015-01-041-1/+1
|
* Run grand-replace (issue 3765)Carl Sorensen2014-01-111-1/+1
| | | | Run make grand-replace to update all coopyright statements
* Issue 3531: replaced function argument 'string' by 'const string&' where it ↵Frédéric Bron2013-09-101-2/+2
| | | | | | | | | | | | | | makes sense to avoid unnecessary copying of 'string' objects. Measurements on x86_64 (i7-2760QM, 2.40GHz) Fedora 19 with g++ 4.8.1, with configure --enable-optimising --disable-debugging; tests run 10 times, average elapsed time compared (/usr/bin/time) * Bach, Concerto in E major or violin and strings, BWV 1042 (Mutopia source), 38 pages: $ lilypond score.ly -> master: 15.4s, with patch: -0.1% * lilypond regression tests (1153 .ly files): $ lilypond *.ly -> master: 276.6s, with patch: -2.5%
* Run grand-replace for 2012Graham Percival2012-01-091-1/+1
|
* Get rid of some compiler warnings; Fix chdir handling of errorsReinhold Kainhofer2011-08-141-3/+2
| | | | | | | | | | | | | | | | | | | -) Some "unused parameter" warnings -) Some "ignoring return value" are a bit trickier. They are bad coding style: o) the file-name.cc one returns a string with undefined contents if getcwd fails, which might either crash guile or lead to other bugs. o) the lily-parser-scheme.cc warning was also a programming error (if you used --output=dir/file, and dir/ had the wrong permissions, then lilypond would not print an error, but simply put the output file into the current directory without telling the user!). In this case (output dir explicitly requested, but not possible to change there), I think it's best to exit lilypond with an error. -) signed/unsigned warning in glissando-engraver.cc, where we already had a check for negative values, so explicitly casting to unsigned shuts up the compiler. -) Remove unneccessary #(set-paper-size "a6") in the regtests -) fix bad texinfo code in function documentation
* Grand fixcc.py run on all .hh .cc files.Graham Percival2011-08-011-12/+9
| | | | | | | | | | | Apologies for the inconvenience in patch handling, but getting this done at once will cause less long-term problems than trying to do this piecemeal. Note for future git historians: this patch was created by running scripts/auxiliar/fixcc.py \ $(find flower lily -name '*cc' -o -name '*hh' | grep -v /out) with astyle 2.02 installed. No manual changes were made.
* Admin: run yearly grand-replace.Graham Percival2011-01-131-1/+1
|
* Run grand-replace for 2010.Neil Puttock2010-01-231-1/+1
|
* Update source file headers. Fixes using standard GNU package conventions.Jan Nieuwenhuizen2009-11-251-4/+15
| | | | | | | | | | | | | | | | Signed-off-by: Han-Wen Nienhuys <hanwen@xs4all.nl> Signed-off-by: Jan Nieuwenhuizen <janneke@gnu.org> Signed-off-by: John Mandereau <john.mandereau@gmail.com> Signed-off-by: Graham Percival <graham@percival-music.ca> Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com> Signed-off-by: Joe Neeman <joeneeman@gmail.com> Signed-off-by: Heikki Johannes Junes <hjunes@gmail.com> Signed-off-by: Neil Puttock <n.puttock@gmail.com> Signed-off-by: Carl D. Sorensen <c_sorensen@byu.edu> Signed-off-by: Mats Bengtsson <mats.bengtsson@s3.kth.se> Signed-off-by: Werner Lemberg <wl@gnu.org> Signed-off-by: Patrick McCarty <pnorcks@gmail.com> Signed-off-by: Nicolas Sceaux <nicolas.sceaux@free.fr>
* Run grand-replace for 2009.Jan Nieuwenhuizen2009-01-061-1/+1
|
* Run `make grand-replace'.Jan Nieuwenhuizen2008-12-011-1/+1
|
* Interface changes for string functions:Han-Wen Nienhuys2008-06-011-3/+3
| | | | | - replace_all() takes string* - remove some scm_i_XXX uses.
* Patch for gcc 4.3Graham Percival2008-03-261-0/+1
|
* add File_name::canonicalized()Han-Wen Nienhuys2007-06-031-0/+23
| | | | | | - add string_join() - do the right thing with a//b for string_split() - test functions
* add 2007 to (c) year.Han-Wen Nienhuys2007-01-081-1/+1
|
* cleaner init to 0.Han-Wen Nienhuys2006-11-031-1/+1
|
* *** empty log message ***Han-Wen Nienhuys2006-09-181-3/+1
|
* * scm/output-ps.scm (dashed-line): add phase argument toHan-Wen Nienhuys2006-07-261-5/+34
| | | | | | | | | | | | | | | | | dashed-line. * lily/bar-line.cc (dashed_bar_line): new function. (compound_barline): support \bar "dashed". * lily/lily-parser-scheme.cc (LY_DEFINE): only write --output=DIR to DIR/BASE if it is a dir. * flower/file-name.cc (file_part): new function (dir_part): new function * lily/lily-parser-scheme.cc (LY_DEFINE): * DEDICATION: update
* Fix some bugs in the dynamic engraver and PostScript backendErlend Aasland2006-05-311-32/+5
|
* *** empty log message ***Han-Wen Nienhuys2006-09-181-3/+1
|
* * scm/output-ps.scm (dashed-line): add phase argument toHan-Wen Nienhuys2006-07-261-5/+34
| | | | | | | | | | | | | | | | | dashed-line. * lily/bar-line.cc (dashed_bar_line): new function. (compound_barline): support \bar "dashed". * lily/lily-parser-scheme.cc (LY_DEFINE): only write --output=DIR to DIR/BASE if it is a dir. * flower/file-name.cc (file_part): new function (dir_part): new function * lily/lily-parser-scheme.cc (LY_DEFINE): * DEDICATION: update
* * lily/lily-parser-scheme.cc: Use them to fix --output=DIR/BASEJan Nieuwenhuizen2006-04-151-0/+23
| | | | | | | | | | | | pdf conversion behaviour. * flower/file-name.cc (dir_name) (get_working_directory): Move from relocate.cc. * lily/relocate.cc (setup_paths): Remove rogue stat calls. * lily/relocate.cc: Encapsulate sys/stat.h in HAVE_STAT_H.
* *** empty log message ***Jan Nieuwenhuizen2006-03-021-2/+2
|
* * flower/include/std-string.hh:Jan Nieuwenhuizen2006-02-111-11/+11
| | | | | | | | * flower/include/std-vector.hh: Finish std:: conversion; move flower extensions from std:: namespace. Update users. * lily/include/lily-proto.hh: Replace Link_array__*_ macros by their expansion to vector<*>. Update users.
* (gui_b): excise std_string option.Han-Wen Nienhuys2006-02-061-6/+0
|
* * stepmake/stepmake/generic-vars.make (LOOP): Add PLUS to keep -jJan Nieuwenhuizen2006-02-051-1/+4
| | | | | | | | | | | | | jobserver going. * configure.in (std_vector): On by default. * lily/include/font-metric.hh: * lily/include/tfm-reader.hh: * lily/include/spanner.hh: Use unsigned for indices and sizes. Update users. * Documentation/user/changing-defaults.itely: Fix link v2.5, out-www.
* *** empty log message ***Jan Nieuwenhuizen2006-01-261-1/+1
|
* (slashify): use std strings.Han-Wen Nienhuys2006-01-261-4/+2
|
* *** empty log message ***Jan Nieuwenhuizen2006-01-261-12/+12
|
* * flower/include/std-string.hh: String/std::string compatibility:Jan Nieuwenhuizen2006-01-251-9/+9
| | | | | | | | | | | | | | | | | | Use NPOS for `not found' (iso -1), use ssize for length () and pos type. * flower/rational.cc: * flower/include/rational.hh: * flower/offset.cc: * flower/include/offset.hh: * flower/interval.cc: * flower/include/interval.hh: * flower/string-convert.cc: * flower/include/string-convert.hh: Use std::string [interface]. Update callers.
* * configure.in (--enable-std-string): New option.Jan Nieuwenhuizen2006-01-221-23/+30
| | | | | | | | * flower/std-string.cc: * flower/include/std-string.hh: New file. * flower/file-name.cc[STD_STRING]: * flower/include/file-name.hh[STD_STRING]: Use it.
* * The grand 2005-2006 replace.Jan Nieuwenhuizen2006-01-061-1/+1
|
* * lily/relocate.cc (setup_paths): only check path for non-absoluteHan-Wen Nienhuys2005-12-211-1/+4
| | | | | | | dir without directory part. * flower/file-name.cc (is_absolute): new method. (is_absolute): check root_ too.
* (is_absolute): new method.Han-Wen Nienhuys2005-12-211-0/+6
|
* *** empty log message ***Han-Wen Nienhuys2005-11-031-1/+1
|
* * flower/file-path.cc (find): Bugfix: Return name of file found.Jan Nieuwenhuizen2005-11-031-1/+0
| | | | | | * lily/main.cc (setup_paths): Bugfix for argv0 logic. (setup_paths)[__CYGWIN__ || __MINGW32__ || ]: Normalize argv0. (setup_paths)[__MINGW32__]: Also look for argv0 + .exe.
* (dos_to_posix)[__CYGWIN__]: ReturnJan Nieuwenhuizen2005-10-091-4/+6
| | | | | unconverted value if cygwin_conv_to_posix_path () fails. Fixes absolute file name bug. Backportme.
* * lily/tie-column.cc (set_manual_tie_configuration): new function.Han-Wen Nienhuys2005-09-121-0/+1
| | | | | | | | | | * lily/laissez-vibrer-tie.cc: new file. * lily/tie-column.cc (set_tie_config_directions): new function (final_shape_adjustment): new function. (shift_small_ties): new function. * lily/tie-column.cc (set_chord_outline): new function.
* (parse_symbol_list): Bugfix.Jan Nieuwenhuizen2005-08-121-1/+0
|
* Bugfix: only append DIRSEP if BASE_Jan Nieuwenhuizen2005-06-091-1/+5
| | | | or EXT_ components non-empty.
* * flower/file-path.cc (find): don't throw away file_name.dir, butHan-Wen Nienhuys2005-05-191-5/+0
| | | | | | | | | | | | append to it. Fixes \include with directories. * flower/include/file-path.hh (class File_path): don't derive from Array<String>. * flower/include/file-name.hh (class File_name): remove to_str0() * lily/hara-kiri-engraver.cc (acknowledge_grob): split Hara_kiri_engraver in separate file.
* * scm/lily.scm (PLATFORM): Export.Jan Nieuwenhuizen2005-05-151-4/+1
| | | | | | | | * scm/framework-ps.scm (write-preamble)[MINGW]: Use load-font-via-GS, ttftool or fopencookie is broken on windows. * scm/backend-library.scm (postscript->pdf)[MINGW]: Do not use -dSAFER, that is broken on windows.
* * scripts/lilypond-invoke-editor.scm (dissect-uri): Handle URIsJan Nieuwenhuizen2005-05-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | with Windows root in file name. * scm/backend-library.scm (ly:system): Only redirect output (using system and shell, ugh) if /dev/null is writable. * Documentation/pictures/GNUmakefile [PLATFORM_WINDOWS]: Build windows icon. * scm/lily.scm (is-absolute?): New function. Fixes absolute files on Mingw. * scm/output-ps.scm (grob-cause): Use it. Fixes PDF point and click. * flower/file-path.cc (is_dir, is_file): New function. Actually use result of stat when available. * flower/file-path.cc (find): Use it. Refactor. Fixes Mingw, absolute file name and root. * scm/lily.scm (PLATFORM): On mingw, slashify getcwd. * scm/editor.scm (get-editor-command): Typo: do not apply editor. * flower/file-name.cc (slashify): Bugfix, do substitute if no slashes in file name.
* * Documentation/pictures/lilypond-48.xpm: New file.Jan Nieuwenhuizen2005-05-131-1/+16
| | | | | | | | | | | | * flower/file-path.cc (to_string): Bugfix: use PATHSEP. * ly/Welcome_to_LilyPond.ly: New file. * lily/main.cc (main): Only identify if we have a terminal. * scm/backend-library.scm (postscript->png) (postscript->pdf): Fix file name quoting for GS/MINGW (ie, non-/bin/sh).
* * flower/string.cc (substitute): Take two strings or twoJan Nieuwenhuizen2005-05-121-3/+6
| | | | | | | | | | | | | | | | | | characters. Update callers. * flower/file-name.cc (File_name): Slashify. * scm/lily.scm: Use gui-main iso lilypond-main on MINGW. * scripts/GNUmakefile (SEXECUTABLES): Add lilypond-invoke-editor. * stepmake/aclocal.m4 (STEPMAKE_WINDOWS): New function. * configure.in (gui_b): Use it. * lily/lilypond.rc.in: New file. * lily/GNUmakefile[PLATFROM_WINDOWS]: Compile it into executable.
* * flowerJan Nieuwenhuizen2005-03-101-5/+5
| | | | | * lily * kpath-guile: Nitpick run: buildscripts/fixcc.py.
* *** empty log message ***Jan Nieuwenhuizen2005-02-041-1/+1
|
* * configure.in: Test for and accept lmodern if EC fonts not found.Jan Nieuwenhuizen2004-11-181-5/+4
| | | | | | | | | | | | | | | | | | | | * Debian lmodern support. * scm/framework-tex.scm (font-load-command): TeX font name mangling for latin1 encoded cork-lm fonts. (convert-to-ps): Load lm.map if available. * ly/paper-defaults.ly: Use cork-lm encoding if ec is not available. * scm/encoding.scm (coding-alist): Add cork-lm encoding. * scm/font.scm: Add header. Autoload cork-lm and ec fonts if available. * lily/kpath.cc (ly_kpathsea_find_file): Rename. Do not use path for absolute file name, that is silly. * lily/score-engraver.cc (initialize):
* * SConstruct: Further development.Jan Nieuwenhuizen2004-07-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | * input/test/SConscript: * input/template/SConscript: * input/regression/SConscript: * Documentation/bibliography/SConscript: * Documentation/bibliography/index.html.in: New file. * Documentation/bibliography/GNUmakefile (local-WWW): Remove index generation. * buildscripts/builder.py: Add new builders. * make/stepmake.make: * stepmake/stepmake/*.make: * configure.in: * lily/*: * flower*: Use config.hh (Was config.h). * scm/encoding.scm (get-coding): Print friendly error message when no encoding is found, rather than crashing.