[ https://issues.apache.org/jira/browse/TS-2200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810130#comment-13810130 ]
ASF subversion and git services commented on TS-2200: ----------------------------------------------------- Commit e75d33a39fd94ae0942714201d875876cec574f4 in branch refs/heads/master from [~happy_fish100] [ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=e75d33a ] TS-2200: define macro TS_HRTIME_XXX directly old macro defines can NOT be used in plugin because the target macros defined in lib/ts/ink_hrtime.h > the macro TS_HRTIME_xxx in proxy/api/ts/experimental.h is invalid when plugin > use these macros > ---------------------------------------------------------------------------------------------- > > Key: TS-2200 > URL: https://issues.apache.org/jira/browse/TS-2200 > Project: Traffic Server > Issue Type: Bug > Components: TS API > Reporter: Yu Qing > Assignee: Yu Qing > Fix For: 4.2.0 > > Attachments: 0001-define-macro-TS_HRTIME_XXX-directly.patch > > > such macro defines in proxy/api/ts/experimental.h: > #define TS_HRTIME_FOREVER HRTIME_FOREVER > #define TS_HRTIME_DECADE HRTIME_DECADE > #define TS_HRTIME_YEAR HRTIME_YEAR > #define TS_HRTIME_WEEK HRTIME_WEEK > #define TS_HRTIME_DAY HRTIME_DAY > #define TS_HRTIME_HOUR HRTIME_HOUR > #define TS_HRTIME_MINUTE HRTIME_MINUTE > #define TS_HRTIME_SECOND HRTIME_SECOND > #define TS_HRTIME_MSECOND HRTIME_MSECOND > #define TS_HRTIME_USECOND HRTIME_USECOND > #define TS_HRTIME_NSECOND HRTIME_NSECOND > ... > The macros of HRTIME_xxx (such as HRTIME_SECOND) in lib/ts/ink_hrtime.h。 > Because the TS plugins SHOULD not include the header file ink_hrtime.h, so > they can't use above macros like TS_HRTIME_xxx。 -- This message was sent by Atlassian JIRA (v6.1#6144)