This commit is contained in:
Ganesh Viswanathan 2020-05-27 10:25:48 -05:00
commit e8baeb9229
3 changed files with 5 additions and 2 deletions

View file

@ -608,7 +608,7 @@ iterator newIdentDefs(gState: State, name: string, node: TSNode, offset: SomeInt
# Skip qualifiers after type
var
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
if start == node.len - 1:

View file

@ -365,6 +365,9 @@ proc gitPull*(url: string, outdir = "", plist = "", checkout = "") =
discard execAction(&"cd {outdirQ} && git config core.sparsecheckout true")
writeFile(sparsefile, plist)
# In case directory has old files from another run
discard execAction(&"cd {outdirQ} && git clean -fxd")
if checkout.len != 0:
echo "# Checking out " & checkout
discard execAction(&"cd {outdirQ} && git fetch", retry = 1)

View file

@ -90,7 +90,7 @@ typedef char *(*A11)[3];
typedef struct A0 *A111[12];
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)),
**(*A122)(char, char b, char *c, char *, char *count[4], char (*func)(char, char));
typedef int (*A13)(int, int, void (*func)(void));