1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - tools - defval 3 File: defval.h 4 5 Copyright 2005-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-17#$ 14 $Rev: 8556 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 #ifndef DEFVAL_H_ 18 #define DEFVAL_H_ 19 20 #include <stdio.h> 21 #include <stdlib.h> // getenv() 22 #include <ctype.h> // isspace() 23 #include <string.h> // strlen(), strcasecmp() 24 #include <getopt.h> // getopt() 25 #include "misc.h" // BOOL 26 27 //---------------------------------------------------------------------------- 28 // List that maintains defined values 29 // 30 typedef struct tDefineValue 31 { 32 struct tDefineValue *next; 33 char *name; 34 char *value; 35 } 36 tDefineValue; 37 38 //---------------------------------------------------------------------------- 39 // set_defval.c 40 // 41 extern tDefineValue *gDefineValueTop; 42 BOOL add_dvalue_by_equality(const char *equality); 43 BOOL add_dvalue_from_file(const char *filename); 44 45 //---------------------------------------------------------------------------- 46 // get_defval.c 47 // 48 tDefineValue *get_dvalue_listptr(const char *name); 49 BOOL puts_modified_dvalue(FILE * fp, const char *str); 50 51 #endif //DEFVAL_H_ 52