⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 agrepwin.dif

📁 Mehldau和Myer的Agrep3版本
💻 DIF
📖 第 1 页 / 共 3 页
字号:
+!ELSEIF  "$(CFG)" == "Agrep - Win32 Debug"
+
+DEP_CPP_CODEP=\
+	".\agrep.h"\
+	".\codepage.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\codepage.obj" : $(SOURCE) $(DEP_CPP_CODEP) "$(INTDIR)"
+
+
+!ENDIF 
+
+SOURCE=.\compat.c
+
+!IF  "$(CFG)" == "Agrep - Win32 Release"
+
+DEP_CPP_COMPA=\
+	".\agrep.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\compat.obj" : $(SOURCE) $(DEP_CPP_COMPA) "$(INTDIR)"
+
+
+!ELSEIF  "$(CFG)" == "Agrep - Win32 Debug"
+
+DEP_CPP_COMPA=\
+	".\agrep.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\compat.obj" : $(SOURCE) $(DEP_CPP_COMPA) "$(INTDIR)"
+
+
+!ENDIF 
+
+SOURCE=.\delim.c
+
+!IF  "$(CFG)" == "Agrep - Win32 Release"
+
+DEP_CPP_DELIM=\
+	".\agrep.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\delim.obj" : $(SOURCE) $(DEP_CPP_DELIM) "$(INTDIR)"
+
+
+!ELSEIF  "$(CFG)" == "Agrep - Win32 Debug"
+
+DEP_CPP_DELIM=\
+	".\agrep.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\delim.obj" : $(SOURCE) $(DEP_CPP_DELIM) "$(INTDIR)"
+
+
+!ENDIF 
+
+SOURCE=.\dummyfil.c
+
+"$(INTDIR)\dummyfil.obj" : $(SOURCE) "$(INTDIR)"
+
+
+SOURCE=.\follow.c
+DEP_CPP_FOLLO=\
+	".\re.h"\
+	
+
+"$(INTDIR)\follow.obj" : $(SOURCE) $(DEP_CPP_FOLLO) "$(INTDIR)"
+
+
+SOURCE=.\main.c
+
+!IF  "$(CFG)" == "Agrep - Win32 Release"
+
+DEP_CPP_MAIN_=\
+	".\agrep.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\main.obj" : $(SOURCE) $(DEP_CPP_MAIN_) "$(INTDIR)"
+
+
+!ELSEIF  "$(CFG)" == "Agrep - Win32 Debug"
+
+DEP_CPP_MAIN_=\
+	".\agrep.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\main.obj" : $(SOURCE) $(DEP_CPP_MAIN_) "$(INTDIR)"
+
+
+!ENDIF 
+
+SOURCE=.\maskgen.c
+
+!IF  "$(CFG)" == "Agrep - Win32 Release"
+
+DEP_CPP_MASKG=\
+	".\agrep.h"\
+	".\codepage.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\maskgen.obj" : $(SOURCE) $(DEP_CPP_MASKG) "$(INTDIR)"
+
+
+!ELSEIF  "$(CFG)" == "Agrep - Win32 Debug"
+
+DEP_CPP_MASKG=\
+	".\agrep.h"\
+	".\codepage.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\maskgen.obj" : $(SOURCE) $(DEP_CPP_MASKG) "$(INTDIR)"
+
+
+!ENDIF 
+
+SOURCE=.\newmgrep.c
+DEP_CPP_NEWMG=\
+	".\agrep.h"\
+	".\codepage.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	{$(INCLUDE)}"sys\stat.h"\
+	{$(INCLUDE)}"sys\timeb.h"\
+	{$(INCLUDE)}"sys\types.h"\
+	
+
+"$(INTDIR)\newmgrep.obj" : $(SOURCE) $(DEP_CPP_NEWMG) "$(INTDIR)"
+
+
+SOURCE=.\ntdirent.c
+DEP_CPP_NTDIR=\
+	".\ntdirent.h"\
+	
+
+"$(INTDIR)\ntdirent.obj" : $(SOURCE) $(DEP_CPP_NTDIR) "$(INTDIR)"
+
+
+SOURCE=.\parse.c
+DEP_CPP_PARSE=\
+	".\re.h"\
+	
+
+"$(INTDIR)\parse.obj" : $(SOURCE) $(DEP_CPP_PARSE) "$(INTDIR)"
+
+
+SOURCE=.\preproce.c
+
+!IF  "$(CFG)" == "Agrep - Win32 Release"
+
+DEP_CPP_PREPR=\
+	".\agrep.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\preproce.obj" : $(SOURCE) $(DEP_CPP_PREPR) "$(INTDIR)"
+
+
+!ELSEIF  "$(CFG)" == "Agrep - Win32 Debug"
+
+DEP_CPP_PREPR=\
+	".\agrep.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	
+
+"$(INTDIR)\preproce.obj" : $(SOURCE) $(DEP_CPP_PREPR) "$(INTDIR)"
+
+
+!ENDIF 
+
+SOURCE=.\recursiv.c
+DEP_CPP_RECUR=\
+	".\autoconf.h"\
+	".\config.h"\
+	".\ntdirent.h"\
+	{$(INCLUDE)}"sys\stat.h"\
+	{$(INCLUDE)}"sys\types.h"\
+	
+
+"$(INTDIR)\recursiv.obj" : $(SOURCE) $(DEP_CPP_RECUR) "$(INTDIR)"
+
+
+SOURCE=.\sgrep.c
+DEP_CPP_SGREP=\
+	".\agrep.h"\
+	".\codepage.h"\
+	".\config.h"\
+	".\defs.h"\
+	".\re.h"\
+	{$(INCLUDE)}"sys\timeb.h"\
+	
+
+"$(INTDIR)\sgrep.obj" : $(SOURCE) $(DEP_CPP_SGREP) "$(INTDIR)"
+
+
+SOURCE=.\utilitie.c
+DEP_CPP_UTILI=\
+	".\re.h"\
+	
+
+"$(INTDIR)\utilitie.obj" : $(SOURCE) $(DEP_CPP_UTILI) "$(INTDIR)"
+
+
+
+!ENDIF 
+
diff -u -r --new-file agrep.335/agrep.c agrep.win/agrep.c
--- agrep.335/agrep.c	Thu Dec 11 02:22:17 1997
+++ agrep.win/agrep.c	Fri Jan 02 14:14:47 1998
@@ -215,6 +215,32 @@
 int table[WORD][WORD];
 CHAR *agrep_saved_pattern = NULL;	/* to prevent multiple prepfs for each boolean search: crd@hplb.hpl.hp.com */
 
