summary refs log tree commit diff stats
path: root/lib/pure/nativesockets.nim
Commit message (Expand)AuthorAgeFilesLines
* Merge branch 'unix-sockets' of https://github.com/girvo/Nim into girvo-unix-s...Dominik Picheta2016-05-301-1/+1
|\
| * net.nim: add support for Unix socketsMichał Zieliński2015-10-281-1/+1
* | Merge pull request #3648 from FedericoCeratto/reuse_portAndreas Rumpf2016-05-291-1/+1
|\ \
| * | Add SO_REUSEPORT supportFederico Ceratto2015-12-161-1/+1
* | | Define ports as uint16s to fix #3484Josep Sanjuas2016-03-271-15/+51
* | | Fixed deprecation warnings while Nim compiles.Hans Raaf2016-01-181-1/+1
* | | Fix nativesockets compilation on OpenBSD and NetBSDdef2015-12-231-1/+1
|/ /
* | Fixed getAddrInfo on androidYuriy Glukhov2015-12-081-1/+2
* | OpenBSD doesn't support AI_V4MAPPEDJuan Francisco Cantero Hurtado2015-11-231-1/+3
|/
* Merge remote-tracking branch 'origin/devel' into fix-test-failuresAman Gupta2015-10-061-1/+0
* Rename rawsockets module to nativesocketsAdam Strzelecki2015-10-031-0/+553
.highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
discard """
errormsg: "cannot evaluate 'sizeof/alignof' because its type is not defined completely"
line: 9
"""

type
  MyStruct {.importc: "MyStruct".} = object

const i = sizeof(MyStruct)

echo i

# bug #9868
proc foo(a: SomeInteger): array[sizeof(a), byte] =
  discard