Update of /cvsroot/cscope/cscope/src
In directory usw-pr-cvs1:/tmp/cvs-serv13511/src
Modified Files:
constants.h invlib.c
Log Message:
DOS/DJGPP related fixes
Index: constants.h
===================================================================
RCS file: /cvsroot/cscope/cscope/src/constants.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** constants.h 2001/06/01 12:43:24 1.7
--- constants.h 2001/07/05 13:47:54 1.8
***************
*** 44,48 ****
/* database output macros that update its offset */
#define dbputc(c) (++dboffset, (void) putc(c, newrefs))
! #if Linux || BSD && !sun
#define dbfputs(s) (dboffset += strlen(s), fputs(s, newrefs))
#else
--- 44,48 ----
/* database output macros that update its offset */
#define dbputc(c) (++dboffset, (void) putc(c, newrefs))
! #if __DJGPP__ || Linux || BSD && !sun
#define dbfputs(s) (dboffset += strlen(s), fputs(s, newrefs))
#else
Index: invlib.c
===================================================================
RCS file: /cvsroot/cscope/cscope/src/invlib.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** invlib.c 2001/06/01 12:31:00 1.11
--- invlib.c 2001/07/05 13:47:54 1.12
***************
*** 515,519 ****
* I.e, hack around our own violation of the inverse db naming convention */
if (!strcmp(invname, "cscope.out.in")) {
! if ((invcntl->invfile = vpfopen(INVNAME, ((stat == 0) ? "r" : "r+"))))
goto openedinvname;
/* more silliness: if you create the db with '-f cscope', then try to open
--- 515,519 ----
* I.e, hack around our own violation of the inverse db naming convention */
if (!strcmp(invname, "cscope.out.in")) {
! if ((invcntl->invfile = vpfopen(INVNAME, ((stat == 0) ? "rb" : "r+b"))))
goto openedinvname;
/* more silliness: if you create the db with '-f cscope', then try to open
***************
*** 521,525 ****
* here. */
} else if (!strcmp(invname, INVNAME)) {
! if ((invcntl->invfile = vpfopen("cscope.out.in", ((stat == 0) ? "r" : "r+"))))
goto openedinvname;
}
--- 521,525 ----
* here. */
} else if (!strcmp(invname, INVNAME)) {
! if ((invcntl->invfile = vpfopen("cscope.out.in", ((stat == 0) ? "rb" : "r+b"))))
goto openedinvname;
}
***************
*** 545,552 ****
/* exact same naming convention hacks as above for invname */
if (!strcmp(invpost, "cscope.out.po")) {
! if ((invcntl->postfile = vpfopen(INVPOST, ((stat == 0) ? "r" : "r+"))))
goto openedinvpost;
} else if (!strcmp(invpost, INVPOST)) {
! if ((invcntl->postfile = vpfopen("cscope.out.po",((stat == 0)?"r":"r+"))))
goto openedinvpost;
}
--- 545,552 ----
/* exact same naming convention hacks as above for invname */
if (!strcmp(invpost, "cscope.out.po")) {
! if ((invcntl->postfile = vpfopen(INVPOST, ((stat == 0) ? "rb" : "r+b"))))
goto openedinvpost;
} else if (!strcmp(invpost, INVPOST)) {
! if ((invcntl->postfile = vpfopen("cscope.out.po",((stat == 0)?"rb":"r+b"))))
goto openedinvpost;
}
|