pkgsrc/devel/cqual/patches/patch-be

45 lines
1.1 KiB
Text

$NetBSD: patch-be,v 1.1 2006/01/18 23:24:12 rillig Exp $
SunPro cannot handle this style of direct initialization.
--- src/flow.c.orig 2003-09-10 20:52:05.000000000 +0200
+++ src/flow.c 2006-01-16 14:37:58.365503000 +0100
@@ -218,11 +218,13 @@ void finish_flow_sensitive(void)
static inline einfo mkeinfo(qtype qt, store out, store true_out,
store false_out, bool ismalloc)
{
- struct einfo result = {qt: qt,
- out: out,
- true_out: true_out,
- false_out: false_out,
- ismalloc: ismalloc};
+ struct einfo result;
+
+ result.qt = qt;
+ result.out = out;
+ result.true_out = true_out;
+ result.false_out = false_out;
+ result.ismalloc = ismalloc;
return result;
}
@@ -250,13 +252,17 @@ static inline store false_out_einfo(einf
static inline sinfo mksinfo(store out)
{
- struct sinfo result = {out: out};
+ struct sinfo result;
+
+ result.out = out;
return result;
}
static inline dinfo mkdinfo(store out)
{
- struct dinfo result = {out: out};
+ struct dinfo result;
+
+ result.out = out;
return result;
}