ref: a82c479140df86cfdb59694cdbd53599b530f6ab
parent: ea23d22ea851a283b91310c6e77d4dcc230f6247
author: mkf <mkf@cloud9p.org>
date: Wed Dec 6 19:15:16 EST 2023
move prog_t into rc.h
--- a/cmd/rc.h
+++ b/cmd/rc.h
@@ -1,4 +1,9 @@
#pragma once
+typedef struct
+{
+ char *name;
+ int (*main)(int argc, char **argv);
+}prog_t;
extern void rc_main(void);
extern int echo_main(int argc, char **argv);