Rename "features.h" to "lang.h"

In preparation for introducing "feature.h" for feature-driven linking.
This commit is contained in:
Andrew Bettison 2016-10-13 17:27:04 +10:30
parent 937e402794
commit 6dd823a9e8
10 changed files with 16 additions and 15 deletions

View File

@ -43,7 +43,7 @@ HDRS= fifo.h \
fdqueue.h \
http_server.h \
xprintf.h \
features.h \
lang.h \
constants.h \
monitor-client.h \
mdp_client.h \

View File

@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef __SERVAL_DNA__INSTANCE_H
#define __SERVAL_DNA__INSTANCE_H
#include "features.h"
#include "lang.h"
#include "whence.h"
#include "strbuf.h"

View File

@ -18,7 +18,7 @@
*/
#include <stdio.h>
#include "features.h"
#include "lang.h"
#include "cli.h"
#include "serval_types.h"
#include "str.h"

View File

@ -1,5 +1,6 @@
/*
Copyright (C) 2015 Serval Project Inc.
Copyright (C) 2016 Flinders University
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@ -16,10 +17,11 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __SERVAL_DNA__FEATURES_H
#define __SERVAL_DNA__FEATURES_H
#ifndef __SERVAL_DNA__LANG_H
#define __SERVAL_DNA__LANG_H
/* Useful macros not specific to Serval DNA
/* Useful macros not specific to Serval DNA that assist with using the C
* language.
*/
// Number of elements in an array (Warning: does not work if A is a pointer!).
@ -60,4 +62,4 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# define UNUSED(x) x
#endif
#endif // __SERVAL_DNA__FEATURES_H
#endif // __SERVAL_DNA__LANG_H

2
mem.h
View File

@ -21,7 +21,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#define __SERVAL_DNA__MEM_H
#include <sys/types.h>
#include "features.h"
#include "lang.h"
#include "log.h"
// #define MALLOC_PARANOIA

View File

@ -19,7 +19,7 @@
#ifndef __SERVAL_DNA__SECTION_H
#define __SERVAL_DNA__SECTION_H
#include "features.h"
#include "lang.h"
/* Macros for creating named linkage sections.
*/

View File

@ -18,8 +18,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "features.h"
#include "constants.h"
#include "lang.h"
#include "sighandlers.h"
int sigPipeFlag=0;
@ -33,7 +32,7 @@ void sigPipeHandler(int UNUSED(signal))
}
void sigIoHandler(int UNUSED(signal))
{
{
sigIoFlag++;
return;
}

View File

@ -32,7 +32,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# endif
#endif
#include "features.h"
#include "lang.h"
#include "whence.h"
struct socket_address{

View File

@ -20,7 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#ifndef __STRBUF_H__
#define __STRBUF_H__
#include <stddef.h>
#include "features.h"
#include "lang.h"
/**
A strbuf provides a convenient set of primitives for assembling a

View File

@ -64,7 +64,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#include <stdarg.h>
#include <unistd.h>
#include "features.h"
#include "lang.h"
typedef void CONTEXT_VPRINTF(void *context, const char *fmt, va_list);