The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
/*
 * Determine the size of basic C types to aid in the creation of
 * signal/slot stubs by SigSlot.pm
 *
 * Copyright (C) 1999, Ashley Winters <jql@accessone.com>
 *
 * You may distribute under the terms of the LGPL as specified in the
 * README.LICENSE file which should be included with this library.
 *
 */

#include <stdio.h>
#undef bool
#include "qglobal.h"

int main(int argc, char *argv[]) {
    printf("void* = %d\n", sizeof(void *));
    printf("bool = %d\n", sizeof(bool));
    printf("char = %d\n", sizeof(char));
    printf("short = %d\n", sizeof(short));
    printf("int = %d\n", sizeof(int));
    printf("long = %d\n", sizeof(long));
    printf("float = %d\n", sizeof(float));
    printf("double = %d\n", sizeof(double));
    printf("long double = %d\n", sizeof(long double));
    return 0;
}