#! /bin/sh # @configure_input@ #---------------------------------------------------------------------------# # Copyright (C) 1995-1999 The University of Melbourne. # This file may only be copied under the terms of the GNU General # Public License - see the file COPYING in the Mercury distribution. #---------------------------------------------------------------------------# # C2INIT - Convert *.c to *_init.c # # This script outputs an appropriate init.c, given the .c files. # Type `c2init --help' for usage message. # # IMPORTANT: the manpage is produced automatically from this help # message, so if you change the help message, don't forget to check # that the manpage still looks OK. Help="\ Name: c2init - Create Mercury initialization file. Usage: c2init [options] *.c *.init ... Options: -a, --aditi Generate a function to upload Aditi-RL data to a database. -c , --max-calls Break up the initialization into groups of at most function calls. (Default value of is 40.) -i, --include-initialization-code Always include code that calls the initialization functions of the various modules. With this option, the debugger can use information from any modules that were compiled with execution tracing to print (partial) stack traces, and to print the values of variables in ancestors of the current call, even in grades in which this not normally possible. -t, --trace Enable execution tracing in the generated executable. Implies -i. -l, --library Don't generate a \`main()' function. Instead, generate a function mercury_main(int argc, char **argv); (declared in \"init.h\") that can be called from C code. (A more fine-grained interface is also available; see \"init.h\" for details.) -w