Numworks Epsilon  1.4.1
Graphing Calculator Operating System
inliner.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <png.h>
#include <stdint.h>
#include <string.h>
#include <ctype.h>

Go to the source code of this file.

Macros

#define ERROR_IF(cond, message)   if (cond) { printf(message); return -1; };
 
#define MAX_FILENAME_LENGTH   255
 

Functions

void generateHeaderFromImage (FILE *file, const char *guardian, const char *variable)
 
void generateImplementationFromImage (FILE *file, const char *header, const char *variable, uint32_t width, uint32_t height, png_bytep *pixelsRowPointers)
 
void fileNameToSnakeCaseName (const char *fileName, char *snakeCaseName, size_t maxLength)
 
void snakeCaseNameToUpperSnakeName (const char *snakeCaseName, char *upperSnakeCaseName, size_t maxLength)
 
void camelCaseNameFromSnakeCaseNames (const char *snakeCaseName, const char *upperSnakeCaseName, char *camelCaseName, size_t maxLength)
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ ERROR_IF

#define ERROR_IF (   cond,
  message 
)    if (cond) { printf(message); return -1; };

Definition at line 17 of file inliner.c.

◆ MAX_FILENAME_LENGTH

#define MAX_FILENAME_LENGTH   255

Definition at line 18 of file inliner.c.

Function Documentation

◆ camelCaseNameFromSnakeCaseNames()

void camelCaseNameFromSnakeCaseNames ( const char *  snakeCaseName,
const char *  upperSnakeCaseName,
char *  camelCaseName,
size_t  maxLength 
)

Definition at line 122 of file inliner.c.

◆ fileNameToSnakeCaseName()

void fileNameToSnakeCaseName ( const char *  fileName,
char *  snakeCaseName,
size_t  maxLength 
)

Definition at line 105 of file inliner.c.

◆ generateHeaderFromImage()

void generateHeaderFromImage ( FILE file,
const char *  guardian,
const char *  variable 
)

Definition at line 137 of file inliner.c.

◆ generateImplementationFromImage()

void generateImplementationFromImage ( FILE file,
const char *  header,
const char *  variable,
uint32_t  width,
uint32_t  height,
png_bytep *  pixelsRowPointers 
)

Definition at line 148 of file inliner.c.

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 29 of file inliner.c.

◆ snakeCaseNameToUpperSnakeName()

void snakeCaseNameToUpperSnakeName ( const char *  snakeCaseName,
char *  upperSnakeCaseName,
size_t  maxLength 
)

Definition at line 116 of file inliner.c.