AceTime  1.1
Date and time classes for Arduino that support timezones from the TZ Database, and a system clock that can synchronize from an NTP server or an RTC chip.
Macros | Functions
compat.h File Reference

Macros and definitions that provide a consistency layer among the various Arduino boards for compatibility. More...

#include <stdint.h>
#include <string.h>
#include <pgmspace.h>
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACE_TIME_USE_PROGMEM   1
 Determine if zonedb and zonedbx zoneinfo files are placed in PROGMEM. More...
 
#define ACE_TIME_PROGMEM   PROGMEM
 

Functions

int acetime_strcmp_P (const char *str1, const char *str2P)
 
const char * strchr_P (const char *s, int c)
 
const char * strrchr_P (const char *s, int c)
 
int acetime_strcmp_PP (const char *a, const char *b)
 Compare 2 strings in flash memory. More...
 

Detailed Description

Macros and definitions that provide a consistency layer among the various Arduino boards for compatibility.

Most of this is caused by inconsistent, incomplete, or sometimes incorrect emulation of the AVR PROGMEM macro and its related str*_P() functions in <avr/pgmspace.h>.

Definition in file compat.h.

Macro Definition Documentation

◆ ACE_TIME_USE_PROGMEM

#define ACE_TIME_USE_PROGMEM   1

Determine if zonedb and zonedbx zoneinfo files are placed in PROGMEM.

Definition at line 22 of file compat.h.

Function Documentation

◆ acetime_strcmp_PP()

int acetime_strcmp_PP ( const char *  a,
const char *  b 
)

Compare 2 strings in flash memory.

None of the various strXxx_P() functions work when both strings are in flash memory.

Definition at line 36 of file compat.cpp.