Changeset 78a9c9 in git for Singular


Ignore:
Timestamp:
Jan 10, 2022, 6:06:25 PM (2 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
676e2a091749a42bee06cf6f1c818c7058262096
Parents:
5c29ad95d24d1484c07c51e546825480eccc41b0
Message:
storing/using history in .singularhist by default
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/dyn_modules/machinelearning/machinelearning.cc

    r5c29ad r78a9c9  
    66#include "Singular/ipid.h"
    77#include "Singular/mod_lib.h"
     8#include "kernel/oswrapper/feread.h"
    89
    910#ifdef HAVE_PYTHON
     
    1617        int lengths[5];
    1718        char *filename = getenv("SINGULARHIST");
    18         if (filename==NULL) filename=(char*)"~/.history";
     19        if (filename==NULL) filename=SINGULARHIST_FILE;
    1920        int i;
    2021        lists L = (lists)omAllocBin(slists_bin);
     
    4041        #ifdef HAVE_OMALLOC
    4142        ml_make_prediction(filename, buffer, lengths, _omStrDup);
    42         #else /*xalloc*/
     43        #else /*xalloc*/
    4344        ml_make_prediction(filename, buffer, lengths, omStrDup);
    44         #endif
     45        #endif
    4546
    4647        L->Init(5);
     
    6667{
    6768        char *filename = getenv("SINGULARHIST");
    68         if (filename==NULL)
    69         {
    70           WarnS("SINGULARHIST is not set - no history available, using ~/.history");
    71         }
     69        if (filename==NULL)
     70        {
     71          WarnS("SINGULARHIST is not set - no history available, using ~/.singularhist");
     72        }
    7273        // this is the initialization routine of the module
    7374        // adding the routine predictHelp:
  • Singular/misc_ip.cc

    r5c29ad r78a9c9  
    11191119    }
    11201120#endif   // HAVE_SIMPLEIPC
    1121     fe_reset_input_mode();
    11221121    monitor(NULL,0);
    11231122#ifdef PAGE_TEST
Note: See TracChangeset for help on using the changeset viewer.