Ok, I have a question in regards to constructing FLLs.
At the end of your C coding you have the following:
FoxInfo myFoxInfo[] = {
{"Test1", (FPFI) Test1, 1, "C"},
{"Test2", (FPFI) Test2, 1, "C"},
{"Test3", (FPFI) Test3, 1, "C"},
};
FoxTable _FoxTable = {
(FoxTable FAR *)0, sizeof(myFoxInfo) / sizeof(FoxInfo), myFoxInfo
};
Now lets say that much of the code for Test1, Test2, and Test3 are the same, in fact there are only a few lines at the end that are different. It would be great to just have one function which will call on the unique code based upon which function is invoked. So I would like to have the end of the coding something like such:
FoxInfo myFoxInfo[] = {
{"Test1", (FPFI) Test(1), 1, "C"},
{"Test2", (FPFI) Test(2), 1, "C"},
{"Test3", (FPFI) Test(3), 1, "C"},
};
FoxTable _FoxTable = {
(FoxTable FAR *)0, sizeof(myFoxInfo) / sizeof(FoxInfo), myFoxInfo
};
The idea being that the Fox functions Test1, Test2, and Test3 will all call the C function Test passing the parameter 1, 2, or 3 repectively.
I hope my question makes sense. If so how can I do that?
Thanks in advance!
B"H
Brak
At the end of your C coding you have the following:
FoxInfo myFoxInfo[] = {
{"Test1", (FPFI) Test1, 1, "C"},
{"Test2", (FPFI) Test2, 1, "C"},
{"Test3", (FPFI) Test3, 1, "C"},
};
FoxTable _FoxTable = {
(FoxTable FAR *)0, sizeof(myFoxInfo) / sizeof(FoxInfo), myFoxInfo
};
Now lets say that much of the code for Test1, Test2, and Test3 are the same, in fact there are only a few lines at the end that are different. It would be great to just have one function which will call on the unique code based upon which function is invoked. So I would like to have the end of the coding something like such:
FoxInfo myFoxInfo[] = {
{"Test1", (FPFI) Test(1), 1, "C"},
{"Test2", (FPFI) Test(2), 1, "C"},
{"Test3", (FPFI) Test(3), 1, "C"},
};
FoxTable _FoxTable = {
(FoxTable FAR *)0, sizeof(myFoxInfo) / sizeof(FoxInfo), myFoxInfo
};
The idea being that the Fox functions Test1, Test2, and Test3 will all call the C function Test passing the parameter 1, 2, or 3 repectively.
I hope my question makes sense. If so how can I do that?
Thanks in advance!
B"H
Brak