local.h

来自「基于4个mips核的noc设计」· C头文件 代码 · 共 77 行

H
77
字号
/* * Copyright (c) 1990 The Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice and this paragraph are * duplicated in all such forms and that any documentation, * advertising materials, and other materials related to such * distribution and use acknowledge that the software was developed * by the University of California, Berkeley.  The name of the * University may not be used to endorse or promote products derived * from this software without specific prior written permission. * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * *//* * Information local to this implementation of stdio, * in particular, macros and private variables. */#if __STDC__ || c_plusplusextern FILE *__sfp(void);extern int __srefill(FILE *);extern int __sread(void *, char *, int);extern int __swrite(void *, char const *, int);extern fpos_t __sseek(void *, fpos_t, int);extern int __sclose(void *);extern void __sinit(void);extern void _cleanup(void);extern void (*__cleanup)(void);extern void __smakebuf(FILE *);extern int _fwalk(int (*)(FILE *));struct glue *__sfmoreglue(int n);#else /* __STDC__ || c_plusplus */extern FILE *__sfp();extern int __srefill();extern int __sread();extern int __swrite();extern fpos_t __sseek();extern int __sclose();extern void __sinit();extern void _cleanup();extern void (*__cleanup)();extern void __smakebuf();extern int __sfwalk();struct glue *__sfmoreglue();#endif /* __STDC__ || c_plusplus */extern int __sdidinit;/* * Return true iff the given FILE cannot be written now. */#define	cantwrite(fp) \	((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \	 __swsetup(fp))/* * Test whether the given stdio file has an active ungetc buffer; * release such a buffer, without restoring ordinary unread data. */#define	HASUB(fp) ((fp)->_ub._base != NULL)#define	FREEUB(fp) { \	if ((fp)->_ub._base != (fp)->_ubuf) \		free((char *)(fp)->_ub._base); \	(fp)->_ub._base = NULL; \}/* * test for an fgetline() buffer. */#define	HASLB(fp) ((fp)->_lb._base != NULL)#define	FREELB(fp) { free((char *)(fp)->_lb._base); (fp)->_lb._base = NULL; }

⌨️ 快捷键说明

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