Changeset 78a9c9 in git
- Timestamp:
- Jan 10, 2022, 6:06:25 PM (17 months ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 676e2a091749a42bee06cf6f1c818c7058262096
- Parents:
- 5c29ad95d24d1484c07c51e546825480eccc41b0
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/machinelearning/machinelearning.cc
r5c29ad r78a9c9 6 6 #include "Singular/ipid.h" 7 7 #include "Singular/mod_lib.h" 8 #include "kernel/oswrapper/feread.h" 8 9 9 10 #ifdef HAVE_PYTHON … … 16 17 int lengths[5]; 17 18 char *filename = getenv("SINGULARHIST"); 18 if (filename==NULL) filename=(char*)"~/.history";19 if (filename==NULL) filename=SINGULARHIST_FILE; 19 20 int i; 20 21 lists L = (lists)omAllocBin(slists_bin); … … 40 41 #ifdef HAVE_OMALLOC 41 42 ml_make_prediction(filename, buffer, lengths, _omStrDup); 42 43 #else /*xalloc*/ 43 44 ml_make_prediction(filename, buffer, lengths, omStrDup); 44 45 #endif 45 46 46 47 L->Init(5); … … 66 67 { 67 68 char *filename = getenv("SINGULARHIST"); 68 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 } 72 73 // this is the initialization routine of the module 73 74 // adding the routine predictHelp: -
Singular/misc_ip.cc
r5c29ad r78a9c9 1119 1119 } 1120 1120 #endif // HAVE_SIMPLEIPC 1121 fe_reset_input_mode();1122 1121 monitor(NULL,0); 1123 1122 #ifdef PAGE_TEST -
doc/NEWS.texi
r5c29ad r78a9c9 25 25 @c @itemize 26 26 @c @end itemize 27 @c 27 @c 28 28 @c New libraries: 29 @c 29 @c 30 30 @c @itemize 31 31 @c @end itemize … … 41 41 Changes in the kernel/build system: 42 42 @itemize 43 @item input history is stored by default in @code{.singularhist} (@nref{SINGULARHSIT}). 43 44 @item ABI change: all number routines (@code{n_...}) have only @code{coeffs} as last argument, 44 45 functions with @code{ring} as last argument are removed … … 129 130 @itemize 130 131 @item chern.lib: new version (@nref{chern_lib}) 131 @item grobcov.lib: new version (@nref{grobcov_lib}), 132 new functions @nref{ConsLevels}, @nref{Levels}, @nref{Grob1Levels}, 132 @item grobcov.lib: new version (@nref{grobcov_lib}), 133 new functions @nref{ConsLevels}, @nref{Levels}, @nref{Grob1Levels}, 133 134 @nref{DifConsLCSets} 134 135 @end itemize -
kernel/oswrapper/feread.cc
r5c29ad r78a9c9 367 367 using_history(); 368 368 char *p = getenv("SINGULARHIST"); 369 if (p != NULL) 369 if (p==NULL) p=SINGULARHIST_FILE; 370 if (strlen(p) != 0) 370 371 { 371 372 read_history (p); -
kernel/oswrapper/feread.h
r5c29ad r78a9c9 9 9 10 10 EXTERN_VAR char prompt_char; /*1 either '>' or '.'*/ 11 12 #define SINGULARHIST_FILE ".singularhist" 11 13 12 14 #ifdef __cplusplus -
kernel/oswrapper/fereadl.c
r5c29ad r78a9c9 12 12 #include "kernel/mod2.h" 13 13 #include "omalloc/omalloc.h" 14 #include "kernel/oswrapper/feread.h" 14 15 15 16 #ifdef HAVE_FEREAD … … 829 830 #if defined(HAVE_DYN_RL) 830 831 char *p = getenv("SINGULARHIST"); 831 if ((p != NULL) && (fe_history_total_bytes != NULL)) 832 if (p==NULL) p=SINGULARHIST_FILE; 833 if ((strlen(p) != 0) && (fe_history_total_bytes != NULL)) 832 834 { 833 835 if((*fe_history_total_bytes)()!=0) 834 836 (*fe_write_history) (p); 835 837 } 836 #endif 837 #if defined(HAVE_READLINE) && !defined(HAVE_FEREAD) && !defined(HAVE_DYN_RL) 838 #elif defined(HAVE_READLINE) && !defined(HAVE_FEREAD) && !defined(HAVE_DYN_RL) 838 839 char *p = getenv("SINGULARHIST"); 839 if (p != NULL) 840 if (p==NULL) p=SINGULARHIST_FILE; 841 if (strlen(p) != 0) 840 842 { 841 843 if(history_total_bytes()!=0) 842 844 write_history (p); 843 845 } 844 #endif 845 #if defined(HAVE_FEREAD) 846 #elif defined(HAVE_FEREAD) 846 847 #ifndef HAVE_ATEXIT 847 848 fe_reset_fe(NULL,NULL);
Note: See TracChangeset
for help on using the changeset viewer.