mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 11:33:34 +08:00
Working on configure.c
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5477 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+14
-1
@@ -49,6 +49,18 @@
|
||||
|
||||
#define LINESIZE ( PATH_MAX > 256 ? PATH_MAX : 256 )
|
||||
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
struct variable_s
|
||||
{
|
||||
struct variable_s *flink;
|
||||
char *var;
|
||||
char *val;
|
||||
char storage[1];
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
@@ -59,6 +71,7 @@ extern char line[LINESIZE+1];
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
extern void parse_file(FILE *stream);
|
||||
void parse_file(FILE *stream, struct variable_s **list);
|
||||
struct variable_s *find_variable(const char *varname, struct variable_s *list);
|
||||
|
||||
#endif /* __TOOLS_CFGPARSER_H */
|
||||
|
||||
Reference in New Issue
Block a user