1 |
2 |
mrdmkg |
#include "tipodef.h"
|
2 |
|
|
#include "sospesifada.h"
|
3 |
|
|
|
4 |
|
|
#ifndef lista_definida
|
5 |
|
|
#define lista_definida
|
6 |
|
|
|
7 |
|
|
struct lista
|
8 |
|
|
{
|
9 |
|
|
n1 *datos;
|
10 |
|
|
nN capasia;
|
11 |
|
|
nN contador;
|
12 |
|
|
nN crese;
|
13 |
|
|
};
|
14 |
|
|
#endif
|
15 |
|
|
|
16 |
|
|
fl2 fl2__cadena(n1 *,nN);
|
17 |
|
|
fl2 fl2__cadena_desimal(n1 *,nN);
|
18 |
|
|
fl2 fl2_frato__cadena(n1 *,nN);
|
19 |
|
|
nN nN__desimal_cadena(n1 *, nN);
|
20 |
|
|
n8 n8__desimal_cadena(n1 *, nN);
|
21 |
|
|
nM nM__desimal_cadena(n1 *, nN);
|
22 |
|
|
nN nN__exadesimal_cadena(n1 *, nN);
|
23 |
|
|
n8 n8__exadesimal_cadena(n1 *, nN);
|
24 |
|
|
nM nM__exadesimal_cadena(n1 *, nN);
|
25 |
|
|
|
26 |
|
|
n1 n1_asciiexadesimal(n1 *,nN);
|
27 |
|
|
n4 n4_asciiexadesimal(n1 *,nN);
|
28 |
|
|
n4 n4_ccadenaexadesimal(n1 *);
|
29 |
|
|
nN nN_cuantia__ccadena(char *);
|
30 |
|
|
nN nN_cuantia_brasetida__cadena(n1 *, n1, n1);
|
31 |
|
|
|
32 |
|
|
nN nN_trova__asende_n4(n4 *, nN, n4);
|
33 |
|
|
n8 n8_trova__asende_n8(n8 *cadena, n8, n8, n8);
|
34 |
|
|
|
35 |
|
|
n4 n4_sinia__cadena(n1 *,nN);
|
36 |
|
|
n4 n4_sinia__ccadena(char *);
|
37 |
|
|
n8 n8_sinia__cadena(n1 *,nN);
|
38 |
|
|
n8 n8_sinia__ccadena(char *);
|
39 |
|
|
nN nN_sinia__cadena(n1 *,nN);
|
40 |
|
|
nN nN_sinia__ccadena(char *);
|
41 |
|
|
nN nN_sinia__lista(struct lista *);
|
42 |
|
|
nM nM_SPR__cadena(n1 *, nN);
|
43 |
|
|
|
44 |
|
|
nN asciiexadesimal__nN(n1 *, nN);
|
45 |
|
|
n8 asciiexadesimal__n8(n1 *, n8);
|
46 |
|
|
nN asciidesimal__nN(n1 *, nN);
|
47 |
|
|
nN asciidesimal__n8(n1 *, n8);
|
48 |
|
|
|
49 |
|
|
//void * (n1 *, nN)
|
50 |
|
|
void cadena__f(void *scrive(char *, nN), char *, ...);
|
51 |
|
|
void cadena_ANSI_limpa(void *scrive(char *, nN));
|
52 |
|
|
void cadena_ANSI__cursor_sinistra(void *scrive(char *, nN), nN);
|
53 |
|
|
void cadena_ANSI__cursor_destra(void *scrive(char *, nN), nN);
|
54 |
|
|
void cadena_ANSI__cursor_asende(void *scrive(char *, nN), nN);
|
55 |
|
|
void cadena_ANSI__cursor_desende(void *scrive(char *, nN), nN);
|
56 |
|
|
void cadena_ANSI_cursor_orijin(void *scrive(char *, nN));
|
57 |
|
|
void cadena_ANSI_cursor_posa_fisa(void *scrive(char *, nN));
|
58 |
|
|
void cadena_ANSI_cursor_posa_restora(void *scrive(char *, nN));
|
59 |
|
|
|
60 |
|
|
void cadena_ANSI__cursor_posa(void *scrive(char *, nN), nN,nN);
|
61 |
|
|
void cadena_ANSI__atribuida(void *scrive(char *, nN), n1);
|
62 |
|
|
void cadena_ANSI__2atribuida(void *scrive(char *, nN), n1, n1);
|
63 |
|
|
void cadena_ANSI__3atribuida(void *scrive(char *, nN), n1, n1, n1);
|
64 |
|
|
|
65 |
|
|
void cadena_asciidesimal__nN(void *scrive(char *, nN), nN);
|
66 |
|
|
|
67 |
|
|
void lista_ajunta_asciiexadesimal__cadena(struct lista *, n1 *, nN);
|
68 |
|
|
void lista_ajunta_asciiexadesimal__n8(struct lista *, n8);
|
69 |
|
|
void lista_ajunta_asciiexadesimal__n2(struct lista *, n2);
|
70 |
|
|
void lista_ajunta_asciiexadesimal__n1(struct lista *, n1);
|
71 |
|
|
|
72 |
|
|
//void lista_(struct lista*);
|
73 |
|
|
void lista_crese(struct lista *, nN);
|
74 |
|
|
struct lista *lista_nova(nN);
|
75 |
|
|
struct lista *lista_nova__lista(struct lista *);
|
76 |
|
|
struct lista *lista_nova__datos(n1 *, nN);
|
77 |
|
|
struct lista *lista_nova__ccadena(char *);
|
78 |
|
|
struct lista *lista_nova__crese(nN, nN);
|
79 |
|
|
struct lista *lista_2_nova__lista_2(struct lista *);
|
80 |
|
|
void lista_defini__crese(struct lista *,nN);
|
81 |
|
|
void lista_libri(struct lista *);
|
82 |
|
|
void lista_2_libri(struct lista *); //lista-> lista
|
83 |
|
|
|
84 |
|
|
void lista_ajunta__dato(struct lista *,n1);
|
85 |
|
|
void lista_ajunta__datos(struct lista *,n1 *,nN);
|
86 |
|
|
void lista_ajunta__lista(struct lista *,struct lista *);
|
87 |
|
|
void lista_ajunta__ccadena(struct lista *, char *);
|
88 |
|
|
void lista_ajunta__P(struct lista *, P);
|
89 |
|
|
void lista_ajunta__nN(struct lista *,nN);
|
90 |
|
|
void lista_ajunta__n2(struct lista *,n2);
|
91 |
|
|
void lista_ajunta__n4(struct lista *,n4);
|
92 |
|
|
void lista_ajunta__n8(struct lista *,n8);
|
93 |
|
|
void lista_ajunta__fl2(struct lista *,fl2);
|
94 |
|
|
|
95 |
|
|
void lista_inserta_capasia(struct lista *, nN, nN);
|
96 |
|
|
void lista_inserta__dato(struct lista *,n1,nN); //esta,dato,indise
|
97 |
|
|
void lista_inserta__datos(struct lista *,n1 *,nN,nN); //esta,datos,cuantia,indise
|
98 |
|
|
void lista_inserta__lista(struct lista *,struct lista *,nN);
|
99 |
|
|
void lista_inserta__ccadena(struct lista *, char *,nN);
|
100 |
|
|
void lista_inserta__P(struct lista *,P , nN);
|
101 |
|
|
void lista_inserta__n4(struct lista *,n4 , nN);
|
102 |
|
|
|
103 |
|
|
void lista_sutrae__datos(struct lista *,nN,nN);
|
104 |
|
|
|
105 |
|
|
n1 lista_dato_last(struct lista *);
|
106 |
|
|
n1 * lista_datos_last(struct lista *,nN);
|
107 |
|
|
|
108 |
|
|
void lista_repone__dato(struct lista *,n1,nN);
|
109 |
|
|
void lista_repone__datos(struct lista *,n1 *,nN,nN);
|
110 |
|
|
|
111 |
|
|
#define lista_minima_cuantia (0x10*20)
|
112 |
|
|
#define lista_minima_crese (0x10*10)
|
113 |
|
|
|
114 |
|
|
#define lista_table_sinia \
|
115 |
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\
|
116 |
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\
|
117 |
|
|
0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1,\
|
118 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
119 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
120 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1,\
|
121 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
122 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 0,\
|
123 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
124 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
125 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
126 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
127 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,\
|
128 |
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
|
167 |
|
|
|
168 |
|
|
#define lista_table_clui \
|
169 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
170 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
171 |
|
|
' ', ' ', '"', ' ', ' ', ' ', ' ', '\'', ')', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
172 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '>', ' ', ' ', ' ',\
|
173 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
174 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ']', ' ', ' ', ' ', ' ',\
|
175 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
176 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '}', ' ', ' ', ' ', ' ',\
|
177 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
178 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
179 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
180 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
181 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
182 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
183 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',\
|
184 |
|
|
' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ',
|