Bug 2560 - [PATCH] ANSI-fy Xserver/dix
Summary: [PATCH] ANSI-fy Xserver/dix
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: Other Linux (All)
: high enhancement
Assignee: Roland Mainz
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-17 02:21 UTC by Mike Owens
Modified: 2005-03-06 20:04 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch to ANSI-fy programs/Xserver/dix (157.25 KB, patch)
2005-02-17 02:24 UTC, Mike Owens
no flags Details | Splinter Review
ANSI-fy Xserver/dix; update Doxygen stubs to conforming syntax (157.21 KB, patch)
2005-02-19 22:21 UTC, Mike Owens
no flags Details | Splinter Review
Patch for 2005-03-07-trunk (same as attachment #1945 + Changelog diff) (446.23 KB, patch)
2005-03-07 14:59 UTC, Roland Mainz
no flags Details | Splinter Review

Description Mike Owens 2005-02-17 02:21:58 UTC
This soon-to-be attached patch converts the K&R-style prototypes in Xserver/dix        
to the newer ANSI-style.  
  
The conversion was done by hand in an effort to preserve the comments which        
annotate variables.  These have been moved into doxygen(esque?) "stubs" above    
each function.  
  
Effort was taken to preserve the local "style" of different files.  
  
As expected, the diff is quite large, but fairly obvious.  I've checked over       
the patch by hand and found no type discrepancies.  The resulting    
server runs as expected in my near-default configuration.  
  
Depending on the reception of such large a large, intrusive patch, I'll move on  
to ANSI-fying other areas in Xorg CVS in the coming weeks.
Comment 1 Mike Owens 2005-02-17 02:24:05 UTC
Created attachment 1919 [details] [review]
Patch to ANSI-fy programs/Xserver/dix
Comment 2 Mike Owens 2005-02-19 22:21:56 UTC
Created attachment 1945 [details] [review]
ANSI-fy Xserver/dix; update Doxygen stubs to conforming syntax

This update changes the \arg to the more universal and fitting Doxygen \param. 
I also checked over the argument lists for types that would be subject to
promotion in K&R vs ANSI, nothing relevant (as far as my understanding of K&R
goes) was found.
Comment 3 Roland Mainz 2005-03-07 14:58:17 UTC
Taking bug for commit...
Comment 4 Roland Mainz 2005-03-07 14:59:31 UTC
Created attachment 2037 [details] [review]
Patch for 2005-03-07-trunk (same as attachment #1945 [details] [review] + Changelog diff)
Comment 5 Roland Mainz 2005-03-07 15:04:25 UTC
Patch checked-in...

/cvs/xorg/xc/ChangeLog,v  <--  xc/ChangeLog
new revision: 1.802; previous revision: 1.801
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/dix/atom.c,v  <--  xc/programs/Xserver/dix/atom.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/colormap.c,v  <-- 
xc/programs/Xserver/dix/colormap.c
new revision: 1.6; previous revision: 1.5
/cvs/xorg/xc/programs/Xserver/dix/cursor.c,v  <-- 
xc/programs/Xserver/dix/cursor.c
new revision: 1.4; previous revision: 1.3
/cvs/xorg/xc/programs/Xserver/dix/devices.c,v  <-- 
xc/programs/Xserver/dix/devices.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/dispatch.c,v  <-- 
xc/programs/Xserver/dix/dispatch.c
new revision: 1.7; previous revision: 1.6
/cvs/xorg/xc/programs/Xserver/dix/dixfonts.c,v  <-- 
xc/programs/Xserver/dix/dixfonts.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/dixutils.c,v  <-- 
xc/programs/Xserver/dix/dixutils.c
new revision: 1.6; previous revision: 1.5
/cvs/xorg/xc/programs/Xserver/dix/events.c,v  <-- 
xc/programs/Xserver/dix/events.c
new revision: 1.7; previous revision: 1.6
/cvs/xorg/xc/programs/Xserver/dix/extension.c,v  <-- 
xc/programs/Xserver/dix/extension.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/gc.c,v  <--  xc/programs/Xserver/dix/gc.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/glyphcurs.c,v  <-- 
xc/programs/Xserver/dix/glyphcurs.c
new revision: 1.2; previous revision: 1.1
/cvs/xorg/xc/programs/Xserver/dix/grabs.c,v  <-- 
xc/programs/Xserver/dix/grabs.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/main.c,v  <--  xc/programs/Xserver/dix/main.c
new revision: 1.5; previous revision: 1.4
/cvs/xorg/xc/programs/Xserver/dix/pixmap.c,v  <-- 
xc/programs/Xserver/dix/pixmap.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/privates.c,v  <-- 
xc/programs/Xserver/dix/privates.c
new revision: 1.4; previous revision: 1.3
/cvs/xorg/xc/programs/Xserver/dix/property.c,v  <-- 
xc/programs/Xserver/dix/property.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/resource.c,v  <-- 
xc/programs/Xserver/dix/resource.c
new revision: 1.4; previous revision: 1.3
/cvs/xorg/xc/programs/Xserver/dix/swaprep.c,v  <-- 
xc/programs/Xserver/dix/swaprep.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/swapreq.c,v  <-- 
xc/programs/Xserver/dix/swapreq.c
new revision: 1.3; previous revision: 1.2
/cvs/xorg/xc/programs/Xserver/dix/window.c,v  <-- 
xc/programs/Xserver/dix/window.c
new revision: 1.7; previous revision: 1.6
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
Mailing the commit message to xorg-commit@lists.freedesktop.org...

... marking bug as FIXED.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.