* fixed a bug, which caused ptr(nonconst, const) to be incorrectly inlined as a const

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@24571 3ad0048d-3df7-0310-abae-a5850022a9f2
Fix for Mantis #24071.

pdecl.pas, types_dec:
  * extract the determination of the nested generic def to a new local function "determine_generic_def"
  * use "determine_generic_def" to determine the generic def in case of a forward def and pass this and the generic type list to "object_dec"

+ added test

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@24572 3ad0048d-3df7-0310-abae-a5850022a9f2
+ implemented ParamStr(0) on i8086-msdos, using our limited far pointer support

git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@24573 3ad0048d-3df7-0310-abae-a5850022a9f2