-
Notifications
You must be signed in to change notification settings - Fork 3
/
dpkgdb.diff
59 lines (54 loc) · 1.29 KB
/
dpkgdb.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--- dpkg-db.pp 2012-05-26 15:41:38.000000000 -0700
+++ dpkgdb.pas 2012-05-26 15:40:17.000000000 -0700
@@ -1,5 +1,5 @@
-unit dpkg-db;
+unit dpkgdb;
interface
uses
@@ -7,6 +7,7 @@
{
Automatically converted by H2Pas 1.0.0 from dpkg-db.h
+ modified by plugwash to make it actually compile
The following command line parameters were used:
-d
-C
@@ -25,6 +26,7 @@
Pversionrevision = ^versionrevision;
{$IFDEF FPC}
{$PACKRECORDS C}
+{$mode objfpc}
{$ENDIF}
@@ -50,22 +52,17 @@
}
{$ifndef LIBDPKG_DPKG_DB_H}
{$define LIBDPKG_DPKG_DB_H}
-{$include <sys/types.h>}
-{$include <stdbool.h>}
-{$include <stdio.h>}
-{$include <dpkg/macros.h>}
-{$include <dpkg/varbuf.h>}
-(* error
-struct versionrevision {
-in declaration at line 36 *)
-(* Const before type ignored *)
- var
- version : ^cchar;cvar;public;
-(* Const before type ignored *)
- revision : ^cchar;cvar;public;
-(* error
-};
-in declaration at line 39 *)
+{ $include <sys/types.h>}
+{ $include <stdbool.h>}
+{ $include <stdio.h>}
+{ $include <dpkg/macros.h>}
+{ $include <dpkg/varbuf.h>}
+type
+ versionrevision = record
+ version : ^cchar;
+ revision : ^cchar;
+ end;
+
type
deptype = (dep_suggests,dep_recommends,dep_depends,
dep_predepends,dep_breaks,dep_conflicts,