Project

General

Profile

« Previous | Next » 

Revision 3137

Added by stephane almost 13 years ago

LIB_GBASE
LIB_GNET
LIB_KEYFILE
LIB_PCRE

View differences:

scol_gbase.c
527 527
}
528 528

  
529 529

  
530
/*
531
 * Load and free the regular expression library
532
 * Plateforms supported : MS Windows and GNU / Linux
533
 */
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
541 530

  
542
SCOL_GBASE_PLUGIN_EXPORT int SCOLloadGBASE(mmachine m, cbmachine w)
543
{
544
    ww = w;
545
    mm = m;
546 531

  
547
    SCOLinitplugin(w);
548
    return SCOLinitGbaseClass(m);
549
}
550

  
551
SCOL_GBASE_PLUGIN_EXPORT int SCOLfreeGBASE()
532
int GBaseRelease ()
552 533
{
534
    MMechostr (0, "\nGBASE library released !\n");
553 535
    return 0;
554 536
}
537

  
538
#if ((defined _WIN32) || (defined __WIN32__))
539
# define SCOL_GBASE_PLUGIN_EXPORT __declspec (dllexport)
540
#elif ((defined linux) || (defined __linux))
541
# define SCOL_GBASE_PLUGIN_EXPORT
542
#else
543
# error no platform supported
544
#endif
545

  
546
SCOL_GBASE_PLUGIN_EXPORT int SCOLloadGBASE(mmachine m, cbmachine w)
547
{
548
    ww = w;
549
    mm = m;
550

  
551
    SCOLinitplugin(w);
552
    return SCOLinitGbaseClass(m);
553
}
554

  
555
SCOL_GBASE_PLUGIN_EXPORT int SCOLfreeGBASE()
556
{
557
    return 0;
558
}

Also available in: Unified diff