+#ifdef _WIN32
+#include <direct.h>
+#include <io.h>
+int  agrep_usage();       /* agrep.c */
+int  exec();              /* agrep.c */
+int  exponen();           /* agrep.c */
+int  r_output();          /* agrep.c */
+int  file_out();          /* agrep.c */
+void agrep_online_help(); /* agrephlp.c */
+int  bitap();             /* bitap.c */
+int  fill_buf();          /* bitap.c */
+int  check_file();        /* checkfil.c */
+int  checksg();           /* checksg.c */
+int  get_current_codepage(); /* codepage.c */
+int  compat();            /* compat.c */
+int  maskgen();           /* maskgen.c */
+int  mgrep();             /* newmgrep.c */
+int  prepf();             /* newmgrep.c */
+int  preprocess();        /* preproce.c */
+void destroy_tree();      /* putils.c */
+int  recursive();         /* recursiv.c */
+int  sgrep();             /* sgrep.c */
+int  initialize_common(); /* dummyfil.c */
+int  tuncompressible_filename();   /* dummyfil.c */
+int  quick_tcompress();   /* dummyfil.c */
+#endif
 
 /* Called when multipattern search and pattern has not changed */
 
diff -u -r --new-file agrep.335/agrep.h agrep.win/agrep.h
--- agrep.335/agrep.h	Tue Apr 08 00:50:01 1997
+++ agrep.win/agrep.h	Tue Dec 30 10:15:05 1997
@@ -20,7 +20,9 @@
 #include "defs.h"
 #include "config.h"
 #include <fcntl.h>
+#ifndef _WIN32
 #include <unistd.h>
+#endif
 #include <string.h>
 
 #define	AGREP_ENV_OPTS	"AGREPOPTS"	/* name of the environment variable
