Changeset b6f537 in git for Singular/tesths.cc


Ignore:
Timestamp:
Sep 21, 1999, 6:40:16 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
212d09b90045920b3214c1edb67fdc3d3cdd28c1
Parents:
62b9a81f29192223ddf7f533eaee4293ed7ee63b
Message:
* resource file loading


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

Legend:

Unmodified
Added
Removed
  • Singular/tesths.cc

    r62b9a8 rb6f537  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: tesths.cc,v 1.73 1999-09-21 14:44:59 obachman Exp $ */
     4/* $Id: tesths.cc,v 1.74 1999-09-21 16:40:16 obachman Exp $ */
    55
    66/*
     
    181181  {
    182182    char buf[MAXPATHLEN];
    183     FILE * rc=myfopen(".singularrc","r");
    184     if (rc!=NULL)
    185     {
     183    FILE * rc = feFopen("." DIR_SEPP ".singularrc", "r", buf);
     184    if (rc == NULL) rc = feFopen("~" DIR_SEPP ".singularrc", "r", buf);
     185    if (rc == NULL) rc = feFopen(".singularrc", "r", buf);
     186   
     187    if (rc != NULL)
     188    {
     189
     190      if (BVERBOSE(V_LOAD_LIB))
     191        Print("// ** executing %s\n", buf);
    186192      fclose(rc);
    187       newFile(".singularrc");
    188     }
    189     else
    190     {
    191       char *home = getenv("HOME");
    192       if (home != NULL)
    193       {
    194         strcpy(buf, home);
    195         strcat(buf, "/.singularrc");
    196         rc = myfopen(buf, "r");
    197         if (rc != NULL)
    198         {
    199           fclose(rc);
    200           newFile(buf);
    201         }
    202       }
    203     }
    204     //
    205     FILE *fd = feFopen(".singularrc", "r", buf, FALSE, TRUE);
    206     if (fd != NULL)
    207     {
    208       fclose(fd);
    209193      newFile(buf);
    210194    }
Note: See TracChangeset for help on using the changeset viewer.