Replace socket_handler::fill_buffer() recursion with loop (#8389)
[libt2n] / libt2n-gccxml.sh
... / ...
CommitLineData
1#!/bin/sh
2
3# Filter "-pthread" option from newer gcc versions
4# as it's currently unsupported in gccxml.
5EOO=0
6while [[ $1 ]]; do
7if ! ((EOO)); then
8 case "$1" in
9 -pthread)
10 shift
11 ;;
12 --)
13 EOO=1
14 OPTIONS="$OPTIONS $1"
15 shift
16 ;;
17 *)
18 OPTIONS="$OPTIONS $1"
19 shift
20 ;;
21 esac
22else
23 OPTIONS="$OPTIONS $1"
24 shift
25fi
26done
27
28gccxml $OPTIONS