code-intelligence 3.5.0__py3-none-win_amd64.whl → 4.0.0__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- code_intelligence/__init__.py +1 -1
- code_intelligence/goober.py +3 -2
- code_intelligence/libcode_intelligence.so +0 -0
- {code_intelligence-3.5.0.dist-info → code_intelligence-4.0.0.dist-info}/METADATA +1 -1
- code_intelligence-4.0.0.dist-info/RECORD +7 -0
- code_intelligence/libcode_intelligence.h +0 -121
- code_intelligence-3.5.0.dist-info/RECORD +0 -8
- {code_intelligence-3.5.0.dist-info → code_intelligence-4.0.0.dist-info}/WHEEL +0 -0
code_intelligence/__init__.py
CHANGED
code_intelligence/goober.py
CHANGED
|
@@ -196,6 +196,9 @@ if __name__ == "__main__":
|
|
|
196
196
|
print("usage: python goober.py text folder...")
|
|
197
197
|
exit(1)
|
|
198
198
|
|
|
199
|
+
import atexit
|
|
200
|
+
atexit.register(stop)
|
|
201
|
+
|
|
199
202
|
def scan_callback(data):
|
|
200
203
|
print(f"[PY] {data}")
|
|
201
204
|
|
|
@@ -223,5 +226,3 @@ if __name__ == "__main__":
|
|
|
223
226
|
find_symbols_in_text(text, find_callback, data=(text, "after"))
|
|
224
227
|
|
|
225
228
|
wait_for_callbacks_in_seconds(1)
|
|
226
|
-
|
|
227
|
-
stop()
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
code_intelligence-4.0.0.dist-info/METADATA,sha256=7knqZN132YCk2GHuaaIv1QA4y38M82lbrE_bYoFiXDQ,100
|
|
2
|
+
code_intelligence-4.0.0.dist-info/RECORD,,
|
|
3
|
+
code_intelligence-4.0.0.dist-info/WHEEL,sha256=aD7J6E7Slys9i0J65v6Ehfi0DHYa5rImRhUDp62Iwh0,98
|
|
4
|
+
code_intelligence/__init__.py,sha256=6AimG91NNLQh8twYo_iyf9iVCPFtBH7gCqTfAyQCVdQ,587
|
|
5
|
+
code_intelligence/goober.py,sha256=mTth4uxufIKlIn7PVDA0MOIaL7_TrfRRJho5AD9_n_M,6749
|
|
6
|
+
code_intelligence/libcode_intelligence.so,sha256=k9Y3Ws16BZtJaGkdDjxTgL_nKL8wCwCzPgFovVsURbQ,2548224
|
|
7
|
+
code_intelligence/symdb.py,sha256=gRq3-xr2oYIzudgwDwMj3Zl5Pb0B8tDdnGKUB0WIV_o,32427
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
/* Code generated by cmd/cgo; DO NOT EDIT. */
|
|
2
|
-
|
|
3
|
-
/* package code_intelligence/source */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
#line 1 "cgo-builtin-export-prolog"
|
|
7
|
-
|
|
8
|
-
#include <stddef.h>
|
|
9
|
-
|
|
10
|
-
#ifndef GO_CGO_EXPORT_PROLOGUE_H
|
|
11
|
-
#define GO_CGO_EXPORT_PROLOGUE_H
|
|
12
|
-
|
|
13
|
-
#ifndef GO_CGO_GOSTRING_TYPEDEF
|
|
14
|
-
typedef struct { const char *p; ptrdiff_t n; } _GoString_;
|
|
15
|
-
extern size_t _GoStringLen(_GoString_ s);
|
|
16
|
-
extern const char *_GoStringPtr(_GoString_ s);
|
|
17
|
-
#endif
|
|
18
|
-
|
|
19
|
-
#endif
|
|
20
|
-
|
|
21
|
-
/* Start of preamble from import "C" comments. */
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
#line 3 "main.go"
|
|
25
|
-
|
|
26
|
-
#include <stdint.h>
|
|
27
|
-
#include <stdlib.h>
|
|
28
|
-
#include <stdbool.h>
|
|
29
|
-
|
|
30
|
-
typedef struct {
|
|
31
|
-
uint32_t start_offset_in_text;
|
|
32
|
-
uint32_t end_offset_in_text;
|
|
33
|
-
const char* source_file;
|
|
34
|
-
uint32_t line_0_based;
|
|
35
|
-
uint32_t column_0_based;
|
|
36
|
-
} Definition_Link_C;
|
|
37
|
-
|
|
38
|
-
typedef void (*scan_callback_t)(uintptr_t);
|
|
39
|
-
typedef void (*find_callback_t)(uintptr_t, const Definition_Link_C*, int, void*);
|
|
40
|
-
|
|
41
|
-
static inline void invoke_scan_callback(scan_callback_t callback, uintptr_t p) {
|
|
42
|
-
callback(p);
|
|
43
|
-
}
|
|
44
|
-
static inline void invoke_find_callback(find_callback_t callback, uintptr_t p, const Definition_Link_C* links, int count, void* string_handle) {
|
|
45
|
-
callback(p, links, count, string_handle);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
#line 1 "cgo-generated-wrapper"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/* End of preamble from import "C" comments. */
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
/* Start of boilerplate cgo prologue. */
|
|
56
|
-
#line 1 "cgo-gcc-export-header-prolog"
|
|
57
|
-
|
|
58
|
-
#ifndef GO_CGO_PROLOGUE_H
|
|
59
|
-
#define GO_CGO_PROLOGUE_H
|
|
60
|
-
|
|
61
|
-
typedef signed char GoInt8;
|
|
62
|
-
typedef unsigned char GoUint8;
|
|
63
|
-
typedef short GoInt16;
|
|
64
|
-
typedef unsigned short GoUint16;
|
|
65
|
-
typedef int GoInt32;
|
|
66
|
-
typedef unsigned int GoUint32;
|
|
67
|
-
typedef long long GoInt64;
|
|
68
|
-
typedef unsigned long long GoUint64;
|
|
69
|
-
typedef GoInt64 GoInt;
|
|
70
|
-
typedef GoUint64 GoUint;
|
|
71
|
-
typedef size_t GoUintptr;
|
|
72
|
-
typedef float GoFloat32;
|
|
73
|
-
typedef double GoFloat64;
|
|
74
|
-
#ifdef _MSC_VER
|
|
75
|
-
#if !defined(__cplusplus) || _MSVC_LANG <= 201402L
|
|
76
|
-
#include <complex.h>
|
|
77
|
-
typedef _Fcomplex GoComplex64;
|
|
78
|
-
typedef _Dcomplex GoComplex128;
|
|
79
|
-
#else
|
|
80
|
-
#include <complex>
|
|
81
|
-
typedef std::complex<float> GoComplex64;
|
|
82
|
-
typedef std::complex<double> GoComplex128;
|
|
83
|
-
#endif
|
|
84
|
-
#else
|
|
85
|
-
typedef float _Complex GoComplex64;
|
|
86
|
-
typedef double _Complex GoComplex128;
|
|
87
|
-
#endif
|
|
88
|
-
|
|
89
|
-
/*
|
|
90
|
-
static assertion to make sure the file is being used on architecture
|
|
91
|
-
at least with matching size of GoInt.
|
|
92
|
-
*/
|
|
93
|
-
typedef char _check_for_64_bit_pointer_matching_GoInt[sizeof(void*)==64/8 ? 1:-1];
|
|
94
|
-
|
|
95
|
-
#ifndef GO_CGO_GOSTRING_TYPEDEF
|
|
96
|
-
typedef _GoString_ GoString;
|
|
97
|
-
#endif
|
|
98
|
-
typedef void *GoMap;
|
|
99
|
-
typedef void *GoChan;
|
|
100
|
-
typedef struct { void *t; void *v; } GoInterface;
|
|
101
|
-
typedef struct { void *data; GoInt len; GoInt cap; } GoSlice;
|
|
102
|
-
|
|
103
|
-
#endif
|
|
104
|
-
|
|
105
|
-
/* End of boilerplate cgo prologue. */
|
|
106
|
-
|
|
107
|
-
#ifdef __cplusplus
|
|
108
|
-
extern "C" {
|
|
109
|
-
#endif
|
|
110
|
-
|
|
111
|
-
extern __declspec(dllexport) void start_workers(void);
|
|
112
|
-
extern __declspec(dllexport) void enqueue_scan_file(scan_callback_t callback, uintptr_t data, char* c_path, GoUint64 language);
|
|
113
|
-
extern __declspec(dllexport) void enqueue_find_symbols_in_text(find_callback_t callback, uintptr_t data, char* c_text, _Bool ignore_word_like, _Bool synchronous);
|
|
114
|
-
extern __declspec(dllexport) void enqueue_stop(void);
|
|
115
|
-
extern __declspec(dllexport) void enqueue_clear(void);
|
|
116
|
-
extern __declspec(dllexport) GoUint64 get_pending_tasks_count(void);
|
|
117
|
-
extern __declspec(dllexport) void free_memory(void* ptr);
|
|
118
|
-
|
|
119
|
-
#ifdef __cplusplus
|
|
120
|
-
}
|
|
121
|
-
#endif
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
code_intelligence-3.5.0.dist-info/METADATA,sha256=HpNfHONdZwHn_bkaUzOVsc4E5tRZa9aPlmBpW9z-_R0,100
|
|
2
|
-
code_intelligence-3.5.0.dist-info/RECORD,,
|
|
3
|
-
code_intelligence-3.5.0.dist-info/WHEEL,sha256=aD7J6E7Slys9i0J65v6Ehfi0DHYa5rImRhUDp62Iwh0,98
|
|
4
|
-
code_intelligence/__init__.py,sha256=Bks6tcR-R2T4ivaM5Q19EEjA6xTBao2n8s2DKu2KMSA,587
|
|
5
|
-
code_intelligence/goober.py,sha256=0oUHn-HAoFvMXZlf9XcggbiLW-35nUsuMfkHDy4kc80,6715
|
|
6
|
-
code_intelligence/libcode_intelligence.h,sha256=Ribz_PkPeQlcvfhD0e67L6gJeRg2dJhPPObn4mrxpgI,3213
|
|
7
|
-
code_intelligence/libcode_intelligence.so,sha256=l4LyO5Sp4EV6u0Tz1gB3yNQEEXSow80mqaitKq7FI_w,2842624
|
|
8
|
-
code_intelligence/symdb.py,sha256=gRq3-xr2oYIzudgwDwMj3Zl5Pb0B8tDdnGKUB0WIV_o,32427
|
|
File without changes
|