:c:func:`delay` does not produce a reference

Ben Franksen avatarBen Franksen created an issue

I have a C function in my project that is named "delay". For this function, no reference to its documentation is generated when I say :c:func:delay. The feature works fine for all other functions, BTW.

Comments (3)

  1. Ben Franksen

    Sure, see below. BTW, I just found that this happens only if the section name above the function definition is the same as the function name. If I change the section name, the problem disappears. However, it does only happen if the name (of the function and section title) is 'delay', otherwise it works.

    This is the definition:

       delay
       ^^^^^
    
       .. c:function::
          boolean delay(double delay_in_seconds)
    

    And this is one instance of a reference:

       action code, but the effect is probably not what you want. For instance,
       calling :c:func:`delay` in action code does *not* introduce a delay at this
       point. Later versions of *snc* may output a warning or even stop with an
       error.
    

    The whole project including documentation sources is in a darcs repo at http://www-csr.bessy.de/control/SoftDist/sequencer/repo/branch-2-2

  2. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.