forked from LibertyEiffel/Liberty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:tybor/Liberty
- Loading branch information
Showing
121 changed files
with
2,188 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
src/wrappers/llvm/library/iterators/iterator_over_global_variables.e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
|
||
-- This file is part of a Liberty Eiffel library. | ||
-- See the full copyright at the end. | ||
-- | ||
class ITERATOR_OVER_GLOBAL_VARIABLES | ||
|
||
inherit | ||
BIDIRECTIONAL_ITERATOR[LLVM_GLOBAL_VARIABLE] | ||
WRAPPER_FACTORY[LLVM_GLOBAL_VARIABLE] | ||
|
||
insert CORE_EXTERNALS | ||
|
||
creation {LLVM_MODULE} from_module | ||
|
||
feature {LLVM_VALUE} | ||
from_module (a_module: like module) is | ||
require a_module/=Void | ||
do | ||
module:=a_module | ||
end | ||
|
||
feature {ANY} | ||
module: LLVM_MODULE | ||
|
||
start is | ||
do | ||
item := wrapper_or_void(llvmget_first_global(module.handle)) | ||
end | ||
|
||
finish is | ||
do | ||
item := wrapper_or_void(llvmget_last_global(module.handle)) | ||
end | ||
|
||
next is | ||
do | ||
item := wrapper_or_void(llvmget_next_global(item.handle)) | ||
end | ||
|
||
previous is | ||
do | ||
item := wrapper_or_void(llvmget_previous_global(item.handle)) | ||
end | ||
|
||
is_off: BOOLEAN is | ||
do | ||
Result:=(item=Void) | ||
end | ||
|
||
item: LLVM_GLOBAL_VARIABLE is attribute end | ||
feature | ||
wrapper (p: POINTER): LLVM_GLOBAL_VARIABLE is | ||
do | ||
create Result.from_external_pointer(p) | ||
end | ||
invariant module/=Void | ||
|
||
end -- class ITERATOR_OVER_GLOBAL_VARIABLES | ||
|
||
-- | ||
-- Copyright (c) 2009 by all the people cited in the AUTHORS file. | ||
-- | ||
-- Permission is hereby granted, free of charge, to any person obtaining a copy | ||
-- of this software and associated documentation files (the "Software"), to deal | ||
-- in the Software without restriction, including without limitation the rights | ||
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
-- copies of the Software, and to permit persons to whom the Software is | ||
-- furnished to do so, subject to the following conditions: | ||
-- | ||
-- The above copyright notice and this permission notice shall be included in | ||
-- all copies or substantial portions of the Software. | ||
-- | ||
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
-- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
-- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
-- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
-- THE SOFTWARE. | ||
|
||
|
||
-- This file is part of LLVM wrappers for Liberty Eiffel. | ||
-- | ||
-- This library is free software: you can redistribute it and/or modify | ||
-- it under the terms of the GNU Lesser General Public License as published by | ||
-- the Free Software Foundation, version 3 of the License. | ||
-- | ||
-- Liberty Eiffel is distributed in the hope that it will be useful, | ||
-- but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
-- GNU General Public License for more details. | ||
-- | ||
-- You should have received a copy of the GNU General Public License | ||
-- along with Liberty Eiffel. If not, see <http://www.gnu.org/licenses/>. | ||
-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.