tag both as overloadable - seems to satisfy clang 3.4
authornemo
Mon, 15 Oct 2018 13:08:29 -0400
changeset 13941 7173b702e8db
parent 13940 085ed3ff0637
child 13942 939641cdb94f
tag both as overloadable - seems to satisfy clang 3.4
project_files/hwc/rtl/system.c
project_files/hwc/rtl/system.h
--- a/project_files/hwc/rtl/system.c	Mon Oct 15 19:43:30 2018 +0300
+++ b/project_files/hwc/rtl/system.c	Mon Oct 15 13:08:29 2018 -0400
@@ -74,7 +74,7 @@
     return result;
 }
 
-void fpcrtl_insert__vars(string255 *src, string255 *dst, SizeInt index) {
+void __attribute__((overloadable)) fpcrtl_insert__vars(string255 *src, string255 *dst, SizeInt index) {
     int num_insert;
     int num_shift;
     int num_preshift;
--- a/project_files/hwc/rtl/system.h	Mon Oct 15 19:43:30 2018 +0300
+++ b/project_files/hwc/rtl/system.h	Mon Oct 15 13:08:29 2018 -0400
@@ -28,7 +28,7 @@
 /*
  * Insert a shortstring in another at a specified index
  */
-void                                                        fpcrtl_insert__vars(string255 *src, string255 *dst, SizeInt index);
+void        __attribute__((overloadable))                   fpcrtl_insert__vars(string255 *src, string255 *dst, SizeInt index);
 void        __attribute__((overloadable))                   fpcrtl_insert__vars(astring *src, astring *dst, SizeInt index);
 
 #define     fpcrtl_insert(src, dst, index)                  fpcrtl_insert__vars(&(src), &(dst), index);