Changeset 78a9c9 in git for kernel/oswrapper/fereadl.c
- Timestamp:
- Jan 10, 2022, 6:06:25 PM (2 years ago)
- Branches:
- (u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
- Children:
- 676e2a091749a42bee06cf6f1c818c7058262096
- Parents:
- 5c29ad95d24d1484c07c51e546825480eccc41b0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.