/* Fetch the block */
blockbuf = (union fsdata_u *) scratch;
- readblock(block, blockbuf, block_size);
+ readblock(block, (char *) blockbuf, block_size);
if (super.s_magic == SUPER_V2 || super.s_magic == SUPER_V3) {
d2_inode *dip;
int i;
- dip= &blockbuf->b__v2_ino[ino_offset];
+ dip= &blockbuf->b__v2_ino[(unsigned int) ino_offset];
curfil.i_mode= dip->d2_mode;
curfil.i_nlinks= dip->d2_nlinks;
d1_inode *dip;
int i;
- dip= &blockbuf->b__v1_ino[ino_offset];
+ dip= &blockbuf->b__v1_ino[(unsigned int) ino_offset];
curfil.i_mode= dip->d1_mode;
curfil.i_nlinks= dip->d1_nlinks;
* This function is called once during initialization, and thereafter it is
* called whenever the SIGWINCH signal is sent to this process.
*/
-int getsize(signo)
+void getsize(signo)
int signo;
{
int lines;
*o_columns = COLS;
}
#endif
-
- return 0;
}
# For MS-DOS, add "-DMS_DOS" to DEFS. See the directory MISC/MSDOS for
# additional info.
-CFLAGS = @CFLAGS@
+CFLAGS = @CFLAGS@ -D_POSIX_SOURCE=1
CPPFLAGS = @CPPFLAGS@
DEFS = @DEFS@
LDFLAGS = @LDFLAGS@
int doing_codeblock = false;
int i;
- Char nmdef[MAXLINE], myesc();
+ Char nmdef[MAXLINE];
#line 1498 "scan.c"
#line 435 "scan.l"
{
register Char *nmdefptr;
- Char *ndlookup();
strcpy( nmstr, yytext + 1 );
nmstr[yyleng - 2] = '\0'; /* chop trailing brace */
/* $Header$ */
+#include "flexdef.h"
+
extern int yylex(void);
+int main PROTO((int, char**));
+
int main( argc, argv )
int argc;
char *argv[];
/* declare functions that have forward references */
+int main PROTO((int, char**));
void flexinit PROTO((int, char**));
void readin PROTO((void));
void set_up_initial_allocations PROTO((void));
int doing_codeblock = false;
int i;
- Char nmdef[MAXLINE], myesc();
+ Char nmdef[MAXLINE];
<INITIAL>{
"{"{NAME}"}" {
register Char *nmdefptr;
- Char *ndlookup();
strcpy( nmstr, yytext + 1 );
nmstr[yyleng - 2] = '\0'; /* chop trailing brace */
struct hash_entry *sctbl[START_COND_HASH_SIZE];
struct hash_entry *ccltab[CCL_HASH_SIZE];
-struct hash_entry *findsym();
-
/* addsym - add symbol and definitions to symbol table
*
/* We don't bother checking the return status because we are not
* called unless the symbol is new.
*/
- Char *copy_unsigned_string();
(void) addsym( (char *) copy_unsigned_string( ccltxt ),
(char *) 0, cclnum,
char name[];
Char definition[];
{
- char *copy_string();
- Char *copy_unsigned_string();
if ( addsym( copy_string( name ),
(char *) copy_unsigned_string( definition ), 0,
char str[];
int xcluflg;
{
- char *copy_string();
/* Generate start condition definition, for use in BEGIN et al. */
action_define( str, lastsc );