Pārlūkot izejas kodu

Fixed enum array initialisation. Resolves #603.

Bumped dates.
Brucey 2 gadi atpakaļ
vecāks
revīzija
a71d5ac327
16 mainītis faili ar 19 papildinājumiem un 17 dzēšanām
  1. 1 1
      bcc.bmx
  2. 1 1
      config.bmx
  3. 3 1
      ctranslator.bmx
  4. 1 1
      decl.bmx
  5. 1 1
      expr.bmx
  6. 1 1
      iparser.bmx
  7. 2 2
      options.bmx
  8. 1 1
      parser.bmx
  9. 1 1
      stmt.bmx
  10. 1 1
      stringbuffer_common.bmx
  11. 1 1
      stringbuffer_core.bmx
  12. 1 1
      stringbuffer_glue.c
  13. 1 1
      toker.bmx
  14. 1 1
      transform.c
  15. 1 1
      translator.bmx
  16. 1 1
      type.bmx

+ 1 - 1
bcc.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '

+ 1 - 1
config.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '

+ 3 - 1
ctranslator.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '
@@ -2736,6 +2736,8 @@ t:+"NULLNULLNULL"
 
 
 		If TObjectType(elemType) And TObjectType(elemType).classdecl.IsStruct() And Not IsPointerType(elemType) Then
 		If TObjectType(elemType) And TObjectType(elemType).classdecl.IsStruct() And Not IsPointerType(elemType) Then
 			Emit "BBARRAY " + tmpArray.munged + " = bbArrayFromDataStruct" + Bra(TransArrayType(elemType) + "," + count + "," + tmpData.munged + ", sizeof" + Bra(TransObject(TObjectType(elemType).classdecl))) + ";"
 			Emit "BBARRAY " + tmpArray.munged + " = bbArrayFromDataStruct" + Bra(TransArrayType(elemType) + "," + count + "," + tmpData.munged + ", sizeof" + Bra(TransObject(TObjectType(elemType).classdecl))) + ";"
+		Else If TEnumType(elemType)
+			Emit "BBARRAY " + tmpArray.munged + " = bbArrayFromDataSize" + Bra(TransArrayType(elemType) + "," + count + "," + tmpData.munged + "," + TEnumType(elemType).decl.ty.GetSize() ) + ";"
 		Else
 		Else
 			Emit "BBARRAY " + tmpArray.munged + " = bbArrayFromData" + Bra(TransArrayType(elemType) + "," + count + "," + tmpData.munged ) + ";"
 			Emit "BBARRAY " + tmpArray.munged + " = bbArrayFromData" + Bra(TransArrayType(elemType) + "," + count + "," + tmpData.munged ) + ";"
 		End If
 		End If

+ 1 - 1
decl.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '

+ 1 - 1
expr.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '

+ 1 - 1
iparser.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' 
 ' 

+ 2 - 2
options.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '
@@ -25,7 +25,7 @@ SuperStrict
 
 
 Import "base.configmap.bmx"
 Import "base.configmap.bmx"
 
 
-Const version:String = "0.135"
+Const version:String = "0.136"
 
 
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_MODULE:Int = 1
 Const BUILDTYPE_MODULE:Int = 1

+ 1 - 1
parser.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '

+ 1 - 1
stmt.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '

+ 1 - 1
stringbuffer_common.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2016-2021 Bruce A Henderson
+' Copyright (c) 2016-2022 Bruce A Henderson
 ' 
 ' 
 ' Permission is hereby granted, free of charge, to any person obtaining a copy
 ' Permission is hereby granted, free of charge, to any person obtaining a copy
 ' of this software and associated documentation files (the "Software"), to deal
 ' of this software and associated documentation files (the "Software"), to deal

+ 1 - 1
stringbuffer_core.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2016-2021 Bruce A Henderson
+' Copyright (c) 2016-2022 Bruce A Henderson
 ' 
 ' 
 ' Permission is hereby granted, free of charge, to any person obtaining a copy
 ' Permission is hereby granted, free of charge, to any person obtaining a copy
 ' of this software and associated documentation files (the "Software"), to deal
 ' of this software and associated documentation files (the "Software"), to deal

+ 1 - 1
stringbuffer_glue.c

@@ -1,5 +1,5 @@
 /*
 /*
-  Copyright (c) 2016-2021 Bruce A Henderson
+  Copyright (c) 2016-2022 Bruce A Henderson
  
  
   Permission is hereby granted, free of charge, to any person obtaining a copy
   Permission is hereby granted, free of charge, to any person obtaining a copy
   of this software and associated documentation files (the "Software"), to deal
   of this software and associated documentation files (the "Software"), to deal

+ 1 - 1
toker.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '

+ 1 - 1
transform.c

@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2021 Bruce A Henderson
+/* Copyright (c) 2014-2022 Bruce A Henderson
 
 
   This software is provided 'as-is', without any express or implied
   This software is provided 'as-is', without any express or implied
   warranty. In no event will the authors be held liable for any damages
   warranty. In no event will the authors be held liable for any damages

+ 1 - 1
translator.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '

+ 1 - 1
type.bmx

@@ -1,4 +1,4 @@
-' Copyright (c) 2013-2021 Bruce A Henderson
+' Copyright (c) 2013-2022 Bruce A Henderson
 '
 '
 ' Based on the public domain Monkey "trans" by Mark Sibly
 ' Based on the public domain Monkey "trans" by Mark Sibly
 '
 '