<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>flying-foozy</author_name>
  <author_url>https://blog.hatena.ne.jp/flying-foozy/</author_url>
  <blog_title>彷徨えるフジワラ</blog_title>
  <blog_url>https://flying-foozy.hatenablog.com/</blog_url>
  <categories>
    <anon>solaris</anon>
    <anon>dtrace</anon>
  </categories>
  <description>DTrace でユーザ定義プロバイダを作成する際に、プローブ引数の型宣言を const 修飾した場合: provider foo { probe bar(const char *a); };このプロバイダ定義を元に、C/C++ 向けヘッダファイルを生成すると: extern void __dtrace_foo___bar(char *); こんな感じで、const 修飾が外れてしまうので、例えばこのプローブを const 指定付きの char* 変数で呼び出そうとすると、コンパイラに文句を言われてしまう。キャストで強制的に型変換するようなマクロを間に挟んでも良いのだけれど、そうすると、うっかり…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fflying-foozy.hatenablog.com%2Fentry%2F20100518%2F1274198125&quot; title=&quot; DTrace で const 指定が無視される件 - その1 - 彷徨えるフジワラ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-05-18 00:55:25</published>
  <title> DTrace で const 指定が無視される件 - その1</title>
  <type>rich</type>
  <url>https://flying-foozy.hatenablog.com/entry/20100518/1274198125</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
