Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/hotplugtest/application.e
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ feature {NONE} -- Initialization
print (l_val + "%N")
end


vendor_id := 0x0951
product_id := 0x1607
-- Set defaults vendor-id product-id, for testing.
vendor_id := 0x1058 --0x0951
product_id := 0x0704 --0x1607
class_id := LIBUSB_HOTPLUG_MATCH_ANY


Expand Down
14 changes: 8 additions & 6 deletions examples/hotplugtest/hotplugtest.ecf
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" name="hotplugtest" uuid="FF5E319B-4600-4C79-90A2-F8166FFD95B6">
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-21-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-21-0 http://www.eiffel.com/developers/xml/configuration-1-21-0.xsd" name="hotplugtest" uuid="FF5E319B-4600-4C79-90A2-F8166FFD95B6">
<target name="hotplugtest">
<root feature="make" class="APPLICATION"/>
<root class="APPLICATION" feature="make"/>
<file_rule>
<exclude>/\.git$</exclude>
<exclude>/\.svn$</exclude>
<exclude>/CVS$</exclude>
<exclude>/EIFGENs$</exclude>
<exclude>/\.git$</exclude>
<exclude>/\.svn$</exclude>
</file_rule>
<option warning="true">
<option warning="warning" manifest_array_type="mismatch_warning">
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
</option>
<setting name="console_application" value="true"/>
<library name="base" location="$ISE_LIBRARY/library/base/base.ecf"/>
<setting name="total_order_on_reals" value="true"/>
<setting name="dead_code_removal" value="feature"/>
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
<library name="libusb" location="..\..\library\libusb.ecf" readonly="false"/>
<cluster name="hotplugtest" location=".\" recursive="true"/>
</target>
Expand Down
14 changes: 8 additions & 6 deletions examples/listdevs/listdevs.ecf
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" name="listdevs" uuid="FF5E319B-4600-4C79-90A2-F8166FFD95B6">
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-21-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-21-0 http://www.eiffel.com/developers/xml/configuration-1-21-0.xsd" name="listdevs" uuid="FF5E319B-4600-4C79-90A2-F8166FFD95B6">
<target name="listdevs">
<root feature="make" class="APPLICATION"/>
<root class="APPLICATION" feature="make"/>
<file_rule>
<exclude>/\.git$</exclude>
<exclude>/\.svn$</exclude>
<exclude>/CVS$</exclude>
<exclude>/EIFGENs$</exclude>
<exclude>/\.git$</exclude>
<exclude>/\.svn$</exclude>
</file_rule>
<option warning="true">
<option warning="warning" manifest_array_type="mismatch_warning">
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
</option>
<setting name="console_application" value="true"/>
<library name="base" location="$ISE_LIBRARY/library/base/base.ecf"/>
<setting name="total_order_on_reals" value="true"/>
<setting name="dead_code_removal" value="feature"/>
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
<library name="libusb" location="..\..\library\libusb.ecf" readonly="false"/>
<cluster name="listdevs" location=".\" recursive="true"/>
</target>
Expand Down
3 changes: 0 additions & 3 deletions examples/testlibusb/application.e
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ feature {NONE} -- Initialization
local
ret: INTEGER
list: LIBUSB_DEVICE_LIST
desc: LIBUSB_DEVICE_DESCRIPTOR_STRUCT_API
handle: LIBUSB_DEVICE_HANDLE_STRUCT_API
data: STRING
i : INTEGER
do
ret := {LIBUSB_FUNCTIONS}.libusb_init (Void)
Expand Down
14 changes: 8 additions & 6 deletions examples/testlibusb/testlibusb.ecf
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-16-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-16-0 http://www.eiffel.com/developers/xml/configuration-1-16-0.xsd" name="testlibusb" uuid="FF5E319B-4600-4C79-90A2-F8166FFD95B6">
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-21-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-21-0 http://www.eiffel.com/developers/xml/configuration-1-21-0.xsd" name="testlibusb" uuid="FF5E319B-4600-4C79-90A2-F8166FFD95B6">
<target name="testlibusb">
<root feature="make" class="APPLICATION"/>
<root class="APPLICATION" feature="make"/>
<file_rule>
<exclude>/\.git$</exclude>
<exclude>/\.svn$</exclude>
<exclude>/CVS$</exclude>
<exclude>/EIFGENs$</exclude>
<exclude>/\.git$</exclude>
<exclude>/\.svn$</exclude>
</file_rule>
<option warning="true">
<option warning="warning" manifest_array_type="mismatch_warning">
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
</option>
<setting name="console_application" value="true"/>
<library name="base" location="$ISE_LIBRARY/library/base/base.ecf"/>
<setting name="total_order_on_reals" value="true"/>
<setting name="dead_code_removal" value="feature"/>
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
<library name="libusb" location="..\..\library\libusb.ecf" readonly="false"/>
<cluster name="testlibusb" location=".\" recursive="true"/>
</target>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ feature {ANY} -- Member Access
-- TODO check
set_c_interface (item, a_value.item)
ensure
interface_set: attached interface as l_value implies l_value.item = a_value.item
--interface_set: attached interface as l_value implies l_value.item = a_value.item
end

extra: detachable STRING
Expand Down