-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcommandsEditor.cpp
More file actions
77 lines (62 loc) · 1.38 KB
/
commandsEditor.cpp
File metadata and controls
77 lines (62 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#ifdef __amigaos4__
#include <proto/exec.h>
#include <proto/dos.h>
#include <proto/retroMode.h>
#endif
#ifdef __linux__
#include <sys/time.h>
#include <unistd.h>
#include <stdint.h>
#include "os/linux/stuff.h"
#endif
#include <amosKittens.h>
#include <stack.h>
#include "debug.h"
#include "commandsEditor.h"
#include "var_helper.h"
#include "kittyErrors.h"
#include "engine.h"
#include "amosString.h"
char *_cmdCallEditor( struct glueCommands *data, int nextToken )
{
int args = __stack - data->stack +1 ;
proc_names_printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__);
switch (args)
{
case 1:
break;
defaut:
popStack(__stack - data->stack );
setError(22,data->tokenBuffer);
}
return NULL;
}
char *cmdCallEditor(struct nativeCommand *cmd, char *tokenBuffer)
{
stackCmdNormal( _cmdCallEditor, tokenBuffer );
return tokenBuffer;
}
char *_cmdAskEditor( struct glueCommands *data, int nextToken )
{
int args = __stack - data->stack +1 ;
proc_names_printf("%s:%s:%d\n",__FILE__,__FUNCTION__,__LINE__);
switch (args)
{
case 1:
break;
defaut:
popStack(__stack - data->stack );
setError(22,data->tokenBuffer);
}
return NULL;
}
char *cmdAskEditor(struct nativeCommand *cmd, char *tokenBuffer)
{
stackCmdNormal( _cmdAskEditor, tokenBuffer );
return tokenBuffer;
}