Changeset 35d0c19 in git
- Timestamp:
- Oct 2, 2014, 10:40:16 AM (9 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- d2c687e51cd1c5a8331e347267ee0939a40ed433
- Parents:
- f4c840ef54e2d488440c753600a24efad35e9652
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-10-02 10:40:16+02:00
- git-committer:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2014-10-02 10:42:02+02:00
- Files:
-
- 4 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
COPYING
rf4c840 r35d0c19 14 14 15 15 Some single files have a copyright given within the file: 16 Singular/links/ndbm.* (BSD) , Singular/htmlhelp.h (LGPL 2.1+)16 Singular/links/ndbm.* (BSD) 17 17 18 18 The following software modules shipped with SINGULAR have their own -
Singular/COPYING
rf4c840 r35d0c19 18 18 19 19 Some single files have a copyright given within the file: 20 Singular/ndbm.* (BSD) , Singular/htmlhelp.h (LGPL 2.1+)20 Singular/ndbm.* (BSD). 21 21 22 22 This program is distributed in the hope that it will be useful, but -
Singular/LIB/help.cnf
rf4c840 r35d0c19 25 25 # the default help browsers builtin, dummy and emacs are always 26 26 # available and should NOT be mentioned here 27 # __CYGWIN__: has additional default browsers: htmlhelp, html and winhlp28 # also not mentioned here29 27 #---------------------------------------------------- 30 28 htmlview!xDhE:htmlview:!htmlview %h & -
Singular/Makefile.am
rf4c840 r35d0c19 55 55 links/silink.cc\ 56 56 links/sing_dbm.cc\ 57 sing_win.cc\58 57 links/slInit_Static.cc\ 59 58 links/ssiLink.cc\ … … 83 82 gms.h \ 84 83 grammar.h \ 85 htmlhelp.h \86 84 idrec.h \ 87 85 ipconv.h \ … … 109 107 links/silink.h \ 110 108 links/sing_dbm.h \ 111 sing_win.h \112 109 links/slInit.h \ 113 110 links/ssiLink.h \ -
Singular/cntrlc.h
rf4c840 r35d0c19 8 8 */ 9 9 #include <setjmp.h> 10 #include <misc/auxiliary.h> 10 11 #include <kernel/structs.h> 11 12 -
Singular/emacs.cc
rf4c840 r35d0c19 9 9 10 10 11 #ifdef __CYGWIN__ 12 #define BOOLEAN boolean 13 #endif 11 14 #include <kernel/mod2.h> 12 15 … … 39 42 #endif 40 43 41 #ifndef BOOLEAN42 #define BOOLEAN int43 #endif44 44 #ifndef FALSE 45 45 #define FALSE 0 -
Singular/fehelp.cc
rf4c840 r35d0c19 83 83 static BOOLEAN heEmacsInit(int,int); static void heEmacsHelp(heEntry hentry,int); 84 84 85 #ifdef __CYGWIN__86 static void heHtmlHelp(heEntry hentry,int);87 static void heWinHelp(heEntry hentry,int);88 static void heWinHtmlHelp(heEntry hentry,int);89 #include "sing_win.h"90 #endif91 92 85 static heBrowser heCurrentHelpBrowser = NULL; 93 86 static int heCurrentHelpBrowserIndex= -1; … … 137 130 if (heCurrentHelpBrowser == NULL) feHelpBrowser(NULL, 0); 138 131 assume(heCurrentHelpBrowser != NULL); 139 #ifdef __CYGWIN__140 if (strcmp(heCurrentHelpBrowser->browser,"htmlhelp")==0)141 {142 // In Windows always let htmlhelp handle request, if standard143 strcpy(hentry.key, str);144 *hentry.node = '\0';145 *hentry.url = '\0';146 hentry.chksum = 0;147 heBrowserHelp(&hentry);148 }149 #endif150 132 151 133 StringSetS(""); … … 216 198 } 217 199 fseek(f,0,SEEK_SET); 218 #ifdef __CYGWIN__219 // for the 7(!) default browsers and make htmlhelp the default default220 heHelpBrowsers=(heBrowser_s*)omAlloc0((br+7)*sizeof(heBrowser_s));221 br = 0;222 heHelpBrowsers[br].browser="htmlhelp";223 heHelpBrowsers[br].init_proc=heGenInit;224 heHelpBrowsers[br].help_proc=heWinHtmlHelp;225 heHelpBrowsers[br].required="C";226 // heHelpBrowsers[br].action=NULL;227 br++;228 #else229 200 // for the 4(!) default browsers 230 201 heHelpBrowsers=(heBrowser_s*)omAlloc0((br+4)*sizeof(heBrowser_s)); 231 202 br = 0; 232 #endif233 203 while (fgets( buf, sizeof(buf), f)) 234 204 { … … 260 230 else 261 231 { 262 #ifdef __CYGWIN__263 // for the 7(!) default browsers264 heHelpBrowsers=(heBrowser_s*)omAlloc0(7*sizeof(heBrowser_s));265 heHelpBrowsers[br].browser="htmlhelp";266 heHelpBrowsers[br].init_proc=heGenInit;267 heHelpBrowsers[br].help_proc=heWinHtmlHelp;268 heHelpBrowsers[br].required="C";269 // heHelpBrowsers[br].action=NULL;270 br++;271 #else272 232 // for the 4(!) default browsers 273 233 heHelpBrowsers=(heBrowser_s*)omAlloc0(4*sizeof(heBrowser_s)); 274 #endif 275 } 276 #ifdef __CYGWIN__ 277 heHelpBrowsers[br].browser="winhlp"; 278 heHelpBrowsers[br].init_proc=heGenInit; 279 heHelpBrowsers[br].help_proc=heWinHelp; 280 heHelpBrowsers[br].required="h"; 281 //heHelpBrowsers[br].action=NULL; 282 br++; 283 heHelpBrowsers[br].browser="html"; 284 heHelpBrowsers[br].init_proc=heGenInit; 285 heHelpBrowsers[br].help_proc=heHtmlHelp; 286 heHelpBrowsers[br].required="h"; 287 //heHelpBrowsers[br].action=NULL; 288 br++; 289 #endif 234 } 290 235 heHelpBrowsers[br].browser="builtin"; 291 236 heHelpBrowsers[br].init_proc=heGenInit; … … 326 271 327 272 // First, try emacs, if emacs-option is set 328 // Under Win, always use html329 #ifndef __CYGWIN__330 273 if (feOptValue(FE_OPT_EMACS) != NULL) 331 274 { … … 343 286 i=0; 344 287 } 345 #endif346 288 while (heHelpBrowsers[i].browser != NULL) 347 289 { … … 935 877 } 936 878 937 #ifdef __CYGWIN__938 939 static void heHtmlHelp(heEntry hentry, int br)940 {941 char url[MAXPATHLEN];942 char* html_dir = feResource('h' /*"HtmlDir"*/);943 sprintf(url, "%s/%s",944 (html_dir != NULL ? html_dir : feResource('u' /*"ManualUrl"*/)),945 (hentry!=NULL && *(hentry->url)!='\0' ? hentry->url : "index.htm"));946 947 heOpenWinntUrl(url, (html_dir != NULL ? 1 : 0));948 }949 950 static void heWinHtmlHelp(heEntry hentry, int br)951 // Function to call the Microsoft HTML Help System952 // Uses API Call Function in sing_win.cc953 {954 char keyw[MAX_HE_ENTRY_LENGTH];955 if ((hentry!=NULL)&&(hentry->key!=NULL))956 strcpy(keyw,hentry->key);957 else958 strcpy(keyw," ");959 char* helppath = feResource('C' /*"CHM Datei"*/);960 heOpenWinHtmlHelp(keyw,helppath);961 }962 963 static void heWinHelp(heEntry hentry, int br)964 {965 char keyw[MAX_HE_ENTRY_LENGTH];966 if ((hentry!=NULL)&&(hentry->key!=NULL))967 strcpy(keyw,hentry->key);968 else969 strcpy(keyw," ");970 char* helppath = feResource('h' /*"HtmlDir"*/);971 const char *filename="/Manual.hlp";972 int helppath_len=0;973 if (helppath!=NULL) helppath_len=strlen(helppath);974 char *callpath=(char *)omAlloc0(helppath_len+strlen(filename)+1);975 if ((helppath!=NULL) && (*helppath>' '))976 strcpy(callpath,helppath);977 strcat(callpath,filename);978 heOpenWinntHlp(keyw,callpath);979 omfree(callpath);980 }981 #endif982 879 static void heGenHelp(heEntry hentry, int br) 983 880 { … … 1094 991 } 1095 992 1096 #ifdef __CYGWIN__1097 static void heHtmlHelp(heEntry hentry)1098 {1099 char url[MAXPATHLEN];1100 char* html_dir = feResource('h' /*"HtmlDir"*/);1101 sprintf(url, "%s/%s",1102 (html_dir != NULL ? html_dir : feResource('u' /*"ManualUrl"*/)),1103 (hentry!=NULL && *(hentry->url)!='\0' ? hentry->url : "index.htm"));1104 1105 heOpenWinntUrl(url, (html_dir != NULL ? 1 : 0));1106 }1107 1108 static void heWinHelp(heEntry hentry)1109 {1110 char keyw[MAX_HE_ENTRY_LENGTH];1111 if ((hentry!=NULL)&&(hentry->key!=NULL))1112 strcpy(keyw,hentry->key);1113 else1114 strcpy(keyw," ");1115 char* helppath = feResource('h' /*"HtmlDir"*/);1116 const char *filename="/Manual.hlp";1117 int helppath_len=0;1118 if (helppath!=NULL) helppath_len=strlen(helppath);1119 char *callpath=(char *)omAlloc0(helppath_len+strlen(filename)+1);1120 if ((helppath!=NULL) && (*helppath>' '))1121 strcpy(callpath,helppath);1122 strcat(callpath,filename);1123 heOpenWinntHlp(keyw,callpath);1124 omfree(callpath);1125 }1126 #endif1127 1128 993 static BOOLEAN heDummyInit(int /*warn*/, int /*br*/) 1129 994 { -
Singular/test.cc
rf4c840 r35d0c19 118 118 #include <kernel/spectrum/GMPrat.h> 119 119 120 // #include "htmlhelp.h" // For Windows //121 120 #include <kernel/combinatorics/hutil.h> 122 121 // #include <kernel/Ideal.h> // Too old? … … 202 201 #include <Singular/links/silink.h> 203 202 #include <Singular/links/sing_dbm.h> 204 #include <Singular/sing_win.h>205 203 #include <Singular/links/slInit.h> 206 204 #include <Singular/links/ssiLink.h> -
doc/COPYING.texi
rf4c840 r35d0c19 34 34 35 35 Some single files have a copyright given within the file: 36 Singular/ndbm.* (BSD) , Singular/htmlhelp.h (LGPL 2.1+)36 Singular/ndbm.* (BSD) 37 37 38 38 The following software modules shipped with @sc{Singular} have their own copyright: -
kernel/mod2.h
rf4c840 r35d0c19 13 13 # include <singularconfig.h> 14 14 15 # include <misc/auxiliary.h>15 //# include <misc/auxiliary.h> 16 16 17 17 #define SINGULAR_MAJOR_VERSION 4 -
libpolys/COPYING
rf4c840 r35d0c19 18 18 19 19 Some single files have a copyright given within the file: 20 Singular/ndbm.* (BSD) , Singular/htmlhelp.h (LGPL 2.1+)20 Singular/ndbm.* (BSD) 21 21 22 22 The following software used with SINGULAR have their own copyright: the -
resources/feResource.cc
rf4c840 r35d0c19 87 87 {"IdxFile", 'x', feResFile, "SINGULAR_IDX_FILE", "%D/doc/singular.idx", (char *)""}, 88 88 {"HtmlDir", 'h', feResDir, "SINGULAR_HTML_DIR", "%D/singular/html", (char *)""}, 89 #ifdef __CYGWIN__90 {"HtmlHelpFile",'C', feResFile, "SINGULAR_CHM_FILE", "%r/doc/Manual.chm", (char *)""},91 #endif92 89 {"ManualUrl", 'u', feResUrl, "SINGULAR_URL", "http://www.singular.uni-kl.de/Manual/", (char *)""}, 93 90 {"ExDir", 'm', feResDir, "SINGULAR_EXAMPLES_DIR","%r/examples", (char *)""}, -
resources/feResource.h
rf4c840 r35d0c19 55 55 extern char* feArgv0; 56 56 57 const char fePathSep = 58 /* not really cygwin, applies to all windows systems:*/ 59 #if (defined(__CYGWIN__)) 60 ';' 61 #else 62 ':' 63 #endif 64 ; 65 66 57 const char fePathSep = ':' ; 67 58 68 59 #endif
Note: See TracChangeset
for help on using the changeset viewer.