Roxen.git / server / tools / ntroxen / startdll / cmdline.cpp

version» Context lines:

Roxen.git/server/tools/ntroxen/startdll/cmdline.cpp:1:   // cmdline.cpp: implementation of the CCmdLine class.   // - // $Id: cmdline.cpp,v 1.21 2008/08/15 12:33:55 mast Exp $ + // $Id: cmdline.cpp,v 1.22 2010/11/03 11:39:52 stewa Exp $   //   //////////////////////////////////////////////////////////////////////      #include "stdafx.h"   #include "startdll.h"   #include "cmdline.h"   #include "roxen.h"   #include "enumproc.h"      #ifdef _DEBUG
Roxen.git/server/tools/ntroxen/startdll/cmdline.cpp:18:      static char *defPikeArgs[] = {       // List terminator    NULL   };      static char *defPikeDefines[] = {    "-DRAM_CACHE",    "-DENABLE_THREADS", +  "-DNEW_RAM_CACHE", +  "-DHTTP_COMPRESSION",       // List terminator    NULL   };      static char *defRoxenArgs[] = {       // List terminator    NULL   };
Roxen.git/server/tools/ntroxen/startdll/cmdline.cpp:396:    " .B--pid-file=FILEB.: Store the roxen and startscript pids in this",    " file. Defaults to .B../configurations/_roxen_pidB..",    "",    " .B--silent-startB.: Inhibits output to stdout. If used,",    " this argument must be the first one.",   */    "",    " .B--without-ram-cacheB.: Do not use an in-RAM cache to speed",    " things up. Saves RAM at the cost of speed.",    "", +  " .B--without-new-ram-cacheB.: Do not use a the new RAM cache", +  " introduced in Roxen 5.0-release4.", +  "",    " .B--without-ram-cache-statB.: Disable the stat that is usually done",    " for files in the ram cache to ensure that",    " they are not changed before they are sent.",    " Improves performance at the cost of constant",    " aggravation if the site is edited. Useful for",    " truly static sites.",    "", -  +  " .B--without-http-compressionB.: Disable gzip compression for HTTP requests.", +  "",    " .B--with-threadsB.: If threads are available, use them.",    "",    " .B--without-threadsB.: Even if threads are enabled by default,",    " disable them.",    "",    " .B--with-profileB.: Store runtime profiling information on",    " a directory basis. This information is",    " not saved on permanent storage, it is only",    " available until the next server restart",    " This will enable a new 'action' in the",
Roxen.git/server/tools/ntroxen/startdll/cmdline.cpp:975:    //'--without-ram-cache'|'--disable-ram-cache')    // DEFINES="`echo $DEFINES | sed -e 's/-DRAM_CACHE//g'`"    if (Match(*argv, "--without-ram-cache", NULL, NULL) ||    Match(*argv, "--disable-ram-cache", NULL, NULL) )    {    m_saPikeDefines.Remove("-DRAM_CACHE");    type = eArgPike;    return 1;    }    +  //'--without-new-ram-cache'|'--disable-new-ram-cache') +  // DEFINES="`echo $DEFINES | sed -e 's/-DNEW_RAM_CACHE//g'`" +  if (Match(*argv, "--without-new-ram-cache", NULL, NULL) || +  Match(*argv, "--disable-new-ram-cache", NULL, NULL) ) +  { +  m_saPikeDefines.Remove("-DNEW_DRAM_CACHE"); +  type = eArgPike; +  return 1; +  } +  +  //'--without-http-compression'|'--disable-http-compression') +  // DEFINES="`echo $DEFINES | sed -e 's/-DHTTP_COMPRESSION//g'`" +  //;; +  if (Match(*argv, "--without-http-compression", NULL, NULL) || +  Match(*argv, "--disable-http-compression", NULL, NULL) ) +  { +  m_saPikeDefines.Remove("-DHTTP_COMPRESSION"); +  type = eArgPike; +  return 1; +  } +     //'--without-ram-cache-stat'|'--disable-ram-cache-stat')    // DEFINES="`-DRAM_CACHE_ASUME_STATIC_CONTENT`"    if (Match(*argv, "--without-ram-cache-stat", NULL, NULL) ||    Match(*argv, "--disable-ram-cache-stat", NULL, NULL) )    {    m_saPikeDefines.Add("-DRAM_CACHE_ASUME_STATIC_CONTENT");    type = eArgPike;    return 1;    }