Remove dependencies, improve documentation.

This commit is contained in:
gmp
2019-05-29 22:36:49 -04:00
parent 370a2eb604
commit 8ce3b6a6de
20 changed files with 293 additions and 84 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ package ast
import (
"strings"
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
// AllocSizeAttr is a type of attribute that is optionally attached to a variable
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
func TestArrayFiller(t *testing.T) {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"strconv"
"strings"
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
var TrackPositions bool = false
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"strings"
"testing"
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
func formatMultiLine(o interface{}) string {
+1 -1
View File
@@ -1,7 +1,7 @@
package ast
import (
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
// CharacterLiteral is type of character literal
+1 -1
View File
@@ -1,7 +1,7 @@
package ast
import (
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
// ConstantArrayType is constant array type
+6 -5
View File
@@ -1,11 +1,11 @@
package ast
import (
"errors"
"fmt"
"reflect"
//"errors"
//"fmt"
//"reflect"
"github.com/elliotchance/c2go/cc"
//"github.com/elliotchance/c2go/cc"
)
// FloatingLiteral is type of float literal
@@ -63,6 +63,7 @@ type FloatingLiteralError struct {
Err error
}
/* NOT USED
// RepairFloatingLiteralsFromSource finds the exact values of floating literals
// by reading their values directly from the preprocessed source.
//
@@ -111,4 +112,4 @@ func RepairFloatingLiteralsFromSource(rootNode Node, preprocessedFile string) []
}
return errs
}
}*/
+1 -1
View File
@@ -1,7 +1,7 @@
package ast
import (
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
// FormatAttr is a type of attribute that is optionally attached to a variable
+1 -1
View File
@@ -1,6 +1,6 @@
package ast
import "github.com/elliotchance/c2go/util"
import "git.wow.st/gmp/nswrap/util"
// MaxFieldAlignmentAttr is a type of attribute that is optionally attached to a variable
// or struct field definition.
+1 -1
View File
@@ -3,7 +3,7 @@ package ast
import (
"strings"
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
// NonNullAttr is a type of attribute that is optionally attached to a variable
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"path/filepath"
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
// Position is type of position in source code
+1 -1
View File
@@ -3,7 +3,7 @@ package ast
import (
"strings"
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
// SentinelAttr is a type of attribute that is optionally attached to a variable
+1 -1
View File
@@ -1,7 +1,7 @@
package ast
import (
"github.com/elliotchance/c2go/util"
"git.wow.st/gmp/nswrap/util"
)
// VectorType is vector type