]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/utilities.cpp
io.streams.256color: faster by caching styles
[factor.git] / vm / utilities.cpp
index e8aefea3925be984efb57d80a6b40bcacf1e9ad3..60d524a87bc83c93063bc2919c91ad0567804f89 100644 (file)
@@ -2,7 +2,7 @@
 
 namespace factor {
 
-/* Fill in a PPC function descriptor */
+// Fill in a PPC function descriptor
 void* fill_function_descriptor(void* ptr, void* code) {
   void** descriptor = (void**)ptr;
   descriptor[0] = code;
@@ -11,12 +11,12 @@ void* fill_function_descriptor(void* ptr, void* code) {
   return descriptor;
 }
 
-/* Get a field from a PPC function descriptor */
+// Get a field from a PPC function descriptor
 void* function_descriptor_field(void* ptr, size_t idx) {
   return ptr ? ((void**)ptr)[idx] : ptr;
 }
 
-/* If memory allocation fails, bail out */
+// If memory allocation fails, bail out
 vm_char* safe_strdup(const vm_char* str) {
   vm_char* ptr = STRDUP(str);
   if (!ptr)
@@ -32,8 +32,8 @@ cell read_cell_hex() {
   return cell;
 }
 
-/* On Windows, memcpy() is in a different DLL and the non-optimizing
-compiler can't find it */
+// On Windows, memcpy() is in a different DLL and the non-optimizing
+// compiler can't find it
 VM_C_API void* factor_memcpy(void* dst, void* src, size_t len) {
   return memcpy(dst, src, len);
 }