diff -u -r --new-file agrep.335/agrephlp.c agrep.win/agrephlp.c
--- agrep.335/agrephlp.c	Tue Apr 08 00:50:01 1997
+++ agrep.win/agrephlp.c	Tue Dec 30 11:37:05 1997
@@ -6,6 +6,11 @@
 
 */
 
+#ifdef _WIN32
+#include "conio.h"
+int get_current_codepage();  /* codepage.c */
+#endif
+
 #define	CUL	0x4B00
 #define CUP	0x4800
 #define CUD	0x5000
@@ -81,7 +86,11 @@
 	if (ch=='\0') ch=(_read_kbd(0,1,1) << 8 );
 	/* no echo; wait for keystroke; Ctrl-C is not ignored */
 #else
+#ifndef _WIN32
 	ch=getchar();
+#else
+	ch=getch();
+#endif
 #endif
 return ch;
 }
@@ -92,7 +101,13 @@
 unsigned int	userwants;
 
 PAGE1:
+#ifdef __EMX__ 
 fprintf(stderr,"\nAGREP %s for %s compiled with EMX 0.9c. Manber/Wu/Gries et al.(%s)\n",AGREP_VERSION,AGREP_OS,AGREP_DATE);
+#else
+#ifdef _WIN32
+fprintf(stderr,"\nAGREP %s for %s compiled with MS VC 5.0 (%s)\n",AGREP_VERSION,AGREP_OS,AGREP_DATE);
+#endif
+#endif 
 fprintf(stderr,"\n           Approximate Pattern Matching GREP -- Get Regular Expression\n");
 fprintf(stderr,"Usage:");
 one_line_help();
@@ -262,8 +277,10 @@
 
 userw;
 
+#ifdef __EMX__
 if ((_emx_env & 0x0A00) == 0x0800) fprintf(stderr,"\n");
 /* if running under pure DOS */ 
+#endif
 
 PAGE7:
 return;
diff -u -r --new-file agrep.335/asearch.c agrep.win/asearch.c
--- agrep.335/asearch.c	Tue Apr 08 00:50:01 1997
+++ agrep.win/asearch.c	Tue Dec 30 10:54:45 1997
@@ -23,6 +23,12 @@
 
 extern int LIMITOUTPUT, LIMITPERFILE;
 
+#ifdef _WIN32
+int  output();            /* agrep.c */
+int  asearch0();          /* asearch.c */
+int  fill_buf();          /* bitap.c */
+#endif
+
 int
 asearch(old_D_pat, text, D)
 CHAR old_D_pat[]; 
diff -u -r --new-file agrep.335/asearch1.c agrep.win/asearch1.c
--- agrep.335/asearch1.c	Tue Apr 08 00:50:01 1997
+++ agrep.win/asearch1.c	Tue Dec 30 10:55:19 1997
@@ -20,6 +20,11 @@
 
 extern int LIMITOUTPUT, LIMITPERFILE;
 
+#ifdef _WIN32
+int  output();            /* agrep.c */
+int  fill_buf();          /* bitap.c */
+#endif
+
 int
 asearch1(old_D_pat, Text, D)
 char old_D_pat[]; 
diff -u -r --new-file agrep.335/bitap.c agrep.win/bitap.c
--- agrep.335/bitap.c	Tue Apr 08 00:50:01 1997
+++ agrep.win/bitap.c	Tue Dec 30 10:59:37 1997
@@ -60,6 +60,16 @@
 
 extern int NEW_FILE, POST_FILTER;
 
+#ifdef _WIN32
+#include <io.h>
+int  output();            /* agrep.c */
+int  re();                /* agrep.c */
+int  re1();               /* agrep.c */
+int  asearch();           /* asearch.c */
+int  asearch1();          /* asearch1.c */
+int  fill_buf();          /* bitap.c */
+#endif
+
 /* bitap dispatches job */
 
 int
diff -u -r --new-file agrep.335/checkfil.c agrep.win/checkfil.c
--- agrep.335/checkfil.c	Tue Apr 08 00:50:01 1997
+++ agrep.win/checkfil.c	Tue Dec 30 10:18:23 1997
@@ -14,6 +14,10 @@
 #include <errno.h>
 #include "checkfil.h"
 
+#ifdef _WIN32
+#include "config.h"
+#endif
+
 #ifndef S_ISREG
 #define S_ISREG(mode) (0100000&(mode))
 #endif
