SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
27
emulators/simh/patches/patch-scp_c
Normal file
27
emulators/simh/patches/patch-scp_c
Normal file
|
@ -0,0 +1,27 @@
|
|||
--- scp.c.orig Sun Mar 25 11:57:18 2012
|
||||
+++ scp.c Fri Feb 19 07:08:06 2021
|
||||
@@ -269,7 +269,11 @@
|
||||
/* The per-simulator init routine is a weak global that defaults to NULL
|
||||
The other per-simulator pointers can be overrriden by the init routine */
|
||||
|
||||
-void (*sim_vm_init) (void);
|
||||
+#ifdef HAVE_VM_INIT
|
||||
+extern void (*sim_vm_init) (void);
|
||||
+#else
|
||||
+void (*sim_vm_init) (void) = NULL;
|
||||
+#endif
|
||||
char* (*sim_vm_read) (char *ptr, int32 size, FILE *stream) = NULL;
|
||||
void (*sim_vm_post) (t_bool from_scp) = NULL;
|
||||
CTAB *sim_vm_cmd = NULL;
|
||||
@@ -692,8 +696,10 @@
|
||||
cptr = (*sim_vm_read) (cbuf, CBUFSIZE, stdin);
|
||||
}
|
||||
else cptr = read_line_p ("sim> ", cbuf, CBUFSIZE, stdin);/* read with prmopt*/
|
||||
- if (cptr == NULL) /* ignore EOF */
|
||||
+ if (cptr == NULL) { /* ignore EOF */
|
||||
+ putchar('\n');
|
||||
continue;
|
||||
+ }
|
||||
if (*cptr == 0) /* ignore blank */
|
||||
continue;
|
||||
if (sim_log) /* log cmd */
|
Loading…
Add table
Add a link
Reference in a new issue