ok_directive_as_identifier

# Unit ok_directive_as_identifier

Description
Classes, Interfaces, Objects and Records
Functions and Procedures

## Description

All calling-convention specifiers must *not* be made links in docs. But "Register" procedure name must be made a link. Yes, the difficulty is here that "register" is once a calling-convention specifier and once a procedure name.

This is related to bug submitted to pasdoc-main list [http://sourceforge.net/mailarchive/message.php?msg_id=11397611].

## Overview

### Classes, Interfaces, Objects and Records

Name | Description
--- | ---
Class `TMyClass` |

### Functions and Procedures

`procedure Bar; cdecl;`
`procedure Cdecl; register;`
`procedure Foo; register;`
`procedure Foo1(const S: string = 'register'; MyClass: TMyClass);`
`procedure Register; register;`

## Description

### Functions and Procedures

`procedure Bar; cdecl;`
This item has no description.

`procedure Cdecl; register;`
This item has no description.

`procedure Foo; register;`
This item has no description.

`procedure Foo1(const S: string = 'register'; MyClass: TMyClass);`
Some other test for THTMLDocGenerator.WriteCodeWithLinks, while I'm at it: Note that link to TMyClass should be correctly made. 'register' should be displayed as a string, of course, and not linked.

`procedure Register; register;`
This item has no description.