mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 22:45:03 +02:00

This commit is the initial sync of all files from ruby/yarp into ruby/ruby. Notably, it does the following: * Sync all ruby/yarp/lib/ files to ruby/ruby/lib/yarp * Sync all ruby/yarp/src/ files to ruby/ruby/yarp/ * Sync all ruby/yarp/test/ files to ruby/ruby/test/yarp
9 lines
302 B
C
9 lines
302 B
C
#include "yarp/enc/yp_encoding.h"
|
|
|
|
// The function is shared between all of the encodings that use single bytes to
|
|
// represent characters. They don't have need of a dynamic function to determine
|
|
// their width.
|
|
size_t
|
|
yp_encoding_single_char_width(YP_ATTRIBUTE_UNUSED const char *c) {
|
|
return 1;
|
|
}
|