亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? borland-2.4

?? 編譯原理(Flex):生成詞法和語法分析程序的源代碼的程序。
?? 4
字號:
Received: from 128.140.1.1 by ee.lbl.gov for <vern@ee.lbl.gov> (8.6.9/1.43r)
	id HAA01193; Thu, 29 Sep 1994 07:26:54 -0700
Received: from larry-le0.cc.emory.edu by
	emoryu1.cc.emory.edu (5.65/Emory_cc.4.0.1) via SMTP
	id AA07292 ; Thu, 29 Sep 94 10:26:41 -0400
From: tkane01@unix.cc.emory.edu (Terrence O Kane)
Received: by larry.cc.emory.edu (5.0) id AA11757; Thu, 29 Sep 1994 10:26:43 +0500
Message-Id: <9409291426.AA11757@larry.cc.emory.edu>
Subject: patches and makefile for Borland C 4.02, flex 2.4.7
To: vern@ee.lbl.gov
Date: Thu, 29 Sep 1994 10:26:42 -0400 (EDT)
X-Mailer: ELM [version 2.4 PL23]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 9900      

Enclosed are unified diffs and a makefile for Borland 4.02

The changes in the enclosed are 1) make the size parameters for memory
allocation "size_t", 2) change an include file when the lexer is 
compiled within 'extern "C" {...}' in a C++ file, and 3) include pragmas 
in the header suitable for BCC 4.02 to hush on warnings.

The latter is done because of the limit on command line size.  A tradeoff 
exists between putting pragmas in the header, or #defines in the header - 
I put in the pragmas since they're suppoed to be ignored unless 
understood - *and* they're enclosed in BCC specific ifdefs, anyway.

All changes are enclosed in "#ifdef __BORLANDC__".





--- misc.c	Tue Jan 04 14:33:10 1994
+++ ../misc.c	Wed Sep 28 18:44:32 1994
@@ -55,15 +55,19 @@
 	action_index += len;
 	}
 
 
 /* allocate_array - allocate memory for an integer array of the given size */
 
 void *allocate_array( size, element_size )
+#ifndef __BORLANDC__
 int size, element_size;
+#else /* __BORLANDC__ */
+size_t size, element_size;
+#endif /* __BORLANDC__ */
 	{
 	register void *mem;
 
 	/* On 16-bit int machines (e.g., 80286) we might be trying to
 	 * allocate more than a signed int can hold, and that won't
 	 * work.  Cheap test:
 	 */
@@ -634,15 +638,19 @@
 	}
 
 
 /* reallocate_array - increase the size of a dynamic array */
 
 void *reallocate_array( array, size, element_size )
 void *array;
+#ifndef __BORLANDC__
 int size, element_size;
+#else /* __BORLANDC__ */
+size_t size, element_size;
+#endif /* __BORLANDC__ */
 	{
 	register void *new_array;
 
 	/* Same worry as in allocate_array(): */
 	if ( size * element_size <= 0 )
 		flexfatal(
 			"attempt to increase array size by less than 1 byte" );
@@ -739,15 +747,19 @@
 	}
 
 
 /* The following is only needed when building flex's parser using certain
  * broken versions of bison.
  */
 void *yy_flex_xmalloc( size )
+#ifndef __BORLANDC__
 int size;
