OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compiler: Move import of Go export data to gcc side of interface.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
go
/
gofrontend
/
import.h
diff --git
a/gcc/go/gofrontend/import.h
b/gcc/go/gofrontend/import.h
index
f5b4b3d
..
bdff0c2
100644
(file)
--- a/
gcc/go/gofrontend/import.h
+++ b/
gcc/go/gofrontend/import.h
@@
-287,7
+287,7
@@
class Stream_from_string : public Import::Stream
size_t pos_;
};
size_t pos_;
};
-// Read import data from a
n allocated buffer
.
+// Read import data from a
buffer allocated using malloc
.
class Stream_from_buffer : public Import::Stream
{
class Stream_from_buffer : public Import::Stream
{
@@
-297,7
+297,7
@@
class Stream_from_buffer : public Import::Stream
{ }
~Stream_from_buffer()
{ }
~Stream_from_buffer()
- {
delete[] this->buf_
; }
+ {
free(this->buf_)
; }
protected:
bool
protected:
bool