Include type qualifiers and nullability attributes in Objective-C
function return types. Add NSEnumerator to examples/foundation.
This commit is contained in:
		
							parent
							
								
									11366be6d0
								
							
						
					
					
						commit
						9b71889a69
					
				| 
						 | 
					@ -5,6 +5,7 @@ Classes = [
 | 
				
			||||||
	"NSArray",
 | 
						"NSArray",
 | 
				
			||||||
	"NSMutableArray",
 | 
						"NSMutableArray",
 | 
				
			||||||
	"NSDictionary",
 | 
						"NSDictionary",
 | 
				
			||||||
 | 
						"NSEnumerator",
 | 
				
			||||||
	"NSSet",
 | 
						"NSSet",
 | 
				
			||||||
	"NSDate",
 | 
						"NSDate",
 | 
				
			||||||
	"NSTimeZone",
 | 
						"NSTimeZone",
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -220,8 +220,7 @@ func (t *Type) _CType(attrib bool) string {
 | 
				
			||||||
		//fmt.Println("nil sent to _CType()")
 | 
							//fmt.Println("nil sent to _CType()")
 | 
				
			||||||
		return ""
 | 
							return ""
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	//if !attrib && c.ctype != "" ... FIXME?
 | 
						if !attrib && t.ctype != "" { // cache
 | 
				
			||||||
	if t.ctype != "" { // cache
 | 
					 | 
				
			||||||
		return t.ctype
 | 
							return t.ctype
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	var ct string
 | 
						var ct string
 | 
				
			||||||
| 
						 | 
					@ -372,7 +371,6 @@ func GoToC(name string, pnames []string, rtype *Type, ptypes []*Type) string {
 | 
				
			||||||
		if rtype.IsPointer() {
 | 
							if rtype.IsPointer() {
 | 
				
			||||||
			ret.WriteString(")")
 | 
								ret.WriteString(")")
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		ret.WriteString("\n")
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	return ret.String()
 | 
						return ret.String()
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user