Hi all,

I've found a bug(maybe) in Inline C while dig wchar_t. see
http://www.perlmonks.org/?node_id=981427

I made a small inline c snippet as rob's suggestion, but throw an error:
....
l\lib\CORE"   test_list_pl_f553.c
test_list_pl_f553.xs: In function `GetProcessList':
test_list_pl_f553.xs:29: error: missing terminating " character
test_list_pl_f553.xs:30: error: missing terminating " character
test_list_pl_f553.xs:35: error: syntax error before '}' token
dmake.exe:  Error code 129, while making 'test_list_pl_f553.o'


I've found this error is because inline can't treat \n in printf statement
correctly, In xs file,
printf("blah blah blah %s \n", sz) will be translated into

printf("blah blah blah %s
", sz)                           #two lines!!


a bug?

Reply via email to