[cairo-commit] cairo/src cairo.c,1.26,1.27

Carl Worth commit at pdx.freedesktop.org
Thu Nov 6 13:32:17 PST 2003


Committed by: cworth

Update of /cvs/cairo/cairo/src
In directory pdx:/tmp/cvs-serv13522

Modified Files:
	cairo.c 
Log Message:

        * src/cairo.c (cairo_current_font): Move declaration to beginning
        of function to avoid requiring a C99-compatible compiler.


Index: cairo.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** cairo.c	4 Nov 2003 03:17:31 -0000	1.26
--- cairo.c	6 Nov 2003 21:32:15 -0000	1.27
***************
*** 626,633 ****
  cairo_current_font (cairo_t *cr)
  {
      if (cr->status)
  	return NULL;
  
-     cairo_font_t *ret;  
      cr->status = _cairo_gstate_current_font (cr->gstate, &ret);  
      return ret;
--- 626,634 ----
  cairo_current_font (cairo_t *cr)
  {
+     cairo_font_t *ret;  
+ 
      if (cr->status)
  	return NULL;
  
      cr->status = _cairo_gstate_current_font (cr->gstate, &ret);  
      return ret;





More information about the cairo-commit mailing list