main.c

来自「在ecos 下mingui 的移植开发」· C语言 代码 · 共 80 行

C
80
字号
//// main.c: The main function wrapper.//// Copyright (C) 1999, Wei Yongming.//// Current maintainer: Wei Yongming./***  This library is free software; you can redistribute it and/or**  modify it under the terms of the GNU Library General Public**  License as published by the Free Software Foundation; either**  version 2 of the License, or (at your option) any later version.****  This library is distributed in the hope that it will be useful,**  but WITHOUT ANY WARRANTY; without even the implied warranty of**  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU**  Library General Public License for more details.****  You should have received a copy of the GNU Library General Public**  License along with this library; if not, write to the Free**  Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,**  MA 02111-1307, USA*///// Modify records:////  Who             When        Where       For What                Status//-----------------------------------------------------------------------------//// TODO:// #include <stdio.h>#include "common.h"#include "minigui.h"#include "gal.h"#ifndef lintstatic char fileid[] = "$Id: main.c,v 1.10 2000/10/17 12:17:47 weiym Exp $";#endifBOOL GUIAPI InitGUI (void /*char* spAppName*/ );void GUIAPI TerminateGUI (int rcByGUI);// this is the main function.// this function will call the MiniGUIMain, which works as// the wrapper to this main function, and is the only entry of// any MiniGUI application.int main(int args, const char* agr[]){    int iRet = 0;    if (!PreInitGUI (args, agr, &iRet))        return iRet;    if (!InitGUI()) {#ifndef _EP7211        fprintf (stderr, "InitGUI failure when using %s as cfg file.\n",                 ETCFILEPATH);        #endif        return -1;    }    iRet = MiniGUIMain (args, agr);    TerminateGUI (iRet);    iRet = PostTerminateGUI (args, agr, iRet);    return iRet;}void GUIAPI MiniGUIPanic (int exitcode){    GAL_Panic (exitcode);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?