Mercurial > projects > ddmd
comparison dmd/File.d @ 16:5c9b78899f5d
Implemented methods for Tuples, fixed some linking issues.
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Sun, 04 Apr 2010 22:41:11 +0100 |
parents | 2cc604139636 |
children | fd4acc376c45 |
comparison
equal
deleted
inserted
replaced
15:da741eed6c00 | 16:5c9b78899f5d |
---|---|
84 | 84 |
85 //printf("File::read('%s')\n",name); | 85 //printf("File::read('%s')\n",name); |
86 int fd = open(toStringz(name), O_RDONLY); | 86 int fd = open(toStringz(name), O_RDONLY); |
87 if (fd == -1) { | 87 if (fd == -1) { |
88 result = errno; | 88 result = errno; |
89 //printf("\topen error, errno = %d\n", errno); | 89 printf("file: %s\n", toStringz(name)); |
90 printf("\topen error, errno = %d\n", errno); | |
90 goto err1; | 91 goto err1; |
91 } | 92 } |
92 | 93 |
93 if (ref_ == 0) { | 94 if (ref_ == 0) { |
94 ///free(buffer); | 95 ///free(buffer); |