Beispiel #1
0
#if   (rup < 10)
#define ruppad "000"
#elif (rup< 100)
#define ruppad "00"
#elif (rup < 1000)
#define ruppad "0"
#else
#define ruppad
#endif

#define VERSION_STR2(a,b,c) " " #a "." #b "." ruppad #c
#define VERSION_STR(a,b,c) VERSION_STR2(a,b,c)

const char szVersion[] =
   "Microsoft (R) Source Library Manager (SLM) Version" VERSION_STR(rmj, rmm, rup)
   "\nCopyright (C) Microsoft 1985-1994. All rights reserved.\n\n";

// ----------------------------- ADDFILE --------------------------------

FT rgftAdd[] = {
    { '&', atFlag, flagErrToOut },
    { '$', atFlag, flagLimitRetry },
    { '!', atFlag, flagCookieOvr },
    { 'f', atFlag, flagForce },
    { 'h', atHelp, 0 },
    { '?', atHelp, 0 },
    { 'v', atFlag, flagVerbose },
    { 'w', atWindows, flagWindowsQuery },
    { 's', atSlmRoot, 0 },
    { 'p', atProjOptSubDir, 0 },
Beispiel #2
0


#include <common/gfal_prototypes.h>
#include <common/gfal_types.h>
#include <common/gfal_common_plugin.h>
#include <common/gfal_common_err_helpers.h>
#include <common/gfal_common_dir_handle.h>
#include <common/gfal_common_file_handle.h>
#include <config/gfal_config_internal.h>

#define XVERSION_STR(x) #x
#define VERSION_STR(x) XVERSION_STR(x)

/* the version should be set by a "define" at the makefile level */
static const char *gfalversion = VERSION_STR(VERSION);



// initialization
__attribute__((constructor))
void core_init(){
#if  (!GLIB_CHECK_VERSION (2, 32, 0))
    if (!g_thread_supported())
      g_thread_init(NULL);
#endif
}