pike.git / src / main.c

version» Context lines:

pike.git/src/main.c:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: main.c,v 1.240 2010/06/22 12:37:19 grubba Exp $ + || $Id: main.c,v 1.241 2010/06/23 16:22:54 grubba Exp $   */      #include "global.h"   #include "fdlib.h"   #include "backend.h"   #include "module.h"   #include "object.h"   #include "lex.h"   #include "pike_types.h"   #include "builtin_functions.h"
pike.git/src/main.c:280: Inside #if defined(LIBPIKE)
   memcpy(libpike_file, master_location + CONSTANT_STRLEN(MASTER_COOKIE),    sizeof(master_location) - CONSTANT_STRLEN(MASTER_COOKIE));    for (p = dir = libpike_file; *p; p++) {    if ((*p == '/')   #ifdef __NT__    || (*p == '\\')   #endif /* __NT__ */    )    dir = p+1;    } -  if ((p + CONSTANT_STRLEN("pike.so")) >= libpike_file + 2*MAXPATHLEN) { +  if ((dir + CONSTANT_STRLEN("pike.so")) >= libpike_file + 2*MAXPATHLEN) {    /* Not likely to happen as long as MASTER_COOKIE is longer than "pike.so".    */    fprintf(stderr, "Too long path to pike.so.\n");    exit(1);    }    /* Don't forget the NUL! */ -  memcpy(p, "pike.so", CONSTANT_STRLEN("pike.so") + 1); +  memcpy(dir, "pike.so", CONSTANT_STRLEN("pike.so") + 1);    }   #endif /* LIBPIKE */   }      int main(int argc, char **argv)   {    JMP_BUF back;    int e, num;    char *p;