aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code/buffer.c
diff options
context:
space:
mode:
authorRichard Brooksby2013-05-16 13:10:01 +0100
committerRichard Brooksby2013-05-16 13:10:01 +0100
commit818a65f36f4fe1931a53675ff2bc0e12307d58ef (patch)
tree9fa9f341cfaf31fc32b5512ad3980111f0240b91 /mps/code/buffer.c
parentbb02f55b62ea785cb64bc60bebca8721dd52d886 (diff)
downloademacs-818a65f36f4fe1931a53675ff2bc0e12307d58ef.tar.gz
emacs-818a65f36f4fe1931a53675ff2bc0e12307d58ef.zip
Replacing duplicate *trivvarargs methods with a single implementation in args.c.
Copied from Perforce Change: 181851 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/buffer.c')
-rw-r--r--mps/code/buffer.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/mps/code/buffer.c b/mps/code/buffer.c
index d9af5933fcd..12d5c2dcbf3 100644
--- a/mps/code/buffer.c
+++ b/mps/code/buffer.c
@@ -1064,15 +1064,6 @@ void BufferRampReset(Buffer buffer)
1064/* BufferClass -- support for the basic Buffer class */ 1064/* BufferClass -- support for the basic Buffer class */
1065 1065
1066 1066
1067/* bufferTrivVarargs -- basic buffer varargs method */
1068
1069static void bufferTrivVarargs(ArgStruct args[MPS_ARGS_MAX], va_list varargs) {
1070 UNUSED(varargs);
1071 args[0].key = MPS_KEY_ARGS_END;
1072 AVER(ArgListCheck(args));
1073}
1074
1075
1076/* bufferTrivInit -- basic buffer init method */ 1067/* bufferTrivInit -- basic buffer init method */
1077 1068
1078static Res bufferTrivInit(Buffer buffer, Pool pool, ArgList args) 1069static Res bufferTrivInit(Buffer buffer, Pool pool, ArgList args)
@@ -1215,7 +1206,7 @@ DEFINE_CLASS(BufferClass, class)
1215 INHERIT_CLASS(&class->protocol, ProtocolClass); 1206 INHERIT_CLASS(&class->protocol, ProtocolClass);
1216 class->name = "BUFFER"; 1207 class->name = "BUFFER";
1217 class->size = sizeof(BufferStruct); 1208 class->size = sizeof(BufferStruct);
1218 class->varargs = bufferTrivVarargs; 1209 class->varargs = ArgTrivVarargs;
1219 class->init = bufferTrivInit; 1210 class->init = bufferTrivInit;
1220 class->finish = bufferTrivFinish; 1211 class->finish = bufferTrivFinish;
1221 class->attach = bufferTrivAttach; 1212 class->attach = bufferTrivAttach;