"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Utility.h" between
chktex-1.7.6.tar.gz and chktex-1.7.8.tar.gz

About: ChkTeX is a LaTeX semantic checker.

Utility.h  (chktex-1.7.6):Utility.h  (chktex-1.7.8)
skipping to change at line 91 skipping to change at line 91
}; };
#define WORDLIST_DEFINED #define WORDLIST_DEFINED
struct FileNode struct FileNode
{ {
char *Name; char *Name;
FILE *fh; FILE *fh;
unsigned long Line; unsigned long Line;
}; };
/* Rotates x n bits left (should be an int, long, etc.) */
#define ROTATEL(x,n) ((x<<n) | (x>>((CHAR_BIT*sizeof(x)) - n)))
/* Rotates x n bits right (should be an int, long, etc.) */
#define ROTATER(x,n) ((x>>n) | (x<<((CHAR_BIT*sizeof(x)) - n)))
/* Subtract 1 because sizeof includes the null terminator. /* Subtract 1 because sizeof includes the null terminator.
* WARNING: To use this on a variable, the type should be char[] * WARNING: To use this on a variable, the type should be char[]
* rather than char*, since for some versions of gcc these give * rather than char*, since for some versions of gcc these give
* different values. */ * different values. */
#define STRLEN(x) (sizeof(x)/sizeof(x[0]) - 1) #define STRLEN(x) (sizeof(x)/sizeof(x[0]) - 1)
int fexists(const char *Filename); int fexists(const char *Filename);
void *sfmemset(void *to, int c, long n); void *sfmemset(void *to, int c, long n);
void *saferealloc(void *old, size_t newsize); void *saferealloc(void *old, size_t newsize);
skipping to change at line 134 skipping to change at line 128
void ListRep(struct WordList *wl, const char From, const char To); void ListRep(struct WordList *wl, const char From, const char To);
void ClearWord(struct WordList *WL); void ClearWord(struct WordList *WL);
int StkPush(void *Data, struct Stack *Stack); int StkPush(void *Data, struct Stack *Stack);
void *StkPop(struct Stack *Stack); void *StkPop(struct Stack *Stack);
void *StkTop(struct Stack *Stack); void *StkTop(struct Stack *Stack);
FILE *CurStkFile(struct Stack *stack); FILE *CurStkFile(struct Stack *stack);
const char *CurStkName(struct Stack *stack); const char *CurStkName(struct Stack *stack);
unsigned long CurStkLine(struct Stack *stack); unsigned long CurStkLine(struct Stack *stack);
long CurStkMode(struct Stack *stack);
long *PushMode(long mode, struct Stack *stack);
char *FGetsStk(char *Dest, unsigned long len, struct Stack *stack); char *FGetsStk(char *Dest, unsigned long len, struct Stack *stack);
int PushFileName(const char *Name, struct Stack *stack); int PushFileName(const char *Name, struct Stack *stack);
int PushFile(const char *, FILE *, struct Stack *); int PushFile(const char *, FILE *, struct Stack *);
void FreeErrInfo(struct ErrInfo *ei); void FreeErrInfo(struct ErrInfo *ei);
struct ErrInfo *PushChar(const char c, const unsigned long Line, struct ErrInfo *PushChar(const char c, const unsigned long Line,
const unsigned long Column, struct Stack *Stk, const unsigned long Column, struct Stack *Stk,
const char *LineCpy); const char *LineCpy);
struct ErrInfo *PushErr(const char *Data, const unsigned long Line, struct ErrInfo *PushErr(const char *Data, const unsigned long Line,
const unsigned long Column, const unsigned long Column,
 End of changes. 2 change blocks. 
6 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)