From 532f965e15e359a8192989891d8a36d2c584968f Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Tue, 10 Nov 2009 09:46:56 +0200 Subject: [PATCH] Add some comments and copyright notices. Signed-off-by: Dan Carpenter --- smatch_conditions.c | 4 ++++ smatch_extra.c | 4 ++++ smatch_helper.c | 4 ++++ smatch_ignore.c | 9 +++++++++ smatch_ranges.c | 2 +- smatch_states.c | 2 +- smatch_tracker.c | 9 +++++++++ 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/smatch_conditions.c b/smatch_conditions.c index 965471e8..bed008c2 100644 --- a/smatch_conditions.c +++ b/smatch_conditions.c @@ -102,6 +102,10 @@ static int ignore_builtin_expect(struct expression *expr) return 0; } +/* + * handle_compound_stmt() is for: foo = ({blah; blah; blah; 1}) + */ + static void handle_compound_stmt(struct statement *stmt) { struct expression *expr = NULL; diff --git a/smatch_extra.c b/smatch_extra.c index e4c56b93..2e9b9481 100644 --- a/smatch_extra.c +++ b/smatch_extra.c @@ -7,6 +7,10 @@ * */ +/* + * smatch_extra.c is supposed to track the value of every variable. + */ + #include #define __USE_ISOC99 #include diff --git a/smatch_helper.c b/smatch_helper.c index 2ebfd872..8d3a206c 100644 --- a/smatch_helper.c +++ b/smatch_helper.c @@ -7,6 +7,10 @@ * */ +/* + * Miscellaneous helper functions. + */ + #include #include #include "allocate.h" diff --git a/smatch_ignore.c b/smatch_ignore.c index d58acd81..2ac6b9be 100644 --- a/smatch_ignore.c +++ b/smatch_ignore.c @@ -1,3 +1,12 @@ +/* + * sparse/smatch_tracker.c + * + * Copyright (C) 2009 Dan Carpenter. + * + * Licensed under the Open Software License version 1.1 + * + */ + #include "smatch.h" static struct tracker_list *ignored; diff --git a/smatch_ranges.c b/smatch_ranges.c index 5fdb2302..fce23bf7 100644 --- a/smatch_ranges.c +++ b/smatch_ranges.c @@ -1,5 +1,5 @@ /* - * sparse/smatch_extra_helper.c + * sparse/smatch_ranges.c * * Copyright (C) 2009 Dan Carpenter. * diff --git a/smatch_states.c b/smatch_states.c index 0cdd36ba..87a68e51 100644 --- a/smatch_states.c +++ b/smatch_states.c @@ -3,7 +3,7 @@ * * Copyright (C) 2006 Dan Carpenter. * - * Licensed under the Open Software License version 1.1 + * Licensed under the Open Software License version 1.1 * */ diff --git a/smatch_tracker.c b/smatch_tracker.c index ad55eb7c..2b50de0d 100644 --- a/smatch_tracker.c +++ b/smatch_tracker.c @@ -1,3 +1,12 @@ +/* + * sparse/smatch_tracker.c + * + * Copyright (C) 2009 Dan Carpenter. + * + * Licensed under the Open Software License version 1.1 + * + */ + #include "smatch.h" ALLOCATOR(tracker, "trackers"); -- 2.11.4.GIT