Skip to content

Commit 9ad152e

Browse files
committed
first kaleidic commit
1 parent adade23 commit 9ad152e

File tree

1,435 files changed

+142740
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,435 files changed

+142740
-0
lines changed

util/makesig

737 KB
Binary file not shown.

util/makesig.d

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import std.stdio;
2+
import std.conv;
3+
4+
string makeMultiArgWrap(string wrapperName, int numArgs)
5+
{
6+
string ret;
7+
ret="extern(Windows) LPXLOPER12 "~wrapperName~"(function(LPXLOPER12[] args) child)
8+
(
9+
";
10+
ret~="\t";
11+
foreach(i;0..numArgs)
12+
{
13+
ret~="LPXLOPER12 arg"~i.to!string;
14+
if (i<numArgs-1)
15+
{
16+
ret~=", ";
17+
if (i%6==0)
18+
ret~="\n\t";
19+
}
20+
}
21+
ret~=")
22+
{
23+
LPXLOPER12[] args=[";
24+
foreach(i;0..numArgs)
25+
{
26+
ret~="arg"~i.to!string;
27+
if (i<numArgs-1)
28+
ret~=", ";
29+
}
30+
ret~="];
31+
size_t numArgs="~numArgs.to!string~";
32+
while(args[numArgs-1].xltype==xltypeMissing)
33+
--numArgs;
34+
return (*child)(args);
35+
}
36+
";
37+
return ret;
38+
}
39+
40+
void main(string[] args)
41+
{
42+
writefln("%s",makeMultiArgWrap("multiArgWrap",29));
43+
}

util/makesig.o

271 KB
Binary file not shown.

wrap/autogenvbadeclaration/README

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
unfinished experiment at generating declarations in VBA automatically using D

0 commit comments

Comments
 (0)