- Timestamp:
- Apr 5, 2019, 9:26:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_arm/trunk/asp3_dcre/tecsgen/tecslib/core/types.rb
r352 r374 4 4 # Generator for TOPPERS Embedded Component System 5 5 # 6 # Copyright (C) 2008-201 5by TOPPERS Project6 # Copyright (C) 2008-2017 by TOPPERS Project 7 7 #-- 8 8 # 上記著作権者は,以下の(1)~(4)の条件を満たす場合に限り,本ソフトウェ … … 629 629 630 630 class FloatType < Type 631 # @bit_size:: 32, 64, (80), -32, -64 631 # @bit_size:: 32, 64, (80), -32, -64, -128 632 632 633 633 def initialize( bit_size ) … … 684 684 when -64 685 685 str = "#{str}double" 686 when -128 687 str = "#{str}long double" 686 688 end 687 689 return str … … 1558 1560 # 動的結合で渡すデスクリプタ型 1559 1561 class DescriptorType < Type 1560 # @sinagure_nsp::NamespacePath 1562 # @sinagure_nsp::NamespacePath 1563 1564 @@descriptors = {} 1561 1565 1562 1566 def initialize( signature_nsp ) 1563 # p "Desc #{signature_nsp.to_s}" 1564 obj = Namespace.find signature_nsp 1565 if ! obj.kind_of? Signature then 1566 cdl_error( "T9999 '$1': not signature or not found", signature_nsp.to_s ) 1567 @signature_nsp = signature_nsp 1568 else 1569 if obj.has_descriptor? then 1570 # cdl_error( "T9999 '$1': has Descriptor in function parameter", signature_nsp.to_s ) 1571 end 1572 @signature_nsp = obj.get_namespace_path 1573 end 1567 @signature_nsp = signature_nsp 1568 # check_signature ## 1569 @@descriptors[ self ] = false 1574 1570 end 1575 1571 … … 1595 1591 else 1596 1592 cdl_error2( locale, "T9999 Descriptor cannot be used for $1", kind) 1593 end 1594 end 1595 1596 def self.check_signature 1597 @@descriptors.each{ |desc, val| 1598 if val != true then 1599 desc.check_signature 1600 @@descriptors[ desc ] = true 1601 end 1602 } 1603 end 1604 1605 def check_signature 1606 # p "Desc #{@signature_nsp.to_s}" 1607 obj = Namespace.find @signature_nsp 1608 if ! obj.kind_of? Signature then 1609 cdl_error( "T9999 '$1': not signature or not found", @signature_nsp.to_s ) 1610 else 1611 if obj.has_descriptor? then 1612 # cdl_error( "T9999 '$1': has Descriptor in function parameter", @signature_nsp.to_s ) 1613 end 1614 # @signature_nsp = obj.get_namespace_path 1597 1615 end 1598 1616 end
Note:
See TracChangeset
for help on using the changeset viewer.