Changeset 6fb39a in git


Ignore:
Timestamp:
Aug 10, 1999, 7:09:32 PM (25 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
12ce63682151db9a17fbfe965f46cae11f39e725
Parents:
5f5e2b8cc93bf9b4b5c99b57bc595bbb31bae87f
Message:
* hannes: minor optimizations


git-svn-id: file:///usr/local/Singular/svn/trunk@3415 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fehelp.cc

    r5f5e2b8 r6fb39a  
    110110  BOOLEAN key_is_regexp = (strchr(str, '*') != NULL);
    111111  heEntry_s hentry;
    112   char* idxfile = feResource("IdxFile");
     112  char* idxfile = feResource('x' /*"IdxFile"*/);
    113113 
    114114  // Try exact match of help string with key in index
     
    682682static BOOLEAN heNetscapeInit(int warn)
    683683{
    684   if (feResource("netscape", warn) == NULL)
     684  if (feResource('N' /*"netscape"*/, warn) == NULL)
    685685  {
    686686    if (warn) WarnS("'netscape' help browser not available: no 'netscape' program found");
     
    694694  }
    695695 
    696   if (feResource("HtmlDir", warn) == NULL)
     696  if (feResource('h' /*"HtmlDir"*/, warn) == NULL)
    697697  {
    698698    if (warn) WarnS("no local HtmlDir found");
    699     if (warn) Warn("using %s instead", feResource("ManualUrl", warn));
     699    if (warn) Warn("using %s instead", feResource('u' /*"ManualUrl"*/, warn));
    700700  }
    701701  return TRUE;
     
    705705  char sys[MAX_SYSCMD_LEN];
    706706  char url[MAXPATHLEN];
    707   char* htmldir = feResource("HtmlDir");
     707  char* htmldir = feResource('h' /*"HtmlDir"*/);
    708708  char* urltype;
    709709 
     
    711711  {
    712712    urltype = "";
    713     htmldir = feResource("ManualUrl");
     713    htmldir = feResource('u' /*"ManualUrl"*/);
    714714  }
    715715  else
     
    727727  }
    728728  sprintf(sys, "%s --remote 'OpenUrl(%s)' > /dev/null 2>&1",
    729           feResource("netscape"), url);
     729          feResource('N' /*"netscape"*/), url);
    730730 
    731731  // --remote exits with status != 0 if netscaep isn't already running
    732732  if (system(sys) != 0)
    733733  {
    734     sprintf(sys, "%s %s &", feResource("netscape"), url);
     734    sprintf(sys, "%s %s &", feResource('N' /*"netscape"*/), url);
    735735    system(sys);
    736736  }
Note: See TracChangeset for help on using the changeset viewer.