Changes between Version 2 and Version 3 of PortingYourApp


Ignore:
Timestamp:
Oct 19, 2009, 8:03:58 AM (15 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PortingYourApp

    v2 v3  
    3434 * `lib/Makefile`
    3535   {{{
    36 objs = getopt.o getopt1.o number.o getenv.o
     36objs = getopt.o getopt1.o number.o glue.o
    3737
    3838DIR_CFLAGS=-I$(srcdir)/../lib -I$(srcdir)/../h -I$(srcdir)/.. -U__MUTEK__ -DHAVE_CONFIG_H
     
    5050  * `signal()`
    5151  * `sys/types.h`
     52 * As it is unix and user-specific, MutekH starts with `app_start()`, not `main()`. We need a wrapper that calls `main()`.
    5253
    5354 We will have to provide them.
     
    6061{
    6162        return NULL;
     63}
     64
     65int main(int, char**);
     66
     67void app_start()
     68{
     69        char *argv[] = {"bc"};
     70        main(1, argv);
    6271}
    6372}}}