repo.or.cz
/
opsoft.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
+ Fixes
[opsoft.git]
/
silentbob
/
src
/
interactive.cxx
blob
79041b913a895f0d763cde0d02d30c084562eb7d
1
/*
2
* (c) Oleg Puchinin 2008
3
* graycardinalster@gmail.com
4
*
5
*/
6
7
#include <head.h>
8
9
void
tags_interactive
()
10
{
11
DArray
*
t
;
12
char
m_buf
[
512
];
13
14
m_buf
[
511
] =
'\0'
;
15
while
(
true
) {
16
printf
(
"Tag: "
);
17
fflush
(
stdout
);
18
19
if
(!
fgets
(
m_buf
,
511
,
stdin
))
20
break
;
21
22
chomp
(
m_buf
);
23
t
=
Dsplit
(
m_buf
, (
char
*)
" "
);
24
if
(!
t
)
25
continue
;
26
tags
(
t
,
NULL
);
27
t
->
foreach
(
free
);
28
delete
t
;
29
}
30
}
31