$RBGB/BUFSIZEdefinition.txt - RJL060315 '#define BUFSIZE 256' is in 94sbdeschema.h There are hundreds of refs to BUFSIZE in bde/* 'BUFSIZE redefined' Warnings are issued because of: ----------------- saturn.cs.uml.edu(157)> grep BUFSIZE /usr/include/X11/*.h /usr/include/X11/Xlibint.h:367:#ifndef BUFSIZE /usr/include/X11/Xlibint.h:368:#define BUFSIZE 2048 /* X output buffer size. */ saturn.cs.uml.edu(158)> ---------------- The same value is set on linux/Mercury (line 373-374). Questions: 1. Are X11 methods that may depend on size 2048 harmed by bde's redefinition of BUFSIZE as 256? Or does 256 only apply to bde's buffer sizes? 2. Does X11 declare BUFSIZE the same on linux or alpha? If so, what harm would be done by using the same 2048 size in bde/src and pr_util_*log? 3. We can't make size 256 apply to X11 methods and structs. Would it harm X11 code? How could this be done? We do not want to recompile Xlib. [The ANSI C std. (ANSI/ISO 9899, 1990) (7.9.2:Streams) also has a BUFSIZE macro which must be at least 256. ] 4. bde only #includes Xlibint.h in handler.cc:: bde/src/handler.cc:113:#include Perhaps we only need to avoid redefining BUFSIZE in this file handler.cc? (I am trying this with #undef BUFSIZE before that #include in handler.cc -RJL060315) 5.Would bde be harmed (except size) by #define BUFSIZE 2048 to agree with X11?