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

📄 enbl.c

📁 关系型数据库 Postgresql 6.5.2
💻 C
字号:
/*------------------------------------------------------------------------- * * enbl.c *	  POSTGRES module enable and disable support code. * * Copyright (c) 1994, Regents of the University of California * * * IDENTIFICATION *	  $Header: /usr/local/cvsroot/pgsql/src/backend/utils/init/enbl.c,v 1.7.2.1 1999/08/02 05:25:09 scrappy Exp $ * *------------------------------------------------------------------------- */#include "postgres.h"#include "utils/module.h"/* * BypassEnable *		False iff enable/disable processing is required given on and "*countP." * * Note: *		As a side-effect, *countP is modified.	It should be 0 initially. * * Exceptions: *		BadState if called with pointer to value 0 and false. *		BadArg if "countP" is invalid pointer. *		BadArg if on is invalid. */boolBypassEnable(int *enableCountInOutP, bool on){	AssertArg(PointerIsValid(enableCountInOutP));	AssertArg(BoolIsValid(on));	if (on)	{		*enableCountInOutP += 1;		return (bool) (*enableCountInOutP >= 2);	}	Assert(*enableCountInOutP >= 1);	*enableCountInOutP -= 1;	return (bool) (*enableCountInOutP >= 1);}

⌨️ 快捷键说明

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