Make c import a little cleaner

This commit is contained in:
Isaac Freund 2020-03-29 19:36:15 +02:00
parent 581de73b6f
commit d0bfa7bb01
No known key found for this signature in database
GPG key ID: 86DED400DDFD7A11
11 changed files with 11 additions and 11 deletions

View file

@ -1,4 +1,4 @@
pub const c = @cImport({
pub usingnamespace @cImport({
@cDefine("WLR_USE_UNSTABLE", {});
@cInclude("time.h");
@cInclude("stdlib.h");

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const Seat = @import("seat.zig").Seat;
const Server = @import("server.zig").Server;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const DecorationManager = @import("decoration_manager.zig").DecorationManager;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const Decoration = @import("decoration.zig").Decoration;
const Server = @import("server.zig").Server;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const Seat = @import("seat.zig").Seat;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const Server = @import("server.zig").Server;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const Root = @import("root.zig").Root;
const Server = @import("server.zig").Server;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const util = @import("util.zig");
const Output = @import("output.zig").Output;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const Cursor = @import("cursor.zig").Cursor;
const Keyboard = @import("keyboard.zig").Keyboard;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const util = @import("util.zig");
const DecorationManager = @import("decoration_manager.zig").DecorationManager;

View file

@ -1,5 +1,5 @@
const std = @import("std");
const c = @import("c.zig").c;
const c = @import("c.zig");
const Root = @import("root.zig").Root;