parser: Remove the unused attribute alignment from struct declaration_specifiers_t.
[cparser] / adt / strutil.c
1 /*
2  * This file is part of cparser.
3  * Copyright (C) 2012 Christoph Mallon <christoph.mallon@gmx.de>
4  */
5 #include "strutil.h"
6
7 bool streq_underscore(const char *const s1, const char *const s2)
8 {
9         char const* const middle = strstart(s2, "__");
10         if (middle) {
11                 char const* const rest = strstart(middle, s1);
12                 if (rest && streq(rest, "__"))
13                         return true;
14         }
15
16         return streq(s1, s2);
17 }