在SED源我經常爲什麼在func()和{}之間放置聲明?
func(...)
int b;
char c;
{
...
}
爲什麼把變量有看到?它是否改變了範圍?
喜歡這裏:http://www.mirrors.docunext.com/lxr/http/source/src/bin/sed/lib/regex_internal.c?v=haiku
re_string_allocate (pstr, str, len, init_len, trans, icase, dfa)
51 re_string_t *pstr;
52 const char *str;
53 int len, init_len, icase;
54 RE_TRANSLATE_TYPE trans;
55 const re_dfa_t *dfa;
56 {
57 reg_errcode_t ret;
58 int init_buf_len;
59
Eek,K&R聲明! – 2011-03-30 19:12:49
+1,我今天學到了一些新東西。我甚至不知道這存在。 – 2011-03-30 19:16:33