remove _ from type names in function names

This commit is contained in:
Vinzenz Schroeter 2025-06-22 00:14:06 +02:00
parent 500cbbc872
commit 8f13ba61f0
9 changed files with 311 additions and 311 deletions

File diff suppressed because it is too large Load diff

View file

@ -8,13 +8,13 @@ use std::ptr::NonNull;
wrap_command!(BrightnessGrid); wrap_command!(BrightnessGrid);
wrap_fields!(cmd_brightness_grid::BrightnessGridCommand; wrap_fields!(cmd_brightnessgrid::BrightnessGridCommand;
prop grid: BrightnessGrid { mut get(); move set(grid); }; prop grid: BrightnessGrid { mut get(); move set(grid); };
); );
wrap_origin_accessors!(cmd_brightness_grid::BrightnessGridCommand); wrap_origin_accessors!(cmd_brightnessgrid::BrightnessGridCommand);
wrap_functions!(cmd_brightness_grid; wrap_functions!(cmd_brightnessgrid;
/// Set the brightness of individual tiles in a rectangular area of the display. /// Set the brightness of individual tiles in a rectangular area of the display.
/// ///

View file

@ -8,13 +8,13 @@ use std::ptr::NonNull;
wrap_command!(CharGrid); wrap_command!(CharGrid);
wrap_fields!(cmd_char_grid::CharGridCommand; wrap_fields!(cmd_chargrid::CharGridCommand;
prop grid: CharGrid { mut get(); move set(grid); }; prop grid: CharGrid { mut get(); move set(grid); };
); );
wrap_origin_accessors!(cmd_char_grid::CharGridCommand); wrap_origin_accessors!(cmd_chargrid::CharGridCommand);
wrap_functions!(cmd_char_grid; wrap_functions!(cmd_chargrid;
/// Show UTF-8 encoded text on the screen. /// Show UTF-8 encoded text on the screen.
/// ///

View file

@ -8,13 +8,13 @@ use std::ptr::NonNull;
wrap_command!(Cp437Grid); wrap_command!(Cp437Grid);
wrap_fields!(cmd_cp437_grid::Cp437GridCommand; wrap_fields!(cmd_cp437grid::Cp437GridCommand;
prop grid: Cp437Grid { mut get(); move set(grid); }; prop grid: Cp437Grid { mut get(); move set(grid); };
); );
wrap_origin_accessors!(cmd_cp437_grid::Cp437GridCommand); wrap_origin_accessors!(cmd_cp437grid::Cp437GridCommand);
wrap_functions!(cmd_cp437_grid; wrap_functions!(cmd_cp437grid;
/// Show text on the screen. /// Show text on the screen.
/// ///

View file

@ -6,7 +6,7 @@ use crate::{
use servicepoint::{Brightness, GlobalBrightnessCommand, Packet}; use servicepoint::{Brightness, GlobalBrightnessCommand, Packet};
use std::ptr::NonNull; use std::ptr::NonNull;
wrap_functions!(cmd_brightness_global; wrap_functions!(cmd_globalbrightness;
/// Set the brightness of all tiles to the same value. /// Set the brightness of all tiles to the same value.
/// ///
@ -25,7 +25,7 @@ wrap_functions!(cmd_brightness_global;
wrap_command!(GlobalBrightness); wrap_command!(GlobalBrightness);
wrap_fields!( wrap_fields!(
cmd_brightness_global::GlobalBrightnessCommand; cmd_globalbrightness::GlobalBrightnessCommand;
prop brightness: Brightness { prop brightness: Brightness {
get(); get();
set(value); set(value);

View file

@ -9,7 +9,7 @@ use servicepoint::{
}; };
use std::{mem::transmute, ptr::NonNull}; use std::{mem::transmute, ptr::NonNull};
wrap_functions!(brightness_grid; wrap_functions!(brightnessgrid;
/// Creates a new [BrightnessGrid] with the specified dimensions. /// Creates a new [BrightnessGrid] with the specified dimensions.
/// ///
@ -71,11 +71,11 @@ wrap_functions!(brightness_grid;
); );
wrap_clone!(brightness_grid::BrightnessGrid); wrap_clone!(brightnessgrid::BrightnessGrid);
wrap_free!(brightness_grid::BrightnessGrid); wrap_free!(brightnessgrid::BrightnessGrid);
wrap_methods!( wrap_methods!(
brightness_grid::BrightnessGrid; brightnessgrid::BrightnessGrid;
/// Gets the current value at the specified position. /// Gets the current value at the specified position.
/// ///

View file

@ -6,7 +6,7 @@ use crate::{
use servicepoint::{CharGrid, CharGridCommand, Grid, Origin, Packet}; use servicepoint::{CharGrid, CharGridCommand, Grid, Origin, Packet};
use std::ptr::NonNull; use std::ptr::NonNull;
wrap_functions!(char_grid; wrap_functions!(chargrid;
/// Creates a new [CharGrid] with the specified dimensions. /// Creates a new [CharGrid] with the specified dimensions.
/// ///
@ -58,11 +58,11 @@ wrap_functions!(char_grid;
); );
wrap_clone!(char_grid::CharGrid); wrap_clone!(chargrid::CharGrid);
wrap_free!(char_grid::CharGrid); wrap_free!(chargrid::CharGrid);
wrap_methods!( wrap_methods!(
char_grid::CharGrid; chargrid::CharGrid;
/// Returns the current value at the specified position. /// Returns the current value at the specified position.
/// ///

View file

@ -9,7 +9,7 @@ use servicepoint::{
}; };
use std::ptr::NonNull; use std::ptr::NonNull;
wrap_functions!(cp437_grid; wrap_functions!(cp437grid;
/// Creates a new [Cp437Grid] with the specified dimensions. /// Creates a new [Cp437Grid] with the specified dimensions.
/// ///
@ -50,11 +50,11 @@ wrap_functions!(cp437_grid;
); );
wrap_clone!(cp437_grid::Cp437Grid); wrap_clone!(cp437grid::Cp437Grid);
wrap_free!(cp437_grid::Cp437Grid); wrap_free!(cp437grid::Cp437Grid);
wrap_methods!( wrap_methods!(
cp437_grid::Cp437Grid; cp437grid::Cp437Grid;
/// Gets the current value at the specified position. /// Gets the current value at the specified position.
/// ///
/// # Arguments /// # Arguments

View file

@ -221,7 +221,7 @@ macro_rules! wrap_functions {
$( $(
$(#[$meta])* $(#[$meta])*
#[doc = ""] #[doc = ""]
#[doc = concat!(" This function is part of the ", stringify!($module), " module.")] #[doc = " This function is part of the `" $module "` module."]
#[no_mangle] #[no_mangle]
pub unsafe extern "C" fn [< sp_ $module _ $function >]( pub unsafe extern "C" fn [< sp_ $module _ $function >](
$($param_name: $param_type),* $($param_name: $param_type),*