Revision 3084
Added by jeff over 13 years ago
src/scol_gbase.c | ||
---|---|---|
531 | 531 |
* Load and free the regular expression library |
532 | 532 |
* Plateforms supported : MS Windows and GNU / Linux |
533 | 533 |
*/ |
534 |
|
|
535 |
int GBaseRelease () |
|
536 |
{ |
|
537 |
MMechostr (0, "\nGBASE library released !\n"); |
|
538 |
return 0; |
|
539 |
} |
|
540 |
|
|
541 | 534 |
#if ((defined _WIN32) || (defined __WIN32__)) |
535 |
# define SCOL_GBASE_PLUGIN_EXPORT __declspec (dllexport) |
|
536 |
#elif ((defined linux) || (defined __linux)) |
|
537 |
# define SCOL_GBASE_PLUGIN_EXPORT |
|
538 |
#else |
|
539 |
# error no platform supported |
|
540 |
#endif |
|
542 | 541 |
|
543 |
__declspec (dllexport) int SCOLloadGBASE (mmachine m, cbmachine w)
|
|
542 |
SCOL_GBASE_PLUGIN_EXPORT int SCOLloadGBASE(mmachine m, cbmachine w)
|
|
544 | 543 |
{ |
545 |
int k = 0; |
|
546 | 544 |
ww = w; |
547 | 545 |
mm = m; |
548 | 546 |
|
549 |
MMechostr (MSKDEBUG, "\nGBASE library loading .... !\n"); |
|
550 |
SCOLinitplugin (w); |
|
551 |
if ((k = SCOLinitGbaseClass (m))) return k; |
|
552 |
MMechostr(MSKDEBUG, "\nGBASE library loaded !\n"); |
|
553 |
return k; |
|
547 |
SCOLinitplugin(w); |
|
548 |
return SCOLinitGbaseClass(m); |
|
554 | 549 |
} |
555 | 550 |
|
556 |
__declspec (dllexport) int SCOLfreeGBASE ()
|
|
551 |
SCOL_GBASE_PLUGIN_EXPORT int SCOLfreeGBASE()
|
|
557 | 552 |
{ |
558 |
GBaseRelease (); |
|
559 | 553 |
return 0; |
560 | 554 |
} |
561 |
|
|
562 |
|
|
563 |
|
|
564 |
|
|
565 |
|
|
566 |
/* Version GNU / Linux */ |
|
567 |
#elif ((defined linux) || (defined __linux)) |
|
568 |
|
|
569 |
int SCOLloadGBASE (mmachine m) |
|
570 |
{ |
|
571 |
int k = 0; |
|
572 |
mm = m; |
|
573 |
|
|
574 |
MMechostr (MSKDEBUG, "\nGBASE library loading !\n"); |
|
575 |
if ((k = SCOLinitGbaseClass (m))) return k; |
|
576 |
MMechostr (MSKDEBUG, "\nGBASE library loaded !\n"); |
|
577 |
|
|
578 |
return k; |
|
579 |
} |
|
580 |
|
|
581 |
int SCOLfreeGBASE () |
|
582 |
{ |
|
583 |
GBaseRelease (); |
|
584 |
return 0; |
|
585 |
} |
|
586 |
|
|
587 |
#else |
|
588 |
#error no platform supported |
|
589 |
#endif |
|
590 |
|
Also available in: Unified diff
- Renaming dll entry/exit points to ScolLoadPlugin & ScolUnloadPlugin for all others dll, need recompiling.
ATTENTION: you must change your usm.ini!