Fix #222
This commit is contained in:
parent
0e3c2d02f9
commit
e8baeb9229
3 changed files with 5 additions and 2 deletions
|
|
@ -608,7 +608,7 @@ iterator newIdentDefs(gState: State, name: string, node: TSNode, offset: SomeInt
|
||||||
# Skip qualifiers after type
|
# Skip qualifiers after type
|
||||||
var
|
var
|
||||||
start = start0
|
start = start0
|
||||||
while start < node.len - 1 and node[start+1].getName() == "type_qualifier":
|
while start < node.len - 1 and node[start+1].getName() in ["type_qualifier", "comment"]:
|
||||||
start += 1
|
start += 1
|
||||||
|
|
||||||
if start == node.len - 1:
|
if start == node.len - 1:
|
||||||
|
|
|
||||||
|
|
@ -365,6 +365,9 @@ proc gitPull*(url: string, outdir = "", plist = "", checkout = "") =
|
||||||
discard execAction(&"cd {outdirQ} && git config core.sparsecheckout true")
|
discard execAction(&"cd {outdirQ} && git config core.sparsecheckout true")
|
||||||
writeFile(sparsefile, plist)
|
writeFile(sparsefile, plist)
|
||||||
|
|
||||||
|
# In case directory has old files from another run
|
||||||
|
discard execAction(&"cd {outdirQ} && git clean -fxd")
|
||||||
|
|
||||||
if checkout.len != 0:
|
if checkout.len != 0:
|
||||||
echo "# Checking out " & checkout
|
echo "# Checking out " & checkout
|
||||||
discard execAction(&"cd {outdirQ} && git fetch", retry = 1)
|
discard execAction(&"cd {outdirQ} && git fetch", retry = 1)
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@ typedef char *(*A11)[3];
|
||||||
typedef struct A0 *A111[12];
|
typedef struct A0 *A111[12];
|
||||||
|
|
||||||
typedef int
|
typedef int
|
||||||
**(*A12)(int, int b, int *c, int *, int *count[4], int (*func)(int, int)),
|
**(*A12)(int, int b, int *c, int *, int /*out*/ *count[4], int (*func)(int, int)),
|
||||||
**(*A121)(float, float b, float *c, float *, float *count[4], float (*func)(float, float)),
|
**(*A121)(float, float b, float *c, float *, float *count[4], float (*func)(float, float)),
|
||||||
**(*A122)(char, char b, char *c, char *, char *count[4], char (*func)(char, char));
|
**(*A122)(char, char b, char *c, char *, char *count[4], char (*func)(char, char));
|
||||||
typedef int (*A13)(int, int, void (*func)(void));
|
typedef int (*A13)(int, int, void (*func)(void));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue