code-intelligence 3.5.1__py3-none-win_amd64.whl → 4.0.1__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.
@@ -13,7 +13,7 @@ from .goober import (
13
13
  # SHAME - Bump when fixing things too embarrassing to admit.
14
14
  # PROUD.DEFAULT.SHAME
15
15
  # \ | /
16
- __version__ = "3.5.1"
16
+ __version__ = "4.0.1"
17
17
  __version_info__ = tuple(int(i) for i in __version__.split('.'))
18
18
 
19
19
  __all__ = [
@@ -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
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: code_intelligence
3
- Version: 3.5.1
3
+ Version: 4.0.1
4
4
  Summary: Code intelligence library
@@ -0,0 +1,7 @@
1
+ code_intelligence-4.0.1.dist-info/METADATA,sha256=q7_4zFfnkkpLx68-sJ7UkNd4S9KqYXzfiaRGmROdGhg,100
2
+ code_intelligence-4.0.1.dist-info/RECORD,,
3
+ code_intelligence-4.0.1.dist-info/WHEEL,sha256=aD7J6E7Slys9i0J65v6Ehfi0DHYa5rImRhUDp62Iwh0,98
4
+ code_intelligence/__init__.py,sha256=W57alh3hyEoygOeI-d1dvVisqC1kSMKojqbTXqvYaKw,587
5
+ code_intelligence/goober.py,sha256=mTth4uxufIKlIn7PVDA0MOIaL7_TrfRRJho5AD9_n_M,6749
6
+ code_intelligence/libcode_intelligence.so,sha256=So59f71LIl_khhNQ69mMT6PNpepDqsGv0ecTlYKB3SM,2549760
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.1.dist-info/METADATA,sha256=X8JX-Z9x4u5H7HIAQaFLM_T-xRVJG-oniQdul9MCFaw,100
2
- code_intelligence-3.5.1.dist-info/RECORD,,
3
- code_intelligence-3.5.1.dist-info/WHEEL,sha256=aD7J6E7Slys9i0J65v6Ehfi0DHYa5rImRhUDp62Iwh0,98
4
- code_intelligence/__init__.py,sha256=NzSUa-hjJK6cfbosygEy_ug0VqWqkFx4MVIUDYqTRSk,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=f0q3kqVo7CZ7qOUBJDE537rt6KhACM81YAtV-8bjYEI,2842624
8
- code_intelligence/symdb.py,sha256=gRq3-xr2oYIzudgwDwMj3Zl5Pb0B8tDdnGKUB0WIV_o,32427