comparison liboctave/oct-glob.cc @ 10411:479cc8a0a846

use gnulib namespace
author John W. Eaton <jwe@octave.org>
date Mon, 15 Mar 2010 15:57:23 -0400
parents 33b012d39dce
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
10410:b3ec24dc305a 10411:479cc8a0a846
84 std::replace_if (xpat.begin (), xpat.end (), 84 std::replace_if (xpat.begin (), xpat.end (),
85 std::bind2nd (std::equal_to<char> (), '\\'), 85 std::bind2nd (std::equal_to<char> (), '\\'),
86 '/'); 86 '/');
87 #endif 87 #endif
88 88
89 int err = ::glob (xpat.c_str (), GLOB_NOSORT, 0, &glob_info); 89 int err = gnulib::glob (xpat.c_str (), GLOB_NOSORT, 0, &glob_info);
90 90
91 if (! err) 91 if (! err)
92 { 92 {
93 int n = glob_info.gl_pathc; 93 int n = glob_info.gl_pathc;
94 94
119 119
120 retval[k++] = tmp; 120 retval[k++] = tmp;
121 } 121 }
122 } 122 }
123 123
124 globfree (&glob_info); 124 gnulib::globfree (&glob_info);
125 } 125 }
126 } 126 }
127 } 127 }
128 128
129 return retval.sort (); 129 return retval.sort ();