Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit c258a3d

Browse files
authored
Merge pull request #115 from juanjux/fix/compound_literals
Remove compound literals since MSVC doesnt support them
2 parents 96187fd + 23d9ee9 commit c258a3d

2 files changed

Lines changed: 24 additions & 25 deletions

File tree

bblfsh/pyuast.cc

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -477,29 +477,28 @@ static struct PyModuleDef module_def = {
477477
PyMODINIT_FUNC
478478
PyInit_pyuast(void)
479479
{
480-
NodeIface iface = {
481-
.InternalType = InternalType,
482-
.Token = Token,
483-
.ChildrenSize = ChildrenSize,
484-
.ChildAt = ChildAt,
485-
.RolesSize = RolesSize,
486-
.RoleAt = RoleAt,
487-
.PropertiesSize = PropertiesSize,
488-
.PropertyKeyAt = PropertyKeyAt,
489-
.PropertyValueAt = PropertyValueAt,
490-
.HasStartOffset = HasStartOffset,
491-
.StartOffset = StartOffset,
492-
.HasStartLine = HasStartLine,
493-
.StartLine = StartLine,
494-
.HasStartCol = HasStartCol,
495-
.StartCol = StartCol,
496-
.HasEndOffset = HasEndOffset,
497-
.EndOffset = EndOffset,
498-
.HasEndLine = HasEndLine,
499-
.EndLine = EndLine,
500-
.HasEndCol = HasEndCol,
501-
.EndCol = EndCol,
502-
};
480+
NodeIface iface;
481+
iface.InternalType = InternalType;
482+
iface.Token = Token;
483+
iface.ChildrenSize = ChildrenSize;
484+
iface.ChildAt = ChildAt;
485+
iface.RolesSize = RolesSize;
486+
iface.RoleAt = RoleAt;
487+
iface.PropertiesSize = PropertiesSize;
488+
iface.PropertyKeyAt = PropertyKeyAt;
489+
iface.PropertyValueAt = PropertyValueAt;
490+
iface.HasStartOffset = HasStartOffset;
491+
iface.StartOffset = StartOffset;
492+
iface.HasStartLine = HasStartLine;
493+
iface.StartLine = StartLine;
494+
iface.HasStartCol = HasStartCol;
495+
iface.StartCol = StartCol;
496+
iface.HasEndOffset = HasEndOffset;
497+
iface.EndOffset = EndOffset;
498+
iface.HasEndLine = HasEndLine;
499+
iface.EndLine = EndLine;
500+
iface.HasEndCol = HasEndCol;
501+
iface.EndCol = EndCol;
503502

504503
ctx = UastNew(iface);
505504
return PyModule_Create(&module_def);

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
from setuptools import setup, find_packages, Extension
1111
from setuptools.command.build_ext import build_ext
1212

13-
VERSION = "2.10.0"
14-
LIBUAST_VERSION = "v1.9.1"
13+
VERSION = "2.10.1"
14+
LIBUAST_VERSION = "v1.9.4"
1515
SDK_VERSION = "v1.16.1"
1616
SDK_MAJOR = SDK_VERSION.split('.')[0]
1717
FORMAT_ARGS = globals()

0 commit comments

Comments
 (0)