From cbeb0b26e4c7caa8d1b47de791a7418dc20a4567 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 1 Apr 2006 19:24:03 +0000 Subject: Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. --- src/cmd/sam/sam.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/cmd/sam/sam.h') diff --git a/src/cmd/sam/sam.h b/src/cmd/sam/sam.h index eefb4b34..fa86efd1 100644 --- a/src/cmd/sam/sam.h +++ b/src/cmd/sam/sam.h @@ -42,7 +42,7 @@ enum State { Clean = ' ', Dirty = '\'', - Unread = '-', + Unread = '-' }; struct Range @@ -97,7 +97,7 @@ enum Maxblock = 8*1024, BUFSIZE = Maxblock, /* size from fbufalloc() */ - RBUFSIZE = BUFSIZE/sizeof(Rune), + RBUFSIZE = BUFSIZE/sizeof(Rune) }; @@ -108,7 +108,7 @@ enum Insert = 'i', Filename = 'f', Dot = 'D', - Mark = 'm', + Mark = 'm' }; struct Block @@ -168,10 +168,12 @@ struct File int mod; /* file appears modified in menu */ char rescuing; /* sam exiting; this file unusable */ +#if 0 // Text *curtext; /* most recently used associated text */ // Text **text; /* list of associated texts */ // int ntext; // int dumpid; /* used in dumping zeroxed windows */ +#endif Posn hiposn; /* highest address touched this Mod */ Address dot; /* current position */ @@ -187,10 +189,10 @@ struct File long prevseq; int prevmod; }; -//File* fileaddtext(File*, Text*); +/*File* fileaddtext(File*, Text*); */ void fileclose(File*); void filedelete(File*, uint, uint); -//void filedeltext(File*, Text*); +/*void filedeltext(File*, Text*); */ void fileinsert(File*, uint, Rune*, uint); uint fileload(File*, uint, int, int*); void filemark(File*); -- cgit v1.2.3