/*---------------------------------------------------------------------------* Project: TwlSDK - - makelst File: searcharg.c Copyright 2006-2009 Nintendo. All rights reserved. These coded instructions, statements, and computer programs contain proprietary information of Nintendo of America Inc. and/or Nintendo Company Ltd., and are protected by Federal copyright law. They may not be disclosed to third parties or copied or duplicated in any form, in whole or in part, without the prior written consent of Nintendo. $Date:: 2009-06-04#$ $Rev: 10698 $ $Author: okubata_ryoma $ *---------------------------------------------------------------------------*/ #include #include #include #include #include "searcharg.h" extern const unsigned long SDK_DATE_OF_LATEST_FILE; int modc; char** modv; char** dll_argv; char** static_argv; char** header_argv; int dll_index = 0; int static_index = 0; int header_index = 0; char* output_fname = NULL; void SA_Usage( void) { fprintf( stderr, "Development Tool - makelst - Make \"C\" source file\n"); fprintf( stderr, "Build %lu\n\n", SDK_DATE_OF_LATEST_FILE); fprintf( stderr, "Usage: makelst [-o output-file] [--static static-files ...] [--dll dll-files ...] [--header header-files ...]\n\n"); exit( 1); } /* Convert -dll A B C ... to -dll A -dll B -dll C ...*/ void SA_modify( int argc, char* argv[]) { int i=0; int j=0; char* opt_name; modv = malloc( 4 * (argc * 3)); for( ; i