[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kdoc
Subject:    const pointer variables
From:       Wolfgang Bangerth <Wolfgang.Bangerth () IWR ! Uni-Heidelberg ! De>
Date:       1999-12-13 15:52:12
[Download RAW message or body]


Hi there,
this time it's a rather short patch, and a simple one above that. The
problem is for variable declarations like
  const X * const x;
(i.e. the const after the *). The patch is as follows.

Regards
  Wolfgang

*** kdoc.3      Wed Dec  1 11:38:48 1999
--- kdoc        Mon Dec 13 16:49:42 1999
***************
*** 636,642 ****
        elsif ( $decl =~ /^
                        \s*( (?:[\w_:]+(?:\s+[\w_:]+)*? )# type
                                \s*(?:<.+>)?                    # template
!                               \s*(?: [\&\*][\&\*\s]*)?)       # ptr or ref
                        \s*([\w_:]+)                    # name
                        \s*( (?:\[[^\[\]]*\] (?:\s*\[[^\[\]]*\])*)? ) #array
                        \s*((?:=.*)?)                   # value
--- 636,642 ----
        elsif ( $decl =~ /^
                        \s*( (?:[\w_:]+(?:\s+[\w_:]+)*? )# type
                                \s*(?:<.+>)?                    # template
!                               \s*(?:[\&\*](?:const|volatile|[\&\*\s]*)*)?)  # ptr or ref
                        \s*([\w_:]+)                    # name
                        \s*( (?:\[[^\[\]]*\] (?:\s*\[[^\[\]]*\])*)? ) #array
                        \s*((?:=.*)?)                   # value


-------------------------------------------------------------------------
Wolfgang Bangerth          email: wolfgang.bangerth@iwr.uni-heidelberg.de
                             www: http://gaia.iwr.uni-heidelberg.de/~wolf

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic