Skip to content

Commit

Permalink
Remove extraneous 'extern' hints (#21516)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead authored Apr 2, 2021
1 parent 9d0b6c5 commit c2b72c0
Show file tree
Hide file tree
Showing 61 changed files with 216 additions and 218 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/feature/fanmux.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
* feature/fanmux.h - Cooling Fan Multiplexer support functions
*/

extern void fanmux_switch(const uint8_t e);
extern void fanmux_init();
void fanmux_switch(const uint8_t e);
void fanmux_init();
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extern DGUSDisplay dgusdisplay;
constexpr float cpow(const float x, const int y) { return y == 0 ? 1.0 : x * cpow(x, y - 1); }

/// Find the flash address of a DGUS_VP_Variable for the VP.
extern const DGUS_VP_Variable* DGUSLCD_FindVPVar(const uint16_t vp);
const DGUS_VP_Variable* DGUSLCD_FindVPVar(const uint16_t vp);

/// Helper to populate a DGUS_VP_Variable for a given VP. Return false if not found.
extern bool populate_VPVar(const uint16_t VP, DGUS_VP_Variable * const ramcopy);
bool populate_VPVar(const uint16_t VP, DGUS_VP_Variable * const ramcopy);
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_about.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_about();
extern void lv_clear_about();
void lv_draw_about();
void lv_clear_about();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_acceleration_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_acceleration_settings();
extern void lv_clear_acceleration_settings();
void lv_draw_acceleration_settings();
void lv_clear_acceleration_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_advance_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_advance_settings();
extern void lv_clear_advance_settings();
void lv_draw_advance_settings();
void lv_clear_advance_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_auto_level_offset_settings();
extern void lv_clear_auto_level_offset_settings();
void lv_draw_auto_level_offset_settings();
void lv_clear_auto_level_offset_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
8 changes: 4 additions & 4 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_baby_stepping.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_baby_stepping();
extern void lv_clear_baby_stepping();
extern void disp_baby_step_dist();
extern void disp_z_offset_value();
void lv_draw_baby_stepping();
void lv_clear_baby_stepping();
void disp_baby_step_dist();
void disp_z_offset_value();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
10 changes: 5 additions & 5 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_change_speed.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
#define MIN_EXT_SPEED_PERCENT 10
#define MAX_EXT_SPEED_PERCENT 999

extern void lv_draw_change_speed();
extern void lv_clear_change_speed();
extern void disp_speed_step();
extern void disp_print_speed();
extern void disp_speed_type();
void lv_draw_change_speed();
void lv_clear_change_speed();
void disp_speed_step();
void disp_print_speed();
void disp_speed_type();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
12 changes: 6 additions & 6 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_cloud_bind.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_cloud_bind();
extern void lv_clear_cloud_bind();
extern void disp_bind_state();
extern void refresh_bind_ui();
extern void display_qrcode(uint8_t *qrcode_data);
extern void cloud_unbind();
void lv_draw_cloud_bind();
void lv_clear_cloud_bind();
void disp_bind_state();
void refresh_bind_ui();
void display_qrcode(uint8_t *qrcode_data);
void cloud_unbind();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
10 changes: 5 additions & 5 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_dialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ enum {
DIALOG_TRANSFER_NO_DEVICE
};

extern void lv_draw_dialog(uint8_t type);
extern void lv_clear_dialog();
extern void filament_sprayer_temp();
extern void filament_dialog_handle();
extern void lv_filament_setbar();
void lv_draw_dialog(uint8_t type);
void lv_clear_dialog();
void filament_sprayer_temp();
void filament_dialog_handle();
void lv_filament_setbar();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_eeprom_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_eeprom_settings();
extern void lv_clear_eeprom_settings();
void lv_draw_eeprom_settings();
void lv_clear_eeprom_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_encoder_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_encoder_settings();
extern void lv_clear_encoder_settings();
void lv_draw_encoder_settings();
void lv_clear_encoder_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_error_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
#define PGM_P const char *
#endif

extern void lv_draw_error_message(PGM_P const msg);
extern void lv_clear_error_message();
void lv_draw_error_message(PGM_P const msg);
void lv_clear_error_message();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
14 changes: 7 additions & 7 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_extrusion.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_extrusion();
extern void lv_clear_extrusion();
extern void disp_ext_type();
extern void disp_ext_step();
extern void disp_ext_speed();
extern void disp_hotend_temp();
extern void disp_extru_amount();
void lv_draw_extrusion();
void lv_clear_extrusion();
void disp_ext_type();
void disp_ext_step();
void disp_ext_speed();
void disp_hotend_temp();
void disp_extru_amount();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
6 changes: 3 additions & 3 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_fan.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_fan();
extern void lv_clear_fan();
extern void disp_fan_value();
void lv_draw_fan();
void lv_clear_fan();
void disp_fan_value();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
8 changes: 4 additions & 4 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_filament_change.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_filament_change();
extern void lv_clear_filament_change();
extern void disp_filament_type();
extern void disp_filament_temp();
void lv_draw_filament_change();
void lv_clear_filament_change();
void disp_filament_type();
void disp_filament_temp();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_filament_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_filament_settings();
extern void lv_clear_filament_settings();
void lv_draw_filament_settings();
void lv_clear_filament_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_gcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_gcode(bool clear = false);
extern void lv_clear_gcode();
void lv_draw_gcode(bool clear = false);
void lv_clear_gcode();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_home.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_home();
extern void lv_clear_home();
void lv_draw_home();
void lv_clear_home();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_homing_sensitivity_settings();
extern void lv_clear_homing_sensitivity_settings();
void lv_draw_homing_sensitivity_settings();
void lv_clear_homing_sensitivity_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_jerk_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_jerk_settings();
extern void lv_clear_jerk_settings();
void lv_draw_jerk_settings();
void lv_clear_jerk_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_keyboard.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_keyboard();
extern void lv_clear_keyboard();
void lv_draw_keyboard();
void lv_clear_keyboard();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_language.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_language();
extern void lv_clear_language();
void lv_draw_language();
void lv_clear_language();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_level_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_level_settings();
extern void lv_clear_level_settings();
void lv_draw_level_settings();
void lv_clear_level_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_machine_para.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_machine_para();
extern void lv_clear_machine_para();
void lv_draw_machine_para();
void lv_clear_machine_para();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_machine_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_machine_settings();
extern void lv_clear_machine_settings();
void lv_draw_machine_settings();
void lv_clear_machine_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_manuaLevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_manualLevel();
extern void lv_clear_manualLevel();
void lv_draw_manualLevel();
void lv_clear_manualLevel();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_max_feedrate_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_max_feedrate_settings();
extern void lv_clear_max_feedrate_settings();
void lv_draw_max_feedrate_settings();
void lv_clear_max_feedrate_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_more.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_more();
extern void lv_clear_more();
void lv_draw_more();
void lv_clear_more();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_motor_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_motor_settings();
extern void lv_clear_motor_settings();
void lv_draw_motor_settings();
void lv_clear_motor_settings();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
6 changes: 3 additions & 3 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_move_motor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_move_motor();
extern void lv_clear_move_motor();
extern void disp_move_dist();
void lv_draw_move_motor();
void lv_clear_move_motor();
void disp_move_dist();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_number_key.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
extern "C" { /* C-declarations for C++ */
#endif

extern void lv_draw_number_key();
extern void lv_clear_number_key();
void lv_draw_number_key();
void lv_clear_number_key();

#ifdef __cplusplus
} /* C-declarations for C++ */
Expand Down
Loading

0 comments on commit c2b72c0

Please sign in to comment.