Actions
Bug #298
closedlttng-gen-tp generates non-standard #include guards
Start date:
07/10/2012
Due date:
% Done:
100%
Estimated time:
Description
The #include guard starts with an underscore followed by a capital letter. This is reserved:
http://gcc.gnu.org/onlinedocs/cpp/System_002dspecific-Predefined-Macros.html
$ echo "// coucou" > hello.tp $ lttng-gen-tp hello.tp $ head -n 15 hello.h #undef TRACEPOINT_PROVIDER #define TRACEPOINT_PROVIDER #undef TRACEPOINT_INCLUDE_FILE #define TRACEPOINT_INCLUDE_FILE ./hello.h #ifdef __cplusplus #extern "C"{ #endif /*__cplusplus */ #if !defined(_HELLO_H) || defined(TRACEPOINT_HEADER_MULTI_READ) #define _HELLO_H
Updated by Mathieu Desnoyers over 12 years ago
- Status changed from New to Confirmed
- Assignee set to Yannick Brosseau
Updated by Anonymous over 12 years ago
- Project changed from LTTng-tools to LTTng-UST
Updated by Mathieu Desnoyers about 12 years ago
- Status changed from Confirmed to Resolved
- % Done changed from 0 to 100
Applied in changeset 85302e04b3770ff440896a1500aff84836fa7477.
Actions