SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View 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 */