annotate lua/luadyncall/src/typesignature.lua @ 62:4a9f6c7c09c1 default tip

- fix inccorect overflow errors for int (and long on LLP64 systems)
author Tassilo Philipp
date Sat, 18 May 2024 15:33:54 +0200
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 --- Get type information from type signature.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2 --
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 -- @param typesignature string representing type informations. Fundamental type signatures are represented by characters such as 'c' for C char, 's' for C short, 'i' for C int, 'j' for C long
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 -- 'l' for C long long, 'f' for C float, 'd' for C double, 'p' for C pointer,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 -- 'B' for ISO C99 _Bool_t/C++ bool, 'v' for C void. Upper-case characters 'CSIJL' refer to the corresponding unsigned C type.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 -- Function signature syntax: 'name(argtypes..)resulttypes..;'
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 -- Structure signature syntax: 'name{fieldtypes..)fieldnames..;' the fieldnames are space separated text tokens.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 -- Named objects can be refered using '<name>' syntax.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 -- pointer types can be specified by prefixing multiple '*'.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 function typeinfo(typesignature)
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 end
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13