2017-06-11 12:11:40 +01:00
|
|
|
/* -*-comment-start: "//";comment-end:""-*-
|
2018-07-22 13:24:36 +01:00
|
|
|
* GNU Mes --- Maxwell Equations of Software
|
2018-08-15 16:47:03 +01:00
|
|
|
* Copyright © 2016,2017,2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
2017-06-11 12:11:40 +01:00
|
|
|
*
|
2018-07-22 13:24:36 +01:00
|
|
|
* This file is part of GNU Mes.
|
2017-06-11 12:11:40 +01:00
|
|
|
*
|
2018-07-22 13:24:36 +01:00
|
|
|
* GNU Mes is free software; you can redistribute it and/or modify it
|
2017-06-11 12:11:40 +01:00
|
|
|
* under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
2018-07-22 13:24:36 +01:00
|
|
|
* GNU Mes is distributed in the hope that it will be useful, but
|
2017-06-11 12:11:40 +01:00
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2018-07-22 13:24:36 +01:00
|
|
|
* along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
2017-06-11 12:11:40 +01:00
|
|
|
*/
|
|
|
|
|
2019-05-07 23:25:41 +01:00
|
|
|
#include <mes/lib.h>
|
2018-07-21 09:47:05 +01:00
|
|
|
#include <string.h>
|
2017-06-11 12:11:40 +01:00
|
|
|
|
2018-08-15 16:47:03 +01:00
|
|
|
int
|
2019-10-23 21:15:36 +01:00
|
|
|
strcmp (char *a, char *b)
|
2018-08-15 16:47:03 +01:00
|
|
|
{
|
2019-10-23 21:15:36 +01:00
|
|
|
while (a[0] != 0 && b[0] != 0 && a[0] == b[0])
|
2018-08-15 16:47:03 +01:00
|
|
|
{
|
2019-10-23 21:15:36 +01:00
|
|
|
a = a + 1;
|
|
|
|
b = b + 1;
|
2018-08-15 16:47:03 +01:00
|
|
|
}
|
2019-10-23 21:15:36 +01:00
|
|
|
|
|
|
|
return a[0] - b[0];
|
2018-08-15 16:47:03 +01:00
|
|
|
}
|
|
|
|
|
2017-06-11 12:11:40 +01:00
|
|
|
int
|
2019-10-23 21:15:36 +01:00
|
|
|
main (int argc, char **argv)
|
2017-06-11 12:11:40 +01:00
|
|
|
{
|
|
|
|
eputs ("Hi Mes!\n");
|
|
|
|
#if __MESC_MES__
|
|
|
|
eputs ("MESC.MES\n");
|
|
|
|
#else
|
2018-07-21 09:47:05 +01:00
|
|
|
eputs ("MESC.GUILE\n");
|
2017-06-11 12:11:40 +01:00
|
|
|
#endif
|
2019-10-23 21:15:36 +01:00
|
|
|
if (argc > 1)
|
|
|
|
if (!strcmp (argv[1], "--help"))
|
|
|
|
{
|
|
|
|
eputs ("argc > 1 && --help\n");
|
|
|
|
return argc;
|
|
|
|
}
|
2017-06-11 12:11:40 +01:00
|
|
|
return 42;
|
|
|
|
}
|