aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/sam/sam.h
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-01 19:24:03 +0000
committerrsc <devnull@localhost>2006-04-01 19:24:03 +0000
commitcbeb0b26e4c7caa8d1b47de791a7418dc20a4567 (patch)
treee0f7e445de1aa22a42ef873dc4b1118a8105ae93 /src/cmd/sam/sam.h
parent226d80b8213821af0cbf092d1507c52b504fd368 (diff)
downloadplan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.gz
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.tar.bz2
plan9port-cbeb0b26e4c7caa8d1b47de791a7418dc20a4567.zip
Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.
Diffstat (limited to 'src/cmd/sam/sam.h')
-rw-r--r--src/cmd/sam/sam.h12
1 files changed, 7 insertions, 5 deletions
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*);