<commit_before>#ifndef INTERNAL_AMISSL_H
#define INTERNAL_AMISSL_H

#include <exec/types.h>
#include <dos.h>
#include <time.h>

typedef struct {
	unsigned long pid;
	int errno;
	char *getenv_var;
	APTR stack;
	APTR a4;
	struct tm localtime_var;
	struct Library *SocketBase;
	LONG TCPIPStackType;
	struct MLinkLock *MLinkLock; // This is really ancient, but ib still supports it so...
	int socket_base_owns_errno;
	int *errno_ptr;		// If the app supplied an errno ptr
	int local_errno;	// If no errno and we generated the error ourselves
#ifdef __amigaos4__
	struct SocketIFace *ISocket;
#endif
} AMISSL_STATE;

#ifndef __amigaos4__
__stdargs
#endif
AMISSL_STATE *GetAmiSSLState(void);
#ifndef __amigaos4__
__stdargs
#endif
void SetAmiSSLerrno(int errno);
#ifndef __amigaos4__
__stdargs
#endif
int GetAmiSSLerrno(void);

#define SETUPSTATE() AMISSL_STATE *state = GetAmiSSLState()
#define SETUPSTATEDS() AMISSL_STATE *state =GetAmiSSLState(); putreg(REG_A4,(long)state->a4)<commit_msg>SETUPSTATEDS is now different for 68k/PPC.<commit_after>#ifndef INTERNAL_AMISSL_H
#define INTERNAL_AMISSL_H

#include <exec/types.h>
#include <dos.h>
#include <time.h>

typedef struct {
	unsigned long pid;
	int errno;
	char *getenv_var;
	APTR stack;
	APTR a4;
	struct tm localtime_var;
	struct Library *SocketBase;
	LONG TCPIPStackType;
	struct MLinkLock *MLinkLock; // This is really ancient, but ib still supports it so...
	int socket_base_owns_errno;
	int *errno_ptr;		// If the app supplied an errno ptr
	int local_errno;	// If no errno and we generated the error ourselves
#ifdef __amigaos4__
	struct SocketIFace *ISocket;
#endif
} AMISSL_STATE;

#ifndef __amigaos4__
__stdargs
#endif
AMISSL_STATE *GetAmiSSLState(void);
#ifndef __amigaos4__
__stdargs
#endif
void SetAmiSSLerrno(int errno);
#ifndef __amigaos4__
__stdargs
#endif
int GetAmiSSLerrno(void);

#define SETUPSTATE() AMISSL_STATE *state = GetAmiSSLState()
#ifndef __amigaos4__
#define SETUPSTATEDS() AMISSL_STATE *state =GetAmiSSLState(); putreg(REG_A4,(long)state->a4)
#else
#define SETUPSTATEDS() AMISSL_STATE *state =GetAmiSSLState(); // FIXME: setup r2
#endif
{'fraction_non_alphanumeric': 0.09185606060606061, 'fraction_numerical': 0.008522727272727272, 'mean_word_length': 5.973597359735973, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '5077355', 'n_tokens_mistral': 812, 'n_tokens_neox': 793, 'n_words': 222}