Skip to content
Snippets Groups Projects
Commit f0a5f261 authored by Valentin Perrelle's avatar Valentin Perrelle
Browse files

Merge branch 'feature/andre/anon-structs-enums' into 'master'

[Libc] remove last occurrences of anonymous composite types

See merge request frama-c/frama-c!2196
parents aba67b5a d485c405
No related branches found
No related tags found
No related merge requests found
...@@ -43,7 +43,7 @@ typedef struct re_pattern_buffer regex_t; ...@@ -43,7 +43,7 @@ typedef struct re_pattern_buffer regex_t;
#define REG_NOTEOL 2 #define REG_NOTEOL 2
/* Error codes */ /* Error codes */
typedef enum typedef enum __fc_reg_errcode_t
{ {
REG_NOERROR = 0, REG_NOERROR = 0,
REG_NOMATCH, REG_NOMATCH,
...@@ -66,7 +66,7 @@ typedef enum ...@@ -66,7 +66,7 @@ typedef enum
typedef int regoff_t; typedef int regoff_t;
typedef struct typedef struct __fc_regmatch_t
{ {
regoff_t rm_so; regoff_t rm_so;
regoff_t rm_eo; regoff_t rm_eo;
......
...@@ -41,7 +41,7 @@ extern int setjmp(jmp_buf env); ...@@ -41,7 +41,7 @@ extern int setjmp(jmp_buf env);
extern void longjmp(jmp_buf env, int val); extern void longjmp(jmp_buf env, int val);
#include "__fc_define_sigset_t.h" #include "__fc_define_sigset_t.h"
typedef struct {jmp_buf buf; sigset_t sigs;} sigjmp_buf; typedef struct __fc_sigjmp_buf {jmp_buf buf; sigset_t sigs;} sigjmp_buf;
extern int sigsetjmp(sigjmp_buf env, int savesigs); extern int sigsetjmp(sigjmp_buf env, int savesigs);
......
...@@ -132,7 +132,7 @@ struct sigevent { ...@@ -132,7 +132,7 @@ struct sigevent {
#ifndef __have_siginfo_t #ifndef __have_siginfo_t
#define __have_siginfo_t #define __have_siginfo_t
typedef struct { typedef struct __fc_siginfo_t {
int si_signo; int si_signo;
int si_code; int si_code;
union sigval si_value; union sigval si_value;
......
...@@ -206,7 +206,7 @@ extern int fwscanf(FILE * stream, const wchar_t * format, ...); ...@@ -206,7 +206,7 @@ extern int fwscanf(FILE * stream, const wchar_t * format, ...);
extern int swscanf(const wchar_t * str, const wchar_t * format, ...); extern int swscanf(const wchar_t * str, const wchar_t * format, ...);
#ifndef __mbstate_t_defined #ifndef __mbstate_t_defined
typedef struct { int __count; char __value[4]; } mbstate_t; typedef struct __fc_mbstate_t { int __count; char __value[4]; } mbstate_t;
#define __mbstate_t_defined #define __mbstate_t_defined
#endif #endif
......
...@@ -127,7 +127,7 @@ union sigval { ...@@ -127,7 +127,7 @@ union sigval {
int sival_int ; int sival_int ;
void *sival_ptr ; void *sival_ptr ;
}; };
struct __anonstruct_siginfo_t_1 { struct __fc_siginfo_t {
int si_signo ; int si_signo ;
int si_code ; int si_code ;
union sigval si_value ; union sigval si_value ;
...@@ -138,7 +138,7 @@ struct __anonstruct_siginfo_t_1 { ...@@ -138,7 +138,7 @@ struct __anonstruct_siginfo_t_1 {
int si_status ; int si_status ;
int si_band ; int si_band ;
}; };
typedef struct __anonstruct_siginfo_t_1 siginfo_t; typedef struct __fc_siginfo_t siginfo_t;
struct sigaction { struct sigaction {
void (*sa_handler)(int ) ; void (*sa_handler)(int ) ;
void (*sa_sigaction)(int , siginfo_t *, void *) ; void (*sa_sigaction)(int , siginfo_t *, void *) ;
...@@ -338,11 +338,11 @@ struct passwd { ...@@ -338,11 +338,11 @@ struct passwd {
char *pw_shell ; char *pw_shell ;
}; };
typedef int ( jmp_buf)[5]; typedef int ( jmp_buf)[5];
struct __anonstruct_sigjmp_buf_22 { struct __fc_sigjmp_buf {
jmp_buf buf ; jmp_buf buf ;
sigset_t sigs ; sigset_t sigs ;
}; };
typedef struct __anonstruct_sigjmp_buf_22 sigjmp_buf; typedef struct __fc_sigjmp_buf sigjmp_buf;
struct _code { struct _code {
char const *c_name ; char const *c_name ;
int c_val ; int c_val ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment