⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 factory.c

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 C
字号:
#line 92 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"#include "mal_config.h"#include "factory.h"#line 98 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"strFCTgetPlants(int *ret){	BAT *b;	b = BATnew(TYPE_str, TYPE_str, 256);	if (!(b->batDirty&2)) b = BATsetaccess(b, BAT_READ);	#line 64 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"	if (BBPindex("factory_name_plant") <= 0)		BATname(b, "factory_name_plant");	BATroles(b,"factory","name");	BATmode(b,TRANSIENT);	BATfakeCommit(b);	*ret = b->batCacheid;	BBPkeepref(*ret);#line 105 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"	throw(MAL, "factory.getPlants", "not yet implemented");}strFCTgetCaller(int *ret){	(void) ret;	throw(MAL, "factory.getCaller", "not yet implemented");}strFCTgetOwners(int *ret){	BAT *b;	(void) ret;	b = BATnew(TYPE_int, TYPE_str, 256);	if (!(b->batDirty&2)) b = BATsetaccess(b, BAT_READ);	#line 64 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"	if (BBPindex("factory_plantid_location") <= 0)		BATname(b, "factory_plantid_location");	BATroles(b,"factory","plantid");	BATmode(b,TRANSIENT);	BATfakeCommit(b);	*ret = b->batCacheid;	BBPkeepref(*ret);#line 124 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"	throw(MAL, "factory.getOwner", "not yet implemented");}strFCTgetTimeStampIn(int *ret){	(void) ret;	throw(MAL, "factory.getTimeStampIn", "not yet implemented");}strFCTgetTimeStampOut(int *ret){	(void) ret;	throw(MAL, "factory.getTimeStampOut", "not yet implemented");}strFCTsetLocation(int *ret, str *loc){	(void) ret;	(void) loc;	throw(MAL, "factory.setLocation", "not yet implemented");}strFCTgetLocations(int *ret){	BAT *b;	(void) ret;	b = BATnew(TYPE_int, TYPE_str, 256);	if (!(b->batDirty&2)) b = BATsetaccess(b, BAT_READ);	#line 64 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"	if (BBPindex("factory_plantid_location") <= 0)		BATname(b, "factory_plantid_location");	BATroles(b,"factory","plantid");	BATmode(b,TRANSIENT);	BATfakeCommit(b);	*ret = b->batCacheid;	BBPkeepref(*ret);#line 158 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"	throw(MAL, "factory.getLocations", "not yet implemented");}strFCTshutdown(int *ret, str *mod, str *fcn){	Symbol s;	(void) ret;	s = findMALSymbol(putName(*mod, strlen(*mod)), putName(*fcn, strlen(*fcn)));	if (s == NULL)		throw(MAL, "factory.shutdown", "Factory not found");	shutdownFactory(s->def);	return MAL_SUCCEED;}#line 176 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/mal/factory.mx"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -