Revision 3137
Added by stephane about 13 years ago
scol_glib_pregex.c | ||
---|---|---|
618 | 618 |
return 0; |
619 | 619 |
} |
620 | 620 |
|
621 |
#if ((defined _WIN32) || (defined __WIN32__)) |
|
622 | 621 |
|
623 |
__declspec (dllexport) int SCOLloadPCRE (mmachine m, cbmachine w) |
|
624 |
{ |
|
625 |
int k = 0; |
|
626 |
ww = w; |
|
627 |
mm = m; |
|
628 | 622 |
|
629 |
MMechostr (MSKDEBUG, "\nPCRE library loading .... !\n"); |
|
630 |
SCOLinitplugin (w); |
|
631 |
if ((k = SCOLinitPcreClass (m))) return k; |
|
632 |
MMechostr(MSKDEBUG, "\nPCRE library loaded !\n"); |
|
633 |
return k; |
|
634 |
} |
|
635 | 623 |
|
636 |
__declspec (dllexport) int SCOLfreePCRE () |
|
637 |
{ |
|
638 |
PcreRelease (); |
|
639 |
return 0; |
|
640 |
} |
|
641 |
|
|
642 |
|
|
643 |
|
|
644 |
|
|
645 |
|
|
646 |
/* Version GNU / Linux */ |
|
624 |
#if ((defined _WIN32) || (defined __WIN32__)) |
|
625 |
# define SCOL_GBASE_PLUGIN_EXPORT __declspec (dllexport) |
|
647 | 626 |
#elif ((defined linux) || (defined __linux)) |
627 |
# define SCOL_GBASE_PLUGIN_EXPORT |
|
628 |
#else |
|
629 |
# error no platform supported |
|
630 |
#endif |
|
648 | 631 |
|
649 |
int SCOLloadPCRE (mmachine m)
|
|
632 |
SCOL_GBASE_PLUGIN_EXPORT int SCOLloadGBASE(mmachine m, cbmachine w)
|
|
650 | 633 |
{ |
651 |
int k = 0;
|
|
634 |
ww = w;
|
|
652 | 635 |
mm = m; |
653 | 636 |
|
654 |
MMechostr (MSKDEBUG, "\nPCRE library loading !\n"); |
|
655 |
if ((k = SCOLinitPcreClass (m))) return k; |
|
656 |
MMechostr (MSKDEBUG, "\nPCRE library loaded !\n"); |
|
657 |
|
|
658 |
return k; |
|
637 |
SCOLinitplugin(w); |
|
638 |
return SCOLinitPcreClass (m); |
|
659 | 639 |
} |
660 | 640 |
|
661 |
int SCOLfreePCRE ()
|
|
641 |
SCOL_GBASE_PLUGIN_EXPORT int SCOLfreeGBASE()
|
|
662 | 642 |
{ |
663 |
MMechostr(MSKDEBUG, "\nPCRE library release !\n"); |
|
664 |
|
|
665 | 643 |
PcreRelease (); |
666 | 644 |
return 0; |
667 | 645 |
} |
668 | 646 |
|
669 |
#else |
|
670 |
#error no platform supported |
|
671 |
#endif |
Also available in: Unified diff
LIB_GBASE
LIB_GNET
LIB_KEYFILE
LIB_PCRE