// mylib.c -- Sample DVX library implementation // // Build: // i586-pc-msdosdjgpp-gcc -O2 -Wall -c -o mylib.o mylib.c // dxe3gen -o mylib.lib -U mylib.o // // Deploy: copy mylib.lib to LIBS//MYLIB/ on the target. // Add a mylib.dep file if this library depends on others. // // Any DXE loaded after this one can call myLibAdd(), myLibMul(), // and myLibVersion() directly — DXE3 resolves symbols at load time. #include "mylib.h" int32_t myLibAdd(int32_t a, int32_t b) { return a + b; } int32_t myLibMul(int32_t a, int32_t b) { return a * b; } const char *myLibVersion(void) { return "MyLib 1.0"; }