@@ -72,8 +72,7 @@ int get_fd_helper(VALUE io)
72
72
#endif
73
73
}
74
74
75
- VALUE sp_create_impl (class , _port )
76
- VALUE class , _port ;
75
+ VALUE sp_create_impl (VALUE class , VALUE _port )
77
76
{
78
77
int fd ;
79
78
int num_port ;
@@ -157,9 +156,7 @@ VALUE sp_create_impl(class, _port)
157
156
return sp ;
158
157
}
159
158
160
- VALUE sp_set_modem_params_impl (argc , argv , self )
161
- int argc ;
162
- VALUE * argv , self ;
159
+ VALUE sp_set_modem_params_impl (int argc , VALUE * argv , VALUE self )
163
160
{
164
161
int fd ;
165
162
struct termios params ;
@@ -380,9 +377,7 @@ VALUE sp_set_modem_params_impl(argc, argv, self)
380
377
return argv [0 ];
381
378
}
382
379
383
- void get_modem_params_impl (self , mp )
384
- VALUE self ;
385
- struct modem_params * mp ;
380
+ void get_modem_params_impl (VALUE self , struct modem_params * mp )
386
381
{
387
382
int fd ;
388
383
struct termios params ;
@@ -474,8 +469,7 @@ void get_modem_params_impl(self, mp)
474
469
}
475
470
}
476
471
477
- VALUE sp_set_flow_control_impl (self , val )
478
- VALUE self , val ;
472
+ VALUE sp_set_flow_control_impl (VALUE self , VALUE val )
479
473
{
480
474
int fd ;
481
475
int flowc ;
@@ -521,8 +515,7 @@ VALUE sp_set_flow_control_impl(self, val)
521
515
return val ;
522
516
}
523
517
524
- VALUE sp_get_flow_control_impl (self )
525
- VALUE self ;
518
+ VALUE sp_get_flow_control_impl (VALUE self )
526
519
{
527
520
int ret ;
528
521
int fd ;
@@ -551,8 +544,7 @@ VALUE sp_get_flow_control_impl(self)
551
544
return INT2FIX (ret );
552
545
}
553
546
554
- VALUE sp_set_read_timeout_impl (self , val )
555
- VALUE self , val ;
547
+ VALUE sp_set_read_timeout_impl (VALUE self , VALUE val )
556
548
{
557
549
int timeout ;
558
550
int fd ;
@@ -591,8 +583,7 @@ VALUE sp_set_read_timeout_impl(self, val)
591
583
return val ;
592
584
}
593
585
594
- VALUE sp_get_read_timeout_impl (self )
595
- VALUE self ;
586
+ VALUE sp_get_read_timeout_impl (VALUE self )
596
587
{
597
588
int fd ;
598
589
struct termios params ;
@@ -611,22 +602,19 @@ VALUE sp_get_read_timeout_impl(self)
611
602
return INT2FIX (params .c_cc [VTIME ] * 100 );
612
603
}
613
604
614
- VALUE sp_set_write_timeout_impl (self , val )
615
- VALUE self , val ;
605
+ VALUE sp_set_write_timeout_impl (VALUE self , VALUE val )
616
606
{
617
607
rb_notimplement ();
618
608
return self ;
619
609
}
620
610
621
- VALUE sp_get_write_timeout_impl (self )
622
- VALUE self ;
611
+ VALUE sp_get_write_timeout_impl (VALUE self )
623
612
{
624
613
rb_notimplement ();
625
614
return self ;
626
615
}
627
616
628
- VALUE sp_break_impl (self , time )
629
- VALUE self , time ;
617
+ VALUE sp_break_impl (VALUE self , VALUE time )
630
618
{
631
619
int fd ;
632
620
@@ -642,9 +630,7 @@ VALUE sp_break_impl(self, time)
642
630
return Qnil ;
643
631
}
644
632
645
- void get_line_signals_helper_impl (obj , ls )
646
- VALUE obj ;
647
- struct line_signals * ls ;
633
+ void get_line_signals_helper_impl (VALUE obj , struct line_signals * ls )
648
634
{
649
635
int fd , status ;
650
636
@@ -663,9 +649,7 @@ void get_line_signals_helper_impl(obj, ls)
663
649
ls -> ri = (status & TIOCM_RI ? 1 : 0 );
664
650
}
665
651
666
- VALUE set_signal_impl (obj , val , sig )
667
- VALUE obj ,val ;
668
- int sig ;
652
+ VALUE set_signal_impl (VALUE obj , VALUE val , int sig )
669
653
{
670
654
int status ;
671
655
int fd ;
@@ -702,29 +686,25 @@ VALUE set_signal_impl(obj, val, sig)
702
686
return val ;
703
687
}
704
688
705
- VALUE sp_set_rts_impl (self , val )
706
- VALUE self , val ;
689
+ VALUE sp_set_rts_impl (VALUE self , VALUE val )
707
690
{
708
691
return set_signal_impl (self , val , TIOCM_RTS );
709
692
}
710
693
711
- VALUE sp_set_dtr_impl (self , val )
712
- VALUE self , val ;
694
+ VALUE sp_set_dtr_impl (VALUE self , VALUE val )
713
695
{
714
696
return set_signal_impl (self , val , TIOCM_DTR );
715
697
}
716
698
717
- VALUE sp_get_rts_impl (self )
718
- VALUE self ;
699
+ VALUE sp_get_rts_impl (VALUE self )
719
700
{
720
701
struct line_signals ls ;
721
702
722
703
get_line_signals_helper_impl (self , & ls );
723
704
return INT2FIX (ls .rts );
724
705
}
725
706
726
- VALUE sp_get_dtr_impl (self )
727
- VALUE self ;
707
+ VALUE sp_get_dtr_impl (VALUE self )
728
708
{
729
709
struct line_signals ls ;
730
710
@@ -733,8 +713,7 @@ VALUE sp_get_dtr_impl(self)
733
713
return INT2FIX (ls .dtr );
734
714
}
735
715
736
- VALUE sp_flush_input_data_impl (self )
737
- VALUE self ;
716
+ VALUE sp_flush_input_data_impl (VALUE self )
738
717
{
739
718
int fd ;
740
719
int ret ;
@@ -749,8 +728,7 @@ VALUE self;
749
728
return Qtrue ;
750
729
}
751
730
752
- VALUE sp_flush_output_data_impl (self )
753
- VALUE self ;
731
+ VALUE sp_flush_output_data_impl (VALUE self )
754
732
{
755
733
int fd ;
756
734
int ret ;
0 commit comments