+#else /* __BORLANDC__ */
+size_t size;
+#endif /* __BORLANDC__ */
 	{
 	void *result = flex_alloc( size );
 
 	if ( ! result  )
 		flexfatal( "memory allocation failed in yy_flex_xmalloc()" );
 
 	return result;





--- skel.c	Wed Aug 03 11:38:32 1994
+++ ../skel.c	Wed Sep 28 18:50:58 1994
@@ -26,15 +26,19 @@
   "",
   "#ifdef __cplusplus",
   "",
   "#include <stdlib.h>",
   "%+",
   "class istream;",
   "%*",
+  "#ifndef __BORLANDC__",
   "#include <unistd.h>",
+  "#else /* __BORLANDC__ */",
+  "#include <io.h>",
+  "#endif /* __BORLANDC__ */",
   "",
   "/* Use prototypes in function declarations. */",
   "#define YY_USE_PROTOS",
   "",
   "/* The \"const\" storage-class-modifier is valid. */",
   "#define YY_USE_CONST",
   "",
@@ -240,16 +244,21 @@
   "static int yy_start_stack_depth = 0;",
   "static int *yy_start_stack = 0;",
   "static void yy_push_state YY_PROTO(( int new_state ));",
   "static void yy_pop_state YY_PROTO(( void ));",
   "static int yy_top_state YY_PROTO(( void ));",
   "%*",
   "",
+  "#ifndef __BORLANDC__",
   "static void *yy_flex_alloc YY_PROTO(( unsigned int ));",
   "static void *yy_flex_realloc YY_PROTO(( void *, unsigned int ));",
+  "#else /* __BORLANDC__ */",
+  "static void *yy_flex_alloc YY_PROTO(( size_t ));",
+  "static void *yy_flex_realloc YY_PROTO(( void *, size_t ));",
+  "#endif /* __BORLANDC__ */",
   "static void yy_flex_free YY_PROTO(( void * ));",
   "",
   "#define yy_new_buffer yy_create_buffer",
   "",
   "%% yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here",
   "",
   "#ifndef yytext_ptr",





--- initscan.c	Wed Aug 03 11:42:46 1994
+++ ../initscan.c	Wed Sep 28 18:51:34 1994
@@ -16,15 +16,19 @@
 #endif
 #endif
 
 
 #ifdef __cplusplus
 
 #include <stdlib.h>
+#ifndef __BORLANDC__
 #include <unistd.h>
+#else /* __BORLANDC__ */
+#include <io.h>
+#endif /* __BORLANDC__ */
 
 /* Use prototypes in function declarations. */
 #define YY_USE_PROTOS
 
 /* The "const" storage-class-modifier is valid. */
 #define YY_USE_CONST
 
@@ -220,16 +224,21 @@
 static int yy_start_stack_ptr = 0;
 static int yy_start_stack_depth = 0;
 static int *yy_start_stack = 0;
 static void yy_push_state YY_PROTO(( int new_state ));
 static void yy_pop_state YY_PROTO(( void ));
 static int yy_top_state YY_PROTO(( void ));
 
+#ifndef __BORLANDC__
 static void *yy_flex_alloc YY_PROTO(( unsigned int ));
 static void *yy_flex_realloc YY_PROTO(( void *, unsigned int ));
+#else /* __BORLANDC__ */
+static void *yy_flex_alloc YY_PROTO(( size_t ));
+static void *yy_flex_realloc YY_PROTO(( void *, size_t ));
+#endif /* __BORLANDC__ */
 static void yy_flex_free YY_PROTO(( void * ));
 
 #define yy_new_buffer yy_create_buffer
 
 #define INITIAL 0
 #define SECT2 1
 #define SECT2PROLOG 2





--- flexdef.h	Tue Jan 04 14:33:14 1994
+++ ../flexdef.h	Wed Sep 28 18:53:44 1994
@@ -27,14 +27,25 @@
  */
 
 /* @(#) $Header: flexdef.h,v 1.2 94/01/04 14:33:14 vern Exp $ (LBL) */
 
 #include <stdio.h>
 #include <ctype.h>
 
+#ifdef __BORLANDC__
+#include <malloc.h>
+
+#pragma warn -pro
+#pragma warn -rch
+#pragma warn -use
+#pragma warn -aus
+#pragma warn -par
+#pragma warn -pia
+
+#endif /* __BORLANDC__ */
 #if HAVE_STRING_H
 #include <string.h>
 #else
 #include <strings.h>
 #endif
 
 #if __STDC__
@@ -607,19 +618,29 @@
  */
 
 extern char nmstr[MAXLINE];
 extern int sectnum, nummt, hshcol, dfaeql, numeps, eps2, num_reallocs;
 extern int tmpuses, totnst, peakpairs, numuniq, numdup, hshsave;
 extern int num_backing_up, bol_needed;
 
+#ifndef __BORLANDC__
 void *allocate_array PROTO((int, int));
 void *reallocate_array PROTO((void*, int, int));
+#else /* __BORLANDC__ */
+void *allocate_array PROTO((size_t, size_t));
+void *reallocate_array PROTO((void*, size_t, size_t));
+#endif /* __BORLANDC__ */
 
+#ifndef __BORLANDC__
 void *flex_alloc PROTO((unsigned int));
 void *flex_realloc PROTO((void*, unsigned int));
+#else /* __BORLANDC__ */
+void *flex_alloc PROTO((size_t));
+void *flex_realloc PROTO((void*, size_t));
+#endif /* __BORLANDC__ */
 void flex_free PROTO((void*));
 
 #define allocate_integer_array(size) \
 	(int *) allocate_array( size, sizeof( int ) )
 
 #define reallocate_integer_array(array,size) \
 	(int *) reallocate_array( (void *) array, size, sizeof( int ) )
@@ -772,15 +793,19 @@
 /* Write out one section of the skeleton file. */
 extern void skelout PROTO((void));
 
 /* Output a yy_trans_info structure. */
 extern void transition_struct_out PROTO((int, int));
 
 /* Only needed when using certain broken versions of bison to build parse.c. */
+#ifndef __BORLANDC__
 extern void *yy_flex_xmalloc PROTO(( int ));
+#else /* __BORLANDC__ */
+extern void *yy_flex_xmalloc PROTO(( size_t ));
+#endif /* __BORLANDC__ */
 
 /* Set a region of memory to 0. */
 extern void zero_out PROTO((char *, int));
 
 
 /* from file nfa.c */





###############################################################################
# Makefile for flex 2.4.7 with Borland C/C++ version 4.02
#
# This will probably need to be adjusted for your existing lexer/parser
# generators.  See definitions for FLEX and YACC near the bottom of the
# makefile.
#
# Copy initscan.c to scan.c to make your first executable.  After that,
# you may choose to try alternate compression options for your everyday
# flex executable.
#
# This will build flex with the large model.  Don't use huge, but if you
# feel like experimenting with other models, post your success stories to 
# comp.compilers, OK?
#
# This makefile does *not* implement the big testing found in "makefile.in".
#
# I also assume the availability of sed and the gnu file utilities on the
# system - they're readily available, so if you don't have them, why not?
#                                                                 <grin>
#
# The resulting generated lexer (the real goal, right?) will compile
# (and run nicely, too) as a .c file, as well as being included such as
# extern "C" { #include "lexyyc" } in a .cplusplus file.
#
###############################################################################

DEBUG = 1

.autodepend

all:	flex.exe

###############################################################################
#
# standard utilitities? ha.
#

CC	= bcc
CPP     = bcc

###############################################################################
#

MODEL	= l

!if $(DEBUG) == 1
!message Building with debug.
debugCompile = -v
debugLink = /v
!else
!message Building without debug.
debugCompile =
debugLink =
!endif

LOADER	= c0$(MODEL).obj
LIBS	= c$(MODEL).lib
LINKFLAGS = $(debugLink)

DATASEG	= -dc -Ff
SizeOPT	= -Os -G-
Defines = -DSHORT_FILE_NAMES=1 -DHAVE_STRING_H=1

COMMON	= -A -c -m$(MODEL) $(SizeOPT) $(DATASEG) $(Defines) $(debugCompile)
CFLAGS  = -o$@ $(COMMON)
CCFLAGS  = -o$@ $(COMMON) -Pcc

###############################################################################

.SUFFIXES:	.cc

.cc.obj:
	$(CPP) $(CCFLAGS) $<

.c.obj:
	$(CPP) $(CFLAGS) $<

###############################################################################
#
# source & object files
#

SRC =	ccl.c dfa.c ecs.c gen.c main.c misc.c nfa.c parse.c \
	scan.c sym.c tblcmp.c yylex.c skel.c

OBJS = $(SRC:.c=.obj)

objects:	$(OBJS)
	@echo $(OBJS)

###############################################################################
#
# Executable
#

flex.exe:      $(OBJS)
	tlink $(LINKFLAGS) @&&!
$(LOADER) $**
$&.exe
$&.map
$(LIBS)
!

# 
###############################################################################
#
# Lex files
#

FLEX	= .\flex
FLEX_FLAGS = -ist

scan.c: scan.l
	$(FLEX) $(FLEX_FLAGS) scan.l >scan.tmp
	sed s,\"$(srcdir)/scan.l\",\"scan.l\", <scan.tmp >scan.c
	@rm scan.tmp

###############################################################################
#
# YACC files
#

YACC	= .\bison
YFLAGS  = -vdyl

parse.c: parse.y
	$(YACC) -ydl parse.y
	@sed "/extern char.*malloc/d" <y_tab.c >parse.c
	@rm -f y_tab.c
	@mv y_tab.h parse.h

#
# end Makefile
#
###############################################################################
 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
aa级大片欧美| 91精品国产高清一区二区三区蜜臀| 亚洲一区二区三区四区中文字幕| 欧美成人综合网站| 欧美亚洲国产bt| 国产精品一卡二| 奇米四色…亚洲| 亚洲一区欧美一区| 成人免费一区二区三区视频| 欧美一级片免费看| 欧美亚日韩国产aⅴ精品中极品| 国产一区不卡视频| 青青草97国产精品免费观看无弹窗版 | 自拍偷拍亚洲欧美日韩| 精品国产电影一区二区| 欧美日本乱大交xxxxx| 91社区在线播放| 丁香婷婷综合五月| 国模大尺度一区二区三区| 日韩影视精彩在线| 午夜av一区二区| 午夜一区二区三区在线观看| 成人欧美一区二区三区1314| 日本一区二区在线不卡| 精品美女一区二区| 欧美变态tickling挠脚心| 欧美久久久一区| 在线电影一区二区三区| 欧美三级在线看| 欧美伊人精品成人久久综合97| 91美女视频网站| 一本色道久久综合狠狠躁的推荐 | 亚洲欧美日韩国产另类专区| 中文字幕第一区综合| 久久久久久**毛片大全| 精品久久久影院| 久久久噜噜噜久噜久久综合| 日韩视频免费观看高清完整版在线观看 | 日韩手机在线导航| 日韩一级高清毛片| xnxx国产精品| 国产色综合久久| 中文字幕一区二区三区不卡在线| 国产人成一区二区三区影院| 久久精品亚洲乱码伦伦中文| 国产区在线观看成人精品 | 亚洲精品成人在线| 一区二区三区中文在线观看| 亚洲欧美欧美一区二区三区| 亚洲综合丝袜美腿| 三级在线观看一区二区| 裸体在线国模精品偷拍| 国产一区二区h| 成人高清免费在线播放| 色婷婷av一区| 日韩一级免费观看| 国产三级欧美三级| 亚洲欧美国产高清| 天堂成人免费av电影一区| 奇米精品一区二区三区在线观看| 精品一区二区三区视频在线观看 | 欧美一卡在线观看| 欧美精品一区二区三区久久久| 久久久久久久久伊人| 国产精品美女久久久久久2018| 一区二区在线观看视频| 日韩高清不卡一区二区三区| 国产在线播放一区| 99久久精品免费看国产免费软件| 在线观看91精品国产入口| 欧美一区二区三区系列电影| 国产目拍亚洲精品99久久精品| 亚洲欧美日韩精品久久久久| 视频一区二区三区中文字幕| 国产高清在线观看免费不卡| 99精品偷自拍| 91精品国产欧美一区二区成人| 久久先锋资源网| 亚洲日本va午夜在线电影| 日本成人在线一区| 93久久精品日日躁夜夜躁欧美| 欧美在线不卡视频| 国产亚洲午夜高清国产拍精品| 亚洲综合视频在线观看| 国产成人精品1024| 欧美日韩国产在线观看| 国产日韩精品一区| 日韩电影在线观看一区| 97se狠狠狠综合亚洲狠狠| 日韩免费电影一区| 亚洲韩国一区二区三区| 国产成人综合自拍| 欧美一卡2卡3卡4卡| 亚洲精品写真福利| 国产福利一区二区三区视频| 欧美人牲a欧美精品| 国产精品二区一区二区aⅴ污介绍| 天堂在线一区二区| 91黄色激情网站| 中文字幕精品一区| 国产一区免费电影| 欧美一区二区免费| 亚洲一区在线电影| 97国产一区二区| 国产精品天美传媒沈樵| 国产中文字幕一区| 欧美一二三四区在线| 亚洲一区二区三区四区的| av亚洲精华国产精华| 久久久99精品久久| 精品一区二区三区香蕉蜜桃| 91.com视频| 亚洲成a人v欧美综合天堂| 色婷婷综合视频在线观看| 国产欧美一区二区精品忘忧草 | 亚洲成a人v欧美综合天堂 | 久久精品日产第一区二区三区高清版| 亚洲国产视频网站| 欧美在线播放高清精品| 亚洲美女电影在线| 97精品久久久午夜一区二区三区| 久久精品一区二区三区不卡牛牛| 精品一区二区三区在线播放| 日韩欧美成人一区二区| 美国十次综合导航| 欧美一区二区二区| 日本中文字幕不卡| 日韩一级完整毛片| 老司机精品视频线观看86| 日韩一区二区三区在线视频| 丝袜美腿亚洲一区| 欧美一区二区不卡视频| 丝袜诱惑亚洲看片| 欧美一级久久久久久久大片| 天堂在线亚洲视频| 欧美一区二区三区日韩视频| 日av在线不卡| 精品免费日韩av| 国产一区二区久久| 国产天堂亚洲国产碰碰| 精品久久国产老人久久综合| 免费成人小视频| 精品成人佐山爱一区二区| 九九国产精品视频| 中文字幕二三区不卡| av在线不卡电影| 亚洲综合在线第一页| 欧美日韩专区在线| 日韩不卡免费视频| 精品久久久久久无| 国产91在线|亚洲| 一区二区中文视频| 欧美日韩一级黄| 美女免费视频一区二区| 国产欧美日本一区视频| 91视频国产资源| 日韩成人免费在线| 久久午夜老司机| 91美女片黄在线观看| 午夜精品久久久久久久| 日韩欧美一二三区| 成人精品鲁一区一区二区| 亚洲女爱视频在线| 91精品国产综合久久久久久久久久 | 精品福利av导航| 99在线热播精品免费| 依依成人综合视频| 精品少妇一区二区三区日产乱码| 成人免费视频一区| 图片区小说区国产精品视频| 久久精品在这里| 欧美视频精品在线| 国产精品66部| 午夜精品久久久久久久久久久| 精品国产凹凸成av人导航| 成人av综合一区| 欧美aaaaa成人免费观看视频| 久久九九影视网| 欧美日韩国产小视频| 国产精品一区二区无线| 亚洲一区二区三区不卡国产欧美| 精品国产欧美一区二区| 91久久精品国产91性色tv| 久久99最新地址| 亚洲制服丝袜av| 国产精品全国免费观看高清| 欧美日韩国产免费一区二区| 国产91丝袜在线播放0| 青青草原综合久久大伊人精品优势| 亚洲国产精品国自产拍av| 欧美一级艳片视频免费观看| 一本色道a无线码一区v| 激情五月播播久久久精品| 亚洲一区免费在线观看| 中文字幕乱码久久午夜不卡 | 日日噜噜夜夜狠狠视频欧美人| 中文字幕欧美激情一区| 91精品国产品国语在线不卡| 91亚洲精华国产精华精华液| 国产一区二区三区在线观看免费|