<commit_before>/*
 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
 * See the copyright notice in the ACK home directory, in the file "Copyright".
 */
/* $Header$ */
/* PREPROCESSOR: PRAGMA INTERPRETER */

#include	"debug.h"
#include	"arith.h"
#include	"LLlex.h"
#include	"Lpars.h"
#include	"idf.h"
#include	"input.h"
#include	"ifdepth.h"	
#include	"botch_free.h"	
#include	"nparams.h"	
#include	"parbufsize.h"	
#include	"textsize.h"	
#include	"idfsize.h"	
#include	"assert.h"
#include	<alloc.h>
#include	"class.h"
#include	"macro.h"

#define P_UNKNOWN	0
#define P_FLAGS		1

struct pkey {
	char *pk_name;
	int pk_key;
} pragmas[] = {
	{"cemflags",	P_FLAGS},
	{0,		P_UNKNOWN}
};

extern struct idf *GetIdentifier();

do_pragma()
{
	register struct pkey *pkp;
	register struct idf *id;
	struct token tk;

	if ((id = GetIdentifier(1)) != (struct idf *)0) {
		/*	Lineair search - why bother ?
		*/
		for (pkp = &pragmas[0]; pkp->pk_key != P_UNKNOWN; pkp++)
			if (strcmp(pkp->pk_name, id->id_text) == 0)
				break;

		switch (pkp->pk_key) {
		case P_FLAGS:
			if (GetToken(&tk) == STRING)
				do_option(tk.tk_bts);
			break;

		case P_UNKNOWN:
		default:
			break;
		}
		SkipToNewLine();
	}
}<commit_msg>don't recognize any pragma's (mechanism is still present)<commit_after>/*
 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
 * See the copyright notice in the ACK home directory, in the file "Copyright".
 */
/* $Header$ */
/* PREPROCESSOR: PRAGMA INTERPRETER */

#include	"debug.h"
#include	"idf.h"

#define P_UNKNOWN	0
#define NR_PRAGMAS	0

struct pkey {
	char *pk_name;
	int pk_key;
} pragmas[NR_PRAGMAS + 1] = {
	{0,		P_UNKNOWN}
};

extern struct idf *GetIdentifier();

do_pragma()
{
	register struct pkey *pkp = &pragmas[0];
	register struct idf *id = GetIdentifier(1);

	if (id != (struct idf *)0) {
#if	NR_PRAGMAS
		while(pkp->pk_name) {
			if (strcmp(pkp->pk_name, id->id_text) == 0)
				break;
			pkp++;
		}

		switch (pkp->pk_key) {
		case P_UNKNOWN:
		default:
			break;
		}
#endif
		SkipToNewLine();
	}
}
{'fraction_non_alphanumeric': 0.15458937198067632, 'fraction_numerical': 0.011111111111111112, 'mean_word_length': 3.8275058275058274, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5911541', 'n_tokens_mistral': 928, 'n_tokens_neox': 868, 'n_words': 220}