buffer.h (most-5.1.0) | : | buffer.h (most-5.2.0) | ||
---|---|---|---|---|
/* | /* | |||
This file is part of MOST. | This file is part of MOST. | |||
Copyright (c) 1991, 1999, 2002, 2005-2018, 2019 John E. Davis | Copyright (c) 1991, 1999, 2002, 2005-2021, 2022 John E. Davis | |||
This program is free software; you can redistribute it and/or modify it | This program is free software; you can redistribute it and/or modify it | |||
under the terms of the GNU General Public License as published by the Free | under the terms of the GNU General Public License as published by the Free | |||
Software Foundation; either version 2 of the License, or (at your option) | Software Foundation; either version 2 of the License, or (at your option) | |||
any later version. | any later version. | |||
This program is distributed in the hope that it will be useful, but WITHOUT | This program is distributed in the hope that it will be useful, but WITHOUT | |||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |||
more details. | more details. | |||
skipping to change at line 32 | skipping to change at line 32 | |||
typedef struct | typedef struct | |||
{ | { | |||
char file[MAX_PATHLEN]; /* filename */ | char file[MAX_PATHLEN]; /* filename */ | |||
unsigned char *beg; /* beginning of buffer */ | unsigned char *beg; /* beginning of buffer */ | |||
unsigned char *end; /* end of buffer */ | unsigned char *end; /* end of buffer */ | |||
int mark; /* marked line in buffer */ | int mark; /* marked line in buffer */ | |||
unsigned int flags; | unsigned int flags; | |||
int fd; /* file descriptor--- -1 if closed */ | int fd; /* file descriptor--- -1 if closed */ | |||
FILE *fp; /* use pclose when EOF is reached */ | FILE *fp; /* use pclose when EOF is reached */ | |||
int size; | MOST_INT bufsize; | |||
# ifdef VMS | # ifdef VMS | |||
int rec; /* record size for reads */ | int rec; /* record size for reads */ | |||
# endif | # endif | |||
# if MOST_HAS_MMAP | # if MOST_HAS_MMAP | |||
int is_mmaped; | int is_mmaped; | |||
unsigned int mmap_size; | MOST_INT mmap_file_size; | |||
# endif | # endif | |||
} | } | |||
Most_Buffer_Type; | Most_Buffer_Type; | |||
extern Most_Buffer_Type *Most_Buf; | extern Most_Buffer_Type *Most_Buf; | |||
extern unsigned char *Most_Beg, *Most_Eob; | extern unsigned char *Most_Beg, *Most_Eob; | |||
extern MOST_INT Most_Num_Lines; | extern MOST_INT Most_Num_Lines; | |||
/* Offset of current position from beginning of buffer */ | /* Offset of current position from beginning of buffer */ | |||
extern MOST_UINT Most_C_Offset; | extern MOST_UINT Most_C_Offset; | |||
End of changes. 3 change blocks. | ||||
3 lines changed or deleted | 3 lines changed or added |