Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/misoc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 333179e
Choose a base ref
...
head repository: m-labs/misoc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2428057
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on May 28, 2012

  1. software/libbase: more file decls in stdio

    Sebastien Bourdeauducq committed May 28, 2012
    Copy the full SHA
    56e201f View commit details
  2. software/libbase: malloc family decl in stdlib

    Sebastien Bourdeauducq committed May 28, 2012
    Copy the full SHA
    2428057 View commit details
Showing with 13 additions and 0 deletions.
  1. +9 −0 software/include/base/stdio.h
  2. +4 −0 software/include/base/stdlib.h
9 changes: 9 additions & 0 deletions software/include/base/stdio.h
Original file line number Diff line number Diff line change
@@ -21,6 +21,10 @@ int printf(const char *fmt, ...);
#define BUFSIZ 1024
#endif

#ifndef EOF
#define EOF -1
#endif

typedef int FILE;

extern FILE *stdin;
@@ -31,9 +35,14 @@ int fprintf(FILE *stream, const char *format, ...);
int fflush(FILE *stream);

FILE *fopen(const char *path, const char *mode);
FILE *freopen(const char *path, const char *mode, FILE *stream);
char *fgets(char *s, int size, FILE *stream);
size_t fread(void *ptr, size_t size, size_t nmemb, FILE *stream);
size_t fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);
int getc(FILE *stream);
int fputc(int c, FILE *stream);
int ferror(FILE *stream);
int feof(FILE *stream);
int fclose(FILE *fp);

#endif /* __STDIO_H */
4 changes: 4 additions & 0 deletions software/include/base/stdlib.h
Original file line number Diff line number Diff line change
@@ -58,4 +58,8 @@ void abort(void);

char *getenv(const char *name);

void *malloc(size_t size);
void free(void *ptr);
void *realloc(void *ptr, size_t size);

#endif /* __STDLIB_H */