~ubuntu-branches/ubuntu/raring/lmms/raring-proposed

« back to all changes in this revision

Viewing changes to plugins/zynaddsubfx/fltk/FL/filename.H

  • Committer: Charlie Smotherman
  • Date: 2012-12-05 22:08:38 UTC
  • mfrom: (33.1.7 lmms_0.4.13)
  • Revision ID: cjsmo@cableone.net-20121205220838-09pjfzew9m5023hr
* New  Upstream release.
  - Minor tweaking to ZynAddSubFX, CALF, SWH plugins  and Stefan Fendt's RC
    filters.
  - Added UI fixes: Magnentic effect of knobs and Piano-roll fixes
  - Updated German localization and copyright year
* debian/lmms-common.install:
  - added /usr/share/applications so the lmms.desktop file will correctly
    install (LP: #863366)
  - This should also fix the Software Center not displaying lmms in sound
    and video (LP: #824231)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * "$Id: filename.H 7504 2010-04-14 20:17:44Z matt $"
 
2
 * "$Id: filename.H 8073 2010-12-20 13:35:43Z ianmacarthur $"
3
3
 *
4
4
 * Filename header file for the Fast Light Tool Kit (FLTK).
5
5
 *
6
 
 * Copyright 1998-2009 by Bill Spitzak and others.
 
6
 * Copyright 1998-2010 by Bill Spitzak and others.
7
7
 *
8
8
 * This library is free software; you can redistribute it and/or
9
9
 * modify it under the terms of the GNU Library General Public
25
25
 *     http://www.fltk.org/str.php
26
26
 */
27
27
 
28
 
// Xcode on OS X includes files by recursing down into directories.
29
 
// This code catches the cycle and directly includes the required file.
30
 
#ifdef fl_dirent_h_cyclic_include 
 
28
/* Xcode on OS X includes files by recursing down into directories.
 
29
 * This code catches the cycle and directly includes the required file.
 
30
 */
 
31
#ifdef fl_dirent_h_cyclic_include
31
32
#  include "/usr/include/dirent.h"
32
33
#endif
33
34
 
36
37
 
37
38
#  include "Fl_Export.H"
38
39
 
39
 
/** \addtogroup filenames File names and URI utility functions 
 
40
/** \addtogroup filenames File names and URI utility functions
 
41
 File names and URI functions defined in <FL/filename.H>
40
42
    @{ */
41
43
 
42
 
#  define FL_PATH_MAX 256 /**< all path buffers should use this length */
43
 
/** Gets the file name from a path. 
 
44
#  define FL_PATH_MAX 2048 /**< all path buffers should use this length */
 
45
/** Gets the file name from a path.
44
46
    Similar to basename(3), exceptions shown below.
45
47
    \code
46
48
    #include <FL/filename.H>
72
74
inline char *fl_filename_setext(char *to, const char *ext) { return fl_filename_setext(to, FL_PATH_MAX, ext); }
73
75
inline int fl_filename_expand(char *to, const char *from) { return fl_filename_expand(to, FL_PATH_MAX, from); }
74
76
inline int fl_filename_absolute(char *to, const char *from) { return fl_filename_absolute(to, FL_PATH_MAX, from); }
 
77
FL_EXPORT int fl_filename_relative(char *to, int tolen, const char *from, const char *cwd);
75
78
inline int fl_filename_relative(char *to, const char *from) { return fl_filename_relative(to, FL_PATH_MAX, from); }
76
79
#  endif /* __cplusplus */
77
80
 
100
103
 * It would be best to create a <dirent.h> file that does this...
101
104
 */
102
105
#    include <sys/types.h>
103
 
#    define fl_dirent_h_cyclic_include 
 
106
#    define fl_dirent_h_cyclic_include
104
107
#    include <dirent.h>
105
 
#    undef fl_dirent_h_cyclic_include 
 
108
#    undef fl_dirent_h_cyclic_include
106
109
#  endif
107
110
 
108
111
#  if defined (__cplusplus)
127
130
 
128
131
FL_EXPORT int fl_filename_list(const char *d, struct dirent ***l,
129
132
                               Fl_File_Sort_F *s = fl_numericsort);
 
133
FL_EXPORT void fl_filename_free_list(struct dirent ***l, int n);
130
134
 
131
135
/*
132
136
 * Generic function to open a Uniform Resource Identifier (URI) using a
172
176
/** @} */
173
177
 
174
178
/*
175
 
 * End of "$Id: filename.H 7504 2010-04-14 20:17:44Z matt $".
 
179
 * End of "$Id: filename.H 8073 2010-12-20 13:35:43Z ianmacarthur $".
176
180
 */