[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Minios-devel] [UNIKRAFT/LIBMICROPYTHON PATCH v3 6/6] Add optional main()
- To: "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Vlad-Andrei BĂDOIU (78692) <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
- Date: Wed, 9 Oct 2019 12:19:44 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5vQuRjOO8oNOQy1jBy+OY9nXU5jI+rWePDwL1rYCBU0=; b=BoQpz3PwG1kX1C37pTe1VjEvc9fviaIbfNLZylqAS6Pt7Q3DyH5zwYS4A6pRdZPtMBwFs/3XukpvW+cCdBAPKmaXHCdEVQfY1Ez1rRDE19wzjwAkdJIxb254MxM1wSZKOdzCamuU0Pm/owQxeIpseCmBUOQ9JN3ieZDdUv5v/bZxnq04j+RtJtKNlX+dRO10macq4FxB0TrFvz4MOIKg/O8duEesypis9sylkdqad20HSeipY/ns2StVaSnxzMW0uov4qvIc15D/sZPhMcUEpYmRHNexrCyyodW0H/iWTzNiVymf5RaK0N40gkmCdccspsLXx7Li0TDE5cB+K3ho9Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BzxBSJ7DPtMmYpNPNbPd7vlLPTq5BJErBfvnvucPmLe1uJEAo/fJDhDT5silygE/ZCTNJIyimrz3woit2I/5We3BCUXdYIW2I8xEHTPnWqHQ11ALYWSpVIBUl9chQgOJfkrTIX2tjZtPU2VnTYdA7A9jq0icSNx1eFIkgdacOc9wN+pgCa2MHvMXWNsqvHwHEVuhyLBQ6OiGFrzOJsfokvmPPOtBS23I8DLVAG1NgpWK2ISeYqR9UoYmkNXWTkmXG9X3QHSQXpI+HGUwujBrGZywp0g/VfgPNO0/69Hg6ag6Nl+/mz8ZLiA5Ynpf5i9XW5Es0v1eglhz5axkUYEUHw==
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
- Delivery-date: Wed, 09 Oct 2019 12:19:50 +0000
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
- Thread-index: AQHVfnFNSu33hCoGiECelF1AVZbpNqdSOsaA
- Thread-topic: [Minios-devel] [UNIKRAFT/LIBMICROPYTHON PATCH v3 6/6] Add optional main()
Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
On 09.10.2019 10:14, Felipe Huici wrote:
> We add an optional main, selectable from the menu, that forwards
> parameters to Micropython's main function.
>
> Signed-off-by: Felipe Huici <felipe.huici@xxxxxxxxx
> ---
> glue.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
> create mode 100644 glue.c
>
> diff --git a/glue.c b/glue.c
> new file mode 100644
> index 0000000..2848e90
> --- /dev/null
> +++ b/glue.c
> @@ -0,0 +1,10 @@
> +#include <stdio.h>
> +
> +/* Import user configuration: */
> +#include <uk/config.h>
> +
> +int main(int argc, char *argv[])
> +{
> + micropython_main(argc, argv);
> + return 0;
> +}
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|