~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to dir.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
  dir.c -
4
4
 
5
 
  $Author: nobu $
6
 
  $Date: 2007-06-05 13:25:10 +0900 (火, 05  6月 2007) $
 
5
  $Author: matz $
 
6
  $Date: 2007-08-25 12:29:39 +0900 (土, 25  8月 2007) $
7
7
  created at: Wed Jan  5 09:51:01 JST 1994
8
8
 
9
 
  Copyright (C) 1993-2003 Yukihiro Matsumoto
 
9
  Copyright (C) 1993-2007 Yukihiro Matsumoto
10
10
  Copyright (C) 2000  Network Applied Communication Laboratory, Inc.
11
11
  Copyright (C) 2000  Information-technology Promotion Agency, Japan
12
12
 
13
13
**********************************************************************/
14
14
 
15
 
#include "ruby.h"
 
15
#include "ruby/ruby.h"
16
16
 
17
17
#include <sys/types.h>
18
18
#include <sys/stat.h>
61
61
 
62
62
#include <ctype.h>
63
63
 
64
 
#include "util.h"
 
64
#include "ruby/util.h"
65
65
 
66
66
#if !defined HAVE_LSTAT && !defined lstat
67
67
#define lstat stat
1729
1729
{
1730
1730
    VALUE dir;
1731
1731
 
 
1732
    RETURN_ENUMERATOR(io, 1, &dirname);
1732
1733
    dir = dir_open_dir(dirname);
1733
1734
    rb_ensure(dir_each, dir, dir_close, dir);
1734
1735
    return Qnil;