Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 208908 Details for
Bug 270735
Please stabilize sci-electronics/gerbv-2.3.0-r2 (was: conflicting types for 'stack_t')
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for bad use of stack_t name
gerbv-1.0.1-stack_t.patch (text/plain), 3.45 KB, created by
Robert Pearce
on 2009-10-31 22:34:46 UTC
(
hide
)
Description:
Patch for bad use of stack_t name
Filename:
MIME Type:
Creator:
Robert Pearce
Created:
2009-10-31 22:34:46 UTC
Size:
3.45 KB
patch
obsolete
>--- gerbv-1.0.1/src/draw_amacro.c~ 2005-02-15 21:46:01.000000000 +0000 >+++ gerbv-1.0.1/src/draw_amacro.c 2009-10-31 01:01:09.000000000 +0000 >@@ -48,21 +48,21 @@ > typedef struct { > double *stack; > int sp; >-} stack_t; >+} MyStack_t; > > >-static stack_t * >+static MyStack_t * > new_stack(unsigned int nuf_push) > { > const int extra_stack_size = 10; >- stack_t *s; >+ MyStack_t *s; > >- s = (stack_t *)malloc(sizeof(stack_t)); >+ s = (MyStack_t *)malloc(sizeof(MyStack_t)); > if (!s) { > free(s); > return NULL; > } >- memset(s, 0, sizeof(stack_t)); >+ memset(s, 0, sizeof(MyStack_t)); > > s->stack = (double *)malloc(sizeof(double) * (nuf_push + extra_stack_size)); > if (!s->stack) { >@@ -78,7 +78,7 @@ > > > static void >-free_stack(stack_t *s) >+free_stack(MyStack_t *s) > { > if (s && s->stack) > free(s->stack); >@@ -91,7 +91,7 @@ > > > static void >-push(stack_t *s, double val) >+push(MyStack_t *s, double val) > { > s->stack[s->sp++] = val; > return; >@@ -99,7 +99,7 @@ > > > static double >-pop(stack_t *s) >+pop(MyStack_t *s) > { > return s->stack[--s->sp]; > } /* pop */ >@@ -140,7 +140,7 @@ > * Doesn't handle explicit x,y yet > */ > static void >-gerbv_draw_prim1(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale, >+gerbv_draw_prim1(GdkPixmap *pixmap, GdkGC *gc, MyStack_t *s, int scale, > gint x, gint y) > { > const int exposure_idx = 0; >@@ -185,7 +185,7 @@ > * - how thick is the outline? > */ > static void >-gerbv_draw_prim4(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale, >+gerbv_draw_prim4(GdkPixmap *pixmap, GdkGC *gc, MyStack_t *s, int scale, > gint x, gint y) > { > const int exposure_idx = 0; >@@ -252,7 +252,7 @@ > * Doesn't handle explicit x,y yet > */ > static void >-gerbv_draw_prim5(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale, >+gerbv_draw_prim5(GdkPixmap *pixmap, GdkGC *gc, MyStack_t *s, int scale, > gint x, gint y) > { > const int exposure_idx = 0; >@@ -308,7 +308,7 @@ > * center of line of circle? > */ > static void >-gerbv_draw_prim6(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale, >+gerbv_draw_prim6(GdkPixmap *pixmap, GdkGC *gc, MyStack_t *s, int scale, > gint x, gint y) > { > const int outside_dia_idx = 2; >@@ -385,7 +385,7 @@ > > > static void >-gerbv_draw_prim7(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale, >+gerbv_draw_prim7(GdkPixmap *pixmap, GdkGC *gc, MyStack_t *s, int scale, > gint x, gint y) > { > const int outside_dia_idx = 2; >@@ -459,7 +459,7 @@ > * Doesn't handle and explicit x,y yet > */ > static void >-gerbv_draw_prim20(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale, >+gerbv_draw_prim20(GdkPixmap *pixmap, GdkGC *gc, MyStack_t *s, int scale, > gint x, gint y) > { > const int exposure_idx = 0; >@@ -514,7 +514,7 @@ > * Doesn't handle explicit x,y yet > */ > static void >-gerbv_draw_prim21(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale, >+gerbv_draw_prim21(GdkPixmap *pixmap, GdkGC *gc, MyStack_t *s, int scale, > gint x, gint y) > { > const int exposure_idx = 0; >@@ -569,7 +569,7 @@ > * Doesn't handle explicit x,y yet > */ > static void >-gerbv_draw_prim22(GdkPixmap *pixmap, GdkGC *gc, stack_t *s, int scale, >+gerbv_draw_prim22(GdkPixmap *pixmap, GdkGC *gc, MyStack_t *s, int scale, > gint x, gint y) > { > const int exposure_idx = 0; >@@ -627,7 +627,7 @@ > instruction_t *program, unsigned int nuf_push, > double *parameters, int scale, gint x, gint y) > { >- stack_t *s = new_stack(nuf_push); >+ MyStack_t *s = new_stack(nuf_push); > instruction_t *ip; > int handled = 1; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 270735
: 208908