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.231 2008/06/29 10:40:55 mast Exp $ + || $Id: main.c,v 1.232 2008/07/31 18:01:48 mast 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:461:    set_pike_runtime_options(RUNTIME_CHECK_TYPES, RUNTIME_CHECK_TYPES);    p++;    goto more_r_flags;       case 'T':    set_pike_runtime_options(RUNTIME_STRICT_TYPES,    RUNTIME_STRICT_TYPES);    p++;    goto more_r_flags;    +  case 'l': +  set_pike_runtime_options (RUNTIME_ERROR_DIALOGS, +  RUNTIME_ERROR_DIALOGS); +  p++; +  goto more_d_flags; +     default:    p++;    break;    }    break;       case 'a':    if(p[1]>='0' && p[1]<='9')    a_flag+=STRTOL(p+1,&p,10);    else
pike.git/src/main.c:532:    }      #ifndef PIKE_MUTEX_ERRORCHECK    if (set_pike_debug_options(0,0) & ERRORCHECK_MUTEXES)    fputs ("Warning: -dT (error checking mutexes) not supported on this system.\n",    stderr);   #endif    if (d_flag)    set_pike_debug_options(ERRORCHECK_MUTEXES, ERRORCHECK_MUTEXES);    + #ifdef HAVE_SETERRORMODE +  if (!(runtime_options & RUNTIME_ERROR_DIALOGS)) { +  /* This avoids popups when LoadLibrary fails to find a dll. +  * +  * Note that the popup is the _only_ way to see which dll (loaded +  * indirectly by dependencies from the one in the LoadLibrary +  * call) that Windows didn't find. :( Hence the -rl runtime option +  * to turn it on. +  * +  * Note: This setting is process global. */ +  SetErrorMode (SEM_FAILCRITICALERRORS | +  /* Maybe set this too? Don't know exactly when it +  * has effect. /mast */ +  /*SEM_NOOPENFILEERRORBOX | */ +  GetErrorMode()); +  } + #endif +     init_pike_runtime(exit);       /* NOTE: Reuse master_location here to avoid duplicates of    * the MASTER_COOKIE string in the binary.    */    add_pike_string_constant("__master_cookie",    master_location, CONSTANT_STRLEN(MASTER_COOKIE));       if(SETJMP(back))    {