Subversion Repositories wimsdev

Rev

Rev 8224 | Rev 8244 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8224 Rev 8225
Line 7... Line 7...
7
* This source code file, and compiled objects derived from it,                  *
7
* This source code file, and compiled objects derived from it,                  *
8
* can be used and distributed without restriction, including for commercial use *
8
* can be used and distributed without restriction, including for commercial use *
9
* No warrenty whatsoever                                                        *
9
* No warrenty whatsoever                                                        *
10
*********************************************************************************
10
*********************************************************************************
11
*/
11
*/
12
 
-
 
13
#include "../../Lib/libwims.h"
-
 
14
#include "canvasdraw.h"
12
#include "canvasdraw.h"
15
#include <assert.h>
-
 
16
#include "canvasmacro.c"
-
 
17
 
13
 
18
/******************************************************************************
14
/******************************************************************************
19
**  Internal Functions
15
**  Internal Functions
20
******************************************************************************/
16
******************************************************************************/
21
void    add_to_buffer(char *tmp); /* add tmp_buffer to the buffer */
17
void    add_to_buffer(char *tmp); /* add tmp_buffer to the buffer */
22
void    sync_input(FILE *infile);/* proceed with inputfile */
18
void    sync_input(FILE *infile);/* proceed with inputfile */
23
void    canvas_error(char *msg);
-
 
24
void    add_javascript_functions(int js_functions[], int canvas_root_id);
19
void    add_javascript_functions(int js_functions[], int canvas_root_id);
25
void    reset();/* reset some global variables like "use_filled" , "use_dashed" */
20
void    reset();/* reset some global variables like "use_filled" , "use_dashed" */
26
int     get_token(FILE *infile); /* read next char until EOL*/
21
int     get_token(FILE *infile); /* read next char until EOL*/
-
 
22
/*
27
int     x2px(double x);
23
int     x2px(double x);
28
int     y2px(double y);
24
int     y2px(double y);
-
 
25
*/
29
double  px2x(int x);
26
double  px2x(int x);
30
double  px2y(int y);
27
double  px2y(int y);
31
double  get_real(FILE *infile,int last); /* read a value; calculation and symbols allowed */
28
double  get_real(FILE *infile,int last); /* read a value; calculation and symbols allowed */
32
char    *str_replace ( const char *word, const char *sub_word, const char *rep_word );
29
char    *str_replace ( const char *word, const char *sub_word, const char *rep_word );
33
char    *get_color(FILE *infile,int last); /* read hex-color or colorname -> hex */
30
char    *get_color(FILE *infile,int last); /* read hex-color or colorname -> hex */