diff -u -r --new-file agrep.335/codepage.c agrep.win/codepage.c
--- agrep.335/codepage.c	Tue Apr 08 00:50:01 1997
+++ agrep.win/codepage.c	Tue Dec 30 11:36:19 1997
@@ -1,3 +1,4 @@
+
 /********************************************************************************
 *  Look-Up-Table for converting characters from upper case to lower case	*
 *  according to a user defined code page translation table			*
@@ -14,7 +15,10 @@
 
 #define INCL_DOSNLS     /* National Language Support values */
 #define INCL_DOSERRORS  /* DOS error values                 */
+
+#ifndef _WIN32
 #include <os2.h>
+#endif
 
 #ifdef __EMX__
 #include <stdlib.h>
diff -u -r --new-file agrep.335/config.h agrep.win/config.h
--- agrep.335/config.h	Tue Apr 08 00:50:01 1997
+++ agrep.win/config.h	Tue Dec 30 10:21:01 1997
@@ -10,3 +10,9 @@
 #define S_ISREG(mode)   (((mode) & (_S_IFMT)) == (_S_IFREG))
 #define S_ISDIR(mode)   (((mode) & (_S_IFMT)) == (_S_IFDIR))
 #endif
+
+#ifdef _WIN32
+#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)
+#define S_ISREG(mode) (((mode) & S_IFMT) == S_IFREG)
+#endif 
+
diff -u -r --new-file agrep.335/follow.c agrep.win/follow.c
--- agrep.335/follow.c	Tue Apr 08 00:50:01 1997
+++ agrep.win/follow.c	Tue Dec 30 10:06:39 1997
@@ -9,7 +9,9 @@
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
+#ifndef _WIN32
 #include <unistd.h>
+#endif
 #include "re.h"
 
 #define TRUE	1
diff -u -r --new-file agrep.335/main.c agrep.win/main.c
--- agrep.335/main.c	Tue Apr 08 00:50:01 1997
+++ agrep.win/main.c	Tue Dec 30 11:01:57 1997
@@ -20,7 +20,15 @@
 extern unsigned int _emx_env;	/* this variable denotes the operating system DOS, OS/2 */
 #endif
 
+#ifdef _WIN32
+int fileagrep();   /* agrep.c */
+#endif
+
+#ifndef _WIN32
 int
+#else
+void
+#endif
 main(argc, argv)
 int argc;
 char *argv[];
diff -u -r --new-file agrep.335/newmgrep.c agrep.win/newmgrep.c
--- agrep.335/newmgrep.c	Wed Oct 22 22:13:19 1997
+++ agrep.win/newmgrep.c	Fri Jan 02 14:14:47 1998
@@ -19,7 +19,12 @@
 #include <sys/stat.h>
 #include "agrep.h"
 #include "codepage.h"
+#ifndef _WIN32
 #include <sys/time.h>
+#else
+#include <sys/timeb.h>
+#include "config.h"
+#endif
 
 extern unsigned char LUT[256];
 
@@ -103,6 +108,13 @@
 extern int anum_terminals;
 extern int AComplexBoolean;
 static void countline();
+
+#ifdef _WIN32
+int  eval_tree();         /* asplit.c */
+int  fill_buf();          /* bitap.c */
+int  monkey1();           /* newmgrep.c */
+int  m_short();           /* newmgrep.c */
+#endif
 
 #if	DOTCOMPRESSED
 /* Equivalent variables for compression search */
diff -u -r --new-file agrep.335/ntdirent.c agrep.win/ntdirent.c
--- agrep.335/ntdirent.c	Wed Dec 31 19:00:00 1969
+++ agrep.win/ntdirent.c	Mon Dec 29 15:41:45 1997
@@ -0,0 +1,288 @@
+/* 
+   dir.c for MS-DOS by Samuel Lam <skl@van-bc.UUCP>, June/87 
+*/ 
+ 
+/* #ifdef WIN32 */
+/* 
+ * @(#)dir.c 1.4 87/11/06 Public Domain. 
+ * 
+ *  A public domain implementation of BSD directory routines for 
+ *  MS-DOS.  Written by Michael Rendell ({uunet,utai}michael@garfield), 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -