Skip to content

Commit 85fb4f1

Browse files
committed
Remove superfluous link name annotations in code
1 parent b4ae060 commit 85fb4f1

File tree

5 files changed

+0
-57
lines changed

5 files changed

+0
-57
lines changed

ui-sys/src/ffi.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub struct uiInitOptions {
1010
pub Size: size_t,
1111
}
1212

13-
#[link(name = "ui")]
1413
extern {
1514
pub fn uiInit(options: *mut uiInitOptions) -> *const c_char;
1615
pub fn uiUninit();
@@ -45,7 +44,6 @@ pub struct uiControl {
4544
pub Disable: extern "C" fn(this: *mut uiControl),
4645
}
4746

48-
#[link(name = "ui")]
4947
extern {
5048
pub fn uiControlDestroy(control: *mut uiControl);
5149
pub fn uiControlHandle(control: *mut uiControl) -> usize;
@@ -70,7 +68,6 @@ extern {
7068

7169
pub enum uiWindow {}
7270

73-
#[link(name = "ui")]
7471
extern {
7572
pub fn uiWindowTitle(w: *mut uiWindow) -> *mut c_char;
7673
pub fn uiWindowSetTitle(w: *mut uiWindow, title: *const c_char);
@@ -86,7 +83,6 @@ extern {
8683

8784
pub enum uiButton {}
8885

89-
#[link(name = "ui")]
9086
extern {
9187
pub fn uiButtonText(b: *mut uiButton) -> *mut c_char;
9288
pub fn uiButtonSetText(b: *mut uiButton, text: *const c_char);
@@ -98,7 +94,6 @@ extern {
9894

9995
pub enum uiBox {}
10096

101-
#[link(name = "ui")]
10297
extern {
10398
pub fn uiBoxAppend(b: *mut uiBox, child: *mut uiControl, stretchy: c_int);
10499
pub fn uiBoxDelete(b: *mut uiBox, index: uintmax_t);
@@ -110,7 +105,6 @@ extern {
110105

111106
pub enum uiEntry {}
112107

113-
#[link(name = "ui")]
114108
extern {
115109
pub fn uiEntryText(e: *mut uiEntry) -> *mut c_char;
116110
pub fn uiEntrySetText(e: *mut uiEntry, text: *const c_char);
@@ -124,7 +118,6 @@ extern {
124118

125119
pub enum uiCheckbox {}
126120

127-
#[link(name = "ui")]
128121
extern {
129122
pub fn uiCheckboxText(c: *mut uiCheckbox) -> *mut c_char;
130123
pub fn uiCheckboxSetText(c: *mut uiCheckbox, text: *const c_char);
@@ -138,7 +131,6 @@ extern {
138131

139132
pub enum uiLabel {}
140133

141-
#[link(name = "ui")]
142134
extern {
143135
pub fn uiLabelText(l: *mut uiLabel) -> *mut c_char;
144136
pub fn uiLabelSetText(l: *mut uiLabel, text: *const c_char);
@@ -147,7 +139,6 @@ extern {
147139

148140
pub enum uiTab {}
149141

150-
#[link(name = "ui")]
151142
extern {
152143
pub fn uiTabAppend(t: *mut uiTab, name: *const c_char, c: *mut uiControl);
153144
pub fn uiTabInsertAt(t: *mut uiTab, name: *const c_char, before: uintmax_t, c: *mut uiControl);
@@ -160,7 +151,6 @@ extern {
160151

161152
pub enum uiGroup {}
162153

163-
#[link(name = "ui")]
164154
extern {
165155
pub fn uiGroupTitle(g: *mut uiGroup) -> *mut c_char;
166156
pub fn uiGroupSetTitle(g: *mut uiGroup, title: *const c_char);
@@ -172,7 +162,6 @@ extern {
172162

173163
pub enum uiSpinbox {}
174164

175-
#[link(name = "ui")]
176165
extern {
177166
pub fn uiSpinboxValue(s: *mut uiSpinbox) -> intmax_t;
178167
pub fn uiSpinboxSetValue(s: *mut uiSpinbox, value: intmax_t);
@@ -184,15 +173,13 @@ extern {
184173

185174
pub enum uiProgressBar {}
186175

187-
#[link(name = "ui")]
188176
extern {
189177
pub fn uiProgressBarSetValue(p: *mut uiProgressBar, n: c_int);
190178
pub fn uiNewProgressBar() -> *mut uiProgressBar;
191179
}
192180

193181
pub enum uiSlider {}
194182

195-
#[link(name = "ui")]
196183
extern {
197184
pub fn uiSliderValue(s: *mut uiSlider) -> intmax_t;
198185
pub fn uiSliderSetValue(s: *mut uiSlider, value: intmax_t);
@@ -204,14 +191,12 @@ extern {
204191

205192
pub enum uiSeparator {}
206193

207-
#[link(name = "ui")]
208194
extern {
209195
pub fn uiNewHorizontalSeparator() -> *mut uiSeparator;
210196
}
211197

212198
pub enum uiCombobox {}
213199

214-
#[link(name = "ui")]
215200
extern {
216201
pub fn uiComboboxAppend(c: *mut uiCombobox, text: *const c_char);
217202
pub fn uiComboboxSelected(c: *mut uiCombobox) -> intmax_t;
@@ -225,15 +210,13 @@ extern {
225210

226211
pub enum uiRadioButtons {}
227212

228-
#[link(name = "ui")]
229213
extern {
230214
pub fn uiRadioButtonsAppend(r: *mut uiRadioButtons, text: *const c_char);
231215
pub fn uiNewRadioButtons() -> *mut uiRadioButtons;
232216
}
233217

234218
pub enum uiDateTimePicker {}
235219

236-
#[link(name = "ui")]
237220
extern {
238221
pub fn uiNewDateTimePicker() -> *mut uiDateTimePicker;
239222
pub fn uiNewDatePicker() -> *mut uiDateTimePicker;
@@ -242,7 +225,6 @@ extern {
242225

243226
pub enum uiMultilineEntry {}
244227

245-
#[link(name = "ui")]
246228
extern {
247229
pub fn uiMultilineEntryText(e: *mut uiMultilineEntry) -> *mut c_char;
248230
pub fn uiMultilineEntrySetText(e: *mut uiMultilineEntry, text: *const c_char);
@@ -257,7 +239,6 @@ extern {
257239

258240
pub enum uiMenuItem {}
259241

260-
#[link(name = "ui")]
261242
extern {
262243
pub fn uiMenuItemEnable(m: *mut uiMenuItem);
263244
pub fn uiMenuItemDisable(m: *mut uiMenuItem);
@@ -272,7 +253,6 @@ extern {
272253

273254
pub enum uiMenu {}
274255

275-
#[link(name = "ui")]
276256
extern {
277257
pub fn uiMenuAppendItem(m: *mut uiMenu, name: *const c_char) -> *mut uiMenuItem;
278258
pub fn uiMenuAppendCheckItem(m: *mut uiMenu, name: *const c_char) -> *mut uiMenuItem;
@@ -283,7 +263,6 @@ extern {
283263
pub fn uiNewMenu(name: *const c_char) -> *mut uiMenu;
284264
}
285265

286-
#[link(name = "ui")]
287266
extern {
288267
pub fn uiOpenFile(parent: *mut uiWindow) -> *mut c_char;
289268
pub fn uiSaveFile(parent: *mut uiWindow) -> *mut c_char;
@@ -311,7 +290,6 @@ pub struct uiAreaHandler {
311290
-> c_int,
312291
}
313292

314-
#[link(name = "ui")]
315293
extern {
316294
pub fn uiAreaSetSize(a: *mut uiArea, width: intmax_t, height: intmax_t);
317295
pub fn uiAreaQueueRedrawAll(a: *mut uiArea);
@@ -434,13 +412,11 @@ pub struct uiDrawStrokeParams {
434412
pub DashPhase: c_double,
435413
}
436414

437-
#[link(name = "ui")]
438415
extern {
439416
pub fn uiDrawNewPath(fillMode: uiDrawFillMode) -> *mut uiDrawPath;
440417
pub fn uiDrawFreePath(p: *mut uiDrawPath);
441418
}
442419

443-
#[link(name = "ui")]
444420
extern {
445421
pub fn uiDrawPathNewFigure(p: *mut uiDrawPath, x: c_double, y: c_double);
446422
pub fn uiDrawPathNewFigureWithArc(p: *mut uiDrawPath,
@@ -705,7 +681,6 @@ pub struct uiAreaKeyEvent {
705681

706682
pub enum uiFontButton {}
707683

708-
#[link(name = "ui")]
709684
extern {
710685
pub fn uiFontButtonFont(b: *mut uiFontButton) -> *mut uiDrawTextFont;
711686
pub fn uiFontButtonOnChanged(b: *mut uiFontButton,
@@ -716,7 +691,6 @@ extern {
716691

717692
pub enum uiColorButton {}
718693

719-
#[link(name = "ui")]
720694
extern {
721695
pub fn uiColorButtonColor(b: *mut uiColorButton,
722696
r: *mut c_double,

0 commit comments

Comments
 (0)