aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-05-18 12:20:51 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-05-18 12:20:51 +0000
commitadd560e4e3c55b2481ab7c691be055f3095667a4 (patch)
tree0fda9abc2b39abde651470d705567f747808e45b /src/main.c
parent0891f1ede52fc72aaa77a8c0cc29951f8552b6d1 (diff)
downloadcflow-add560e4e3c55b2481ab7c691be055f3095667a4.tar.gz
cflow-add560e4e3c55b2481ab7c691be055f3095667a4.tar.bz2
Update for the recent gnulib
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 3e933d9..78f615d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -22,3 +22,2 @@
#include <parser.h>
-#include <strndup.h>
@@ -216,2 +215,3 @@ int omit_symbol_names_option; /* Omit symbol name from symbol declaration string
#define SM_TYPEDEF 0x0010
+#define SM_UNDEFINED 0x0020
@@ -220,3 +220,4 @@ int omit_symbol_names_option; /* Omit symbol name from symbol declaration string
(c)=='s' ? SM_STATIC : \
- (c)=='t' ? SM_TYPEDEF : 0)
+ (c)=='t' ? SM_TYPEDEF : \
+ (c)=='u' ? SM_UNDEFINED : 0)
#define SYMBOL_INCLUDE(c) (symbol_map |= CHAR_TO_SM(c))
@@ -595,2 +596,3 @@ parse_opt (int key, char *arg, struct argp_state *state)
case 't':
+ case 'u':
if (num)
@@ -712,2 +714,6 @@ include_symbol(Symbol *sym)
type |= SM_FUNCTIONS;
+
+ if (!sym->source)
+ type |= SM_UNDEFINED;
+
} else if (sym->type == SymToken) {
@@ -757,3 +763,3 @@ main(int argc, char **argv)
- symbol_map = SM_FUNCTIONS|SM_STATIC;
+ symbol_map = SM_FUNCTIONS|SM_STATIC|SM_UNDEFINED;

Return to:

Send suggestions and report system problems to the System administrator.