Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • libX11 libX11
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xorgxorg
  • lib
  • libX11libX11
  • Repository
Switch branch/tag
  • libx11
  • include
  • X11
  • Xlib.h
Find file BlameHistoryPermalink
  • Dominik Muth's avatar
    Xlib.h: Fix macros imitating C functions. · 4de6ed3e
    Dominik Muth authored Mar 26, 2015 and Alan Coopersmith's avatar Alan Coopersmith committed Feb 03, 2016
    The basic rule "put parantheses around macro parameters" should be
    observed where possible. Otherwise code like
    
        ConnectionNumber(foo = bar);
    
    fails to compile. (It obviously passes if ConnectionNumber is a C
    function.) There are several other macros amended for the same reason.
    
    This bug appeared while building http://ioccc.org/1993/cmills.c
    
    , so
    historically it was not present.
    
    Signed-off-by: default avatarDominik Muth <muth@nxdomain.no-ip.biz>
    Reviewed-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    Signed-off-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
    4de6ed3e