summaryrefslogtreecommitdiff
path: root/vendor/modernc.org/ccgo/v3/lib/stringer.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2021-08-29 15:41:41 +0100
committerLibravatar GitHub <noreply@github.com>2021-08-29 16:41:41 +0200
commited462245730bd7832019bd43e0bc1c9d1c055e8e (patch)
tree1caad78ea6aabf5ea93c93a8ade97176b4889500 /vendor/modernc.org/ccgo/v3/lib/stringer.go
parentMention fixup (#167) (diff)
downloadgotosocial-ed462245730bd7832019bd43e0bc1c9d1c055e8e.tar.xz
Add SQLite support, fix un-thread-safe DB caches, small performance f… (#172)
* Add SQLite support, fix un-thread-safe DB caches, small performance fixes Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add SQLite licenses to README Signed-off-by: kim (grufwub) <grufwub@gmail.com> * appease the linter, and fix my dumbass-ery Signed-off-by: kim (grufwub) <grufwub@gmail.com> * make requested changes Signed-off-by: kim (grufwub) <grufwub@gmail.com> * add back comment Signed-off-by: kim (grufwub) <grufwub@gmail.com>
Diffstat (limited to 'vendor/modernc.org/ccgo/v3/lib/stringer.go')
-rw-r--r--vendor/modernc.org/ccgo/v3/lib/stringer.go57
1 files changed, 57 insertions, 0 deletions
diff --git a/vendor/modernc.org/ccgo/v3/lib/stringer.go b/vendor/modernc.org/ccgo/v3/lib/stringer.go
new file mode 100644
index 000000000..9aaaccfe3
--- /dev/null
+++ b/vendor/modernc.org/ccgo/v3/lib/stringer.go
@@ -0,0 +1,57 @@
+// Code generated by "stringer -output stringer.go -type=exprMode,opKind"; DO NOT EDIT.
+
+package ccgo
+
+import "strconv"
+
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[exprAddrOf-1]
+ _ = x[exprBool-2]
+ _ = x[exprCondInit-3]
+ _ = x[exprCondReturn-4]
+ _ = x[exprDecay-5]
+ _ = x[exprFunc-6]
+ _ = x[exprLValue-7]
+ _ = x[exprPSelect-8]
+ _ = x[exprSelect-9]
+ _ = x[exprValue-10]
+ _ = x[exprVoid-11]
+}
+
+const _exprMode_name = "exprAddrOfexprBoolexprCondInitexprCondReturnexprDecayexprFuncexprLValueexprPSelectexprSelectexprValueexprVoid"
+
+var _exprMode_index = [...]uint8{0, 10, 18, 30, 44, 53, 61, 71, 82, 92, 101, 109}
+
+func (i exprMode) String() string {
+ i -= 1
+ if i < 0 || i >= exprMode(len(_exprMode_index)-1) {
+ return "exprMode(" + strconv.FormatInt(int64(i+1), 10) + ")"
+ }
+ return _exprMode_name[_exprMode_index[i]:_exprMode_index[i+1]]
+}
+func _() {
+ // An "invalid array index" compiler error signifies that the constant values have changed.
+ // Re-run the stringer command to generate them again.
+ var x [1]struct{}
+ _ = x[opNormal-0]
+ _ = x[opArray-1]
+ _ = x[opArrayParameter-2]
+ _ = x[opFunction-3]
+ _ = x[opUnion-4]
+ _ = x[opBitfield-5]
+ _ = x[opStruct-6]
+}
+
+const _opKind_name = "opNormalopArrayopArrayParameteropFunctionopUnionopBitfieldopStruct"
+
+var _opKind_index = [...]uint8{0, 8, 15, 31, 41, 48, 58, 66}
+
+func (i opKind) String() string {
+ if i < 0 || i >= opKind(len(_opKind_index)-1) {
+ return "opKind(" + strconv.FormatInt(int64(i), 10) + ")"
+ }
+ return _opKind_name[_opKind_index[i]:_opKind_index[i+1]]
+}