aboutsummaryrefslogtreecommitdiff
path: root/tecparse.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-26 04:31:00 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-04-26 04:31:00 +0300
commitb5325e00c402ec18034da4b4a4aaaefa87bb1fef (patch)
treeee833a25466695ab71065e53b536fde54d83302e /tecparse.h
parent96e10b90b1bbd85716df314272e8cad64e256f9d (diff)
downloadvideoteco-fork-b5325e00c402ec18034da4b4a4aaaefa87bb1fef.tar.gz
unsigned long is the base type for buffer positions now
* This allows handling files >64kb even on 16-bit DOS. * A few flags fields could be squashed into bitfields. * The buffer overview (0EB) has been adapted for DOS. We can only show the total amount of allocated memory (as by tecmem.c) for the time being. Unfortunately, we don't have a total amount of available memory since _memavl() is for small data models and the sbrk() apparently doesn't grow.
Diffstat (limited to 'tecparse.h')
-rw-r--r--tecparse.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/tecparse.h b/tecparse.h
index c3f4f6e..8208079 100644
--- a/tecparse.h
+++ b/tecparse.h
@@ -36,17 +36,17 @@
struct cmd_context {
char state;
char flags;
- char go_flag;
char pnest;
char inest;
char cnest;
- char iarg1_flag;
- char iarg2_flag;
+ unsigned go_flag : 1;
+ unsigned iarg1_flag : 1;
+ unsigned iarg2_flag : 1;
char delimeter;
- int iarg1;
- int iarg2;
+ long iarg1;
+ long iarg2;
char *carg;
- int tmpval;
+ long tmpval;
int return_state;
struct cmd_token *caller_token;
};
@@ -68,8 +68,8 @@ struct cmd_token {
struct undo_token {
char opcode;
- int iarg1;
- int iarg2;
+ long iarg1;
+ long iarg2;
char *carg1;
struct undo_token *next_token;
};
@@ -297,17 +297,17 @@ struct undo_token {
#define UNDO_C_SELECT_TAGS 25
#define UNDO_C_SET_EXIT_FLAG 26
-int cmd_oscmd(struct cmd_token *, int, int, int, char *);
+int cmd_oscmd(struct cmd_token *,int,unsigned long,unsigned long,char *);
int buff_insert_from_buffer_with_undo( struct cmd_token *,
- struct buff_header *,int,struct buff_header *,int,int);
-int buff_delete_with_undo( struct cmd_token *,struct buff_header *,int,int);
+ struct buff_header *,unsigned long,struct buff_header *,unsigned long,size_t);
+int buff_delete_with_undo( struct cmd_token *,struct buff_header *,unsigned long,long);
int buff_insert_with_undo( struct cmd_token *,
- struct buff_header *,int,char *,int);
+ struct buff_header *,unsigned long,char *,unsigned long);
int rename_edit_buffer(struct buff_header *,char *,struct cmd_token *);
-int cmd_setoptions(int,int,struct undo_token *);
+int cmd_setoptions(long,long,struct undo_token *);
void tag_dump_database(struct tags *tp,struct cmd_token *uct);
int buff_insert_char_with_undo(struct cmd_token *,
- struct buff_header *,int,char);
+ struct buff_header *,unsigned long,char);
int set_search_string_with_undo(char *,struct cmd_token *uct);
int cmd_tags(struct cmd_token *uct,int,int,int,char *);
int tecmacro(struct buff_header *,struct cmd_token *,struct cmd_token **);