pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:94:   static const char _master_location[MAXPATHLEN+CONSTANT_STRLEN(MASTER_COOKIE)] = MASTER_COOKIE;   static const char *master_file_location = _master_location + CONSTANT_STRLEN(MASTER_COOKIE);      static void set_master(const char *file)   {    if( master_file_location != _master_location+CONSTANT_STRLEN(MASTER_COOKIE))    free((void*)master_file_location);   #ifdef DEBUG_MALLOC   #undef strdup /* We can't use dmalloc strdup before pike_memory is initialized. */   #endif /* DEBUG_MALLOC */ - #if !defined(__NT__) && !defined(strdup) + #if defined(__NT__) && !defined(strdup)    /* strdup() is broken on WIN32, but _strdup() isn't... */   #define strdup _strdup   #endif /* __NT__ */    master_file_location = strdup( file );   }      #ifdef __NT__   static void get_master_key(HKEY cat)   {    HKEY k;